Re: Exceptions when starting tomcat 3.2.4
ur servlet.jar and webserver.jar should be in classpath or lib directory of tomcat -- Salim - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 11:51 AM Subject: Re: Exceptions when starting tomcat 3.2.4 rob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've recently started using tomcat 3.2.4 and am receiving ClassNotFoundException(s) when starting the servlet container. I suspect it's due to a bad classpath but I'm not really certain what jar file the classes would/should be in. I've attached output from starting the server perhaps someone would be kind enough to tell me how to solve the problem. All of the .jar files listed in the classpath exist. Other than that there isn't much I can say. Any suggestions? Dump 3.2.x and upgrade to at least 3.3.1? ;-) Thanks Rob Starting tomcat. Guessing TOMCAT_HOME from tomcat.sh to /usr/pkg/tomcat/bin/.. Setting TOMCAT_HOME to /usr/pkg/tomcat/bin/.. Using classpath: /usr/pkg/tomcat/lib/jasper.jar:/usr/pkg/tomcat/lib/test:/usr/pkg/tomcat/lib/ webserver.jar:/usr/pkg/java/lib/tools.jar:/usr/pkg/lib/java/servlet.jar:/usr /pkg/lib/java/servlet.jar:/usr/pkg/lib/java/crimson.jar:/usr/pkg/lib/ java/ant.jar 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /admin ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /test ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-example ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-documentation ) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tomcat.loader.AdaptiveServletLoader.getClassLoader(Unknown Source) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Unknown Source) at org.apache.tomcat.core.ServletWrapper.loadServlet(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JasperLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.doInit(Unknown Source) at org.apache.tomcat.core.Handler.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at
HttpServletResponse question...
I am trying out an XSLT filter in one of the JDCTechTips: http://developer.java.sun.com/developer/JDCTechTips/2001/tt0626.html The setContentType() is overridden in the response wrapper. The way they have it set up, though, seems to assume that this method will get called automatically since there is no place in the filter that they specifically call wrapper.setContentType(). The thing is, setContentType() never gets called automatically in Tomcat-4.1.10. Is the creator of this filter just making an incorrect assumption or is Tomcat being buggy by not automatically calling setContentType() on the wrapper when filterChain.doFilter(request, wrappedHResponse); is called? The only way I can make this filter work is if I specifically call wrappedHResponse.setContentType(text/xml); before filterChain.doFilter(request, wrappedHResponse);. Should I have to do this? If so, why didn't the original author do it? If Tomcat is doing the right thing, then the developer who created this example must never have tested it because it won't work until that call is specifically made. Can anyone tell me who is right here? Jake -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Exceptions when starting tomcat 3.2.4
salim wrote: ur servlet.jar and webserver.jar should be in classpath or lib directory of tomcat It is Using classpath: /usr/pkg/tomcat/lib/jasper.jar:/usr/pkg/tomcat/lib/test:/usr/pkg/tomcat/lib/ webserver.jar:/usr/pkg/java/lib/tools.jar:/usr/pkg/lib/java/servlet.jar:/usr /pkg/lib/java/servlet.jar:/usr/pkg/lib/java/crimson.jar:/usr/pkg/lib/ -- Salim - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 11:51 AM Subject: Re: Exceptions when starting tomcat 3.2.4 rob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've recently started using tomcat 3.2.4 and am receiving ClassNotFoundException(s) when starting the servlet container. I suspect it's due to a bad classpath but I'm not really certain what jar file the classes would/should be in. I've attached output from starting the server perhaps someone would be kind enough to tell me how to solve the problem. All of the .jar files listed in the classpath exist. Other than that there isn't much I can say. Any suggestions? Dump 3.2.x and upgrade to at least 3.3.1? ;-) Thanks Rob Starting tomcat. Guessing TOMCAT_HOME from tomcat.sh to /usr/pkg/tomcat/bin/.. Setting TOMCAT_HOME to /usr/pkg/tomcat/bin/.. Using classpath: /usr/pkg/tomcat/lib/jasper.jar:/usr/pkg/tomcat/lib/test:/usr/pkg/tomcat/lib/ webserver.jar:/usr/pkg/java/lib/tools.jar:/usr/pkg/lib/java/servlet.jar:/usr /pkg/lib/java/servlet.jar:/usr/pkg/lib/java/crimson.jar:/usr/pkg/lib/ java/ant.jar 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /admin ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /test ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-example ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-documentation ) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tomcat.loader.AdaptiveServletLoader.getClassLoader(Unknown Source) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Unknown Source) at org.apache.tomcat.core.ServletWrapper.loadServlet(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JasperLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.doInit(Unknown Source) at org.apache.tomcat.core.Handler.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native
Re: Exceptions when starting tomcat 3.2.4
Bill Barker wrote: rob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've recently started using tomcat 3.2.4 and am receiving ClassNotFoundException(s) when starting the servlet container. I suspect it's due to a bad classpath but I'm not really certain what jar file the classes would/should be in. I've attached output from starting the server perhaps someone would be kind enough to tell me how to solve the problem. All of the .jar files listed in the classpath exist. Other than that there isn't much I can say. Any suggestions? Dump 3.2.x and upgrade to at least 3.3.1? ;-) I would like to but unfortunately thats not an option. Management decision would be required as well as building of a new package for my platform there are other politics involved. Thanks Rob Starting tomcat. Guessing TOMCAT_HOME from tomcat.sh to /usr/pkg/tomcat/bin/.. Setting TOMCAT_HOME to /usr/pkg/tomcat/bin/.. Using classpath: /usr/pkg/tomcat/lib/jasper.jar:/usr/pkg/tomcat/lib/test:/usr/pkg/tomcat/lib/ webserver.jar:/usr/pkg/java/lib/tools.jar:/usr/pkg/lib/java/servlet.jar:/usr /pkg/lib/java/servlet.jar:/usr/pkg/lib/java/crimson.jar:/usr/pkg/lib/ java/ant.jar 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /admin ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /test ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-example ) 2002-09-11 18:17:32 - ContextManager: Adding context Ctx( /struts-documentation ) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tomcat.loader.AdaptiveServletLoader.getClassLoader(Unknown Source) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Unknown Source) at org.apache.tomcat.core.ServletWrapper.loadServlet(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.jasper.servlet.JasperLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.doInit(Unknown Source) at org.apache.tomcat.core.Handler.init(Unknown Source) at org.apache.tomcat.core.ServletWrapper.init(Unknown Source) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(Unknown Source) at org.apache.tomcat.core.ContextManager.initContext(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at
Re: Possible Memory Leak in Apache Tomcat/4.1.10-LE-jdk14
Good information, Glenn. Thanks. At 09:45 PM 9/11/2002 -0500, you wrote: The JVM will grow to as much memory as you configure for its max, you can set this with the java arg -Xmx. Then the JVM manages its heap internally. Add this arg to java when you start Tomcat -verbose:gc, this will cause information about garbage collection to be output. And show you data about the internal JVM memory usage. Regards, Glenn Billy Ng wrote: I ran the Hello World page on the Tomcat's Servlet Examples, then kept refreshing it. The free memory is continuously going down on my Linux box and never came back up. Is it memory leak? I am running the Apache Tomcat/4.1.10-LE-jdk14. Billy Ng. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to Change Port Number of Tomcat
Hi, all, I am now using Tomcat 3.2.3. I would like to use one PC to simulate two Web applications. Each of them resides in the same PC but they should have different port number. I took a try to change the port value in the server.xml. But it doesn't work. Anyone could do me a favor? Thanks a lot! Bing Li
RE: How to Change Port Number of Tomcat
I'd say that changing the port number in server.xml should definitely do the trick. Could you post your changed server.xml? We could take a look. greetings Andreas Mohrig Web: www.cadooz.de -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: How to Change Port Number of Tomcat Hi, all, I am now using Tomcat 3.2.3. I would like to use one PC to simulate two Web applications. Each of them resides in the same PC but they should have different port number. I took a try to change the port value in the server.xml. But it doesn't work. Anyone could do me a favor? Thanks a lot! Bing Li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
test
Hello this is a test since none of my postings seem to be going thru to the userlist... guess I am testing the firewall ! ;-) Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
Hi, Mohrig, In the Connector part, there are three port values, 8080, 8443 and 8007. I change them to 9080, 9443 and 9007. But when the other Tomcat (port values are 8080, 8443, 8007) is started, the one with new port values got error, which said Address already in use. The changed server.xml is attached. Thanks for your help! Bing -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:44 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat I'd say that changing the port number in server.xml should definitely do the trick. Could you post your changed server.xml? We could take a look. greetings Andreas Mohrig Web: www.cadooz.de -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: How to Change Port Number of Tomcat Hi, all, I am now using Tomcat 3.2.3. I would like to use one PC to simulate two Web applications. Each of them resides in the same PC but they should have different port number. I took a try to change the port value in the server.xml. But it doesn't work. Anyone could do me a favor? Thanks a lot! Bing Li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ?xml version=1.0 encoding=ISO-8859-1? Server !-- Debug low-level events in XmlMapper startup xmlmapper:debug level=0 / -- !-- Logging: Logging in Tomcat is quite flexible; we can either have a log file per module (example: ContextManager) or we can have one for Servlets and one for Jasper, or we can just have one tomcat.log for both Servlet and Jasper. Right now there are three standard log streams, tc_log, servlet_log, and JASPER_LOG. Path: The file to which to output this log, relative to TOMCAT_HOME. If you omit a path value, then stderr or stdout will be used. Verbosity: Threshold for which types of messages are displayed in the log. Levels are inclusive; that is, WARNING level displays any log message marked as warning, error, or fatal. Default level is WARNING. verbosityLevel values can be: FATAL ERROR WARNING INFORMATION DEBUG Timestamps: By default, logs print a timestamp in the form -MM-dd hh:mm:ss in front of each message. To disable timestamps completely, set 'timestamp=no'. To use the raw msec-since-epoch, which is more efficient, set 'timestampFormat=msec'. If you want a custom format, you can use 'timestampFormat=hh:mm:ss' following the syntax of java.text.SimpleDateFormat (see Javadoc API). For a production environment, we recommend turning timestamps off, or setting the format to msec. Custom Output: Custom means normal looking. Non-custom means surrounded with funny xml tags. In preparation for possibly disposing of custom altogether, now the default is 'custom=yes' (i.e. no tags) Per-component Debugging: Some components accept a debug attribute. This further enhances log output. If you set the debug level for a component, it may output extra debugging information. -- !-- if you don't want messages on screen, add the attribute path=logs/tomcat.log to the Logger element below -- Logger name=tc_log verbosityLevel = INFORMATION / Logger name=servlet_log path=logs/servlet.log / Logger name=JASPER_LOG path=logs/jasper.log verbosityLevel = INFORMATION / !-- You can add a home attribute to represent the base for all relative paths. If none is set, the TOMCAT_HOME property will be used, and if not set . will be used. webapps/, work/ and logs/ will be relative to this ( unless set explicitely to absolute paths ). You can also specify a randomClass attribute, which determines a subclass of java.util.Random will be used for generating session IDs. By default this is java.security.SecureRandom. Specifying java.util.Random will speed up Tomcat startup, but it will cause sessions to be less secure. You can specify the showDebugInfo attribute to control whether debugging information is displayed in Tomcat's default responses. This debugging information includes: 1. Stack traces for exceptions 2. Request URI's that cause status codes = 400 The default is true, so you must specify false to prevent the debug information from appearing. Since the debugging information reveals internal details about what Tomcat is serving, set showDebugInfo=false if you wish increased security. -- ContextManager debug=0 workDir=work showDebugInfo=true !-- Interceptors --
Bug in 4.1.10?
I just have joining to he list, and I have searched in the old messages but I haven't found this: I have installed the new Tomcat 4.1.10, under Win2000. My problem is that if I execute it like a windows service, Tomcat give me errors compiling any JSP because it don't find the classes under WEB-INF/classes or WEB-INF/lib. If I execute tomcat in the command line (catalina start), all works perfectly. If after execute from the command line, I stopped it and start Tomcat like a service, now it works but only the pages visited when I started it from the command line (pages already compiled). A friend of mine has the same problem. Someone with win2000, JDK 1.4.0_01 has tried tomcat like a service? Thanks!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Bug in 4.1.10?
You haven't done something odd with file permissions / quotas have you? I can't recall offhand what user the service runs as, but you could try setting it to run as the same user as you are logged in as. We are using TomCat 4.1.10 on Win2K SP3 with JDK 1.4.0_01, and JSPs do compile (well the /index.jsp which is the only one we use). Miguel Angel Mulero Martinez wrote: I just have joining to he list, and I have searched in the old messages but I haven't found this: I have installed the new Tomcat 4.1.10, under Win2000. My problem is that if I execute it like a windows service, Tomcat give me errors compiling any JSP because it don't find the classes under WEB-INF/classes or WEB-INF/lib. If I execute tomcat in the command line (catalina start), all works perfectly. If after execute from the command line, I stopped it and start Tomcat like a service, now it works but only the pages visited when I started it from the command line (pages already compiled). A friend of mine has the same problem. Someone with win2000, JDK 1.4.0_01 has tried tomcat like a service? Thanks!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
Hi, I'm afraid I can't reproduce your symptom with my two Tomcat 4.0(.4) on a single Linux PC. But since I don't have Tomcat 3.2.3 at my disposal, this may mean nothing. This may sound silly, but have you double checked that the right instances of tomcat get started (using the right server.xml)? Can you acces them on the designated ports when you start them alone? What are the error-messages exactly? Another thing I noted is the absence of a port for tomcat shutdown. With tomcat 4 there is a port configured for this on top of server.xml like this: Server port=8005 shutdown=SHUTDOWN debug=0 This is a wild guess, but maybe this is giving you trouble? I'm sorry I can't delve deeper into this. greetings Andreas Mohrig -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:57 AM To: Tomcat Users List Subject: RE: How to Change Port Number of Tomcat Hi, Mohrig, In the Connector part, there are three port values, 8080, 8443 and 8007. I change them to 9080, 9443 and 9007. But when the other Tomcat (port values are 8080, 8443, 8007) is started, the one with new port values got error, which said Address already in use. The changed server.xml is attached. Thanks for your help! Bing -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:44 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat I'd say that changing the port number in server.xml should definitely do the trick. Could you post your changed server.xml? We could take a look. greetings Andreas Mohrig Web: www.cadooz.de -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: How to Change Port Number of Tomcat Hi, all, I am now using Tomcat 3.2.3. I would like to use one PC to simulate two Web applications. Each of them resides in the same PC but they should have different port number. I took a try to change the port value in the server.xml. But it doesn't work. Anyone could do me a favor? Thanks a lot! Bing Li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues
Hi I had a problem which looked a bit like that... It was caused by the fact that the default workers.properties file that comes with mod_jk 4.0.4 doesn't seem to work with tomcat 4.0.4. Check the workers.properties file to see if it mentions ajp14. If it does then that is probably your problem... To fix it take a look at the example workers.properties in the (very good) HowTo by John Turner: http://www.johnturner.com/howto/apache-tomcat-howto.html I hope that helps... Anthony. -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 11 September 2002 22:34 To: [EMAIL PROTECTED] Subject: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues -- Forwarded by Charbel Achkar/Bos/Teradyne on 09/11/2002 05:34 PM --- Charbel Achkar 09/11/2002 05:20 PM To: [EMAIL PROTECTED] cc: Subject: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk Hello, I have installed and configured Apache 1.3.26 with modssl and openssl + tomcat 4.0.4 with the corresponding Apache mod_jk. I started tomcat then apache and when I attempted to access the index.jsp under ROOT, the browser hangs and goes no where. the following error can be observed when info mode is set in httpd.conf INFO [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 09 18:18:39 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 146 [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146 [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 1 [Mon Sep 09 18:18:39 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 146 [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146 [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Mon Sep 09 18:18:39 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 And the followin is observed under DEBUG mode [Wed Sep 11 16:53:04 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Sep 11 16:53:04 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/test.jsp' [Wed Sep 11 16:53:04 2002] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match jakarta-tomcat-4.0.4 - *.jsp [Wed Sep 11 16:53:04 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name jakarta-tomcat-4.0.4 [Wed Sep 11 16:53:04 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Wed Sep 11 16:53:04 2002] [jk_ajp_common.c (1355)]: Into jk_worker_t::get_endpoint [Wed Sep 11 16:53:04 2002] [jk_ajp_common.c (1079)]: Into jk_endpoint_t::service [Wed Sep 11 16:53:04 2002] [jk_ajp_common.c (280)]: Into ajp_marshal_into_msgb [Wed Sep 11 16:53:04 2002] [jk_ajp_common.c (413)]: ajp_marshal_into_msgb - Done [Wed Sep 11 16:53:04 2002] [jk_connect.c (116)]: Into jk_open_socket [Wed Sep 11 16:53:04 2002] [jk_connect.c (123)]: jk_open_socket, try to connect socket = 9 [Wed Sep 11 16:53:04 2002] [jk_connect.c (132)]: jk_open_socket, after connect ret = 0 [Wed Sep 11 16:53:04 2002] [jk_connect.c (140)]: jk_open_socket, set TCP_NODELAY to on [Wed Sep 11 16:53:04 2002] [jk_connect.c (148)]: jk_open_socket, return, sd = 9 [Wed Sep 11 16:53:04 2002] [jk_ajp_common.c (589)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 9 [Wed Sep 11 16:53:04 2002] [jk_ajp_common.c (613)]: sending to ajp13 #379 [Wed Sep 11 16:53:04 2002] [jk_ajp_common.c (854)]: ajp_send_request 2: request body to send 0 - request body to resend 0 Why is the browser locking and what is happening? Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: PROBLEM with Tomcat 4.10 and Jasper
It looks like jasper is generating wrong code in this case. encode() is called on the result of FIECONJV1.getCONTCO(vect), which is a long. This should be converted to a string before calling encode(). As a work around you can force the expression to return a string like this: jsp:include .. ... jsp:param name=valeur value=%= Long.toString(FIECONJV1.getCONTCO(vect)) % / ... /jsp:include See if that helps. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. September 2002 10:26 An: [EMAIL PROTECTED] Betreff: PROBLEM with Tomcat 4.10 and Jasper I have a problem with Tomcat 4.10 and Jasper I use tags jsp:include... . That functions very well with Tomcat 4.0.x but not with Tomcat 4.10 I you sendings my log and my file jsp + file compiled (Tomcat 4.0.4 and 4.10). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
What ever you do, don't start putting tomcat 4 configuration entries in your server.xml configuration file. The error you say you are getting isn't a Tomcat problem at all. It sounds as though Tomcat is trying to start on the new ports you defined BUT they are already in use. That happens when you have to hard code ports. I suggest you try a port that is not being used. Try running netstat to see what ports are being used and code some different ones into your server.xml file. Matthew -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat Hi, I'm afraid I can't reproduce your symptom with my two Tomcat 4.0(.4) on a single Linux PC. But since I don't have Tomcat 3.2.3 at my disposal, this may mean nothing. This may sound silly, but have you double checked that the right instances of tomcat get started (using the right server.xml)? Can you acces them on the designated ports when you start them alone? What are the error-messages exactly? Another thing I noted is the absence of a port for tomcat shutdown. With tomcat 4 there is a port configured for this on top of server.xml like this: Server port=8005 shutdown=SHUTDOWN debug=0 This is a wild guess, but maybe this is giving you trouble? I'm sorry I can't delve deeper into this. greetings Andreas Mohrig -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:57 AM To: Tomcat Users List Subject: RE: How to Change Port Number of Tomcat Hi, Mohrig, In the Connector part, there are three port values, 8080, 8443 and 8007. I change them to 9080, 9443 and 9007. But when the other Tomcat (port values are 8080, 8443, 8007) is started, the one with new port values got error, which said Address already in use. The changed server.xml is attached. Thanks for your help! Bing -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:44 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat I'd say that changing the port number in server.xml should definitely do the trick. Could you post your changed server.xml? We could take a look. greetings Andreas Mohrig Web: www.cadooz.de -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: How to Change Port Number of Tomcat Hi, all, I am now using Tomcat 3.2.3. I would like to use one PC to simulate two Web applications. Each of them resides in the same PC but they should have different port number. I took a try to change the port value in the server.xml. But it doesn't work. Anyone could do me a favor? Thanks a lot! Bing Li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
I think that Andreas has right. The ports of the connectors must be changed, but the shutdown port must also be changed. Try this and we'll see. -Message d'origine- De : Garling, Matthew [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 11:09 À : 'Tomcat Users List' Objet : RE: How to Change Port Number of Tomcat What ever you do, don't start putting tomcat 4 configuration entries in your server.xml configuration file. The error you say you are getting isn't a Tomcat problem at all. It sounds as though Tomcat is trying to start on the new ports you defined BUT they are already in use. That happens when you have to hard code ports. I suggest you try a port that is not being used. Try running netstat to see what ports are being used and code some different ones into your server.xml file. Matthew -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat Hi, I'm afraid I can't reproduce your symptom with my two Tomcat 4.0(.4) on a single Linux PC. But since I don't have Tomcat 3.2.3 at my disposal, this may mean nothing. This may sound silly, but have you double checked that the right instances of tomcat get started (using the right server.xml)? Can you acces them on the designated ports when you start them alone? What are the error-messages exactly? Another thing I noted is the absence of a port for tomcat shutdown. With tomcat 4 there is a port configured for this on top of server.xml like this: Server port=8005 shutdown=SHUTDOWN debug=0 This is a wild guess, but maybe this is giving you trouble? I'm sorry I can't delve deeper into this. greetings Andreas Mohrig -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:57 AM To: Tomcat Users List Subject: RE: How to Change Port Number of Tomcat Hi, Mohrig, In the Connector part, there are three port values, 8080, 8443 and 8007. I change them to 9080, 9443 and 9007. But when the other Tomcat (port values are 8080, 8443, 8007) is started, the one with new port values got error, which said Address already in use. The changed server.xml is attached. Thanks for your help! Bing -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:44 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat I'd say that changing the port number in server.xml should definitely do the trick. Could you post your changed server.xml? We could take a look. greetings Andreas Mohrig Web: www.cadooz.de -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: How to Change Port Number of Tomcat Hi, all, I am now using Tomcat 3.2.3. I would like to use one PC to simulate two Web applications. Each of them resides in the same PC but they should have different port number. I took a try to change the port value in the server.xml. But it doesn't work. Anyone could do me a favor? Thanks a lot! Bing Li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Bug in 4.1.10?
The user is LocalSystem (the same that other services and the same I used in the old version of Tomcat), and the problem isn't in the compilation of a JSP, the problem is in the compilation of the JSP when it uses (import) classes under WEB-INF/classes or WEB-INF/lib. I tried the tomcat examples and, for example, the date example don't work. Can you try this example? Thanks! -Mensaje original- De: Ben Walding [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 12 de septiembre de 2002 10:54 Para: Tomcat Users List Asunto: Re: Bug in 4.1.10? You haven't done something odd with file permissions / quotas have you? I can't recall offhand what user the service runs as, but you could try setting it to run as the same user as you are logged in as. We are using TomCat 4.1.10 on Win2K SP3 with JDK 1.4.0_01, and JSPs do compile (well the /index.jsp which is the only one we use). Miguel Angel Mulero Martinez wrote: I just have joining to he list, and I have searched in the old messages but I haven't found this: I have installed the new Tomcat 4.1.10, under Win2000. My problem is that if I execute it like a windows service, Tomcat give me errors compiling any JSP because it don't find the classes under WEB-INF/classes or WEB-INF/lib. If I execute tomcat in the command line (catalina start), all works perfectly. If after execute from the command line, I stopped it and start Tomcat like a service, now it works but only the pages visited when I started it from the command line (pages already compiled). A friend of mine has the same problem. Someone with win2000, JDK 1.4.0_01 has tried tomcat like a service? Thanks!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Listener with Tomcat4.0.4
Hi, I placed Listeners in my web.xml file !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//ENhttp://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- Application start/shut down listener -- listener listener-class MyPackage.My_ServletContextListener /listener-class /listener and when I compile I have the following error Exception initialising TldLocationsCache: XML parsing error on file WEB-INF/web.xml: Element type listener must be declared. My web.xml points on the updated DTD web-app_2_2 I don't underrstand why I have this error. Thanks for your help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Listener with Tomcat4.0.4
AFAIK listeners are in 2.3. in your web.xml change 2.2 to 2.3. hope you have downloaded servlet 2.3. http://java.sun.com/products/servlet/2.3/javadoc Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1059 -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 9:40 AM To: '[EMAIL PROTECTED]' Subject: Listener with Tomcat4.0.4 Hi, I placed Listeners in my web.xml file !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- Application start/shut down listener -- listener listener-class MyPackage.My_ServletContextListener /listener-class /listener and when I compile I have the following error Exception initialising TldLocationsCache: XML parsing error on file WEB-INF/web.xml: Element type listener must be declared. My web.xml points on the updated DTD web-app_2_2 I don't underrstand why I have this error. Thanks for your help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Bug in 4.1.10?
Create the directory temp in your CATALINA_HOME if it doesn't exist. Miguel Angel Mulero Martinez wrote: I just have joining to he list, and I have searched in the old messages but I haven't found this: I have installed the new Tomcat 4.1.10, under Win2000. My problem is that if I execute it like a windows service, Tomcat give me errors compiling any JSP because it don't find the classes under WEB-INF/classes or WEB-INF/lib. If I execute tomcat in the command line (catalina start), all works perfectly. If after execute from the command line, I stopped it and start Tomcat like a service, now it works but only the pages visited when I started it from the command line (pages already compiled). A friend of mine has the same problem. Someone with win2000, JDK 1.4.0_01 has tried tomcat like a service? Thanks!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Bug in 4.1.10?
The directory temp exists in CATALINA_HOME. -Mensaje original- De: Glenn Nielsen [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 12 de septiembre de 2002 13:04 Para: Tomcat Users List Asunto: Re: Bug in 4.1.10? Create the directory temp in your CATALINA_HOME if it doesn't exist. Miguel Angel Mulero Martinez wrote: I just have joining to he list, and I have searched in the old messages but I haven't found this: I have installed the new Tomcat 4.1.10, under Win2000. My problem is that if I execute it like a windows service, Tomcat give me errors compiling any JSP because it don't find the classes under WEB-INF/classes or WEB-INF/lib. If I execute tomcat in the command line (catalina start), all works perfectly. If after execute from the command line, I stopped it and start Tomcat like a service, now it works but only the pages visited when I started it from the command line (pages already compiled). A friend of mine has the same problem. Someone with win2000, JDK 1.4.0_01 has tried tomcat like a service? Thanks!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
From the tomcat 4 RUNNING.txt file, to change the port number it only says to change 8080 to the number that you want. It does not mention changing anything else in the file. I have changed all my tomcats to 80 on windows, linux and solaris and have had not problems. Check netstat, also check ps -eaf for any old tomcat threads till holding on to the ports, and kill them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can anyone Undeploy an Existing Application in 4.1.10?
Hi, I am getting this error in both Windows XP and Gentoo Linux: http://localhost:8080/manager/undeploy?path=/outreach Always results in: FAIL - Cannot remove document base for path /outreach With, curiously, the following being logged: 2002-09-12 12:37:13 Manager: undeploy: Undeploying web application at '/outreach' I can't find any error messages in any of the log files. Running http://localhost:8080/manager/list Shows that the application is still there. Has ANYONE managed to get this working in 4.1.10? Otherwise, I'll submit a bug... Thanks, Ben -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
That's right, but he wants to run 2 Tomcat simultaneously. That's why all ports number must be different. -Message d'origine- De : Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 13:35 À : 'Tomcat Users List' Objet : RE: How to Change Port Number of Tomcat From the tomcat 4 RUNNING.txt file, to change the port number it only says to change 8080 to the number that you want. It does not mention changing anything else in the file. I have changed all my tomcats to 80 on windows, linux and solaris and have had not problems. Check netstat, also check ps -eaf for any old tomcat threads till holding on to the ports, and kill them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can anyone Undeploy an Existing Application in 4.1.10?
Have you try the html version: http://localhost:8080/manager/html ? I hope this will work -Mensaje original- De: Ben Rometsch [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 12 de septiembre de 2002 13:39 Para: [EMAIL PROTECTED] Asunto: Can anyone Undeploy an Existing Application in 4.1.10? Hi, I am getting this error in both Windows XP and Gentoo Linux: http://localhost:8080/manager/undeploy?path=/outreach Always results in: FAIL - Cannot remove document base for path /outreach With, curiously, the following being logged: 2002-09-12 12:37:13 Manager: undeploy: Undeploying web application at '/outreach' I can't find any error messages in any of the log files. Running http://localhost:8080/manager/list Shows that the application is still there. Has ANYONE managed to get this working in 4.1.10? Otherwise, I'll submit a bug... Thanks, Ben -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
I have got 2 running simultaneously. to have 2 running, on one of the tomcats you need to change 6 things. There are 4 connectors.http, https, ajp and test http. change https port. change http port and then change redirect port to whatever https port is. change ajp port and then do the same of the test http as the normal http. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache 1.3 and mod_jk2
I'm not aware of anyone doing so. I haven't been able to do this, after several hours of trying. I am still trying to determine if its even possible...I'm starting to think that mod_jk2 (at least, the latest version of it) is for Apache 2 only, but I don't know that for sure. John -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:12 PM To: Tomcat Users List Subject: apache 1.3 and mod_jk2 did somebody succeded installing mod_jk2 on a apache 1.3 server ? is there any HOWTO help available for this issue ? 10x Catalin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Listener with Tomcat4.0.4
replace web-app_2_2.dtd With web-app_2_3.dtd in your web.xml Siddharth - Original Message - From: Heligon Sandra [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 10:10 PM Subject: Listener with Tomcat4.0.4 Hi, I placed Listeners in my web.xml file !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- Application start/shut down listener -- listener listener-class MyPackage.My_ServletContextListener /listener-class /listener and when I compile I have the following error Exception initialising TldLocationsCache: XML parsing error on file WEB-INF/web.xml: Element type listener must be declared. My web.xml points on the updated DTD web-app_2_2 I don't underrstand why I have this error. Thanks for your help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with Tomcat 4.1.10!
Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: apache error?
Do you have the right mod_jk.so The mod_jk.so for Apache 1.3 is not the same mod_jk.so for Apache 2.0. John -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 8:47 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: apache error? thanks Galbayar, apache 2 does NOT have libexec directory - but has modules directory instead. pl. helping me --hari From: Galbayar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: apache error? Date: Thu, 12 Sep 2002 09:45:32 +0900 copy mod_jk.so to apache/libexec dir my server httpd.conf is LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.0.3/conf/workers.properties JkLogFile /var/log/apache/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] Alias /administrator/ /usr/local/jakarta-tomcat-4.0.3/webapps/administrator Directory /usr/local/jakarta-tomcat-4.0.3/webapps/administrator AuthName Admin AuthType Basic AuthUserFile /usr/local/apache/bin/usr.pwd Require valid-user AllowOverride None Options None DirectoryIndex index.jsp /Directory JkMount /administrator/* ajp13 JkMount /administrator/servlet/* ajp13 -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:14 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: apache error? hi Galbayar, my thanks to you. i tried to put the following at my mod_jk.conf - but still it not works. It is gives me same error. Directory Alias dir AllowOverride None deny from all /Directory I am geting following error # ./apachectl start Syntax error on line 1 of /jboss/catalina/conf/auto/mod_jk.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: # I have following file as my mod_jk.conf. I tried all combinations but still getting same above error LoadModule jk_module modules/mod_jk.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule Directory Alias dir AllowOverride None deny from all /Directory thanks to you hari From: Galbayar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: apache error? Date: Thu, 12 Sep 2002 09:02:28 +0900 add this to the mod_jk.conf Directory Alias dir AllowOverride None deny from all /Directory -Original Message- From: hari hari [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 6:46 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: apache error? my many thank you Charbel. do u mean that i need to add Addmodule to httpd.conf or mod_jk.conf? In httpd.conf, I have put following line at the exact end. Include /jboss/catalina/conf/auto/mod_jk.conf And, my mod_jk.conf is containing following lines: LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /examples/* ajp12 /IfModule Pl. helping me. -- hari From: [EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
You only need to change all of these ports if all of those connectors are enabled. If you only have the AJP connector enabled, you only have to change that port, etc. John -Original Message- From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 7:51 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat I have got 2 running simultaneously. to have 2 running, on one of the tomcats you need to change 6 things. There are 4 connectors.http, https, ajp and test http. change https port. change http port and then change redirect port to whatever https port is. change ajp port and then do the same of the test http as the normal http. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: apach1.3/mod_jk2/tomcat4.1
Yes, that document is rather rough. There is this page, http://www.pubbitch.org/jboss/mod_jk2.html. That does a pretty decent job. The ANT build of JTC is torturous though. It fails if your Apache layout is at all different from standard -- even when you supply the appropriate hints. Basically, skip to step 10 and you should be able to configure mod_jk2. I wasn't able to get libjkjni.so built (JTC takes too much hacking -- mod_webapp works), so I am just using mod_webapp. Tom Veldhouse - Original Message - From: Frank Liu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 1:05 AM Subject: apach1.3/mod_jk2/tomcat4.1 I read the jk2 document at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/ but still don't have a clue as to how to config apach1.3/mod_jk2/tomcat4.1 At that URL, under JK2 | Configuration in the Web server, it is talking about worker2.properties. No mentioning of apache's httpd.conf at all. Will apache 1.3 automagically read this worker2.properties? Any more info is greatly appreciated! Frank -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
nested struts logic iterate tagdoes not work with 4.1.10
we are trying to migrate from 4.0.4 to 4.1.10 and are quite impressed by the better performance. however, struts 1.02 nested iterate tag does not seem to work. any help?
Re: HTTP Status 503 - Server default is currently unavailable
Mark Hansen wrote: I'm trying to deploy Apache Tomcat/4.0.3. It starts up, but when I try to access index.html, I get the error message HTTP Status 503 - Server default is currently unavailable. Can anyone tell me what might be causing this? Thanks, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Hi there have you another service running on your port 8080 which of course is the default port.If so goto and edit (using your fav editor)your tomcat-install/conf/server.xml and change your port to anything above or greater than1024 as ports less than or equal to 1024 will require superuser to access to bind (mine for instance is )as mentioned in the README.txt /RUNNING.txt or Installation Files. Thus Restart Tomcat 4.0.3 and change to the new port in the url i.e http://localhost:/index.html Plz correct me if I'm wrong wortha try. -- Regards Chuck Amadi ICT Dept Systems Programmer Rhaglenydd Systemau Adran ICT -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Tomcat 4.1.10!
I've reported the same problem with the versión not LE. The problem is using tomcat in win2000 as a service. Are you in the same case? If yes, try to start it from the command line, with catalina_start. God luck! -Mensaje original- De: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 12 de septiembre de 2002 13:59 Para: Tomcat Users List Asunto: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache authentication info failed to pass to Tomcat 4.0.3
Hi all, I configured Apache to use basic authentication and tried to pass the successful authentication info to Tomcat through AJP13 connector. This approach works great in Apache 1.3.26 with Tomcat 4.0.3, failes with Tomcat 4.0.4, 4.1.10. Tomcat 4.1.10's AJP13 connector and Coyote connector was tried with no luck. I would like to know if anyone else has similar experience and if it's a potential bug in Tomcat 4.0.3 AJP13 support implementation. Thanks, Xiaoyu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Tomcat 4.1.10!
Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: apache 1.3 and mod_jk2
i mannged to install mod_jk2 on a apache1.3 but not with unix socket connection. so the jk2.propertis has no JNI .so for the sockets. so i make the connection with TCP sockets and it works fine i followed the steps from http://www.pubbitch.org/jboss/mod_jk2.html but instead of configuring for apache 2 i used my already existing version of apache 1.3 when the build reached compiling the JNI thing for tomcat i got some errors and i skipped that part ! there is a thing in the workers2.properties # To use the TCP/IP socket instead, just comment out the above # line, and uncomment the one below channel=channel.socket:localhost:8009 it works on my server ! another thing would be to find out how to configure virtualhosts on apache 1.3 with mod jk2 cause now the example uri (/examples) from tomcat is mapped to all virtual hosts configured on the server. does anybody has a clue how you can do virtual hosts with mod_jk2 and apache 1.3 ? 10x in advance Catalin - Original Message - From: Turner, John To: 'Tomcat Users List' Sent: Thursday, September 12, 2002 2:54 PM Subject: RE: apache 1.3 and mod_jk2 I'm not aware of anyone doing so. I haven't been able to do this, after several hours of trying. I am still trying to determine if its even possible...I'm starting to think that mod_jk2 (at least, the latest version of it) is for Apache 2 only, but I don't know that for sure. John -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 6:12 PM To: Tomcat Users List Subject: apache 1.3 and mod_jk2 did somebody succeded installing mod_jk2 on a apache 1.3 server ? is there any HOWTO help available for this issue ? 10x Catalin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk2 virtual host
does this thing works on apache1.3 as well ? and we're talking about mod_jk2 here right ? Catalin - Original Message - From: Galbayar To: Tomcat Users List Sent: Thursday, September 12, 2002 3:13 AM Subject: RE: mod_jk2 virtual host Add to the httpd.conf VirtualHost * DocumentRoot /usr/local/tomcat/webapps/app ServerName www.yourdomain.com ServerAlias yourdomain.con #DirectoryIndex index.jsp ServerAdmin admin ErrorLog logs/smartmessage-error_log CustomLog logs/smartmessage-access_log common /VirtualHost JkMount www.yourdomain.com -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 7:35 AM To: [EMAIL PROTECTED] Subject: mod_jk2 virtual host hello, is there any way to configure mod_jk2 to run OK with apache virtualhost ? i want to map an URI just for a virtual host not for all the hosts (as it is now). an workers2.properties example would be even better ! ok 10x in advance for any help ! Catalin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: PageContext is always null with taglibs
Do you use the class with a tag in a jsp? or by calling it from another class? -Original Message- From: Byrne Reese [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 6:04 AM To: [EMAIL PROTECTED] Subject: PageContext is always null with taglibs I am trying to write a custom taglib that extends the TagSupport class. At one point my implementation worked, but when upgrading to Tomcat 4.0.4, I keep getting a NullPointerException because the protected variable pageContext is null. Any clues? Is tomcat's servlet implementation no longer setting the PageContext? What gives? Or how do I get a handle to the request and/or response context so that I can get and put attributes and write output to the browser? Here is my code BTW: public class GetCityTag extends TagSupport { /* blah blah blah */ public int doEndTag() throws JspException { City city = (City)getCity(getCityId()); /* this next line is where the NullPointerException occurs */ pageContext.setAttribute(getId(), city); /* ^ */ try { pageContext.getOut().write(City id is + cityId + !); pageContext.getOut().write(Storing fetched city '+city.getName()+ ' as + id + !); } catch(IOException e) { throw new JspTagException(An IOException occurred.); } return EVAL_PAGE; } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with Tomcat 4.1.10!
Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_proxy VS mod_jk2
could you post the link ! i did not find it on sf.net ! 10x Catalin - Original Message - From: James Ward To: Tomcat Users List Sent: Wednesday, September 11, 2002 11:59 PM Subject: RE: mod_proxy VS mod_jk2 I have read some emails on the Jboss list stating that in Apache2, mod_proxy seems to be faster. Check the archive on sf.net for the actual posts. -James -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: mod_proxy VS mod_jk2 hi, does anybody know if there is a performance test between apache mod_proxy and mod_jk2. the thing is that you can configure your apache server to map one location eg: /examples to be served from your local tomcat running server. so i wonder which way is the best ! the fast way is to configure apache with mod_proxy and to let tomcat run stand alone. 10x in advance ! Catalin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Tomcat 4.1.10!
Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java.io.IOException: Cannot recover key when trying to start an SSL in tomcat
hi, Any idea? thank's in advance. So the situation: 1. I have the following keystore file c:\keytool -list Keystore type: jks Keystore provider: SUN Your keystore contains 3 entries: curie, Thu Sep 12 14:46:30 EEST 2002, trustedCertEntry, Certificate fingerprint (MD5): 5E:11:3B:EB:C7:DA:2C:A0:BE:75:0E:25:3E:4A:76:12 tomcat, Thu Sep 12 15:05:43 EEST 2002, keyEntry, Certificate fingerprint (MD5): 83:9B:54:06:8D:60:92:FE:A7:D7:98:F5:B4:6D:7F:1A mykey, Thu Sep 12 14:42:53 EEST 2002, keyEntry, Certificate fingerprint (MD5): E7:4D:63:B6:E1:02:0A:3D:B8:CB:24:F7:E9:B8:80:02 2. My connector looks like: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true useURIValidationHack=false Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory keystorePass=very_secret;-) clientAuth=false protocol=TLS / /Connector 3. jdk1.4.0 4. start tomcat 5. stdout.log says: Bootstrap: Create Catalina server Catalina.start: LifecycleException: Protocol handler initialization failed: java.io.IOException: Cannot recover key LifecycleException: Protocol handler initialization failed: java.io.IOException: Cannot recover key at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1004) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2247) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:234) 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:228) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:292) Bootstrap: Starting service Starting service Tomcat-Standalone Apache Tomcat/4.1.10 6. stderr.log says: ... 12-Sep-2002 15:18:21 org.apache.coyote.http11.Http11Protocol start SEVERE: Error starting endpoint java.io.IOException: Cannot recover key at org.apache.tomcat.util.net.JSSESocketFactory.initProxy(JSSESocketFactory.java:214) at org.apache.tomcat.util.net.JSSESocketFactory.createSocket(JSSESocketFactory.java:127) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:263) at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:285) at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1026) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2191) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271) 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:242) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:302) 7. https://localhost:8443 DOESN'T WORK!!!
Re: Problem with Tomcat 4.1.10!
I installed on platform win2000. But my great problem is that I have connected TOMCAT with Apache. I need Apache and Apache starts Tomcat! Any idea? Thanks A. Schmidt - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:42 PM Subject: RE: Problem with Tomcat 4.1.10! Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Tomcat 4.1.10!
You can run Tomcat as a service with the same parameters as the DOS mode. There were a post in this mailling list yesterdey (I think). The service creation command was given. I don't know which parameter is needed in your case, but if you specify all the parameters, it must be worked as in Dos mode. After, you could test which parameter missed. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 14:56 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! I installed on platform win2000. But my great problem is that I have connected TOMCAT with Apache. I need Apache and Apache starts Tomcat! Any idea? Thanks A. Schmidt - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:42 PM Subject: RE: Problem with Tomcat 4.1.10! Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with Tomcat 4.1.10!
Thanks but I don´t have the parameters from yesterday! Did anyone have? Thanks A. Schmidt - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 3:17 PM Subject: RE: Problem with Tomcat 4.1.10! You can run Tomcat as a service with the same parameters as the DOS mode. There were a post in this mailling list yesterdey (I think). The service creation command was given. I don't know which parameter is needed in your case, but if you specify all the parameters, it must be worked as in Dos mode. After, you could test which parameter missed. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 14:56 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! I installed on platform win2000. But my great problem is that I have connected TOMCAT with Apache. I need Apache and Apache starts Tomcat! Any idea? Thanks A. Schmidt - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:42 PM Subject: RE: Problem with Tomcat 4.1.10! Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache authentication info failed to pass to Tomcat 4.0.3
The Coyote connector is broken in this respect. Remmy recently fixed it in CVS post Tomcat-4.1.10. Grab a nightly build and use the coyote jar files from there. Jake At 08:14 AM 9/12/2002 -0400, you wrote: Hi all, I configured Apache to use basic authentication and tried to pass the successful authentication info to Tomcat through AJP13 connector. This approach works great in Apache 1.3.26 with Tomcat 4.0.3, failes with Tomcat 4.0.4, 4.1.10. Tomcat 4.1.10's AJP13 connector and Coyote connector was tried with no luck. I would like to know if anyone else has similar experience and if it's a potential bug in Tomcat 4.0.3 AJP13 support implementation. Thanks, Xiaoyu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Tomcat 4.1.10!
That's what was given yesterday : %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.ja r -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log To uninstall the sevice use: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina But you must verify if it's matched with Tomcat 4.1.10 configuration. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 15:17 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! Thanks but I don´t have the parameters from yesterday! Did anyone have? Thanks A. Schmidt - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 3:17 PM Subject: RE: Problem with Tomcat 4.1.10! You can run Tomcat as a service with the same parameters as the DOS mode. There were a post in this mailling list yesterdey (I think). The service creation command was given. I don't know which parameter is needed in your case, but if you specify all the parameters, it must be worked as in Dos mode. After, you could test which parameter missed. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 14:56 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! I installed on platform win2000. But my great problem is that I have connected TOMCAT with Apache. I need Apache and Apache starts Tomcat! Any idea? Thanks A. Schmidt - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:42 PM Subject: RE: Problem with Tomcat 4.1.10! Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with Tomcat 4.1.10!
Hello! If I start the Tomcat from DOS-Mode I get the IOException : APR not loaded, disabling jni_documents: no jkjni in java.library.path Can that be the problem? Thanks A. Schmidt - Original Message - From: Alexander Schmidt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 3:16 PM Subject: Re: Problem with Tomcat 4.1.10! Thanks but I don´t have the parameters from yesterday! Did anyone have? Thanks A. Schmidt - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 3:17 PM Subject: RE: Problem with Tomcat 4.1.10! You can run Tomcat as a service with the same parameters as the DOS mode. There were a post in this mailling list yesterdey (I think). The service creation command was given. I don't know which parameter is needed in your case, but if you specify all the parameters, it must be worked as in Dos mode. After, you could test which parameter missed. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 14:56 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! I installed on platform win2000. But my great problem is that I have connected TOMCAT with Apache. I need Apache and Apache starts Tomcat! Any idea? Thanks A. Schmidt - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:42 PM Subject: RE: Problem with Tomcat 4.1.10! Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Http Session
Hi All ! I'm not sure I've understand everything about Session !! I'm using Tomcat 4.0 and I use a Filter to check authentification. This filter filters everything except the connection page. what I'm doing in doFilter : ---CODE- HttpSession session = null; if (request instanceof HttpServletRequest) { session = ((HttpServletRequest) request).getSession(); } MyObject connex = null; if (session != null) { connex = (MyObject) session.getAttribute(USER_PARAM); if (connex != null) { if (connex.getUser() != null) { // Continue ! chain.doFilter(request, response); return; } } } connex = methodToCreateConnexIfFormFiledsArePresents(request); if (connex != null) { // Get in ! session = ((HttpServletRequest) request).getSession(true); session.setAttribute(USER_PARAM, connex); chain.doFilter(request, response); } else { // Get out ! sendConnectionScreen(response); }} ---END CODE- My problem : A client came into the site and connect. I goes inside and wait. I'm rebooting the server. (Tomcat should be reinitialise no ?? :-) Then the client make another request and the filter says ok, continue. I can even log the name of the user found in the MyObject connex. but myClient has never reconnect ! where am I wrong ?? where is the session attributes stored ?? Thanks in advance for your help. -- A++ Stéphane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: PageContext is always null with taglibs
I am calling it from wtithin a JSP: pCity Name: jsp:getProperty name=city property=name//p On Thu, 2002-09-12 at 08:32, Adziashvili, Itzik wrote: Do you use the class with a tag in a jsp? or by calling it from another class? -Original Message- From: Byrne Reese [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 6:04 AM To: [EMAIL PROTECTED] Subject: PageContext is always null with taglibs I am trying to write a custom taglib that extends the TagSupport class. At one point my implementation worked, but when upgrading to Tomcat 4.0.4, I keep getting a NullPointerException because the protected variable pageContext is null. Any clues? Is tomcat's servlet implementation no longer setting the PageContext? What gives? Or how do I get a handle to the request and/or response context so that I can get and put attributes and write output to the browser? Here is my code BTW: public class GetCityTag extends TagSupport { /* blah blah blah */ public int doEndTag() throws JspException { City city = (City)getCity(getCityId()); /* this next line is where the NullPointerException occurs */ pageContext.setAttribute(getId(), city); /* ^ */ try { pageContext.getOut().write(City id is + cityId + !); pageContext.getOut().write(Storing fetched city '+city.getName()+ ' as + id + !); } catch(IOException e) { throw new JspTagException(An IOException occurred.); } return EVAL_PAGE; } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.1.10 mishandling nested variables in tags?
Just upgraded to 4.1.10 and found that my webapp no longer functions. I have tracked this down to a tag that uses nested tags. On the old version (4.0.4), immediately after the doStartTag call, the variables are declared for the jsp page, and their values read from the pageContext, then the jsp content of the tag is executed. On the new version after the doStartTag, the variables are declared and set to null and only have their values updated after the jsp content has been executed once. This means that all the variables are null on the first run through the tag which as far as I understand the spec is not correct. Is there any fix for this? Dave Dave -- 404. File not found. Should I fake it? (Y/N) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
i still got problems
Why this doesn't work? I added to web.xml: listener listener-classcom.w2.login.servlets.Global/listener-class /listener -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 package com.w2.login.servlets; import com.w2.login.*; import javax.servlet.*; import javax.servlet.http.*; /** * pClasse que simula um quot;global.asaquot; do ASP. Ou seja, executa certos meacute;todos quando * o aplicativo/sessatilde;o inicia/termina./p * * @author Felipe Schnack */ public class Global implements HttpSessionActivationListener//, ServletContextListener { /** * pNuacute;mero de sessotilde;es ativas/p */ private static long sessionCount = 0; /** * pInicializaccedil;atilde;o da aplicaccedil;atilde;o/p * * @see javax.servlet.ServletContextListener#contextInitialized(ServletContextEvent) */ public void contextInitialized(ServletContextEvent sce) { String msg = Starting application...; System.out.println(msg); CtlAudit.unknown(null, msg); } /** * pFinalizaccedil;atilde;o da aplicaccedil;atilde;o/p * * @see javax.servlet.ServletContextListener#contextDestroyed(ServletContextEvent) */ public void contextDestroyed(ServletContextEvent sce) { String msg = Finalizing application...; System.out.println(msg); CtlAudit.unknown(null, msg); } /** * pInicializaccedil;atilde;o da sessatilde;o (ou de-serializaccedil;atilde;o/p * * @see javax.servlet.http.HttpSessionListener#sessionCreated(HttpSessionEvent) */ public void sessionDidActivate(HttpSessionEvent hse) { synchronized(this) { sessionCount++; } String msg = Initilizing session, id + hse.getSession().getId() + , # + sessionCount + ...; System.out.println(msg); CtlAudit.unknown(null, msg); } /** * pFinalizaccedil;atilde;o da sessatilde;o (ou serializaccedil;atilde;o/p * * @see javax.servlet.http.HttpSessionListener#sessionDestroyed(HttpSessionEvent) */ public void sessionWillPassivate(HttpSessionEvent hse) { synchronized(this) { sessionCount--; } String msg = Finalizing session, id + hse.getSession().getId() + ...; System.out.println(msg); CtlAudit.unknown(null, msg); } /** * pRetorna o nuacute;mero de sessotilde;es ativas/p * * @return sessotilde;es ativas */ public static long getActiveSession() { return sessionCount; } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IOException under tomcat 4.1.10!
Hi! Can someone tell me what this mean and if it is important? INFO: APR not loaded, disabling jni components: java.io.IOException: no jkjni in java.library.path Thanks A. Schmidt
AW: tomcat 4.1.10 mishandling nested variables in tags?
That's not the only problem. Expressions (%= %) are not converted to Strings before giving them to methods like encode() or include(). By now I have two examples: 1.) jsp:include .. ... jsp:param name=value value=%= 1 % / ... /jsp:include 2.) jsp:include page=%= new StringBuffer() % flush=true/ Both ways cause Exception because the value of the expression is directly used for methods that expect a string. Given that and other problems that have been mentioned today I would currently forget about using 4.1.10. (As the last tc version I used is 4.0.3, I can't make any recommendations) -Ursprüngliche Nachricht- Von: Dave Townsend [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. September 2002 16:08 An: [EMAIL PROTECTED] Betreff: tomcat 4.1.10 mishandling nested variables in tags? Just upgraded to 4.1.10 and found that my webapp no longer functions. I have tracked this down to a tag that uses nested tags. On the old version (4.0.4), immediately after the doStartTag call, the variables are declared for the jsp page, and their values read from the pageContext, then the jsp content of the tag is executed. On the new version after the doStartTag, the variables are declared and set to null and only have their values updated after the jsp content has been executed once. This means that all the variables are null on the first run through the tag which as far as I understand the spec is not correct. Is there any fix for this? Dave Dave -- 404. File not found. Should I fake it? (Y/N) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache 2.0.40/Tomcat 4.1.10 vhost problem
I'm having a problem accessing .jsp files when running Tomcat (inprocess - mod_jk2) via an Apache virtual host. I have three virtual hosts defined in the httpd.conf file (see below) with three webapps defined in server.xml (see below). Apache serves up my index.html just fine from vhost App1. When index.html tries to invoke a .jsp file, Tomcat can't find it. If I add the absolute path to the .jsp file, within index.html, everything works. It seems as though Tomcat is trying to serve up the .jsp file from the webapps root. Configuration: Windows 2000 Apache 2.0.40 Tomcat 4.1.10 index.html: This doesn't work html head titlevhost test/title /head body a href=jsp/vhosttest.jspvhost test/a /body /html This works html head titlevhost test/title /head body a href=/App1/jsp/vhosttest.jspvhost test/a /body /html httpd.conf: NameVirtualHost * VirtualHost * DocumentRoot C:/Tomcat/webapps/App1/htdocs ServerName App1 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App1.log Directory C:/Tomcat/webapps/App1/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App2/htdocs ServerName App2 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App2.log Directory C:/Tomcat/webapps/App2/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App3/htdocs ServerName App3 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App3.log Directory C:/Tomcat/webapps/App3/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost workers.properties: [uri:/App1] info App1 webapp in the default context. context=/App1 debug=0 [uri:/App1/servlet/*] info=Prefix mapping [uri:/App1/*.jsp] info=Extension mapping [uri:/App2] info=App2 webapp in the default context. context=/App2 debug=0 [uri:/App2/servlet/*] info=Prefix mapping [uri:/App2/*.jsp] info=Extension mapping [uri:/App3] info=App3 webapp in the default context. context=/App3 debug=0 [uri:/App3/servlet/*] info=Prefix mapping [uri:/App3/*.jsp] info=Extension mapping [uri:/App3/*] info=Map the whole webapp server.xml: !-- Tomcat App1 Context -- Context path=/App1 docBase=App1 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App1_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App2 Context -- Context path=/App2 docBase=App2 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App2_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App3 Context -- Context path=/App3 docBase=App3 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App3_log. suffix=.txt timestamp=true/ /Context -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem
What are your server.xml Host element definitions? Do you have one for each of the Apache virtual hosts? John -Original Message- From: Short, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:31 AM To: Tomcat Users List Subject: Apache 2.0.40/Tomcat 4.1.10 vhost problem I'm having a problem accessing .jsp files when running Tomcat (inprocess - mod_jk2) via an Apache virtual host. I have three virtual hosts defined in the httpd.conf file (see below) with three webapps defined in server.xml (see below). Apache serves up my index.html just fine from vhost App1. When index.html tries to invoke a .jsp file, Tomcat can't find it. If I add the absolute path to the .jsp file, within index.html, everything works. It seems as though Tomcat is trying to serve up the .jsp file from the webapps root. Configuration: Windows 2000 Apache 2.0.40 Tomcat 4.1.10 index.html: This doesn't work html head titlevhost test/title /head body a href=jsp/vhosttest.jspvhost test/a /body /html This works html head titlevhost test/title /head body a href=/App1/jsp/vhosttest.jspvhost test/a /body /html httpd.conf: NameVirtualHost * VirtualHost * DocumentRoot C:/Tomcat/webapps/App1/htdocs ServerName App1 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App1.log Directory C:/Tomcat/webapps/App1/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App2/htdocs ServerName App2 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App2.log Directory C:/Tomcat/webapps/App2/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App3/htdocs ServerName App3 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App3.log Directory C:/Tomcat/webapps/App3/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost workers.properties: [uri:/App1] info App1 webapp in the default context. context=/App1 debug=0 [uri:/App1/servlet/*] info=Prefix mapping [uri:/App1/*.jsp] info=Extension mapping [uri:/App2] info=App2 webapp in the default context. context=/App2 debug=0 [uri:/App2/servlet/*] info=Prefix mapping [uri:/App2/*.jsp] info=Extension mapping [uri:/App3] info=App3 webapp in the default context. context=/App3 debug=0 [uri:/App3/servlet/*] info=Prefix mapping [uri:/App3/*.jsp] info=Extension mapping [uri:/App3/*] info=Map the whole webapp server.xml: !-- Tomcat App1 Context -- Context path=/App1 docBase=App1 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App1_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App2 Context -- Context path=/App2 docBase=App2 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App2_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App3 Context -- Context path=/App3 docBase=App3 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App3_log. suffix=.txt timestamp=true/ /Context -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JNDi Lookup (JMS Topic Entity bean)
Hi, I've dredged through the archives and looked up all the documentation I could find before sending the mail. I am running on Win 2k, Tomcat 4.0.2, JDk 1.4 and J2EE RI 1.3.1. I have a SOAP servlet in a standalone Tomcat. It posts to a JMS topic and creates/access entity EJBs, both of which are defined in J2EE. I am having a problem with JNDI lookup. I can find the JMS TopicConnectiofactory if I use the following context factory; com.sun.enterprise.naming.SerialInitContextFactory. This causes an exception when I lookup the bean using the required context factory: com.sun.jndi.cosnaming.CNCtxFactory I have tried to use the InitialContext to lookup both resources, but with no luck as the JNDI names are not bound to the Tomcat JNDI context. Questions: 1. I have looked up the JNDI How-to but it is not clear where and how I would reference the TopicConnectionFactory which is defined, out of the box, with J2EE RI. 2. Do I ned to create such a reference/mapping in order to access these J2EE resources. Any ideas appreciated, as I am well and truly stuck. /Sean -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem
The missing link! I don't have Host definitions setup or see an example of the Host definition in the server.xml file. Would you mind pointing me in the direction where I can find documentation on this? Thanks!!! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: September 12, 2002 7:34 AM To: 'Tomcat Users List' Subject: RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem What are your server.xml Host element definitions? Do you have one for each of the Apache virtual hosts? John -Original Message- From: Short, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:31 AM To: Tomcat Users List Subject: Apache 2.0.40/Tomcat 4.1.10 vhost problem I'm having a problem accessing .jsp files when running Tomcat (inprocess - mod_jk2) via an Apache virtual host. I have three virtual hosts defined in the httpd.conf file (see below) with three webapps defined in server.xml (see below). Apache serves up my index.html just fine from vhost App1. When index.html tries to invoke a .jsp file, Tomcat can't find it. If I add the absolute path to the .jsp file, within index.html, everything works. It seems as though Tomcat is trying to serve up the .jsp file from the webapps root. Configuration: Windows 2000 Apache 2.0.40 Tomcat 4.1.10 index.html: This doesn't work html head titlevhost test/title /head body a href=jsp/vhosttest.jspvhost test/a /body /html This works html head titlevhost test/title /head body a href=/App1/jsp/vhosttest.jspvhost test/a /body /html httpd.conf: NameVirtualHost * VirtualHost * DocumentRoot C:/Tomcat/webapps/App1/htdocs ServerName App1 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App1.log Directory C:/Tomcat/webapps/App1/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App2/htdocs ServerName App2 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App2.log Directory C:/Tomcat/webapps/App2/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App3/htdocs ServerName App3 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App3.log Directory C:/Tomcat/webapps/App3/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost workers.properties: [uri:/App1] info App1 webapp in the default context. context=/App1 debug=0 [uri:/App1/servlet/*] info=Prefix mapping [uri:/App1/*.jsp] info=Extension mapping [uri:/App2] info=App2 webapp in the default context. context=/App2 debug=0 [uri:/App2/servlet/*] info=Prefix mapping [uri:/App2/*.jsp] info=Extension mapping [uri:/App3] info=App3 webapp in the default context. context=/App3 debug=0 [uri:/App3/servlet/*] info=Prefix mapping [uri:/App3/*.jsp] info=Extension mapping [uri:/App3/*] info=Map the whole webapp server.xml: !-- Tomcat App1 Context -- Context path=/App1 docBase=App1 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App1_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App2 Context -- Context path=/App2 docBase=App2 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App2_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App3 Context -- Context path=/App3 docBase=App3 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App3_log. suffix=.txt timestamp=true/ /Context -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
registering variables
How can I create an variable within an taglib? I would like to be able to create an variable accesible to my jsp page. -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IOException under tomcat 4.1.10!
I don't know very well the JK2 connector, but I think that you have configured Tomcat to function with the jni channel. And you don't specify the apr.NativeSo parameter. More explication here. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 16:25 À : Tomcat Users List Objet : IOException under tomcat 4.1.10! Hi! Can someone tell me what this mean and if it is important? INFO: APR not loaded, disabling jni components: java.io.IOException: no jkjni in java.library.path Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem
There should be a Host element in server.xml for localhost. It looks like this: Host name=xxx.yyy.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true That's from a 4.1.10 server.xml. I'm still getting familiar with 4.1.10, I think you might need to tweak the Engine element as well. So, you would want something like this: Host name=host1 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Host name=host2 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Host name=host3 debug=0 appBase=webapps unpackWARs=true autoDeploy=true John -Original Message- From: Short, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:40 AM To: 'Tomcat Users List' Subject: RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem The missing link! I don't have Host definitions setup or see an example of the Host definition in the server.xml file. Would you mind pointing me in the direction where I can find documentation on this? Thanks!!! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: September 12, 2002 7:34 AM To: 'Tomcat Users List' Subject: RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem What are your server.xml Host element definitions? Do you have one for each of the Apache virtual hosts? John -Original Message- From: Short, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:31 AM To: Tomcat Users List Subject: Apache 2.0.40/Tomcat 4.1.10 vhost problem I'm having a problem accessing .jsp files when running Tomcat (inprocess - mod_jk2) via an Apache virtual host. I have three virtual hosts defined in the httpd.conf file (see below) with three webapps defined in server.xml (see below). Apache serves up my index.html just fine from vhost App1. When index.html tries to invoke a .jsp file, Tomcat can't find it. If I add the absolute path to the .jsp file, within index.html, everything works. It seems as though Tomcat is trying to serve up the .jsp file from the webapps root. Configuration: Windows 2000 Apache 2.0.40 Tomcat 4.1.10 index.html: This doesn't work html head titlevhost test/title /head body a href=jsp/vhosttest.jspvhost test/a /body /html This works html head titlevhost test/title /head body a href=/App1/jsp/vhosttest.jspvhost test/a /body /html httpd.conf: NameVirtualHost * VirtualHost * DocumentRoot C:/Tomcat/webapps/App1/htdocs ServerName App1 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App1.log Directory C:/Tomcat/webapps/App1/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App2/htdocs ServerName App2 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App2.log Directory C:/Tomcat/webapps/App2/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App3/htdocs ServerName App3 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App3.log Directory C:/Tomcat/webapps/App3/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost workers.properties: [uri:/App1] info App1 webapp in the default context. context=/App1 debug=0 [uri:/App1/servlet/*] info=Prefix mapping [uri:/App1/*.jsp] info=Extension mapping [uri:/App2] info=App2 webapp in the default context. context=/App2 debug=0 [uri:/App2/servlet/*] info=Prefix mapping [uri:/App2/*.jsp] info=Extension mapping [uri:/App3] info=App3 webapp in the default context. context=/App3 debug=0 [uri:/App3/servlet/*] info=Prefix mapping [uri:/App3/*.jsp] info=Extension mapping [uri:/App3/*] info=Map the whole webapp server.xml: !-- Tomcat App1 Context -- Context path=/App1 docBase=App1 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App1_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App2 Context -- Context path=/App2 docBase=App2 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App2_log. suffix=.txt timestamp=true/ /Context
RE: registering variables
You could put it in the pageContext (or even in the session or application context). That will require some syntactic clutter (first pageContext.setAttribute(variableName,objectVariable); then (in the jsp page) ObjectType myVariable = (ObjectType)pageContext.getAttribute(variableName,objectVariable); ) and opens the possibilitie of errors that are hard to debug (what if there is already an attribute with that name?) but is much safer than directly creating variables in other scopes. It is one of javas merits that this is not possible (at least not to my knowledge). greetings Andreas Mohrig -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:42 PM To: Tomcat Users List Subject: registering variables How can I create an variable within an taglib? I would like to be able to create an variable accesible to my jsp page. -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues
Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : - Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / - Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=10 / - Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / - Host name=ebusiness.corp.teradyne.com debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true / Context path=/manager docBase=manager debug=0 privileged=true / + Context path=/examples docBase=examples debug=0 reloadable=true +crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true / Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord / --f(clean); Environment name=maxExemptions type=java.lang.Integer value=15 / Parameter name=context.param.name value=context.param.value override=false / Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource / - ResourceParams name=jdbc/EmployeeAppDb - parameter nameuser/name valuesa/value /parameter - parameter namepassword/name value / /parameter - parameter namedriverClassName/name valueorg.hsql.jdbcDriver/value /parameter - parameter namedriverName/name valuejdbc:HypersonicSQL:database/value /parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session / - ResourceParams name=mail/Session - parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host /Engine /Service - Service name=Tomcat-Apache - Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server 2. workers.properties looks like this: # # workers.properties # worker.list=ajp12, ajp13 workers.tomcat_home=/export/home/eapps/apacheTomCat/jakarta-tomcat-4.0.4 workers.java_home=/usr/java1.2 ps=/ worker.ajp13.port=8009 worker.ajp13.host=ebusiness.corp.teradyne.com worker.ajp13.type=ajp13 # # END workers.properties # 3. JDK version is 1.2.2_05a 4. httpd.conf contains the following lines LoadModule jk_module libexec/mod_jk.so (I even downloaded another so than then the one I have compiled) AddModule mod_jk.c JkWorkersFile /apache-dir/conf/workers.properties JkLogFile /apache-dir/logs/mod_jk.log JkLogLevel debug JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 it can not be simpler than that configuration wise, at this point It is becoming frustrating not having a clue what's going on! Thanks for your help! Anthony Milbourne wrote:Hi I had a problem which looked a bit like that... It was caused by the fact that the default workers.properties file that comes with mod_jk 4.0.4 doesn't seem to work with tomcat 4.0.4. Check the workers.properties file to see if it mentions ajp14. If it does then that is probably your problem... To fix it take a look at the example workers.properties in the (very good) HowTo by John Turner: http://www.johnturner.com/howto/apache-tomcat-howto.html I hope that helps... Anthony. -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 11 September 2002 22:34 To: [EMAIL PROTECTED] Subject: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues -- Forwarded by Charbel Achkar/Bos/Teradyne on 09/11/2002 05:34 PM --- Charbel Achkar 09/11/2002 05:20 PM To: [EMAIL PROTECTED] cc: Subject: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk Hello, I have installed and configured Apache 1.3.26 with modssl and openssl + tomcat 4.0.4 with the corresponding Apache mod_jk. I started tomcat then apache and when I attempted to access the index.jsp under ROOT, the browser
Apache 1.3.26 to Tomcat 4.0.4 PROBLEM with mod-Jk on solaris
Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : - Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / - Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=10 / - Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / - Host name=ebusiness.corp.teradyne.com debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true / Context path=/manager docBase=manager debug=0 privileged=true / + Context path=/examples docBase=examples debug=0 reloadable=true +crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true / Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord / --f(clean); Environment name=maxExemptions type=java.lang.Integer value=15 / Parameter name=context.param.name value=context.param.value override=false / Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource / - ResourceParams name=jdbc/EmployeeAppDb - parameter nameuser/name valuesa/value /parameter - parameter namepassword/name value / /parameter - parameter namedriverClassName/name valueorg.hsql.jdbcDriver/value /parameter - parameter namedriverName/name valuejdbc:HypersonicSQL:database/value /parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session / - ResourceParams name=mail/Session - parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host /Engine /Service - Service name=Tomcat-Apache - Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server 2. workers.properties looks like this: # # workers.properties # worker.list=ajp12, ajp13 workers.tomcat_home=/export/home/eapps/apacheTomCat/jakarta-tomcat-4.0.4 workers.java_home=/usr/java1.2 ps=/ worker.ajp13.port=8009 worker.ajp13.host=ebusiness.corp.teradyne.com worker.ajp13.type=ajp13 # # END workers.properties # 3. JDK version is 1.2.2_05a 4. httpd.conf contains the following lines LoadModule jk_module libexec/mod_jk.so (I even downloaded another so than then the one I have compiled) AddModule mod_jk.c JkWorkersFile /apache-dir/conf/workers.properties JkLogFile /apache-dir/logs/mod_jk.log JkLogLevel debug JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 it can not be simpler than that configuration wise, at this point It is becoming frustrating not having a clue what's going on! Thanks for your help! - Do you Yahoo!? Yahoo! News - Today's headlines
RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues
What do the log files say? John -Original Message- From: Habibak haAlbek [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:56 AM To: Tomcat Users List Subject: RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues
This is a log file nod_jk.log snippet. Its been logging this over and over and over, no matter what changes I made :) [Thu Sep 12 10:31:21 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Sep 12 10:31:21 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp' [Thu Sep 12 10:31:21 2002] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Thu Sep 12 10:31:21 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Thu Sep 12 10:31:21 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Thu Sep 12 10:31:21 2002] [jk_ajp_common.c (1355)]: Into jk_worker_t::get_endpoint [Thu Sep 12 10:31:21 2002] [jk_ajp_common.c (1079)]: Into jk_endpoint_t::service [Thu Sep 12 10:31:21 2002] [jk_ajp_common.c (280)]: Into ajp_marshal_into_msgb [Thu Sep 12 10:31:21 2002] [jk_ajp_common.c (413)]: ajp_marshal_into_msgb - Done [Thu Sep 12 10:31:21 2002] [jk_connect.c (116)]: Into jk_open_socket [Thu Sep 12 10:31:21 2002] [jk_connect.c (123)]: jk_open_socket, try to connect socket = 9 [Thu Sep 12 10:31:21 2002] [jk_connect.c (132)]: jk_open_socket, after connect ret = 0 [Thu Sep 12 10:31:21 2002] [jk_connect.c (140)]: jk_open_socket, set TCP_NODELAY to on [Thu Sep 12 10:31:21 2002] [jk_connect.c (148)]: jk_open_socket, return, sd = 9 [Thu Sep 12 10:31:21 2002] [jk_ajp_common.c (589)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 9 [Thu Sep 12 10:31:21 2002] [jk_ajp_common.c (613)]: sending to ajp13 #380 [Thu Sep 12 10:31:21 2002] [jk_ajp_common.c (854)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Thu Sep 12 10:32:00 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Sep 12 10:32:00 2002] [jk_ajp_common.c (1013)]: Error reading reply [Thu Sep 12 10:32:00 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 Turner, John wrote: What do the log files say? John -Original Message- From: Habibak haAlbek [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:56 AM To: Tomcat Users List Subject: RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! News - Today's headlines
Réf. : Http Session
-- Ok, not so much answer huh !! Is my question stupid ? By the way, i'm adding one question to the rest. does Tomcat stores session attributes on file system. If yes, is it possible to disable this function or at least to prevent him to read them back after a reboot ? Thanks in advance for your help. -- A++ Stéphane -REPLY FOR - Hi All ! I'm not sure I've understand everything about Session !! I'm using Tomcat 4.0 and I use a Filter to check authentification. This filter filters everything except the connection page. what I'm doing in doFilter : ---CODE- HttpSession session = null; if (request instanceof HttpServletRequest) { session = ((HttpServletRequest) request).getSession(); } MyObject connex = null; if (session != null) { connex = (MyObject) session.getAttribute(USER_PARAM); if (connex != null) { if (connex.getUser() != null) { // Continue ! chain.doFilter(request, response); return; } } } connex = methodToCreateConnexIfFormFiledsArePresents(request); if (connex != null) { // Get in ! session = ((HttpServletRequest) request).getSession(true); session.setAttribute(USER_PARAM, connex); chain.doFilter(request, response); } else { // Get out ! sendConnectionScreen(response); }} ---END CODE- My problem : A client came into the site and connect. I goes inside and wait. I'm rebooting the server. (Tomcat should be reinitialise no ?? :-) Then the client make another request and the filter says ok, continue. I can even log the name of the user found in the MyObject connex. but myClient has never reconnect ! where am I wrong ?? where is the session attributes stored ?? Thanks in advance for your help. -- A++ Stéphane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache 2, mod_jk2, inprocess, w2k, classpath ?
Hello, I'm trying to setup my Apache 2.0.40 with mod_jk2 and tomcat 4.1.10 When using the AJP13 connector or http connectors then things work fine. But when I specify to use the inprocess/jni connection, then I get startup problems for the VM. Looking at the stderr.log file, I see that it doesn't find the needed jar files who are located in TOMCAT_HOME/server/lib and TOMCAT_HOME/lib/... etc. When I add one .jar to the OPT=-Djava.class.path= line in the workers2.properties file, then this class loads, but it stops at the next missing jar file. Must I realy add all 32 jar files located in TOMCAT_HOME/server/lib and TOMCAT_HOME/common/lib manually to get it working André -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 1.3.26 to Tomcat 4.0.4 PROBLEM with mod-Jk on solaris
First Engine name=Standalone defaultHost=localhost debug=0 must be : Engine name=Standalone defaultHost=ebusiness.corp.teradyne.com debug=0 In your workers.properties, you have: worker.ajp13.host=ebusiness.corp.teradyne.com Is ebusiness.corp.teradyne.com knowned? ebusiness.corp.teradyne.com must be a machine name. You must specify the host in the workers.properties when Tomcat is installed in a different machine than Apache. If it's not the case you can let that as localhost. -Message d'origine- De : Habibak haAlbek [mailto:[EMAIL PROTECTED]] Envoye : jeudi 12 septembre 2002 16:57 A : [EMAIL PROTECTED] Objet : Apache 1.3.26 to Tomcat 4.0.4 PROBLEM with mod-Jk on solaris Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : - Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / - Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=10 / - Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / - Host name=ebusiness.corp.teradyne.com debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true / Context path=/manager docBase=manager debug=0 privileged=true / + Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true / Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord / --f(clean); Environment name=maxExemptions type=java.lang.Integer value=15 / Parameter name=context.param.name value=context.param.value override=false / Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource / - ResourceParams name=jdbc/EmployeeAppDb - parameter nameuser/name valuesa/value /parameter - parameter namepassword/name value / /parameter - parameter namedriverClassName/name valueorg.hsql.jdbcDriver/value /parameter - parameter namedriverName/name valuejdbc:HypersonicSQL:database/value /parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session / - ResourceParams name=mail/Session - parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host /Engine /Service - Service name=Tomcat-Apache - Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server 2. workers.properties looks like this: # # workers.properties # worker.list=ajp12, ajp13 workers.tomcat_home=/export/home/eapps/apacheTomCat/jakarta-tomcat-4.0.4 workers.java_home=/usr/java1.2 ps=/ worker.ajp13.port=8009 worker.ajp13.host=ebusiness.corp.teradyne.com worker.ajp13.type=ajp13 # # END workers.properties # 3. JDK version is 1.2.2_05a 4. httpd.conf contains the following lines LoadModule jk_module libexec/mod_jk.so (I even downloaded another so than then the one I have compiled) AddModule mod_jk.c JkWorkersFile /apache-dir/conf/workers.properties JkLogFile /apache-dir/logs/mod_jk.log JkLogLevel debug JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 it can not be simpler than that configuration wise, at this point It is becoming frustrating not having a clue what's going on! Thanks for your help! - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem
Thanks, I'll check this out. Is there Tomcat documentation that covers this stuff? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: September 12, 2002 7:48 AM To: 'Tomcat Users List' Subject: RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem There should be a Host element in server.xml for localhost. It looks like this: Host name=xxx.yyy.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true That's from a 4.1.10 server.xml. I'm still getting familiar with 4.1.10, I think you might need to tweak the Engine element as well. So, you would want something like this: Host name=host1 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Host name=host2 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Host name=host3 debug=0 appBase=webapps unpackWARs=true autoDeploy=true John -Original Message- From: Short, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:40 AM To: 'Tomcat Users List' Subject: RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem The missing link! I don't have Host definitions setup or see an example of the Host definition in the server.xml file. Would you mind pointing me in the direction where I can find documentation on this? Thanks!!! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: September 12, 2002 7:34 AM To: 'Tomcat Users List' Subject: RE: Apache 2.0.40/Tomcat 4.1.10 vhost problem What are your server.xml Host element definitions? Do you have one for each of the Apache virtual hosts? John -Original Message- From: Short, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:31 AM To: Tomcat Users List Subject: Apache 2.0.40/Tomcat 4.1.10 vhost problem I'm having a problem accessing .jsp files when running Tomcat (inprocess - mod_jk2) via an Apache virtual host. I have three virtual hosts defined in the httpd.conf file (see below) with three webapps defined in server.xml (see below). Apache serves up my index.html just fine from vhost App1. When index.html tries to invoke a .jsp file, Tomcat can't find it. If I add the absolute path to the .jsp file, within index.html, everything works. It seems as though Tomcat is trying to serve up the .jsp file from the webapps root. Configuration: Windows 2000 Apache 2.0.40 Tomcat 4.1.10 index.html: This doesn't work html head titlevhost test/title /head body a href=jsp/vhosttest.jspvhost test/a /body /html This works html head titlevhost test/title /head body a href=/App1/jsp/vhosttest.jspvhost test/a /body /html httpd.conf: NameVirtualHost * VirtualHost * DocumentRoot C:/Tomcat/webapps/App1/htdocs ServerName App1 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App1.log Directory C:/Tomcat/webapps/App1/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App2/htdocs ServerName App2 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App2.log Directory C:/Tomcat/webapps/App2/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost * DocumentRoot C:/Tomcat/webapps/App3/htdocs ServerName App3 ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html ErrorLog logs/App3.log Directory C:/Tomcat/webapps/App3/htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost workers.properties: [uri:/App1] info App1 webapp in the default context. context=/App1 debug=0 [uri:/App1/servlet/*] info=Prefix mapping [uri:/App1/*.jsp] info=Extension mapping [uri:/App2] info=App2 webapp in the default context. context=/App2 debug=0 [uri:/App2/servlet/*] info=Prefix mapping [uri:/App2/*.jsp] info=Extension mapping [uri:/App3] info=App3 webapp in the default context. context=/App3 debug=0 [uri:/App3/servlet/*] info=Prefix mapping [uri:/App3/*.jsp] info=Extension mapping [uri:/App3/*] info=Map the whole webapp server.xml: !-- Tomcat App1 Context -- Context path=/App1 docBase=App1 debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_App1_log. suffix=.txt timestamp=true/ /Context !-- Tomcat App2 Context -- Context
RE: Listener with Tomcat4.0.4
Thanks a lot it works -Original Message- From: Siddharth [mailto:[EMAIL PROTECTED]] Sent: 12 September 2002 14:03 To: Tomcat Users List Subject: Re: Listener with Tomcat4.0.4 replace web-app_2_2.dtd With web-app_2_3.dtd in your web.xml Siddharth - Original Message - From: Heligon Sandra [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 11, 2002 10:10 PM Subject: Listener with Tomcat4.0.4 Hi, I placed Listeners in my web.xml file !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- Application start/shut down listener -- listener listener-class MyPackage.My_ServletContextListener /listener-class /listener and when I compile I have the following error Exception initialising TldLocationsCache: XML parsing error on file WEB-INF/web.xml: Element type listener must be declared. My web.xml points on the updated DTD web-app_2_2 I don't underrstand why I have this error. Thanks for your help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2, mod_jk2, inprocess, w2k, classpath ?
You could just specify the directory where your jars are in the java.class.path. -Message d'origine- De : Andre Schild [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 17:11 À : [EMAIL PROTECTED] Objet : Apache 2, mod_jk2, inprocess, w2k, classpath ? Hello, I'm trying to setup my Apache 2.0.40 with mod_jk2 and tomcat 4.1.10 When using the AJP13 connector or http connectors then things work fine. But when I specify to use the inprocess/jni connection, then I get startup problems for the VM. Looking at the stderr.log file, I see that it doesn't find the needed jar files who are located in TOMCAT_HOME/server/lib and TOMCAT_HOME/lib/... etc. When I add one .jar to the OPT=-Djava.class.path= line in the workers2.properties file, then this class loads, but it stops at the next missing jar file. Must I realy add all 32 jar files located in TOMCAT_HOME/server/lib and TOMCAT_HOME/common/lib manually to get it working André -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 1.3.26 to Tomcat 4.0.4 PROBLEM with mod-Jk on solaris
yes. It is the name of a machine. I changed the name from localhost to the machine name even tho tomcat and apache are on the same machine. still a problem. En tous cas Merci Monsieur! [EMAIL PROTECTED] wrote:First must be : debug=0 In your workers.properties, you have: worker.ajp13.host=ebusiness.corp.teradyne.com Is ebusiness.corp.teradyne.com knowned? ebusiness.corp.teradyne.com must be a machine name. You must specify the host in the workers.properties when Tomcat is installed in a different machine than Apache. If it's not the case you can let that as localhost. -Message d'origine- De : Habibak haAlbek [mailto:[EMAIL PROTECTED]] Envoye : jeudi 12 septembre 2002 16:57 A : [EMAIL PROTECTED] Objet : Apache 1.3.26 to Tomcat 4.0.4 PROBLEM with mod-Jk on solaris Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : - - port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 / minProcessors=5 maxProcessors=75 acceptCount=10 debug=10 / - prefix=catalina_log. suffix=.txt timestamp=true / - unpackWARs=true append=true forwardAll=false / directory=logs prefix=localhost_access_log. suffix=.txt pattern=common / prefix=localhost_log. suffix=.txt timestamp=true / + crossContext=true prefix=localhost_examples_log. suffix=.txt timestamp=true / home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord / --f(clean); override=false / type=javax.sql.DataSource / - - user sa - password - driverClassName org.hsql.jdbcDriver - driverName jdbc:HypersonicSQL:database / - - mail.smtp.host localhost - - name=Apache debug=0 prefix=apache_log. suffix=.txt timestamp=true / 2. workers.properties looks like this: # # workers.properties # worker.list=ajp12, ajp13 workers.tomcat_home=/export/home/eapps/apacheTomCat/jakarta-tomcat-4.0.4 workers.java_home=/usr/java1.2 ps=/ worker.ajp13.port=8009 worker.ajp13.host=ebusiness.corp.teradyne.com worker.ajp13.type=ajp13 # # END workers.properties # 3. JDK version is 1.2.2_05a 4. httpd.conf contains the following lines LoadModule jk_module libexec/mod_jk.so (I even downloaded another so than then the one I have compiled) AddModule mod_jk.c JkWorkersFile /apache-dir/conf/workers.properties JkLogFile /apache-dir/logs/mod_jk.log JkLogLevel debug JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 it can not be simpler than that configuration wise, at this point It is becoming frustrating not having a clue what's going on! Thanks for your help! - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! News - Today's headlines
Tomcat 4.1.10 starting problems under WIN2000!
Hi! When I want to start Tomcat 4.1.10 I get the Error- Message can´t find C:\j2sdk1.4.0\bin\bin. He has the wrong path, because what he searches is in C:\J2SDK1.4.0\bin. How can I correct this? Thanks A. Schmidt
other applications kill tomcat on Solaris
Howdy We have a application that we have installed at user sites. A couple of times we have seen tomcat die when another application is started. I didn't get a lot of time to diagnose it, but has anyone seen this before or have some suggestions to try when I go back on site? TIA Brian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Antw: RE: Apache 2, mod_jk2, inprocess, w2k, classpath ?
Somtimes it's just too obvious ! Thanks a lot. André [EMAIL PROTECTED] 12.09.2002 17:21:57 You could just specify the directory where your jars are in the java.class.path. -Message d'origine- De : Andre Schild [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 17:11 À : [EMAIL PROTECTED] Objet : Apache 2, mod_jk2, inprocess, w2k, classpath ? Hello, I'm trying to setup my Apache 2.0.40 with mod_jk2 and tomcat 4.1.10 When using the AJP13 connector or http connectors then things work fine. But when I specify to use the inprocess/jni connection, then I get startup problems for the VM. Looking at the stderr.log file, I see that it doesn't find the needed jar files who are located in TOMCAT_HOME/server/lib and TOMCAT_HOME/lib/... etc. When I add one .jar to the OPT=-Djava.class.path= line in the workers2.properties file, then this class loads, but it stops at the next missing jar file. Must I realy add all 32 jar files located in TOMCAT_HOME/server/lib and TOMCAT_HOME/common/lib manually to get it working André -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
New Connector Binaries Available
Hello - Well, it was a brutal, bloody battle, but I managed to build mod_jk and mod_jk2 for both Apache 1.3 and Apache 2.0.40 on RedHat Linux 7.2. All four files (mod_jk and mod_jk2 for both Apache versions) were built from 4.1.10 source. I haven't had a chance to test any of them against my Tomcat 4.1.10 server yet, so caveat emptor. They are available here: http://www.johnturner.com/howto I will be posting a build HOWTO as soon as I can. Perhaps others can use it to build these babies on other platforms. It took a wee bit o' hacking to get the connectors built, including fixing an error in mod_jk2.c. John [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.10 starting problems under WIN2000!
What is the value of JAVA_HOME? Does it have a trailing bin? It shouldn't. John -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:27 AM To: Tomcat Users List Subject: Tomcat 4.1.10 starting problems under WIN2000! Hi! When I want to start Tomcat 4.1.10 I get the Error- Message can´t find C:\j2sdk1.4.0\bin\bin. He has the wrong path, because what he searches is in C:\J2SDK1.4.0\bin. How can I correct this? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache authentication info failed to pass to Tomcat 4.0.3
I don't see it in nightly build list. Can I grab it from CVS tree? If so, what's the module name I can use to download latest coyote? Thanks, Xiaoyu -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:21 AM To: Tomcat Users List Subject: Re: Apache authentication info failed to pass to Tomcat 4.0.3 The Coyote connector is broken in this respect. Remmy recently fixed it in CVS post Tomcat-4.1.10. Grab a nightly build and use the coyote jar files from there. Jake At 08:14 AM 9/12/2002 -0400, you wrote: Hi all, I configured Apache to use basic authentication and tried to pass the successful authentication info to Tomcat through AJP13 connector. This approach works great in Apache 1.3.26 with Tomcat 4.0.3, failes with Tomcat 4.0.4, 4.1.10. Tomcat 4.1.10's AJP13 connector and Coyote connector was tried with no luck. I would like to know if anyone else has similar experience and if it's a potential bug in Tomcat 4.0.3 AJP13 support implementation. Thanks, Xiaoyu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: registering variables
I don't know Struts, but if it is possible to register variables in other scopes with the help of Struts it gives me the creeps/makes me shudder and would not shine a good light on Java as a programming language. Why should you want to register a variable in the first place? Java is good for encapsulation and information hiding. Data transport can be managed via return values of method calls or if there is absolutely no other way over global contexts (which is frightful by itself). What you are talking about would undermine the foundations of the Java programming language (in my humble opinion as a programmer). But I'm willing to learn and to broaden my perspective, so if you have a case where it is absolutely necessary (or even practically/elegant or otherwise useful) to do what you want to do, please let me know about it. Andreas Mohrig -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 5:16 PM To: Tomcat Users List Subject: RE: registering variables Ok, but this is an attribute, not an variable really. There isn't a way I can register a variable? Like in Strut's TE tags? On Thu, 2002-09-12 at 11:57, Andreas Mohrig wrote: You could put it in the pageContext (or even in the session or application context). That will require some syntactic clutter (first pageContext.setAttribute(variableName,objectVariable); then (in the jsp page) ObjectType myVariable = (ObjectType)pageContext.getAttribute(variableName,objectVariable); ) and opens the possibilitie of errors that are hard to debug (what if there is already an attribute with that name?) but is much safer than directly creating variables in other scopes. It is one of javas merits that this is not possible (at least not to my knowledge). greetings Andreas Mohrig -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:42 PM To: Tomcat Users List Subject: registering variables How can I create an variable within an taglib? I would like to be able to create an variable accesible to my jsp page. -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk.conf-auto not updated
I have the following tomcat directory: CATALINA_HOME\webapps examples tomcat-docs webdav manager newapp The sub-directory newapp has been created when I have unzipped a file newapp.zip. I have no newapp.war. I can run all the applications except the newapp, I found that the mod_jk.conf-auto doesn't include the following lines: JkMount /newapp ajp13 JkMount /newapp/* ajp13 how is it possible ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk.conf-auto not updated
Do you have a Context element in server.xml for newapp? John -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:37 AM To: '[EMAIL PROTECTED]' Subject: mod_jk.conf-auto not updated I have the following tomcat directory: CATALINA_HOME\webapps examples tomcat-docs webdav manager newapp The sub-directory newapp has been created when I have unzipped a file newapp.zip. I have no newapp.war. I can run all the applications except the newapp, I found that the mod_jk.conf-auto doesn't include the following lines: JkMount /newapp ajp13 JkMount /newapp/* ajp13 how is it possible ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Internal Server Error
Hi, I get an Internal Server Error very often after an idle time of some minutes. What can I do? Platform: - Win NT / Win 2000 - Apache 1.3.26 - mod_jk - Tomcat 4.0.3 (P.S.: on a linux system it is stable and we have no problems! This error occurs only on Windows machines). Greetings Michael -- --- Michael Timpe eMail: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: registering variables
Well, actually I'm talking about the TagExtraInfo. With it, you can register variables in the tag scope... I would like to dinamically create these variables. I will not enter in details of why I want to do that, but it's relative to data access... It's possible or not? Maybe I can make a TagExtraInfo that grabs data from it related tag? That's possible? I mean, you have an DoSomethingTag and a DoSomethingExtraInfoTag. It's possible to DoSomethingExtraInfoTag access DoSomethingTag data? On Thu, 2002-09-12 at 12:36, Andreas Mohrig wrote: I don't know Struts, but if it is possible to register variables in other scopes with the help of Struts it gives me the creeps/makes me shudder and would not shine a good light on Java as a programming language. Why should you want to register a variable in the first place? Java is good for encapsulation and information hiding. Data transport can be managed via return values of method calls or if there is absolutely no other way over global contexts (which is frightful by itself). What you are talking about would undermine the foundations of the Java programming language (in my humble opinion as a programmer). But I'm willing to learn and to broaden my perspective, so if you have a case where it is absolutely necessary (or even practically/elegant or otherwise useful) to do what you want to do, please let me know about it. Andreas Mohrig -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 5:16 PM To: Tomcat Users List Subject: RE: registering variables Ok, but this is an attribute, not an variable really. There isn't a way I can register a variable? Like in Strut's TE tags? On Thu, 2002-09-12 at 11:57, Andreas Mohrig wrote: You could put it in the pageContext (or even in the session or application context). That will require some syntactic clutter (first pageContext.setAttribute(variableName,objectVariable); then (in the jsp page) ObjectType myVariable = (ObjectType)pageContext.getAttribute(variableName,objectVariable); ) and opens the possibilitie of errors that are hard to debug (what if there is already an attribute with that name?) but is much safer than directly creating variables in other scopes. It is one of javas merits that this is not possible (at least not to my knowledge). greetings Andreas Mohrig -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:42 PM To: Tomcat Users List Subject: registering variables How can I create an variable within an taglib? I would like to be able to create an variable accesible to my jsp page. -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.10 starting problems under WIN2000!
set JAVA_HOME to c:\jdsk1.4.0 not c:\jdsk1.4.0\bin -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:27 AM To: Tomcat Users List Subject: Tomcat 4.1.10 starting problems under WIN2000! Hi! When I want to start Tomcat 4.1.10 I get the Error- Message can´t find C:\j2sdk1.4.0\bin\bin. He has the wrong path, because what he searches is in C:\J2SDK1.4.0\bin. How can I correct this? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
difficulties using log4j
Has anyone run into any difficulties getting log4j 1.2.26 working in Tomcat? It works fine for me if I run startup.bat from the command line. However, if I try to run from the start menu (D:\j2sdk1.4.0_02\bin\java.exe -jar -Duser.dir=C:\Program Files\Apache Group\Jakarta\tomcat-4.0.4 C:\Program Files\Apache Group\Jakarta\tomcat-4.0.4\bin\bootstrap.jar start) or as an NT service (C:\Program Files\Apache Group\Jakarta\tomcat-4.0.4\bin\tomcat.exe) my logging configuration file is never read. On another note, why are there so many ways to start tomcat? Why doesn't the service and the start menu use the startup.bat file?
Re: Tomcat 4.1.10 starting problems under WIN2000!
Thanks! That´s because the JSPs doesn´t work. Tomcat wants to copy information in a folder and he can´t! Thanks A. Schmidt - Original Message - From: Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 5:43 PM Subject: RE: Tomcat 4.1.10 starting problems under WIN2000! set JAVA_HOME to c:\jdsk1.4.0 not c:\jdsk1.4.0\bin -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:27 AM To: Tomcat Users List Subject: Tomcat 4.1.10 starting problems under WIN2000! Hi! When I want to start Tomcat 4.1.10 I get the Error- Message can´t find C:\j2sdk1.4.0\bin\bin. He has the wrong path, because what he searches is in C:\J2SDK1.4.0\bin. How can I correct this? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: registering variables
Hey, if I register as PAGE_SCOPE it doesn't do the job? On Thu, 2002-09-12 at 12:43, Felipe Schnack wrote: Well, actually I'm talking about the TagExtraInfo. With it, you can register variables in the tag scope... I would like to dinamically create these variables. I will not enter in details of why I want to do that, but it's relative to data access... It's possible or not? Maybe I can make a TagExtraInfo that grabs data from it related tag? That's possible? I mean, you have an DoSomethingTag and a DoSomethingExtraInfoTag. It's possible to DoSomethingExtraInfoTag access DoSomethingTag data? On Thu, 2002-09-12 at 12:36, Andreas Mohrig wrote: I don't know Struts, but if it is possible to register variables in other scopes with the help of Struts it gives me the creeps/makes me shudder and would not shine a good light on Java as a programming language. Why should you want to register a variable in the first place? Java is good for encapsulation and information hiding. Data transport can be managed via return values of method calls or if there is absolutely no other way over global contexts (which is frightful by itself). What you are talking about would undermine the foundations of the Java programming language (in my humble opinion as a programmer). But I'm willing to learn and to broaden my perspective, so if you have a case where it is absolutely necessary (or even practically/elegant or otherwise useful) to do what you want to do, please let me know about it. Andreas Mohrig -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 5:16 PM To: Tomcat Users List Subject: RE: registering variables Ok, but this is an attribute, not an variable really. There isn't a way I can register a variable? Like in Strut's TE tags? On Thu, 2002-09-12 at 11:57, Andreas Mohrig wrote: You could put it in the pageContext (or even in the session or application context). That will require some syntactic clutter (first pageContext.setAttribute(variableName,objectVariable); then (in the jsp page) ObjectType myVariable = (ObjectType)pageContext.getAttribute(variableName,objectVariable); ) and opens the possibilitie of errors that are hard to debug (what if there is already an attribute with that name?) but is much safer than directly creating variables in other scopes. It is one of javas merits that this is not possible (at least not to my knowledge). greetings Andreas Mohrig -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:42 PM To: Tomcat Users List Subject: registering variables How can I create an variable within an taglib? I would like to be able to create an variable accesible to my jsp page. -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
upgrading to 4.1!
hey everyone, I'm been using tomcat 4.0.3 and apache 1.3 connecting with mod_webapp, and it's been working spiffy, except for one problem. every now and again, it will only serve half a jsp page. it will send data, and then just stop before it serves the whole page. the logs show nothing out of the ordinary (no errors). has anyone else had this problem? anyways, I am wishfully thinking that upgrading to tomcat 4.1 will somehow magically fix all my problems, but I'm having some troubles. even though I am waiting for tomcat to start, and then restarting apache, etc, I am still getting the infamous Web application not yet deployed, even though apache claims to have deployed it. here's what apache says at startup: [Thu Sep 12 11:59:56 2002] 17703 (pr_warp.c:62) WARP provider initialized [Thu Sep 12 11:59:56 2002] 17703 (wa_main.c:101) WebApp Library initialized [Thu Sep 12 11:59:56 2002] 17703 (wa_config.c:167) Created connection warpConn ction (Prov: warp Param: web1:8008) [Thu Sep 12 11:59:56 2002] 17703 (wa_config.c:126) Created virtual host web1.d n.com:80 [Thu Sep 12 11:59:56 2002] 17703 (wa_config.c:100) Created application example in path /examples/ [Thu Sep 12 11:59:56 2002] 17703 (wa_main.c:187) Application examples deployed or http://hostname.myserver.com:80/examples/ (Conn: warpConnection) here's the relavant bits from my httpd.conf file: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp myserver:8008 WebAppDeploy examples warpConnection /examples WebAppDeploy contest warpConnection /contest does anyone have *any* ideas? I'm sort of reaching the end of my rope on this, and am not sure what to do! thanks in advance for your help! --paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues
John, I downgraded from tomcat 4.0.4 to 3.3.1 . I left the httpd.conf and workers.properties intact with the exception of the new tomcat home variable in workers file. I even kept the mod_jk.so I downloaded from your site for apache 1.3.26 and tomcat 4.0.4. This time I did not touch server.xml (which appears to look significantly different from that of version 4.0.4) and things worked fine. I still don't know why 4.0.4 did not work with apache 1.3.26. I followed instructions in your site and thanks they were very concise! also thanks for posting the mod_jk.so's too. Turner, John wrote: What do the log files say? John -Original Message- From: Habibak haAlbek [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:56 AM To: Tomcat Users List Subject: RE: Tomcat 4.0.4 and Apache 1.3.26 and mod_jk issues Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! News - Today's headlines
Setting the inprocess worker
Hi, First let me apologize if I ask something obvious but as this is my first appearance on this list please bear with me. Here is the problem... I have Apache 2.40/Tomcat 4.1.0/JDK 1.4.0_02/Win2000 I have set the inprocess worker and the Tomcat starts within Apache process but when I try to access one of the mapped uri's it comes back with the 'Internal error 500' and the following error in the log file: [Snip] 12-Sep-2002 14:26:16 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 12-Sep-2002 14:26:23 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 12-Sep-2002 14:26:23 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/94 config=C:\JSE\Tomcat41\conf\jk2.properties [Thu Sep 12 14:27:37 2002] [notice] service.init() Can't find child in scoreboard 2664 [Thu Sep 12 14:27:37 2002] [error] mod_jk.handler() Error connecting to tomcat 21000 [Thu Sep 12 14:27:42 2002] [error] mod_jk.handler() Error connecting to tomcat 21000 [Snip] What am I doing wrong? This is my workers2.properties : [logger] level=DEBUG [config:] file=$(serverRoot)/conf/workers2.properties debug=0 debugEnv=0 [shm] file=C:\progra~1\apache~1\apache2\logs\shm.file size=1048576 [status:] info=Status worker, displays runtime information [vm:] info=Parameters used to load JVM in the server process OPT=-Djava.class.path=C:/JSE/Tomcat41/bin/tomcat-jni.jar OPT=-Dtomcat.home=C:/JSE/Tomcat41 OPT=-Dcatalina.home=C:/JSE/Tomcat41 OPT=-Xmx128M #disabled=1 [worker.jni:jniCmd1] info=Command to be executed by the VM. This one will start Tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start #disabled=1 # Inprocess channel #[channel.jni] # define my worker #[jni:jni] #channel=channel.jni # Uri mapping [uri:/examples/*] worker=worker.jni:jniCmd1 [uri:/admin/*] worker=worker.jni:jniCmd1 [uri:/manager/*] worker=worker.jni:jniCmd1 [uri:/tomcat-docs/*] worker=worker.jni:jniCmd1 [uri:/webdav/*] worker=worker.jni:jniCmd1 and my jk2.properties: handler.list=apr,request,channelJni channelJni.disabled = 0 apr.NativeSo=C:/JSE/Tomcat41/sasha-~1/jkjni.dll apr.jniModeSo=inprocess TIA, Sasha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: apache error?
Yes. Its best to add it with the mod_jk file that you are then including in the httpd.conf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
isapi filter
Well, IIS works as does tomcat. The plugin appears to almost work. Perhaps there is a problem or someone there might shed some light on this for me. I try to access the extension and I see it hit tomcat. Tomcat gives me a 404 error but IIS logs a 200. My browser displays the 404. Everything is set up according to the instructions. Yeah, I know. Two of us have gone through the instructions 7 times each. No go. We have also used two different versions of the isapi_redirect.dll. This is all running on 2000. If anyone can give us a hand, wahoo and thanks. If not, then I am reporting a bug. Thanks a bunch! Jon Morgan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can anyone Undeploy an Existing Application in 4.1.10?
Yes I have. You can't undeploy an existing application through that app. You can only remove an application, which is different. I'm pretty sure the http://localhost:8080/manager/undeploy?path=/webapp component is not working - has anyone managed to get it functioning properly? -Original Message- From: Miguel Angel Mulero Martinez [mailto:[EMAIL PROTECTED]] Sent: 12 September 2002 12:46 To: Tomcat Users List Subject: RE: Can anyone Undeploy an Existing Application in 4.1.10? Have you try the html version: http://localhost:8080/manager/html ? I hope this will work -Mensaje original- De: Ben Rometsch [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 12 de septiembre de 2002 13:39 Para: [EMAIL PROTECTED] Asunto: Can anyone Undeploy an Existing Application in 4.1.10? Hi, I am getting this error in both Windows XP and Gentoo Linux: http://localhost:8080/manager/undeploy?path=/outreach Always results in: FAIL - Cannot remove document base for path /outreach With, curiously, the following being logged: 2002-09-12 12:37:13 Manager: undeploy: Undeploying web application at '/outreach' I can't find any error messages in any of the log files. Running http://localhost:8080/manager/list Shows that the application is still there. Has ANYONE managed to get this working in 4.1.10? Otherwise, I'll submit a bug... Thanks, Ben -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help Deploying Servlet
I have the following servlet: $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/AddNewsItem.class I addded this to WEB-INF/web.xml web-app servlet servlet-nameAddNewsItem/servlet-name servlet-classAddNewsItem/servlet-class /servlet /web-app I restarted tomcat but I keep getting 404's when referring to AddNewsItem from a jsp page like so: FORM action=AddNewsItem method=POST What am I missing? Thanks, Chuck Chuck Carson Sr. Systems Administrator Syrrx, Inc. 10410 Science Center Drive San Diego, CA 92121 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: 858.731.3540 M: 858.442.0827 -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
RE: Url Mapping with mod_jk
Hi I'm still trying to get this URL mapping to work. I have sorted out some other problems in the mean time but still have a problem (a different one) with URL Mapping. As an asside: Your HowTo was very useful Jonh. It turned out that I had a previous deffinition of the virtualhost I wanted in Apache's httpd.conf file. I thought Apache would merge duplicates or complain - but it just ignores redeffinitions. It may be worth putting an asside in the HowTo telling people to make sure the virtualhost isn't already defined. Back to the URL mapping problem: I tried using a command (in server.xml) such as: Context path= docBase=stagenewngfl / But this didnt generate a corresponding entry in the autogenerated mod_jk.conf. The standard entry mapping the stagenewngfl webapp to /stagenewngfl was there but nothing else. As an experiment I tried: Context path=/ docBase=stagenewngfl / which did generate an extra mapping in mod_jk.conf. That mapping unfortunately has an extra / in front of all the URL paths. So /stagenewngfl/index.jsp is now mapped to //index.jsp. Any ideas why Tomcat is ignoring the context with the empty path parameter? Thanks, Anthony. PS - Thanks also to Vincent Gaboriau for your response - hopefully I have moved on a bit now. -Original Message- From: Turner, John [SMTP:[EMAIL PROTECTED]] Sent: 10 September 2002 13:18 To: 'Tomcat Users List' Subject: RE: Url Mapping with mod_jk This is a working workers.properties file, RH 7.2, Tomcat 4.0.4/4.1.10, Apache 1.3.26/2.0.40 using mod_jk 4.0.4 (NOT 4.1.10): # Setup for apache system # workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 workers.java_home=/usr/java/j2sdk1.4.0_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # # worker.ajp13.port=8009 # worker.ajp13.host=localhost # worker.ajp13.type=ajp13 worker.ajp13.port=8009 worker.ajp13.host=xxx.yyy.com worker.ajp13.type=ajp13 John ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: tomcat 4.1.10 mishandling nested variables in tags?
Is exactly the same for me. I work with includes in the index.jsp. All the included template which uses a tag seem to make troubles in 4.1.10. the same app works like a charm in 4.0.4 with jasper 1. Daniel Schmid -Ursprüngliche Nachricht- Von: Dave Townsend [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. September 2002 15:49 An: [EMAIL PROTECTED] Betreff: tomcat 4.1.10 mishandling nested variables in tags? Just upgraded to 4.1.10 and found that my webapp no longer functions. I have tracked this down to a tag that uses nested tags. On the old version (4.0.4), immediately after the doStartTag call, the variables are declared for the jsp page, and their values read from the pageContext, then the jsp content of the tag is executed. On the new version after the doStartTag, the variables are declared and set to null and only have their values updated after the jsp content has been executed once. This means that all the variables are null on the first run through the tag which as far as I understand the spec is not correct. Is there any fix for this? Dave -- To successfully keep robbers out of your house put six locks on your door. When you go out, lock every other one. No matter how long somebody stands there picking the locks, they are always locking three. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.1.10 mishandling nested variables in tags?
I upgraded to 4.1.10 and got some similar, strange behaviour with variables in my tags showing up null. Here is the work around I used: I disabled tag handler pooling on the jsp page compiler in the global web.xml file as follows: at $CATALINA_BASE/conf/web.xml I added: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueDEBUG/param-value /init-param init-param param-nameenablePooling/param-name param-valuefalse/param-value /init-param load-on-startup3/load-on-startup /servlet I am no longer having any problems with my tag libs. Jacob -Original Message- From: Daniel Schmid [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:46 PM To: 'Tomcat Users List' Subject: AW: tomcat 4.1.10 mishandling nested variables in tags? Is exactly the same for me. I work with includes in the index.jsp. All the included template which uses a tag seem to make troubles in 4.1.10. the same app works like a charm in 4.0.4 with jasper 1. Daniel Schmid -Ursprüngliche Nachricht- Von: Dave Townsend [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. September 2002 15:49 An: [EMAIL PROTECTED] Betreff: tomcat 4.1.10 mishandling nested variables in tags? Just upgraded to 4.1.10 and found that my webapp no longer functions. I have tracked this down to a tag that uses nested tags. On the old version (4.0.4), immediately after the doStartTag call, the variables are declared for the jsp page, and their values read from the pageContext, then the jsp content of the tag is executed. On the new version after the doStartTag, the variables are declared and set to null and only have their values updated after the jsp content has been executed once. This means that all the variables are null on the first run through the tag which as far as I understand the spec is not correct. Is there any fix for this? Dave -- To successfully keep robbers out of your house put six locks on your door. When you go out, lock every other one. No matter how long somebody stands there picking the locks, they are always locking three. -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]