Re: Tomcat 5.0.18, j2sdk1.4.2 cocoon-2.0.4 Configuration Problem
Thanks, probably that is the problem. The batik-all-1.5b2.jar in my cocoon.war file is corrupted. I'll download it try it again. (my link is slow, so it'll take some time). I've downloaded the cocoon binary distribution. The cocoon.war file was also intact (I haven't varified using the PGP signature, but varified with jar zip). So the problem escaped my eyes. Thanks a lot again. -Prabhakar One of your jar files is bad, probaby in your webapp. Check all jars for integrity and redeploy. Jake At 11:32 AM 2/16/2004 +0530, you wrote: Hi I am not sure whether the problem I'm going to narrate belongs to Tomcat or Cocoon, but anyway I'm sending this mail to this list just in case it is a problem for this forum. I am trying to configure cocoon-2.0.4 on Tomcat 5.0.18 using j2sdk1.4.2. The tomcat standalone server is running allright. But whenever I try to deploy the cocoon.war file, I get the following error: --- logs/catalina.out INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.18/conf/Catalina/localhost/cocoon.xml Feb 16, 2004 11:05:45 AM org.apache.catalina.core.StandardContext start SEVERE: Error in dependencyCheck java.util.zip.ZipException: invalid entry size (expected 2472738816 but got 48 bytes) at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:367) at java.util.zip.ZipInputStream.read(ZipInputStream.java:141) at java.util.jar.JarInputStream.read(JarInputStream.java:159) at java.io.BufferedInputStream.read1(BufferedInputStream.java:220) at java.io.BufferedInputStream.read(BufferedInputStream.java:280) at java.util.jar.JarInputStream.getBytes(JarInputStream.java:88) at java.util.jar.JarInputStream.init(JarInputStream.java:65) at java.util.jar.JarInputStream.init(JarInputStream.java:43) at org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:420) at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:248) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4135) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:840) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) When I try to browse the cocoon directory of my server (in my case (http://localhost:8085/cocoon) I get the following error: HTTP Status 404 - /cocoon/ type Status report message /cocoon/ description The requested resource (/cocoon/) is not available. I've tried replacing the xalan.war, xml-api.war etc. files in tomcat/common/endorsed directory (as directed by cocoon installation guide) but I still get the error. Can anyone help me out? Regards thanks in advance, Prabhakar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring a Data Resource in web.xml
I not think you can put the JNDI/Resource stuff in the deployment descriptor, though I stand to be corrected (!) AFAIK the JNDI/Resource stuff is placed within an application's 'Context' element. With Tomcat 5 you can have separate context fragments - individual XML documents - for each application. Context fragments are cool because you can update them without having to touch the server's configuration file (server.xml). Context fragments reside in $CATALINA_HOME/conf/Catalina/host directory where host is the name of the relevant host specified in server.xml. The default host setting is 'localhost'. I hope that helps! Harry Mantheakis London, UK The reference book I have shows how to configure a data resource (JDBC) in the server.xml. Does anyone have a reference on how to do this in the web.xml? I'd like to be able to unpack a war and have everything run, without the need to edit the server.xml. Thanks for your help. Mike __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with Invoker
On Friday 13 February 2004 21:32, Shapira, Yoav wrote: First, as a general tip, I suggest putting all your classes in packages: http://jakarta.apache.org/tomcat/faq/classnotfound.html. thanks for the tip. I've put it all in packages now and compile with JDK 1.3. the problem remains though: if I put the the servlet in a package package1, It replies with class not found package1: 2004-02-16 11:39:43 invoker: Cannot allocate servlet instance for path /myApplServerDev/servlet/package1/Connect javax.servlet.ServletException: Wrapper cannot find servlet class package or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:484) - Root Cause - java.lang.ClassNotFoundException: package1 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
Réf. : Re: Trouble with Invoker
by default, with tomcat 4.1.x, the invoker servlet mapping is in comment in the web.xml file. make sure it's uncommented in you web.xml file. servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping hope this helps. ___ NATEXIS ASSET MANAGEMENT Meissa SAKHO 01 58 19 45 71. . . . . . . . . . . . (84571) [EMAIL PROTECTED] Peter Forster [EMAIL PROTECTED] 16/02/2004 11:37 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED], Shapira, Yoav [EMAIL PROTECTED] cc : Objet : Re: Trouble with Invoker On Friday 13 February 2004 21:32, Shapira, Yoav wrote: First, as a general tip, I suggest putting all your classes in packages: http://jakarta.apache.org/tomcat/faq/classnotfound.html. thanks for the tip. I've put it all in packages now and compile with JDK 1.3. the problem remains though: if I put the the servlet in a package package1, It replies with class not found package1: 2004-02-16 11:39:43 invoker: Cannot allocate servlet instance for path /myApplServerDev/servlet/package1/Connect javax.servlet.ServletException: Wrapper cannot find servlet class package or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:484) - Root Cause - java.lang.ClassNotFoundException: package1 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at
How Servlets work?
Hi all, may be not the right place to ask this question. Hope somebody is kind enough to clarify this doubt of mine. i understand, in a servlet, if i need any code to be thread safe, then i shud put that code inside a synhronized block or declared the entire method as synchronized. if my understanding is right, only instance of our serlvet class is being created. in that case how the webserver handles more than one request at the same time. i mean, is some queuing structure being followed, (i am tempted to believe it is not multithreaded)? Could anybody clarify this doubt of mine or atleast point out some ref. material for this. Thanks R.Saravanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to know when Tomcat has completed startup?
Hi all, I'm trying to get a certain method within my startup class to *only* execute after Tomcat startup has fully completed. I understand I can implement a LifecycleListener, but there only seems to be before/after start/stop events. (i'm not sure that Lifecycle.AFTER_START_EVENT refers to 'startup is complete', or 'startup event was requested') In short, as part of my Startup procedure, we pre-generate(if rqd) a fornightly clandar of 'events' from some JSPs on the same Tomcat instance. The problem is mainly that we also use Apache/JK2, so a HTTP 500 error is generated (the Apache connection can be made, but Tomcat is not yet available), unless we can defer until Tomcat has started. I could, of course, defer the event for a few minutes, but that doesn't strike me as much of a graceful approach. I'm assuming this is probably pretty simple? Any pointers would be much appreciated. (not google.com, been all morning in there! :) ) James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please help with CLASSPATH problem
Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use *either*. When I run Tomcat 5.0.18 from the command prompt, the app works 100%. It is supposed to pick up a file called emapi.cfg and licenses.txt from the CLASSPATH. emapi.cfg works int .\axis\WEB-INF\classes, but licenses.txt doesn't. However, leaving licenses.txt in the bin\ folder and starting Tomcat *from* that folder it works fine. Running Tomcat 5 as a service doesn't pick up licenses.txt although the working dir is set to be bin\. In the bin\ folder I also need a load of *.dtd files to validate XML responses. They only work when they're in the bin folder. Now to Tomcat 4.1: Everything works as a service, including picking up the licenses.txt, but now it refuses to resolve the *.dtds. I get a SAX Parser error that the URI can't be relative. This is a bogus error though, as I can remove all the *dtds and the error stays the same. Can someone PLEASE help me either fix EITHER one of these problems, or please refer me to an alternative server to use. org.apache.axis.transport.http.SimpleAxisServer works like a charm, but not as a service, and shouldn't be used as a production server. Thanks in advance, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help with CLASSPATH problem
I FINALLY figured this one out. Tomcat 5.0.18 as a service ignores -Djava.class.path. Rather, it takes the path from the -Imagepath parameter as the classpath (I did a debug logger.info(Classpath: + System.getProperty(java.class.path) and lo and behold it gave me the Imagepath as the actual classpath. I added %CATALINA_HOME%\bin to the Imageclasspath and all is working fine. This sounds like a bug? Or at least an undocumented feature. Cheers Andi -Original Message- From: Andi Reinbrech [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 14:58 PM To: Tomcat-User (E-mail) Subject: Please help with CLASSPATH problem Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use *either*. When I run Tomcat 5.0.18 from the command prompt, the app works 100%. It is supposed to pick up a file called emapi.cfg and licenses.txt from the CLASSPATH. emapi.cfg works int .\axis\WEB-INF\classes, but licenses.txt doesn't. However, leaving licenses.txt in the bin\ folder and starting Tomcat *from* that folder it works fine. Running Tomcat 5 as a service doesn't pick up licenses.txt although the working dir is set to be bin\. In the bin\ folder I also need a load of *.dtd files to validate XML responses. They only work when they're in the bin folder. Now to Tomcat 4.1: Everything works as a service, including picking up the licenses.txt, but now it refuses to resolve the *.dtds. I get a SAX Parser error that the URI can't be relative. This is a bogus error though, as I can remove all the *dtds and the error stays the same. Can someone PLEASE help me either fix EITHER one of these problems, or please refer me to an alternative server to use. org.apache.axis.transport.http.SimpleAxisServer works like a charm, but not as a service, and shouldn't be used as a production server. Thanks in advance, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to know when Tomcat has completed startup?
What about using a session listener. Why not call your method in the constructor for the SessionListsner Pete -Original Message- From: James Neville [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 12:38 To: [EMAIL PROTECTED] Subject: How to know when Tomcat has completed startup? Hi all, I'm trying to get a certain method within my startup class to *only* execute after Tomcat startup has fully completed. I understand I can implement a LifecycleListener, but there only seems to be before/after start/stop events. (i'm not sure that Lifecycle.AFTER_START_EVENT refers to 'startup is complete', or 'startup event was requested') In short, as part of my Startup procedure, we pre-generate(if rqd) a fornightly clandar of 'events' from some JSPs on the same Tomcat instance. The problem is mainly that we also use Apache/JK2, so a HTTP 500 error is generated (the Apache connection can be made, but Tomcat is not yet available), unless we can defer until Tomcat has started. I could, of course, defer the event for a few minutes, but that doesn't strike me as much of a graceful approach. I'm assuming this is probably pretty simple? Any pointers would be much appreciated. (not google.com, been all morning in there! :) ) James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : RE: How to know when Tomcat has completed startup?
if your application is a struts one, you can do that with struts plugin mechanism. ___ NATEXIS ASSET MANAGEMENT Meissa SAKHO 01 58 19 45 71. . . . . . . . . . . . (84571) [EMAIL PROTECTED] Peter Guyatt [EMAIL PROTECTED] 16/02/2004 14:26 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : RE: How to know when Tomcat has completed startup? What about using a session listener. Why not call your method in the constructor for the SessionListsner Pete -Original Message- From: James Neville [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 12:38 To: [EMAIL PROTECTED] Subject: How to know when Tomcat has completed startup? Hi all, I'm trying to get a certain method within my startup class to *only* execute after Tomcat startup has fully completed. I understand I can implement a LifecycleListener, but there only seems to be before/after start/stop events. (i'm not sure that Lifecycle.AFTER_START_EVENT refers to 'startup is complete', or 'startup event was requested') In short, as part of my Startup procedure, we pre-generate(if rqd) a fornightly clandar of 'events' from some JSPs on the same Tomcat instance. The problem is mainly that we also use Apache/JK2, so a HTTP 500 error is generated (the Apache connection can be made, but Tomcat is not yet available), unless we can defer until Tomcat has started. I could, of course, defer the event for a few minutes, but that doesn't strike me as much of a graceful approach. I'm assuming this is probably pretty simple? Any pointers would be much appreciated. (not google.com, been all morning in there! :) ) James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Tomcat 5.0.18 and symLinks
Does anybody knows if the attribute for the Context (server.xml) is now working? I've try to use symlink in my webapp but is seams that it is not working. Here is my definition: server.xml --- Context path= docBase=mywebapp allowLinking=true / And my webapp is like this: /mywebapps/img/par_imgs Where par_imgs is a symLink to /usr/graphics/par_imgs/ I store imgaes in this directory, but none are displayed in my browser. Does anybody knows how to solve this? Thank for help
Tomcat 5.0 Not Displaying the Stack Trace
I just switched to Tomcat 5.0. For some reason the stack trace is not displayed when an error is generated (the error is in the log); a blank page is displayed. Any suggestions? Thanks. Mike __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to know when Tomcat has completed startup?
Thanks to all who replied. Solved here - even with an example ;) http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=2 |contextInitialized is what I needed :) |I'll call my startup method when I know the whole ServletContext has been initialised. Cheers, James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.18 and symLinks
I use it, and run OK; Guy Kaisin ha scritto: Does anybody knows if the attribute for the Context (server.xml) is now working? I've try to use symlink in my webapp but is seams that it is not working. Here is my definition: server.xml --- Context path= docBase=mywebapp allowLinking=true / And my webapp is like this: /mywebapps/img/par_imgs Where par_imgs is a symLink to /usr/graphics/par_imgs/ I store imgaes in this directory, but none are displayed in my browser. Does anybody knows how to solve this? Thank for help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.18 and symLinks
Guy Kaisin wrote: Does anybody knows if the attribute for the Context (server.xml) is now working? I've try to use symlink in my webapp but is seams that it is not working. Here is my definition: server.xml --- Context path= docBase=mywebapp allowLinking=true / And my webapp is like this: /mywebapps/img/par_imgs Where par_imgs is a symLink to /usr/graphics/par_imgs/ I store imgaes in this directory, but none are displayed in my browser. Does anybody knows how to solve this? Yes, this should work. (don't tell me it doesn't, I did trace this in the file access implementation class ;) ) You can also use DefaultContext allowLinking=true / as well. But the best is to not use linking. And, as a reminder, never use allowLinking on Windows. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to know when Tomcat has completed startup?
[EMAIL PROTECTED] wrote: if your application is a struts one, you can do that with struts plugin mechanism. we actually *are* using Struts i'm intrigued as to how you would propose to do this in Struts... Regards, James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 Not Displaying the Stack Trace
Mike Duffy wrote: I just switched to Tomcat 5.0. For some reason the stack trace is not displayed when an error is generated (the error is in the log); a blank page is displayed. Any suggestions? This works for me. So what is the actual exception ? -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAAS and TOMCAT 5
Success!!! I went back and changed my JAVA_OPTS setting to use single quotesand it still failed. However, in my login.jsp page, I added the following line at the top: System.setProperty(java.security.auth.login.config, C:/TOMACT/conf/jaas.conf); Presto...worked beautifully. I even got the message out in the tomcat log that my login module was successful. I'm still very intrigued as to why nothing else I did worked yet setting it implicitely in my code worked. But, I'll worry about that laterI'm just glad it works now!! Thanks for all the help. :-) Steve Miller -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, February 14, 2004 8:38 AM To: Tomcat Users List Subject: Re: JAAS and TOMCAT 5 On 02/13/2004 09:34 PM Shapira, Yoav wrote: JAVA_OPTS=- Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.conf You probably want JAVA_OPTS='-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas. conf' (one line, single equals signs, quotes containing the whole JAVA_OPTS value. I hardcode the whole path. And I set JAVA_OPTIONS to the same thing as well. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to know when Tomcat has completed startup?
Cancel that - this is called *before* any of the servlets are initialised :( Any better ideas? James Neville wrote: contextInitialized is what I needed :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Promlems with TransformSupport-tag in 5.0.18
Hi, We are testing a tomcat 5.0.18 and everything works well but... javax.servlet.jsp.JspException: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: java.lang.IllegalStateException: can't declare any more prefixes in this context at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(Unknown Source) at org.apache.taglibs.standard.tag.el.xml.TransformTag.doStartTag(Unknown Source) This xml transformation worked with the tomcat 4.1.x and tomcat 4.0.x without any problems. The tomcat 5.0.18 is configured as it is (from the package) only with the root-context re-definition. Perhaps somebody can help me, Yours, Jouko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
?dbauthentification msql+tomcat
hi to all soory to disturbe your work im stuck there sombody could tell mee whats wrong and how could i fixe this ? tanks for your precious time friendly frank :395) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:172) at Authentication.Core.AuthFactory.getAuthenticationDB(Unknown Source) at Authentication.Service.UserLoginDB.doLogin(Unknown Source) at org.apache.jsp.login$jsp._jspService(login$jsp.java:143) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 81) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va:1125) at java.lang.Thread.run(Thread.java:479) Unable to connect to any hosts due to exception: java.net.UnknownHostException: [EMAIL PROTECTED] java.sql.SQLException: Unable to connect to any hosts due to exception: java.net .UnknownHostException: [EMAIL PROTECTED] at com.mysql.jdbc.Connection.createNewIO(Connection.java:1690) at com.mysql.jdbc.Connection.init(Connection.java:427) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :395) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:172) at Authentication.Core.AuthFactory.getAuthenticationDB(Unknown Source) at Authentication.Service.UserLoginDB.doLogin(Unknown Source) at org.apache.jsp.login$jsp._jspService(login$jsp.java:143) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 81) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193)
Re: Tomcat 5.0.18 and symLinks
Yes, It works. I wrote the src attribute of my img tag like this: img src=/mywebapp/img/par_img/mypic.jpg / and it doesn't work. I rewrote it like this img src=/img/par_img/mypic.jpg / and it works well ... ! Thanks - Original Message - From: Remy Maucherat [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:04 PM Subject: Re: Tomcat 5.0.18 and symLinks Guy Kaisin wrote: Does anybody knows if the attribute for the Context (server.xml) is now working? I've try to use symlink in my webapp but is seams that it is not working. Here is my definition: server.xml --- Context path= docBase=mywebapp allowLinking=true / And my webapp is like this: /mywebapps/img/par_imgs Where par_imgs is a symLink to /usr/graphics/par_imgs/ I store imgaes in this directory, but none are displayed in my browser. Does anybody knows how to solve this? Yes, this should work. (don't tell me it doesn't, I did trace this in the file access implementation class ;) ) You can also use DefaultContext allowLinking=true / as well. But the best is to not use linking. And, as a reminder, never use allowLinking on Windows. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Re: How to know when Tomcat has completed startup?
The struts frameworks provides a mechanism to allow components to be plugged in and loaded dynamically during startup of the struts application. Any java class can function as a plugin. The plugin init method is called during start up of the Struts application. link below may help you understanding it. http://jakarta.apache.org/struts/userGuide/building_controller.html#plugin_classes ___ NATEXIS ASSET MANAGEMENT Meissa SAKHO 01 58 19 45 71. . . . . . . . . . . . (84571) [EMAIL PROTECTED] James Neville [EMAIL PROTECTED] 16/02/2004 16:44 Veuillez répondre à Tomcat Users List Pour : Tomcat Users List [EMAIL PROTECTED] cc : Objet : Re: How to know when Tomcat has completed startup? Cancel that - this is called *before* any of the servlets are initialised :( Any better ideas? James Neville wrote: contextInitialized is what I needed :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Re: Promlems with TransformSupport-tag in 5.0.18
The problem solved by updating our xalan.jar and xerces.jar to the latest version. -Jouko Jouko Johansson wrote: Hi, We are testing a tomcat 5.0.18 and everything works well but... javax.servlet.jsp.JspException: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: java.lang.IllegalStateException: can't declare any more prefixes in this context at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(Unknown Source) at org.apache.taglibs.standard.tag.el.xml.TransformTag.doStartTag(Unknown Source) This xml transformation worked with the tomcat 4.1.x and tomcat 4.0.x without any problems. The tomcat 5.0.18 is configured as it is (from the package) only with the root-context re-definition. Perhaps somebody can help me, Yours, Jouko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring a Data Resource in web.xml
At 10:16 AM 2/16/2004 +, you wrote: I not think you can put the JNDI/Resource stuff in the deployment descriptor, though I stand to be corrected (!) Well, get ready to start standing resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref That goes in your web.xml. Of course, you are right about the rest. You need to provide the configuration for the jdbc/TestDB Datasource http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Jake AFAIK the JNDI/Resource stuff is placed within an application's 'Context' element. With Tomcat 5 you can have separate context fragments - individual XML documents - for each application. Context fragments are cool because you can update them without having to touch the server's configuration file (server.xml). Context fragments reside in $CATALINA_HOME/conf/Catalina/host directory where host is the name of the relevant host specified in server.xml. The default host setting is 'localhost'. I hope that helps! Harry Mantheakis London, UK The reference book I have shows how to configure a data resource (JDBC) in the server.xml. Does anyone have a reference on how to do this in the web.xml? I'd like to be able to unpack a war and have everything run, without the need to edit the server.xml. Thanks for your help. Mike __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat very very slow when doing heavy XML processing
JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M -Xmn is the size of the younger generation heap. Before having -Xmn my CPU was running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are both aroun 11 %. -Tom Jacob Kjome [EMAIL PROTECTED] wrote: The JAVA_OPTS settings below are doing nothing whatsoever. Tom, you need to remember that these are case sensitive. You must add m for Megabytes and k for Kilobytes, not M or K. You didn't even provide a value for -Xmx. And why are you attempting to set -Xss to 100 Megabytes? The default is 512k. I've never bothered setting that before, but I have to think that 100m is just a bad idea. And I don't even think that -Xmn is an option. I've never seen it in the docs. Based on this, I don't think you really have a good understanding of how to tweak JVM performance. I suggest reading the docs before posting to the list... http://java.sun.com/docs/hotspot/VMOptions.html Jake At 09:24 AM 2/15/2004 +0100, you wrote: Try disabling name resolution (see previous posts, I can't remember how this is done), just in case. How does your CPU perform? Is it idle all time, or completely busy? Antonio Fiol tom ly wrote: I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Re: JAAS and TOMCAT 5
Well done. And if you want to debug it, go into your catalina.sh or .bat file and echo the whole execute string that the script uses to launch java. You'll see whether it's the JAVA_OPTS or not. I use the full path and not the envvar. On 02/16/2004 04:21 PM Miller, Steve wrote: Success!!! I went back and changed my JAVA_OPTS setting to use single quotesand it still failed. However, in my login.jsp page, I added the following line at the top: System.setProperty(java.security.auth.login.config, C:/TOMACT/conf/jaas.conf); Presto...worked beautifully. I even got the message out in the tomcat log that my login module was successful. I'm still very intrigued as to why nothing else I did worked yet setting it implicitely in my code worked. But, I'll worry about that laterI'm just glad it works now!! Thanks for all the help. :-) Steve Miller -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, February 14, 2004 8:38 AM To: Tomcat Users List Subject: Re: JAAS and TOMCAT 5 On 02/13/2004 09:34 PM Shapira, Yoav wrote: JAVA_OPTS=- Djava.security.auth.login.config==$CATALINA_HOME/conf/jaas.conf You probably want JAVA_OPTS='-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas. conf' (one line, single equals signs, quotes containing the whole JAVA_OPTS value. I hardcode the whole path. And I set JAVA_OPTIONS to the same thing as well. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TOMCAT 5 and SOAP
Hello, I'm trying to run a Apache server with SOAP there is no problem when I use the 3.2.4 version of Apache Tomcat, but when I use the 5.0.18 and when I make the test with http://localhost:8080/soap/servlet/rpcrouter I have an error. Is it because I didn't found the tomcat.bat file in the version 5 ? because in this file I have to make some changes to run correctly SOAP. Thanks for your help Muller David [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Add context from apache in Tomcat !!!
Hi everybody? Someone can help me? I've got two instances of tomcat running in two diferents machines. Also Ihave got apache server mapped with the two Tomcats using JK1.2 as: VirtualHost 192.168.10.120 JKMount /oasis-tl/* cms # first instance of Tomcat JKMount /tl-intranet/* intranet# second instance of Tomcat /VirtualHost Now in one application located in /tl-intranet/ (2 instance of tomcat) I would like to charge content from the other instance of tomcat and I don't know how to do it. I already tried using JSP Includes and Tomcat SSI. JSP Includes can only charge content from the same context. Tomcat SSI can charge content from same application of from same Tomcat, but not from another place. Is it possible to charge content with any method using absolut path as http://www./ ?? Thanks Ferran Orsola
Re: Tomcat very very slow when doing heavy XML processing
It shouldn't do anything because of case sensitivity. As I said before, it isn't 100M, it is 100m. And I still think that Xss value has got to be a bit off, but if it works for you, who am I to say you shouldn't use it. Jake At 09:05 AM 2/16/2004 -0800, you wrote: JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M -Xmn is the size of the younger generation heap. Before having -Xmn my CPU was running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are both aroun 11 %. -Tom Jacob Kjome [EMAIL PROTECTED] wrote: The JAVA_OPTS settings below are doing nothing whatsoever. Tom, you need to remember that these are case sensitive. You must add m for Megabytes and k for Kilobytes, not M or K. You didn't even provide a value for -Xmx. And why are you attempting to set -Xss to 100 Megabytes? The default is 512k. I've never bothered setting that before, but I have to think that 100m is just a bad idea. And I don't even think that -Xmn is an option. I've never seen it in the docs. Based on this, I don't think you really have a good understanding of how to tweak JVM performance. I suggest reading the docs before posting to the list... http://java.sun.com/docs/hotspot/VMOptions.html Jake At 09:24 AM 2/15/2004 +0100, you wrote: Try disabling name resolution (see previous posts, I can't remember how this is done), just in case. How does your CPU perform? Is it idle all time, or completely busy? Antonio Fiol tom ly wrote: I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 and IIS 5
Hello, I know this question must have been asked before. All I want is the location of the documentation about hooking up Tomcat 5.0 with IIS 5. Note that when you click on the jk documentation link on the following page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html You are redirected to the download page of Jakarta. So where is the documentation? Thanks in advance, Julien Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 and IIS 5
forget that documentation it wont help you ... try out this which is for IIS 6 but I just ignored the IIS 6 specific parts! http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html Cheers, ADC -Original Message- From: Julien Martin [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 17:20 To: Tomcat Users List Subject: Tomcat 5 and IIS 5 Hello, I know this question must have been asked before. All I want is the location of the documentation about hooking up Tomcat 5.0 with IIS 5. Note that when you click on the jk documentation link on the following page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html You are redirected to the download page of Jakarta. So where is the documentation? Thanks in advance, Julien Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSI and isVirtualWebappRelative in Tomcat 5.0.18
Hi, I have been trying to use SSI in Tomcat. It seems that work perfectly but only using relative path. If I change isVirtualWebappRelative = 0 in order to use absolute path from root context, SSI don't work. When I use absolute path I only could include content from the same folder. My case is {TOMCAT_WEBAPPS}/folder1/ index.shtml test.shtml {TOMCAT_WEBAPPS}/folder2 index.shtml test.shtml Using relative path I can insert content in folder1/index.shtml with: !--#include virtual=test.shtml -- Using absolute path I can insert content in folder1/index.shtml with: !--#include virtual=/folder1/test.shtml -- In theory, using absolute path I should be able to charge content in /folder1.index.shtml from other context like that: !--#include virtual=/folder2/test.shtml -- But this does not works. Anybody knows why? Any suggestions? Ferran Orsola
request.getParameter Error when % contained in parameter value
I am using Tomcat 4.1.29 on Windows 2000 Server with Java SDK 1.4.2. On the user query forms in my application % is a valid wildcard for all as it is in the actual database query. I don't want to use blank for all because I don't want users to accidentally search for all records; i.e. they have to actually enter % to search for all records in a value. Blank parameters are ignored. Passing % as a parameter via GET or POST causes the error http://website/findnaics.jsp?code=4% I am using POST methods for the forms as in... form method=POST name=findform action=findnaics.jsp The request.getParameter line is actually generating the error if the parameter contains a %. String code = request.getParameter(code); I've seen this error when searching in regards to forwarding pages (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986) but it was considered invalid because forward expects an encoded url. However, I am simply passing a parameter and submitting a form. Doing something like 'action = %= response.encodeURL(findnaics.jsp) %' doesn't do anything for me. Using quotes/backslash, etc. doesn't make any difference. These query parameters can be passed by both GET and POST so encoding the URL isn't an option even if it did work. When % is passed as a parameter I get the following error for the getParameter statement. java.io.CharConversionException: EOF at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:177) at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:144) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java :514) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java :541) at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters. java:318) at org.apache.coyote.tomcat4.CoyoteRequest.parseRequestParameters(CoyoteReq uest.java:1927) at org.apache.coyote.tomcat4.CoyoteRequest.getParameter(CoyoteRequest.java: 905) at org.apache.coyote.tomcat4.CoyoteRequestFacade.getParameter(CoyoteRequest Facade.java:174) at org.apache.jsp.findnaics_jsp._jspService(findnaics_jsp.java:55) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:553) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
RE: Tomcat 5 and IIS 5
Actually, I believe the current recommended connector for IIS is JK not JK2. At least that is the case according to the connector FAQ found here: http://jakarta.apache.org/tomcat/faq/connectors.html#vs Beyond that, there are many resources across the web, in the archives of the list, and on the Jakarta site itself (though some of the documentation can be a little spotty and outdated). The Jakarta Connector Documentation is found at: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html Good luck Andrew -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:29 PM To: Tomcat Users List Subject: RE: Tomcat 5 and IIS 5 forget that documentation it wont help you ... try out this which is for IIS 6 but I just ignored the IIS 6 specific parts! http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html Cheers, ADC -Original Message- From: Julien Martin [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 17:20 To: Tomcat Users List Subject: Tomcat 5 and IIS 5 Hello, I know this question must have been asked before. All I want is the location of the documentation about hooking up Tomcat 5.0 with IIS 5. Note that when you click on the jk documentation link on the following page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html You are redirected to the download page of Jakarta. So where is the documentation? Thanks in advance, Julien Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request.getParameter Error when % contained in parameter value
Why don't you use: http://website/findnaics.jsp?code=%25 -Tim Bill Faulk wrote: I am using Tomcat 4.1.29 on Windows 2000 Server with Java SDK 1.4.2. On the user query forms in my application % is a valid wildcard for all as it is in the actual database query. I don't want to use blank for all because I don't want users to accidentally search for all records; i.e. they have to actually enter % to search for all records in a value. Blank parameters are ignored. Passing % as a parameter via GET or POST causes the error http://website/findnaics.jsp?code=4% I am using POST methods for the forms as in... form method=POST name=findform action=findnaics.jsp The request.getParameter line is actually generating the error if the parameter contains a %. String code = request.getParameter(code); I've seen this error when searching in regards to forwarding pages (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986) but it was considered invalid because forward expects an encoded url. However, I am simply passing a parameter and submitting a form. Doing something like 'action = %= response.encodeURL(findnaics.jsp) %' doesn't do anything for me. Using quotes/backslash, etc. doesn't make any difference. These query parameters can be passed by both GET and POST so encoding the URL isn't an option even if it did work. When % is passed as a parameter I get the following error for the getParameter statement. java.io.CharConversionException: EOF at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:177) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: request.getParameter Error when % contained in parameter value
The same error occurs for %25. If I put a % anywhere in the parameter I get a crash. 4% would pass a parameter to query everything starting with 4 in my example. --- Bill Faulk [EMAIL PROTECTED] 801-302-8930 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 11:12 AM To: Tomcat Users List Subject: Re: request.getParameter Error when % contained in parameter value Why don't you use: http://website/findnaics.jsp?code=%25 -Tim Bill Faulk wrote: I am using Tomcat 4.1.29 on Windows 2000 Server with Java SDK 1.4.2. On the user query forms in my application % is a valid wildcard for all as it is in the actual database query. I don't want to use blank for all because I don't want users to accidentally search for all records; i.e. they have to actually enter % to search for all records in a value. Blank parameters are ignored. Passing % as a parameter via GET or POST causes the error http://website/findnaics.jsp?code=4% I am using POST methods for the forms as in... form method=POST name=findform action=findnaics.jsp The request.getParameter line is actually generating the error if the parameter contains a %. String code = request.getParameter(code); I've seen this error when searching in regards to forwarding pages (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986) but it was considered invalid because forward expects an encoded url. However, I am simply passing a parameter and submitting a form. Doing something like 'action = %= response.encodeURL(findnaics.jsp) %' doesn't do anything for me. Using quotes/backslash, etc. doesn't make any difference. These query parameters can be passed by both GET and POST so encoding the URL isn't an option even if it did work. When % is passed as a parameter I get the following error for the getParameter statement. java.io.CharConversionException: EOF at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:177) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: request.getParameter Error when % contained in parameter value
(Correction: not a crash - an error) --- Bill Faulk [EMAIL PROTECTED] 801-302-8930 -Original Message- From: Bill Faulk Sent: Monday, February 16, 2004 11:16 AM To: Tomcat Users List Subject: RE: request.getParameter Error when % contained in parameter value The same error occurs for %25. If I put a % anywhere in the parameter I get a crash. 4% would pass a parameter to query everything starting with 4 in my example. --- Bill Faulk [EMAIL PROTECTED] 801-302-8930 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to know when Tomcat has completed startup?
On Mon, Feb 16, 2004 at 03:44:53PM +, James Neville wrote: Cancel that - this is called *before* any of the servlets are initialised :( Any better ideas? James, do you need the servlets to be already initialized??? Because Tomcat can be completly set up, and still none of the servlets being initialied. A servlet initializes the first time it is requested. Therefore, if not invoked, it can pass many hours before it gets initialized. A posible solution could be to add a load-on-startup entry in your web.xml so that the servlet(s) get automatically initialized... Another thing to consider is that the connector between Tomcat and Apache is also set up. Because Tomcat and Apache may be completly set up, but the connector takes a little longer (at lest in my case) therefore you may get a HTTP Error. I hope this helps, let me know how you solved it Jose James Neville wrote: contextInitialized is what I needed :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAAS and TOMCAT 5
I forgot to add that I did change everything to the full path and is still failed. I know one day I'll stumble across the needle in the haystack as to why it is giving me fits. I will definitely try your debug suggestion. That option for some reason never crossed my mind. But at least now I can continue on with the project. :-) I should also point out to anybody that wants to implement JAAS into Tomcat, one problem I found submitting the login to j_security_check is that it would screw up the url for the login.jsp page by putting it under the path of the servlet directory. I had setup Tomcat security to protect the servlet acceess. For instance, my login.jsp was under the main context directory as http://localhost/context/login.jsp; but the url in the browser got set to http://localhost/context/servlet/login.jsp; This hosed me until I figured out a band aid work around by putting the following code in my login.jsp page: if(request.getRequestURL().toString().endsWith(/servlet/login.jsp)) response.sendRedirect(response.encodeRedirectURL(../login.jsp)); It's not a solution though, but I could never find any info out there on how to fix this problem or more importantly what is the cause. But, if anybody out there needs any help with configuring JAAS into Tomcat 5, let me know. I've integrated LDAP authentication into the process as well...works beautifully...finally. :-) I'll be happy to share my code in order to prevent others from suffering from massive manual hair folicle extraction. :-) Now to get this thing to work on my Linux box. :-) Steve Miller -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 11:04 AM To: Tomcat Users List Subject: Re: JAAS and TOMCAT 5 Well done. And if you want to debug it, go into your catalina.sh or .bat file and echo the whole execute string that the script uses to launch java. You'll see whether it's the JAVA_OPTS or not. I use the full path and not the envvar. On 02/16/2004 04:21 PM Miller, Steve wrote: Success!!! I went back and changed my JAVA_OPTS setting to use single quotesand it still failed. However, in my login.jsp page, I added the following line at the top: System.setProperty(java.security.auth.login.config, C:/TOMACT/conf/jaas.conf); Presto...worked beautifully. I even got the message out in the tomcat log that my login module was successful. I'm still very intrigued as to why nothing else I did worked yet setting it implicitely in my code worked. But, I'll worry about that laterI'm just glad it works now!! Thanks for all the help. :-) Steve Miller - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request.getParameter Error when % contained in parameter value
There looks to be a patch against this region of code in 4.1.30. (As compared to 4.1.29) Does the same thing happen there? -Tim Bill Faulk wrote: The same error occurs for %25. If I put a % anywhere in the parameter I get a crash. 4% would pass a parameter to query everything starting with 4 in my example. --- Bill Faulk [EMAIL PROTECTED] 801-302-8930 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 11:12 AM To: Tomcat Users List Subject: Re: request.getParameter Error when % contained in parameter value Why don't you use: http://website/findnaics.jsp?code=%25 -Tim Bill Faulk wrote: I am using Tomcat 4.1.29 on Windows 2000 Server with Java SDK 1.4.2. On the user query forms in my application % is a valid wildcard for all as it is in the actual database query. I don't want to use blank for all because I don't want users to accidentally search for all records; i.e. they have to actually enter % to search for all records in a value. Blank parameters are ignored. Passing % as a parameter via GET or POST causes the error http://website/findnaics.jsp?code=4% I am using POST methods for the forms as in... form method=POST name=findform action=findnaics.jsp The request.getParameter line is actually generating the error if the parameter contains a %. String code = request.getParameter(code); I've seen this error when searching in regards to forwarding pages (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986) but it was considered invalid because forward expects an encoded url. However, I am simply passing a parameter and submitting a form. Doing something like 'action = %= response.encodeURL(findnaics.jsp) %' doesn't do anything for me. Using quotes/backslash, etc. doesn't make any difference. These query parameters can be passed by both GET and POST so encoding the URL isn't an option even if it did work. When % is passed as a parameter I get the following error for the getParameter statement. java.io.CharConversionException: EOF at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:177) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: request.getParameter Error when % contained in parameter value
I'm installing 4.1.30 (alpha) on a server now to see. --- Bill Faulk [EMAIL PROTECTED] 801-302-8930 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 11:39 AM To: Tomcat Users List Subject: Re: request.getParameter Error when % contained in parameter value There looks to be a patch against this region of code in 4.1.30. (As compared to 4.1.29) Does the same thing happen there? -Tim Bill Faulk wrote: The same error occurs for %25. If I put a % anywhere in the parameter I get a crash. 4% would pass a parameter to query everything starting with 4 in my example. --- Bill Faulk [EMAIL PROTECTED] 801-302-8930 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 11:12 AM To: Tomcat Users List Subject: Re: request.getParameter Error when % contained in parameter value Why don't you use: http://website/findnaics.jsp?code=%25 -Tim Bill Faulk wrote: I am using Tomcat 4.1.29 on Windows 2000 Server with Java SDK 1.4.2. On the user query forms in my application % is a valid wildcard for all as it is in the actual database query. I don't want to use blank for all because I don't want users to accidentally search for all records; i.e. they have to actually enter % to search for all records in a value. Blank parameters are ignored. Passing % as a parameter via GET or POST causes the error http://website/findnaics.jsp?code=4% I am using POST methods for the forms as in... form method=POST name=findform action=findnaics.jsp The request.getParameter line is actually generating the error if the parameter contains a %. String code = request.getParameter(code); I've seen this error when searching in regards to forwarding pages (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986) but it was considered invalid because forward expects an encoded url. However, I am simply passing a parameter and submitting a form. Doing something like 'action = %= response.encodeURL(findnaics.jsp) %' doesn't do anything for me. Using quotes/backslash, etc. doesn't make any difference. These query parameters can be passed by both GET and POST so encoding the URL isn't an option even if it did work. When % is passed as a parameter I get the following error for the getParameter statement. java.io.CharConversionException: EOF at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:177) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 / mod_proxy
Hi - I am having a problem using mod_proxy w/ Apache 2.0.X and Tomcat 5.0.16. I have been using mod_proxy for several years now to connect Apache (w/ SSL) to Tomcat. When recently upgrading to TC5, I noticed a problem. My httpd config file looks something like this : ServerName www.foobar.com ProxyRequests ON ProxyPass /foo http://ip.of.tomcat:port/foo ProxyPassReverse /foo http://ip.of.tomcat:port/foo ProxyPass /bar http://ip.of.tomcat:port/bar ProxyPassReverse /bar http://ip.of.tomcat:port/bar Tomcat 5 config: Connector port=8081 maxThreads etc etc proxyName=www.foobar.com proxyPort=443 Context path=/foo /Context Context path=/bar /Context (to get something like https://www.foobar.com/foo) As soon as I use more than 1 set of ProxyPass/ProxyPassReverse statements, my sessions get all screwed up. After I add data to the session a first time, the next time I get the session it's completely empty. This all happens after a form based login... If I use one set of ProxyPass/ProxyPassReverse statements, things seem to work ok. This *only* happens if I use Tomcat 5. Our configs havn't changed otherwise...The app works fine if I go through a regular, unproxied connector (without using Apache). All data being put into the session is serializable etc. I've setup mod_jk to work around this, however mod_proxy is more desirable in our current configuration. Anyone have any ideas? Thanks, Dave
[OT] HTTP and tomcat filter question
This question is a bit OT, since it deals more with HTTP than tomcat (I think), but maybe somebody can help. I'm (still) working with setting up filters in Tomcat, and am seeing some erratic behavior, which leads me to ask this question : Assuming I have a URL of http://www.mysite.com/myservlet.jsp?myvar=1yourvar=2 When the browser sends this request to tomcat (which is also acting as a webserver - no apache is running), does it put everything after the ? into the QUERY_STRING HTTP variable, or does it include it in the URL request? I have a filter in place that will replace /variable/ with variable= to allow for proper processing of variables. Here is what I observe : If I have a URL of : mysite.com/myservlet.jsp/myvar/1/yourvar/2 then it will properly translate this into : mysite.com/myservlet.jsp?myvar=1yourvar=2 and everything works. However, we have a new requirement that we want to keep ?myvar=1 as part of the original URL, so the incoming request would look like this : mysite.com/myservlet.jsp?myvar=1/yourvar/2 and, naturally, we want it translated into mysite.com/myservlet.jsp?myvar=1yourvar=2 but this does NOT happen. Instead, it seems like the filter is doing nothing. The only explanation I can think of is that, now that the ? is in the original request URL, the browser is taking everthing after it, stripping it out of the request URL, and putting it into the QUERY_STRING variable - so that the filter doesn't see it. The filter would only see mysite.com/myservlet.jsp and would not perform any translation. Does this make any sense? I've been reading up on HTTP all over the net, but can't find any sites that really look at how the URL request is broken down when variables are present. Any help is greatly appreciated. - Duane ps. For those of you who inquired about my success with the tomcat filter, I will post an update once I get things working ... and hopefully it will help some of you as well. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat very very slow when doing heavy XML processing
I really don't know what -Xss is for, I'll probably lower it now, at least to 1024k, i'm just experimenting. -Xmn though does make a big difference in my case. I can't get my load faster than 6 req/sec with CPU at 14% and memory usage at 11% using the top command in Linux Redhat. Jacob Kjome [EMAIL PROTECTED] wrote: It shouldn't do anything because of case sensitivity. As I said before, it isn't 100M, it is 100m. And I still think that Xss value has got to be a bit off, but if it works for you, who am I to say you shouldn't use it. Jake At 09:05 AM 2/16/2004 -0800, you wrote: JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M -Xmn is the size of the younger generation heap. Before having -Xmn my CPU was running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are both aroun 11 %. -Tom Jacob Kjome wrote: The JAVA_OPTS settings below are doing nothing whatsoever. Tom, you need to remember that these are case sensitive. You must add m for Megabytes and k for Kilobytes, not M or K. You didn't even provide a value for -Xmx. And why are you attempting to set -Xss to 100 Megabytes? The default is 512k. I've never bothered setting that before, but I have to think that 100m is just a bad idea. And I don't even think that -Xmn is an option. I've never seen it in the docs. Based on this, I don't think you really have a good understanding of how to tweak JVM performance. I suggest reading the docs before posting to the list... http://java.sun.com/docs/hotspot/VMOptions.html Jake At 09:24 AM 2/15/2004 +0100, you wrote: Try disabling name resolution (see previous posts, I can't remember how this is done), just in case. How does your CPU perform? Is it idle all time, or completely busy? Antonio Fiol tom ly wrote: I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Re: [OT] HTTP and tomcat filter question
Duane, This is a pretty crazy set of requirements you're working with here -- I'll trust there's a good reason for it and just stick to the question. ;) At 11:34 AM 2/16/2004, you wrote: Assuming I have a URL of http://www.mysite.com/myservlet.jsp?myvar=1yourvar=2 Your URL is: http://www.mysite.com/myservlet.jsp; Your Query String is: myvar=1yourvar=2 When the browser sends this request to tomcat (which is also acting as a webserver - no apache is running), does it put everything after the ? into the QUERY_STRING HTTP variable, or does it include it in the URL request? It parses the GET request into the two components listed above. I have a filter in place that will replace /variable/ with variable= to allow for proper processing of variables. Here is what I observe : If I have a URL of : mysite.com/myservlet.jsp/myvar/1/yourvar/2 then it will properly translate this into : mysite.com/myservlet.jsp?myvar=1yourvar=2 and everything works. Looks good. However, we have a new requirement that we want to keep ?myvar=1 as part of the original URL, so the incoming request would look like this : mysite.com/myservlet.jsp?myvar=1/yourvar/2 Your URL is: http://www.mysite.com/myservlet.jsp; Your Query String is: myvar=1/yourvar/2 AND request.getParameter(myvar) == 1/yourvar/2 and, naturally, we want it translated into mysite.com/myservlet.jsp?myvar=1yourvar=2 but this does NOT happen. Instead, it seems like the filter is doing nothing. The only explanation I can think of is that, now that the ? is in the original request URL, the browser is taking everthing after it, stripping it out of the request URL, and putting it into the QUERY_STRING variable - so that the filter doesn't see it. The filter would only see mysite.com/myservlet.jsp and would not perform any translation. This is exactly what's happening. If you want to inspect the entire GET request, you need to reconstruct the entire GET request by doing something like this (pseudo code): StringBuffer sb = request.getRequestURL(); sb.append(/); parse request.getQueryString() into name=value pairs and name/value pairs for each pair if pair is name=value, convert each name=value pair into a name/value pair sb.append(name/value pair) Or whatever, depending on what you need. Hope that clears up any confusion. Again, I hope -- for your own sake -- you have a *really* good reason for complicating this relatively simple process. ;) justin __ Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ?dbauthentification msql+tomcat
well we find it it was localhost instead of [EMAIL PROTECTED] the url for my sql looks like this jdbc:mysql://localhost:mysqlport/database for those hoo would need it.!!! [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: FRANCOIS Dufour [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ?dbauthentification msql+tomcat Date: Mon, 16 Feb 2004 16:05:39 + hi to all soory to disturbe your work im stuck there sombody could tell mee whats wrong and how could i fixe this ? tanks for your precious time friendly frank :395) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:172) at Authentication.Core.AuthFactory.getAuthenticationDB(Unknown Source) at Authentication.Service.UserLoginDB.doLogin(Unknown Source) at org.apache.jsp.login$jsp._jspService(login$jsp.java:143) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 81) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va:1125) at java.lang.Thread.run(Thread.java:479) Unable to connect to any hosts due to exception: java.net.UnknownHostException: [EMAIL PROTECTED] java.sql.SQLException: Unable to connect to any hosts due to exception: java.net .UnknownHostException: [EMAIL PROTECTED] at com.mysql.jdbc.Connection.createNewIO(Connection.java:1690) at com.mysql.jdbc.Connection.init(Connection.java:427) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :395) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:172) at Authentication.Core.AuthFactory.getAuthenticationDB(Unknown Source) at Authentication.Service.UserLoginDB.doLogin(Unknown Source) at org.apache.jsp.login$jsp._jspService(login$jsp.java:143) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:201) at
Re: Tomcat very very slow when doing heavy XML processing
When I load test with JMeter using just 1 thread, my CPU jumps up to 55% while my memory usage stays at 11.5%, more shocking is that overall performance time is even worse?? Each request is taking 8-9 seconds for a response. Whereas with 10 threads, the startup times were bad, but after the load gets rolling, time/request goes up and CPU vs. memory usage is more even.. I'm sure it has something to do with connection speed rather than code processing that is making it so slow. Any advice anyone? My goal is to have performance at 30 requests/sec. tom ly [EMAIL PROTECTED] wrote:I really don't know what -Xss is for, I'll probably lower it now, at least to 1024k, i'm just experimenting. -Xmn though does make a big difference in my case. I can't get my load faster than 6 req/sec with CPU at 14% and memory usage at 11% using the top command in Linux Redhat. Jacob Kjome wrote: It shouldn't do anything because of case sensitivity. As I said before, it isn't 100M, it is 100m. And I still think that Xss value has got to be a bit off, but if it works for you, who am I to say you shouldn't use it. Jake At 09:05 AM 2/16/2004 -0800, you wrote: JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M -Xmn is the size of the younger generation heap. Before having -Xmn my CPU was running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are both aroun 11 %. -Tom Jacob Kjome wrote: The JAVA_OPTS settings below are doing nothing whatsoever. Tom, you need to remember that these are case sensitive. You must add m for Megabytes and k for Kilobytes, not M or K. You didn't even provide a value for -Xmx. And why are you attempting to set -Xss to 100 Megabytes? The default is 512k. I've never bothered setting that before, but I have to think that 100m is just a bad idea. And I don't even think that -Xmn is an option. I've never seen it in the docs. Based on this, I don't think you really have a good understanding of how to tweak JVM performance. I suggest reading the docs before posting to the list... http://java.sun.com/docs/hotspot/VMOptions.html Jake At 09:24 AM 2/15/2004 +0100, you wrote: Try disabling name resolution (see previous posts, I can't remember how this is done), just in case. How does your CPU perform? Is it idle all time, or completely busy? Antonio Fiol tom ly wrote: I've got Tomcat set up as the middle component passing heavy XML data between and client and a backend and it is very very slow. I've set a filter up to log the time it takes to process a request and loadtest with JMeter using 10 threads. Takes around 25,000ms to get a response from looking at JMeter. But when I look at the catalina logs, the times are not too bad, 700-800ms/request to receive and process a request. Seems like most of the problem is with connection speed, not processing speed. I've played around with my JAVA_OPTS and have got it to improve a bit, but I'm always getting the really high response times. Here are my JAVA_OPTS = -server -Xincgc -Xmx1024M -Xmx1024 -Xmn100M -Xss100M I'm using Sun SDK 1.4.1. What else can I do to improve the performance? What about using keepalive? - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
deploying and undeploying web apps at run time
hi, I want to deploy and undeploy web applications at run time. Aim is that once the tomcat is up we should be able to deploy and undeploy web apps programatically. Is there a way this can be achieved or if i can look up some docs/respurce somewhere. thanks abhijat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring a Data Resource in web.xml
Well, get ready to start standing I knew about the bit that goes in the deployment descriptor (!) It was 'the rest' I was referring to :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Servlets work?
Hello how the webserver handles more than one request at the same time. The answer is: by invoking the servlet's service method in a new thread for each new request to that servlet. Think of any Java object, instantiated once - a public method in that object can be called any number of times, concurrently. Each invocation will be processed in a new thread. Synchronisation is an issue only when the method in question uses references to other objects. If the method only works with local variables, there is no synchronisation problem! So, in a nutshell: with servlets, make sure the service method only uses local variables, including, of course, those two most useful parameters, the request and the response objects. Regards Harry Mantheakis London, UK Hi all, may be not the right place to ask this question. Hope somebody is kind enough to clarify this doubt of mine. i understand, in a servlet, if i need any code to be thread safe, then i shud put that code inside a synhronized block or declared the entire method as synchronized. if my understanding is right, only instance of our serlvet class is being created. in that case how the webserver handles more than one request at the same time. i mean, is some queuing structure being followed, (i am tempted to believe it is not multithreaded)? Could anybody clarify this doubt of mine or atleast point out some ref. material for this. Thanks R.Saravanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and VM settings
Hi, Not sure what you're asking. Hard numbers I don't have. I've pretty much run all my server based applications with -server since they introduced it, but I think Sun's documentation and common knowledge bears it out. There's also some obscure documentation that explains what the -server options sets defaults to ( like method compile threshold, stack size, heap size, etc.. ) which also shows them to be better for applications that do the same thing day in and day out. I will try to locate this. I do hope to have numbers soon with the effect of the new Parallel and Concurrent garbage collectors in effect. Let me know if I can be of more assistance, -a Shapira, Yoav wrote: Howdy, In general, -server will make a huge difference for long running applications Can you back that up with any specific facts? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to store sessions in a database with jboss and tomcat
Hi! I'm using Jboss 3.2.1 with Tomcat 4.1.24, and Tomcat is running as a Jboss MBean. I want to control the number of sessions each application can have. To do this, I'm trying to store sessions in a postgresql database, and use the Tomcat PersistentManager Implementation. The tomcat configuration is under the Jboss deploy directory, at the following path: /opt/jboss/server/default/deploy/jbossweb-tomcat.sar/ In this directory I have all the jar files needed by tomcat, a web.xml file and a META-INF directory, with a manifest file and a jboss-service.xml file (shown below) I guess that something is wrong with jboss-service.xml file, because almost everything works fine (the sessions are not being stored in my database) Can anyone help me? thanks Hugo Kotsubo jboss-service.xml contents: ?xml version=1.0 encoding=UTF-8? !-- The service configuration for the embedded Tomcat4.1.x web container-- server mbean code=org.jboss.web.catalina.EmbeddedCatalinaService41 name=jboss.web:service=WebServer attribute name=Java2ClassLoadingCompliancetrue/attribute !-- *** ** CLUSTERING * *** In order to activate HTTP Session clustering for Tomcat make sure you run JBoss's all configuration i.e. run -c all (the default configuration doesn't contain clustering) Furthermore, you may change SnapshotMode and SnapshotInterval attributes below to indicate when to synchronize changes with the other node(s). If you use Apache+mod_jk(2) you will most probably use the AJP1.3 connector below. Thus, if you so wish, you may comment (i.e. deactivate) the HTTP connector as it won't be used anymore. *** *** *** -- !-- If you are using clustering, the following two attributes define when the sessions are replicated to the other nodes. The default value, instant, synchronously replicates changes to the other nodes. In this case, the SnapshotInterval attribute is not used. The interval mode, in association with the SnapshotInterval attribute, indicates that Tomcat will only replicates modified sessions every SnapshotInterval miliseconds at most. -- attribute name=SnapshotModeinstant/attribute !-- you may switch to interval -- attribute name=SnapshotInterval2000/attribute attribute name=Config Server Service name = JBoss-Tomcat Engine name=MainEngine defaultHost=localhost Logger className = org.jboss.web.catalina.Log4jLogger verbosityLevel = debug category = org.jboss.web.localhost.Engine/ Host name=localhost !-- Access logger -- Valve className = org.apache.catalina.valves.AccessLogValve prefix = localhost_access suffix = .log pattern = common directory = ${jboss.server.home.dir}/log / !-- Default context parameters -- DefaultContext cookies = true crossContext = true override = true Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.JDBCStore driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://localhost:5432/hugo-bi?user=hugoamp;password=hugo sessionTable=tomcatsessions sessionIdCol=id sessionDataCol=data sessionValidCol=valid sessionAppCol=appname sessionMaxInactiveCol=maxinactive sessionLastAccessedCol=lastaccess checkInterval=60 debug=99 / /Manager /DefaultContext /Host /Engine !-- A HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=3 maxProcessors=10 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / !-- A AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ /Service /Server /attribute /mbean /server
Configuring Apache and Tomcat
Title: Message Good Afternoon... I am trying to configure Apache and Tomcat to run together. It looks like I have the configurations right as the Wrox Professional Tomcat book outlines because I get the pages they say you should get when doing the configuration. The problem is when I try to run a cgi script it looks like it is still being handled by Tomcat because it tries to download or open the file instead of running it. Does any have any suggestions on where I can fix this? Thanks Allen This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Whats the difference between Tomcat, Tomcat embedded and Tomcat Deplyer
Hi! There are three downloadable tomcat tarballs; Tomcat, Tomcat Embedded and Tomcat Deployer (ment) What is the difference between the versions? I have tried to figure it out by my self, but I cant find any particular information about the differences. I downloaded the files and there are some large differences between them. Please explain for me or point me to some documentation Regards Johan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing Servlets
I am trying to install my servlets in tomcat 5.0.1. on Windows 2000 I compile the files: javac -classpath servlet-2_3-fcs-classfiles.zip MyServlet.java **I download the file servlet-2_3-fcs_classfiles.zip from the sun site. And then copy to the default servlets examples directory. copy MyServlet.java C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples\WEB-INF\classes When I try to access the servlet I get the following error: HTTP Status 404 - /servlets-examples/servlet/MyServlet But I can access the example servlets. What can be wrong? Jose Humberto. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
frame issue
system seems to be in both 5.0.16 and 5.0.18 Should i be getting a two session's with the following code? There is a session created before this page and i have confirmed this with the little code snippet below. % System.out.println(session.getId()); System.out.println(test); % html head titleOrganization Set up/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head frameset rows=105,600* frameborder=No border=0 framespacing=0 cols=* frame name=topFrame scrolling=NO noResize src=/jsp/NavigationAdministratorTop.htm frameborder=NO frameset cols=200,625* frameborder=No border=0 framespacing=0 rows=* frame name=leftFrame noResize scrolling=no src=/jsp/NavigationAdministrator.jsp frame name=mainFrame scrolling=auto src=/jsp/NavigationAdministratorBody.htm /frameset /frameset noframesbody bgcolor=#Fcf6e5 Your Browser Doesn't support Frames /body/noframes /html The session up top is different then the session in NavigationAdministrator.jsp or am i missing something? thanks Daniel Schulken --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.581 / Virus Database: 368 - Release Date: 2/9/2004
Re: Configuring a Data Resource in web.xml
Have used this for MySQL DB - am NOT totally sure that it is completely correct This is what works for me - (see NOTES at end - if anyone can shed any light on Limiting Pool size) #1in your Server.xml GlobalNamingResources Resource name=MySQLDataSourceFactory type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource auth=Container/ ResourceParams name=MySQLDataSourceFactory parameter namefactory/name valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory/value /parameter parameter nameport/name value3306/value /parameter parameter nameuser/name valuedbUsername/value /parameter parameter namepassword/name valuedbUserPassword/value /parameter parameter nameserverName/name valuedbHostIP_Name/value /parameter parameter namedatabaseName/name valuedbName/value /parameter /ResourceParams . /GlobalNamingResources #2in your Context section (either in its own context fragment file or Context section of server.xml) Context className=org.apache.catalina.core.StandardContext backgroundProcessorDelay=-1 cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper configFile=..\Catalina\localhost\yourContextFragment.xml * NOT req'd if your Context is defined in server.xml cookies=true crossContext=false debug=9 displayName=Your webApp name to be displayed in webApp manager docBase=../yourWebApp.war * NOT req'd if deploying via Tomcat WebApp manager - see NOTEs below domain=Catalina engineName=Catalina j2EEApplication=none j2EEServer=none lazy=true managerChecksFrequency=6 path=/yourWebAppContextPath privileged=false reloadable=false startupTime=47 swallowOutput=false tldScanTime=875 useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper ResourceLink global=MySQLDataSourceFactory the JNDI name as defined in GlobalNamingResources|Resource name=jdbc/yourJNDIResourceDBName the JNDI name as used in your webApp code - see below type=javax.sql.DataSource/ /Context #3you can test this with the following code fragment System.out.println(Getting Context info); Context initCtx = new InitialContext(); System.out.println(Got Initial Context); Context envCtx = (Context)initCtx.lookup(java:comp/env); System.out.println(Got JWSDP Environment Context); try{ System.out.println(Getting MySQL DataSource); DataSource ds = (DataSource)envCtx.lookup(jdbc/yourJNDIResourceDBName); if(ds != null) { System.out.println(Got MySQL DataSource); Vector vConns = new Vector(); try{ for(int i = 0; i SOMEREASONABLYLARGENUMBER; i++) { vConns.add(ds.getConnection()); System.out.println(Got MySQL DB Connection ' + i + ' from Pool); } }catch(Exception eX){ eX.printStackTrace(); }finally{ //*Don't forget to release the DB Connections** Iterator iT = vConns.iterator(); while(iT.hasNext()) { Connection conn = (Connection)iT.next(); conn.close(); } } } else System.out.println(NULL MySQL DataSource); }catch(Exception eX){ eX.printStackTrace(); } NOTEs 1 you do NOT need a resource-ref entry in you web.xml - the ResourceLink / in your Context definition is an alternative mechanism provides the JNDI name translation from your webApp world to the GLOBAL name in the Container world 2Tomcat WebAdmin tool does NOT show this connection pool in Resource|Data Sources (so don't waste time looking for it) 3Apparently you can build the Context fragment into the WAR file (will check this next as it means you can have a self contained webApp that you can deploy easily via Tomcat Web Manager without Stopping/starting Tomcat all the time) 4Make sure the MySQL jar file (mysql-connector-java-3.0.10-stable-bin.jar) is in ...Tomact_Install_Dir\common\lib 5using the jdbc prefix to yourJNDIResourceDBName is just a CONVENTION - you don'y have to comply with it Hope this is of use Any comments/corrections please post a reply Stefan Mike Duffy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The reference book I have shows how to configure a data resource (JDBC) in the server.xml. Does anyone have a reference on how to do this in the web.xml? I'd like to be able to unpack a war and have everything run, without
Re: deploying and undeploying web apps at run time
Pretty sure it can be done I remember reading up on this in relation to ANT I think there is some integration with ANT examples in the Tomcat documentation - try http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html And http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant Hope this helps Abhijat Thakur [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi, I want to deploy and undeploy web applications at run time. Aim is that once the tomcat is up we should be able to deploy and undeploy web apps programatically. Is there a way this can be achieved or if i can look up some docs/respurce somewhere. thanks abhijat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI problem with SQLServer
Hi all, excuse me I'm going to ask about a topic there are thousands of questions already made. The fact, is that I've searched and tried everything, but I still cannot connect Tomcat with SQLServer using a Resource. I've copied exactly the example at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html I've got the DBTest class (from the example) also. My web.xml is: ?xml version=1.0 encoding=ISO-8859-1? web-app descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And my server.xml . Host... Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ parameter namefactory/name valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuewebsitebenchmark/value /parameter parameter namepassword/name valueredheader/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://localhost:1433/value /parameter /ResourceParams /Context /Host . But I´m still getting javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at this line: DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); //From de DBTest class Is anyone able to tell me what that means?? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance question JDBC vs Properties
Hi all, I've got this doubt. My applicacion uses some properties files to config some events or constants, or whatever, but it's job basically is to map the users click on a JSP, to a servlet and define what class should take this event. So, every request comming to a JSP, will be a search in this file. This is for writing only 1 Servlet. For instance, if an user clicks ShowClients something like this should be written at the file. Where this class is called to do the job. ShowClients=com.jkt.proyect.clients.ShowClients Or ShowProducts: ShowProducts=com.jkt.proyect.products.ShowProducts This file, should be as big as use cases in the system. Actually we've written 2000 lines. My problem, is that for reconfiguring this file, or adding lines to it, I've got to reload the application. As we are at deploying time, this happens quite often, so I've got to take users out of the system, and then, calling them to continue working (they are quiete few until next month). I'm thinking of sending to logic to a database, I mean configure this in a table. So if I've got 2000 records in this table, would it be much less performant that writing it in a file, as it is now working? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI problem with SQLServer
Hi all, excuse me I'm going to ask about a topic there are thousands of questions already made. The fact, is that I've searched and tried everything, but I still cannot connect Tomcat with SQLServer using a Resource. I've copied exactly the example at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html I've got the DBTest class (from the example) also. My web.xml is: ?xml version=1.0 encoding=ISO-8859-1? web-app descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And my server.xml . Host... Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ parameter namefactory/name valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuewebsitebenchmark/value /parameter parameter namepassword/name valueredheader/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://localhost:1433/value /parameter /ResourceParams /Context /Host . But I´m still getting javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at this line: DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); //From de DBTest class Is anyone able to tell me what that means?? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Point URL to a directory outside of the webapp's context.
Is it possible to map a URL to a directory outside of a webapps's context? Our app has one directory that our customers use to store and display their own static webpages. It would be useful to us to be able to keep that directory outside of the webapp's dir structure. Sort of a 'virtual directory' within a webapp. This would allow customers to update our app by simply blowing it away and re-deploying from the latest war file without having to move their files out first and then back in after deployment. We have customers running both *nix and windoze so we can't rely on symlinks for this. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI problem with SQLServer
You have: parameter nameurl/name valuejdbc:microsoft:sqlserver://localhost:1433/value /parameter The value needs some additional information. If you named your database as robinhood then you need the string to read: jdbc:microsoft:sqlserver://localhost:1433/robinhood?autoReconnect=true Nothing else jumped out at me on first look. I am assuming you did restart TC afterwards? I have to restart each time I redeploy my war. Haven't chased this one to see if it suppose to be that way or If I have something else wrong. Try adding this and let us know. Doug www.parsonstechnical.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment-- Clarification of Invoker
Unable to check all the mails. But, glad to hear you and Doug together solved your problem. Cheers Bao Jerry Ford wrote: Well, that was certainly fun :) I have made it work, and I think I sort of know how. Not *why* the fix works, just *how* to get my app functional once again. And you are correct, Doug, in aiming me at the invoker servlet as the culprit. The solution that worked for me is to remove the invoker servlet-mapping element from my web app and map each servlet individually. (Though beware---all servlets must be defined before any mapping elements are added to the web.xml file, or else the parser will throw an exception. Spent a good couple of hours or more fighting that little firefight on the sidelines.) Don't understand why the presence of the invoker should foul up the operation of the jsp, but when I removed it and got the servlet/servlet-mapping order straight, suddenly the webapp worked, including the jsp, and both using Tomcat by itself and going through Apache. Thanks for all who helped. Jerry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help with CLASSPATH problem
Andi Reinbrech [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I FINALLY figured this one out. Tomcat 5.0.18 as a service ignores -Djava.class.path. Rather, it takes the path from the -Imagepath parameter as the classpath (I did a debug logger.info(Classpath: + System.getProperty(java.class.path) and lo and behold it gave me the Imagepath as the actual classpath. I added %CATALINA_HOME%\bin to the Imageclasspath and all is working fine. This sounds like a bug? Or at least an undocumented feature. I believe that it is a documented feature. See http://jakarta.apache.org/commons/daemon/procrun.html. Cheers Andi -Original Message- From: Andi Reinbrech [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 14:58 PM To: Tomcat-User (E-mail) Subject: Please help with CLASSPATH problem Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use *either*. When I run Tomcat 5.0.18 from the command prompt, the app works 100%. It is supposed to pick up a file called emapi.cfg and licenses.txt from the CLASSPATH. emapi.cfg works int .\axis\WEB-INF\classes, but licenses.txt doesn't. However, leaving licenses.txt in the bin\ folder and starting Tomcat *from* that folder it works fine. Running Tomcat 5 as a service doesn't pick up licenses.txt although the working dir is set to be bin\. In the bin\ folder I also need a load of *.dtd files to validate XML responses. They only work when they're in the bin folder. Now to Tomcat 4.1: Everything works as a service, including picking up the licenses.txt, but now it refuses to resolve the *.dtds. I get a SAX Parser error that the URI can't be relative. This is a bogus error though, as I can remove all the *dtds and the error stays the same. Can someone PLEASE help me either fix EITHER one of these problems, or please refer me to an alternative server to use. org.apache.axis.transport.http.SimpleAxisServer works like a charm, but not as a service, and shouldn't be used as a production server. Thanks in advance, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PROBLEM STARTING TOMCAT----------------PLEASE HELP
Sorry for late reply. Its a standalone with network card installed. Also when I tried pinging localhost, it failed gave error 2 back. I also assigned IP numner, Subnet mask and gateway to it. Still it didnt work. Please help -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 10:11 AM To: Tomcat Users List Subject: RE: PROBLEM STARTING TOMCATPLEASE HELP i dont know if you are using a stand alone machine(which is not connected to any network) for ur development.. if yes then try to configure some loop back adapter in windows if u dont have any network card installed.. u can configure loop back adapter in LAN connection properties. Pavan Kumar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Filip Hanik \(lists\) [EMAIL PROTECTED] 02/11/2004 11:29 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: PROBLEM STARTING TOMCATPLEASE HELP you probably are missing or not running the network services. I am not sure which one this is, but go under Control Panel|Administrative Tools|Services Filip -Original Message- From: Sunit Bansal [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 8:20 PM To: Tomcat Users List Subject: PROBLEM STARTING TOMCATPLEASE HELP I have XP Professsional installed on my machine. I have jdk1.42 installed and tomcat4.1.27. When I try to start tomcat, I am getting following problem- Please help me solving this. I have spended hours solving this. I have tried changing port is config file, but didnt helped. Thanks in advance Bootstrap: Create Catalina server Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11 58) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:236) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Catalina.start: LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1182) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) Bootstrap: Service started - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release
RE: PROBLEM STARTING TOMCAT----------------PLEASE HELP
Sorry for late reply. Its a standalone with network card installed. I have no other services running on my machine. I also assigned IP numner, Subnet mask and gateway to it. Also when I tried pinging localhost/127.0.0.0/IP address, it failed gave error 2 back. Still it didnt work. Please help -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 10:10 AM To: Tomcat Users List Subject: Re: PROBLEM STARTING TOMCATPLEASE HELP Sunit, Do you have a firewall enabled? What other network based services are you running?(IIS, etc) Is this machine on a network?(Gotta ask) Can you ping yourself? ping localhost OR ping 127.0.0.0 OR ping xxx.xxx.xxx.xxx the ip of your machine Doug - Original Message - From: Sunit Bansal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:20 PM Subject: PROBLEM STARTING TOMCATPLEASE HELP I have XP Professsional installed on my machine. I have jdk1.42 installed and tomcat4.1.27. When I try to start tomcat, I am getting following problem- Please help me solving this. I have spended hours solving this. I have tried changing port is config file, but didnt helped. Thanks in advance Bootstrap: Create Catalina server Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11 58) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:236) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Catalina.start: LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1182) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) Bootstrap: Service started - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PROBLEM STARTING TOMCAT----------------PLEASE HELP
if you cant ping localhost then your network isn't configured. go on the MS website and troubleshoot Filip; -Original Message- From: Sunit Bansal [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 8:33 PM To: Tomcat Users List Subject: RE: PROBLEM STARTING TOMCATPLEASE HELP Sorry for late reply. Its a standalone with network card installed. I have no other services running on my machine. I also assigned IP numner, Subnet mask and gateway to it. Also when I tried pinging localhost/127.0.0.0/IP address, it failed gave error 2 back. Still it didnt work. Please help -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 10:10 AM To: Tomcat Users List Subject: Re: PROBLEM STARTING TOMCATPLEASE HELP Sunit, Do you have a firewall enabled? What other network based services are you running?(IIS, etc) Is this machine on a network?(Gotta ask) Can you ping yourself? ping localhost OR ping 127.0.0.0 OR ping xxx.xxx.xxx.xxx the ip of your machine Doug - Original Message - From: Sunit Bansal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:20 PM Subject: PROBLEM STARTING TOMCATPLEASE HELP I have XP Professsional installed on my machine. I have jdk1.42 installed and tomcat4.1.27. When I try to start tomcat, I am getting following problem- Please help me solving this. I have spended hours solving this. I have tried changing port is config file, but didnt helped. Thanks in advance Bootstrap: Create Catalina server Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11 58) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:236) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Catalina.start: LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1182) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) Bootstrap: Service started - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Servlets work?
Thanks a lot Harry. Thank you so much. Saravanan Harry Mantheakis wrote: Hello how the webserver handles more than one request at the same time. The answer is: by invoking the servlet's service method in a new thread for each new request to that servlet. Think of any Java object, instantiated once - a public method in that object can be called any number of times, concurrently. Each invocation will be processed in a new thread. Synchronisation is an issue only when the method in question uses references to other objects. If the method only works with local variables, there is no synchronisation problem! So, in a nutshell: with servlets, make sure the service method only uses local variables, including, of course, those two most useful parameters, the request and the response objects. Regards Harry Mantheakis London, UK Hi all, may be not the right place to ask this question. Hope somebody is kind enough to clarify this doubt of mine. i understand, in a servlet, if i need any code to be thread safe, then i shud put that code inside a synhronized block or declared the entire method as synchronized. if my understanding is right, only instance of our serlvet class is being created. in that case how the webserver handles more than one request at the same time. i mean, is some queuing structure being followed, (i am tempted to believe it is not multithreaded)? Could anybody clarify this doubt of mine or atleast point out some ref. material for this. Thanks R.Saravanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PROBLEM STARTING TOMCAT----------------PLEASE HELP
trie 4.0.6 i got it running under xp 5.0.16 too runs good did you set catalina_home variable and java_home variable too then after go in tomcat_home folder\bin run startup.bat should start here it runs well i got jdk 1.3.1_09 [EMAIL PROTECTED] administrateur http://entre-nous.qc.tc From: Filip Hanik (lists) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: PROBLEM STARTING TOMCATPLEASE HELP Date: Mon, 16 Feb 2004 20:49:24 -0800 if you cant ping localhost then your network isn't configured. go on the MS website and troubleshoot Filip; -Original Message- From: Sunit Bansal [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 8:33 PM To: Tomcat Users List Subject: RE: PROBLEM STARTING TOMCATPLEASE HELP Sorry for late reply. Its a standalone with network card installed. I have no other services running on my machine. I also assigned IP numner, Subnet mask and gateway to it. Also when I tried pinging localhost/127.0.0.0/IP address, it failed gave error 2 back. Still it didnt work. Please help -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 10:10 AM To: Tomcat Users List Subject: Re: PROBLEM STARTING TOMCATPLEASE HELP Sunit, Do you have a firewall enabled? What other network based services are you running?(IIS, etc) Is this machine on a network?(Gotta ask) Can you ping yourself? ping localhost OR ping 127.0.0.0 OR ping xxx.xxx.xxx.xxx the ip of your machine Doug - Original Message - From: Sunit Bansal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:20 PM Subject: PROBLEM STARTING TOMCATPLEASE HELP I have XP Professsional installed on my machine. I have jdk1.42 installed and tomcat4.1.27. When I try to start tomcat, I am getting following problem- Please help me solving this. I have spended hours solving this. I have tried changing port is config file, but didnt helped. Thanks in advance Bootstrap: Create Catalina server Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11 58) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:236) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Catalina.start: LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1182) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) Bootstrap: Service started - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version:
RE: PROBLEM STARTING TOMCAT----------------PLEASE HELP
Bansal, as said earlier configure the MS loop back adapter..though you may have a netwrok card installed it may not be configured properly..can you see any LAN connection in Network and Dial up connections.. though you are not in a network, configuring MS Lop back adapter solves your problem.. Pavan Kumar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Sunit Bansal [EMAIL PROTECTED] 02/16/2004 11:31 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: PROBLEM STARTING TOMCATPLEASE HELP Sorry for late reply. Its a standalone with network card installed. Also when I tried pinging localhost, it failed gave error 2 back. I also assigned IP numner, Subnet mask and gateway to it. Still it didnt work. Please help -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 10:11 AM To: Tomcat Users List Subject: RE: PROBLEM STARTING TOMCATPLEASE HELP i dont know if you are using a stand alone machine(which is not connected to any network) for ur development.. if yes then try to configure some loop back adapter in windows if u dont have any network card installed.. u can configure loop back adapter in LAN connection properties. Pavan Kumar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Filip Hanik \(lists\) [EMAIL PROTECTED] 02/11/2004 11:29 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: PROBLEM STARTING TOMCATPLEASE HELP you probably are missing or not running the network services. I am not sure which one this is, but go under Control Panel|Administrative Tools|Services Filip -Original Message- From: Sunit Bansal [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 8:20 PM To: Tomcat Users List Subject: PROBLEM STARTING TOMCATPLEASE HELP I have XP Professsional installed on my machine. I have jdk1.42 installed and tomcat4.1.27. When I try to start tomcat, I am getting following problem- Please help me solving this. I have spended hours solving this. I have tried changing port is config file, but didnt helped. Thanks in advance Bootstrap: Create Catalina server Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11 58) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:236) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Catalina.start: LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1182) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) Bootstrap: Service started - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: PROBLEM STARTING TOMCAT----------------PLEASE HELP
can you view TCP/IP under ur netwrork adapter,if then check the IP of it..if you dont have it then install TCP/IP using MS Loop back adapter Pavan Kumar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Sunit Bansal [EMAIL PROTECTED] 02/16/2004 11:32 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: PROBLEM STARTING TOMCATPLEASE HELP Sorry for late reply. Its a standalone with network card installed. I have no other services running on my machine. I also assigned IP numner, Subnet mask and gateway to it. Also when I tried pinging localhost/127.0.0.0/IP address, it failed gave error 2 back. Still it didnt work. Please help -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 10:10 AM To: Tomcat Users List Subject: Re: PROBLEM STARTING TOMCATPLEASE HELP Sunit, Do you have a firewall enabled? What other network based services are you running?(IIS, etc) Is this machine on a network?(Gotta ask) Can you ping yourself? ping localhost OR ping 127.0.0.0 OR ping xxx.xxx.xxx.xxx the ip of your machine Doug - Original Message - From: Sunit Bansal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 11:20 PM Subject: PROBLEM STARTING TOMCATPLEASE HELP I have XP Professsional installed on my machine. I have jdk1.42 installed and tomcat4.1.27. When I try to start tomcat, I am getting following problem- Please help me solving this. I have spended hours solving this. I have tried changing port is config file, but didnt helped. Thanks in advance Bootstrap: Create Catalina server Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler initialization failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11 58) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:236) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Catalina.start: LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind LifecycleException: Protocol handler start failed: java.net.SocketException: Network is down: JVM_Bind at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1182) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) Bootstrap: Service started - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT6362 DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read,
One user seeing another user's data
Hello Bill and All, Could any one of you throw some light on a problem that I am facing on Apache 1.3.28/Mod-jk 1.2.0/Tomcat 4.0.6 setup? The problem is that an user could see someother user's data (some kind of session mix up). When I searched the tomcat-dev list I found that Bill had replied that the problem could be related to error handling and it is not a synchorinazation problem. Bill, as you have already seen and analyized this issue, could you please help me on this issue ? Thank you all in advance. Regards, Kuloth Bill Barker [EMAIL PROTECTED] wrote: Andi Reinbrech wrote in message news:[EMAIL PROTECTED] I FINALLY figured this one out. Tomcat 5.0.18 as a service ignores -Djava.class.path. Rather, it takes the path from the -Imagepath parameter as the classpath (I did a debug logger.info(Classpath: + System.getProperty(java.class.path) and lo and behold it gave me the Imagepath as the actual classpath. I added %CATALINA_HOME%\bin to the Imageclasspath and all is working fine. This sounds like a bug? Or at least an undocumented feature. I believe that it is a documented feature. See http://jakarta.apache.org/commons/daemon/procrun.html. Cheers Andi -Original Message- From: Andi Reinbrech [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 14:58 PM To: Tomcat-User (E-mail) Subject: Please help with CLASSPATH problem Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use *either*. When I run Tomcat 5.0.18 from the command prompt, the app works 100%. It is supposed to pick up a file called emapi.cfg and licenses.txt from the CLASSPATH. emapi.cfg works int .\axis\WEB-INF\classes, but licenses.txt doesn't. However, leaving licenses.txt in the bin\ folder and starting Tomcat *from* that folder it works fine. Running Tomcat 5 as a service doesn't pick up licenses.txt although the working dir is set to be bin\. In the bin\ folder I also need a load of *.dtd files to validate XML responses. They only work when they're in the bin folder. Now to Tomcat 4.1: Everything works as a service, including picking up the licenses.txt, but now it refuses to resolve the *.dtds. I get a SAX Parser error that the URI can't be relative. This is a bogus error though, as I can remove all the *dtds and the error stays the same. Can someone PLEASE help me either fix EITHER one of these problems, or please refer me to an alternative server to use. org.apache.axis.transport.http.SimpleAxisServer works like a charm, but not as a service, and shouldn't be used as a production server. Thanks in advance, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
Trying to get Struts 1.1 working with tomcat in Eclipse
Hi all, I have tomcat 4.1.29 installed and am trying to get it to fire up in Eclipse. So far it runs, however if I include the struts.jar from the struts 1.1 directory I downloaded, tomcat throws an exception claiming it cannot find the StandardServer class. If I use an older struts.jar from my struts 1.0 directory it works fine. I cannot see why it should have problems finding the StandardServer. Any ideas ? Exception details :- 17/02/2004 17:39:19 org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) __ This email, including attachments, is intended only for the addressee and
Re: One user seeing another user's data
Hi Kuloth, Seatch Tomcat-user for concurrency problems or threading issues. There has been recent discussion on the topic. Concurrency problems are the main source of session mix-up. Also look for instance variables (hint: avoid them in Servlets) Antonio Fiol Anbu wrote: Hello Bill and All, Could any one of you throw some light on a problem that I am facing on Apache 1.3.28/Mod-jk 1.2.0/Tomcat 4.0.6 setup? The problem is that an user could see someother user's data (some kind of session mix up). When I searched the tomcat-dev list I found that Bill had replied that the problem could be related to error handling and it is not a synchorinazation problem. Bill, as you have already seen and analyized this issue, could you please help me on this issue ? Thank you all in advance. Regards, Kuloth smime.p7s Description: S/MIME Cryptographic Signature
Re: Add context from apache in Tomcat !!!
s/charge/load/ ;-) You could try to do it by hand. That is, if you are using taglibs, create a tag that does that (and includes the error management you need). Otherwise, use a static method that loads a URL and returns its content as a String (including the result of error management in that String). This way you get simple code like: % =IncludeURL.load(some-url) % It may be possible in other ways, but I am not aware of them. Someone? Yours, Antonio Fiol Ferran Orsola wrote: Hi everybody? Someone can help me? I've got two instances of tomcat running in two diferents machines. Also Ihave got apache server mapped with the two Tomcats using JK1.2 as: VirtualHost 192.168.10.120 JKMount /oasis-tl/* cms # first instance of Tomcat JKMount /tl-intranet/* intranet# second instance of Tomcat /VirtualHost Now in one application located in /tl-intranet/ (2 instance of tomcat) I would like to charge content from the other instance of tomcat and I don't know how to do it. I already tried using JSP Includes and Tomcat SSI. JSP Includes can only charge content from the same context. Tomcat SSI can charge content from same application of from same Tomcat, but not from another place. Is it possible to charge content with any method using absolut path as http://www./ ?? Thanks Ferran Orsola smime.p7s Description: S/MIME Cryptographic Signature
Re: Performance question JDBC vs Properties
I would write a reload config servlet. It will save you one JDBC access per request. Antonio Fiol Larraquy wrote: Hi all, I've got this doubt. My applicacion uses some properties files to config some events or constants, or whatever, but it's job basically is to map the users click on a JSP, to a servlet and define what class should take this event. So, every request comming to a JSP, will be a search in this file. This is for writing only 1 Servlet. For instance, if an user clicks ShowClients something like this should be written at the file. Where this class is called to do the job. ShowClients=com.jkt.proyect.clients.ShowClients Or ShowProducts: ShowProducts=com.jkt.proyect.products.ShowProducts This file, should be as big as use cases in the system. Actually we've written 2000 lines. My problem, is that for reconfiguring this file, or adding lines to it, I've got to reload the application. As we are at deploying time, this happens quite often, so I've got to take users out of the system, and then, calling them to continue working (they are quiete few until next month). I'm thinking of sending to logic to a database, I mean configure this in a table. So if I've got 2000 records in this table, would it be much less performant that writing it in a file, as it is now working? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature