Re: TOMCAT_OPT questions (-Xms, -Xmx)
thanks everyone for the answers! I will try a profiling tool later.. Thanks! Reynir_Þór_Hübner <[EMAIL PROTECTED]> wrote:Hi, nyhgan wrote: > > 1. I see a lot of java process running on my machine when I do a 'ps' to show the > process list. So how many JVM are actually started by the tomcat instance? This is not showing you serveral instances of JVM but the threads with in one JVM. > > 2. What is the best -Xms and -Xmx value to use for a site that has about 200-300 > concurrent users? The only good way to determine how much memory is needed for a site, is by profiling and testing. Sorry, but every applications memory need are different. It dependes alot on how you have implemented your site and it dependes on how much data is kept in the session (for each user). hope it helps -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now.
AW: ServletContextListener and HttpSessionActivationListener
> > But it's not explicit enough, and for that you should ask the Servlet > Expert Group (you can find a link for that on the JSR154 home page). Yes, I sent them a comment. Best regards Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org/apache/jsp/index_jsp (wrong name: index_jsp)
Hi all, Im using linux 2.4.18-14, tomcat 4.1.27, apache 2.0.40 jdk 1.4.1. im getting following exception only for the pages having name index.jsp, if anybody faced this already please inform me about the fix Thanks in Advance Arun javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: index_jsp) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: index_jsp) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.lang.ClassLoader.defineClass(ClassLoader.java:431) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:440) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:390) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:471) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextV
How to allow all permissions in catalina.policy?
Hi, How to allow all permissions in catalina.policy? The default policies in the catalina.policy is too strict and I have difficulties getting my applicatin to work. I would like to all all permissions to my application so I can debug the problem Thanks nyhgan. - Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Can't get servlet to work on tomcat5.0.x.
Hi, I finished the apach2 and tomcat5.0.27 integration today, The JSP is fine, but the servlets are not working. When I try to login to my application, I got the "this page cannot be displayed" message. There are no error messages in catalina.out I have the invoker servlet turn on. My serlets are package in a jar file, place under my WEB-INF/lib directory. Here are the related configurations --- web.xml - http://java.sun.com/dtd/web-app_2_3.dtd";> loginHandler site.music.servlet.LoginHandler workers2.properties # Uri mapping for jsp [uri:127.0.0.1/*.jsp] group=ajp13:localhost:8009 # Uri mapping for jsp [uri:127.0.0.1/servlet/*] group=ajp13:localhost:8009 - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
Some pretty basic Tomcat Connection Pooling Questions????
Sorry folks, this is a REAL Newbie to Tomcat/Java. Im trying to understand Connection Pooling as it seems I will need this in my webapp Please dont laugh too hard at me ok When doing connection Pooling,do you do an Open and close of your database for every Java class (servlet) you execute? Or Do you do a one time Open of your database at the first login? Or Do you just do an Open Database and NOT a CLOSE database for each Java Class (servlet)? I know this sounds stupid, but Im currently NOT using Connection Pooling, and when I go into my first Java class (servlet), I can OPEN/UPDATE all successfully, but when I do a Disconnect I get an SQLSTATE = 08003 (connection does not exist) I then try and go into my next Java Class (servlet) and right away, on my OPEN, I get SQLSTATE = 08002 (connection name in use) It will never allow to access my database again, I have to go back to Application Manager, Stop and then Start the application, go back into it, and I get my one connection again, but just the one. Thanks Mike
Re: Bind errors in 5.0.19
It could appear as 'webcache' instead of '8080'... Some Linux distributions have a Tomcat server that may be active. You download and install a new version and end up having two servers: the one you wish to use and the one the distribution has but is not obvious it's there. Have you checked the services that are up and running? Gerardo Juarez On Tue, 7 Sep 2004, Sunitha Kumar wrote: > Hey folks: > On reboot, tomcat complains that it is not able to Bind to port 8080. > I do not see 8080 being used by anything else, > with netstat -a > Any pointers? > thanks, > -sunitha > > ug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load > SEVERE: Catalina.start > LifecycleException: Protocol handler initialization failed: > java.net.BindException: Address already in use > :8080 > at > org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1447) > at > org.apache.catalina.core.StandardService.initialize(StandardService.java:648) > at > org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416) > at org.apache.catalina.startup.Catalina.load(Catalina.java:545) > at org.apache.catalina.startup.Catalina.load(Catalina.java:566) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) > Aug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1892 ms > Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 > Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHostDeployer remove > INFO: Removing web application at context path > Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop > INFO: unregistering logger Catalina:type=Logger,host=localhost > Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop > INFO: unregistering logger Catalina:type=Logger > Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy > INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 > Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy > INFO: Stoping http11 protocol on 8443 Catalina:type=ThreadPool,name=http8443 > Aug 16, 2004 1:10:52 PM org.apache.catalina.startup.ContextConfig > applicationConfig > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.0 Shared classes does not work
On Tue, 07 Sep 2004 17:45:53 -0500, Hongsong Zhou <[EMAIL PROTECTED]> wrote: > Yes, it works. I jar my classes and put in the shared/lib, it works. Thanks, remy. > > >>> [EMAIL PROTECTED] 09/07/04 05:30PM >>> > On Tue, 07 Sep 2004 17:01:54 -0500, Hongsong Zhou > <[EMAIL PROTECTED]> wrote: > > I did try jar my classes and put in the jar in shared/lib, still does not work. > > Try again. While I have the impression the "classes" expanded > repositories are not handled correctly, using a JAR in shared/lib or > common/lib worked fine. I did fix the issue for shared/classes. It is a Windows specific issue that occurred because of the switch to a plain URL CL. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.0 Shared classes does not work
Yes, it works. I jar my classes and put in the shared/lib, it works. Thanks, remy. >>> [EMAIL PROTECTED] 09/07/04 05:30PM >>> On Tue, 07 Sep 2004 17:01:54 -0500, Hongsong Zhou <[EMAIL PROTECTED]> wrote: > I did try jar my classes and put in the jar in shared/lib, still does not work. Try again. While I have the impression the "classes" expanded repositories are not handled correctly, using a JAR in shared/lib or common/lib worked fine. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pool and Postgresql
You are using an old PostgreSQL JDBC driver. Update to the latest rev and this should go away. On Tue, 2004-09-07 at 14:07, Philippe Mathieu wrote: > I'm using Postgresql 7.4.x and Tomcat 5.0 under Linux Debian. > In my application I'm using the Tomcat Connection Pool to access to a Postgresql > Database. > During the first access to the context I obtain in the context logger the > following message : > > 2004-09-07 22:23:25 JDBCRealm[/vide]: Exception opening database connection > java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer supported > > at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131) > at > org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:482) > at > org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:461) > at > org.postgresql.jdbc1.AbstractJdbc1Connection.setAutoCommit(AbstractJdbc1Connection.java:953) > at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:600) > .. > > After that the application works correctly and it seems not to have any problem. > > > Does anyone knows how to avoid this message ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.0 Shared classes does not work
On Tue, 07 Sep 2004 17:01:54 -0500, Hongsong Zhou <[EMAIL PROTECTED]> wrote: > I did try jar my classes and put in the jar in shared/lib, still does not work. Try again. While I have the impression the "classes" expanded repositories are not handled correctly, using a JAR in shared/lib or common/lib worked fine. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT_OPT questions (-Xms, -Xmx)
Hi, nyhgan wrote: 1. I see a lot of java process running on my machine when I do a 'ps' to show the process list. So how many JVM are actually started by the tomcat instance? This is not showing you serveral instances of JVM but the threads with in one JVM. 2. What is the best -Xms and -Xmx value to use for a site that has about 200-300 concurrent users? The only good way to determine how much memory is needed for a site, is by profiling and testing. Sorry, but every applications memory need are different. It dependes alot on how you have implemented your site and it dependes on how much data is kept in the session (for each user). hope it helps -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat 5.5.0 Shared classes does not work
http://learn.to/quote -Ursprüngliche Nachricht- Von: Hongsong Zhou [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 8. September 2004 00:02 An: [EMAIL PROTECTED] Betreff: Re: Tomcat 5.5.0 Shared classes does not work I did try jar my classes and put in the jar in shared/lib, still does not work. >>> [EMAIL PROTECTED] 09/07/04 04:53PM >>> On Tue, 07 Sep 2004 15:45:08 -0500, Hongsong Zhou <[EMAIL PROTECTED]> wrote: > I installed tomcat 5.5.0 and put some classes in > $CATALINA_HOME$/shared/classes, but when I try to use them in my > webapps, it always said class not found. I checked classloader > document at > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.htm > l, nothing is wrong. I use these in tomcat 4 and tomcat 5.0.19, all > works fine. It's an early alpha build, so I suppose something could be bad with the initialization of the classloader (it did change: we're now using a standard URL classloader for that). If you jar your classes and put the jar in shared/lib, does it work ? -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: TOMCAT_OPT questions (-Xms, -Xmx)
Hi > 1. I see a lot of java process running on my machine when I do a 'ps' to show the process list. So how many JVM are actually started by the tomcat instance? No. You see just one java process. However, your version of ps cannot handle threads correctly. The JVM is multi-threaded. > If there are more than one JVM, and each JVM uses the min/max I specified in the TOMCAT_OPTS, I think my RAM will quickly used up by the tomcat? No, it is the very same part of memory all the time. Don't fear. > 2. What is the best -Xms and -Xmx value to use for a site that has about 200-300 concurrent users? Depends completely on your application. Basic rule: Do a lot of load testing of common application usage patterns. Use a profiler for this. Set -Xm? to the highest values you observe that one. Do not subtract the memory used by the profiler, leave it as buffer. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TOMCAT_OPT questions (-Xms, -Xmx)
Hello tomcat experts, 1. I see a lot of java process running on my machine when I do a 'ps' to show the process list. So how many JVM are actually started by the tomcat instance? If there are more than one JVM, and each JVM uses the min/max I specified in the TOMCAT_OPTS, I think my RAM will quickly used up by the tomcat? 2. What is the best -Xms and -Xmx value to use for a site that has about 200-300 concurrent users? Thanks! nyhgan - Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now.
Re: Tomcat 5.5.0 Shared classes does not work
I did try jar my classes and put in the jar in shared/lib, still does not work. >>> [EMAIL PROTECTED] 09/07/04 04:53PM >>> On Tue, 07 Sep 2004 15:45:08 -0500, Hongsong Zhou <[EMAIL PROTECTED]> wrote: > I installed tomcat 5.5.0 and put some classes in > $CATALINA_HOME$/shared/classes, but when I try to use them in my > webapps, it always said class not found. I checked classloader document > at > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html, > nothing is wrong. I use these in tomcat 4 and tomcat 5.0.19, all works > fine. It's an early alpha build, so I suppose something could be bad with the initialization of the classloader (it did change: we're now using a standard URL classloader for that). If you jar your classes and put the jar in shared/lib, does it work ? -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bind errors in 5.0.19
No. Filip Hanik - Dev wrote: do you have more than one connector in server.xml on the same port Filip - Original Message - From: "Sunitha Kumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 4:42 PM Subject: Bind errors in 5.0.19 Hey folks: On reboot, tomcat complains that it is not able to Bind to port 8080. I do not see 8080 being used by anything else, with netstat -a Any pointers? thanks, -sunitha ug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use :8080 at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1447) at org.apache.catalina.core.StandardService.initialize(StandardService.java:648) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416) at org.apache.catalina.startup.Catalina.load(Catalina.java:545) at org.apache.catalina.startup.Catalina.load(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) Aug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1892 ms Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,host=localhost Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8443 Catalina:type=ThreadPool,name=http8443 Aug 16, 2004 1:10:52 PM org.apache.catalina.startup.ContextConfig applicationConfig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bind errors in 5.0.19
Hi, This is because something else is running on port 8080, or you have two connectors on port 8080 defined in server.xml. Try telneting on this port, if you can open a session you have something there. c:\>telnet yourhost 8080 I also recomend that you upgrade to 5.0.28. hope it helps, -reynir Sunitha Kumar wrote: Hey folks: On reboot, tomcat complains that it is not able to Bind to port 8080. I do not see 8080 being used by anything else, with netstat -a Any pointers? thanks, -sunitha ug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use :8080 at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1447) at org.apache.catalina.core.StandardService.initialize(StandardService.java:648) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416) at org.apache.catalina.startup.Catalina.load(Catalina.java:545) at org.apache.catalina.startup.Catalina.load(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) Aug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1892 ms Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,host=localhost Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8443 Catalina:type=ThreadPool,name=http8443 Aug 16, 2004 1:10:52 PM org.apache.catalina.startup.ContextConfig applicationConfig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.0 Shared classes does not work
On Tue, 07 Sep 2004 15:45:08 -0500, Hongsong Zhou <[EMAIL PROTECTED]> wrote: > I installed tomcat 5.5.0 and put some classes in > $CATALINA_HOME$/shared/classes, but when I try to use them in my > webapps, it always said class not found. I checked classloader document > at > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html, > nothing is wrong. I use these in tomcat 4 and tomcat 5.0.19, all works > fine. It's an early alpha build, so I suppose something could be bad with the initialization of the classloader (it did change: we're now using a standard URL classloader for that). If you jar your classes and put the jar in shared/lib, does it work ? -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: ThreadPool: Pool exhausted with 100 threads
Hi, well there is a long time since I stoped using 3.* but if I remember it correctly you can add threads to the threadpool on the Http10Connector settings in your server.xml (or if you are using AJPConnector you should be able to add it there). Maybe that would be a quick fix, to say, double the maxThreads parameter. see the documentation for 3.3: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html for more settings. hope it helps, -reynir Matt Robinson wrote: Ronald, Thanks this is quite helpful - using your jsp I can see where we hit 100 threads and Tomcat freezes. As I monitor our systems the number of threads slowly grows until 100 is reached. The threads I see when monitoring (using your JSP page) are not closed -- instead they seem to hang out until the 100 mark is reached (at which point we have to restart Tomcat). In effort to avoid this, it looks like we'll be switching to 5.0.28 after some initial testing. Any further suggestions more than welcome Thanks again, Matt --- Ronald Klop <[EMAIL PROTECTED]> wrote: So, this is an error from the ThreadPool and not from java or the OS. The errors I got we're errors from the OS because of a limited nr of threads per process. There are issues with the ThreadPool solved in both 4 and 5 (see changelogs), so maybe this will be solved for you also. At my work I use a jsp which I will attach. It shows all running threads and threadgroups by there name. It gave me some usefull insight in the inner workings of Tomcat. Ronald. On Tue Sep 07 07:08:10 CEST 2004 Matt Robinson <[EMAIL PROTECTED]> wrote: Ronald, The exact error message is "ThreadPool: Pool exhausted with 100 threads", so I assume we have 100 threads running -- once this error message appears Tomcat stops responding until it is restarted. Is there a simple way to check # of threads in use by Tomcat at any given time? We are running Tomcat 3.2.4 and J2SE 1.4 on Windows 2000. Based on yours and other feedback, we plan on upgrading to 4.x or 5.0 but not sure which is the right choice. Thanks, Matt --- Ronald Klop <[EMAIL PROTECTED]> wrote: On Mon Sep 06 00:40:14 CEST 2004 Matt Robinson <[EMAIL PROTECTED]> wrote: Steffen, Many thanks for the response. The reason we stuck with 3.2.4 was because of stability. However, as we have become more successful our systems have been receiving heavier loads and thus, the Threadpool exhausted problem. Regarding stability/reliability (uptime is a greater concern for us than performance), would you recommend 5.0 over 4.x or vice versa? Also curious if anyone has experienced thread pool problems (or successes) with medium to high load systems under either 4.x or 5.0. Thanks again, Matt How many threads do you have when it is exhausted and what is the error message you get? We are running Tomcat 5 with about hundred threads quite ok here. Tomcat 5 is much more efficient, so it can help you to try it out. Ronald. __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <%@ page info = "$Id: threads.jsp,v 1.2 2003/05/26 19:24:55 ronald Exp $" import = " java.util.Calendar, java.util.TimeZone " %> <%! class Group { JspWriter out; Group(JspWriter out) { this.out = out; } void print(ThreadGroup tg, String prefix) throws java.io.IOException { int i; out.println(prefix + "G " + tg.getName()); ThreadGroup[] tga = new ThreadGroup[tg.activeGroupCount()]; int nr = tg.enumerate(tga, false); for(i = 0; i < nr; i++) { this.print(tga[i], prefix + "\t"); } Thread[] ta = new Thread[tg.activeCount()]; nr = tg.enumerate(ta, false); String[] names = new String[nr]; for(i = 0; i < names.length; i++) { names[i] = ta[i].getName(); } java.util.Arrays.sort(names); for(i = 0; i < nr; i++) { out.println(prefix + "T " + names[i]); } } } %> <%@ include file="/pub/exec/baseDHTML.jspf" %> Threads - <%=request.getServerName()%> <% java.util.Date now = Calendar.getInstance(TimeZone.getTimeZone("Europe/Amsterdam")).getTime(); %> Time: <%=now.toString()%> <% Thread current = Thread.currentThread(); ThreadGroup tg = current.getThreadGroup(); while(tg.getParent() != null) { tg = tg.getParent(); } Group g = new Group(out); g.prin
Re: Bind errors in 5.0.19
do you have more than one connector in server.xml on the same port Filip - Original Message - From: "Sunitha Kumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 4:42 PM Subject: Bind errors in 5.0.19 Hey folks: On reboot, tomcat complains that it is not able to Bind to port 8080. I do not see 8080 being used by anything else, with netstat -a Any pointers? thanks, -sunitha ug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use :8080 at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1447) at org.apache.catalina.core.StandardService.initialize(StandardService.java:648) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416) at org.apache.catalina.startup.Catalina.load(Catalina.java:545) at org.apache.catalina.startup.Catalina.load(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) Aug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1892 ms Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,host=localhost Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8443 Catalina:type=ThreadPool,name=http8443 Aug 16, 2004 1:10:52 PM org.apache.catalina.startup.ContextConfig applicationConfig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Apache Jakarta Tomcat 5.5.1 Released
The Apache Jakarta Tomcat team is proud to announce the immediate availability of Tomcat 5.5.1. This second build in the 5.5 branch contains a number of significant stability improvements over 5.5.0, as well as a host of documentation updates and minor fixes. Release notes: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES Please refer to the change log for the list of changes: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html Downloads: Binaries: http://jakarta.apache.org/site/binindex.cgi Sources: http://jakarta.apache.org/site/sourceindex.cgi The Apache Jakarta Tomcat Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bind errors in 5.0.19
Hey folks: On reboot, tomcat complains that it is not able to Bind to port 8080. I do not see 8080 being used by anything else, with netstat -a Any pointers? thanks, -sunitha ug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use :8080 at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1447) at org.apache.catalina.core.StandardService.initialize(StandardService.java:648) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416) at org.apache.catalina.startup.Catalina.load(Catalina.java:545) at org.apache.catalina.startup.Catalina.load(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397) Aug 16, 2004 1:10:51 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1892 ms Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 16, 2004 1:10:52 PM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,host=localhost Aug 16, 2004 1:10:52 PM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 Aug 16, 2004 1:10:52 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8443 Catalina:type=ThreadPool,name=http8443 Aug 16, 2004 1:10:52 PM org.apache.catalina.startup.ContextConfig applicationConfig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on CD-ROM
On Tue, Sep 07, 2004 at 03:57:45PM -0500, Ruth, Brice wrote: : >I've gone through the archives and read about setting loggers & : >workDir to a writable directory, yet I'm still getting an exception : >thrown in tldScanJar (ContextConfig). I've checked out the code for : >tldScanJar and I don't see it doing anything but opening an : >InputStream to the JAR using JarURLConnection - does this Java class : >try to extract the JAR somewhere? I can half-help here: does WinXP provide an equivalent of strace/truss, that would should you system calls as the app runs? That would point out specifically what file the OS is trying to open. If you were running a Unix or Linux, I'd be much more help... ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pool and Postgresql
On Tue, Sep 07, 2004 at 11:07:19PM +0200, Philippe Mathieu wrote: : I'm using Postgresql 7.4.x and Tomcat 5.0 under Linux Debian. : In my application I'm using the Tomcat Connection Pool to access to a : Postgresql Database. : [snip] : 2004-09-07 22:23:25 JDBCRealm[/vide]: Exception opening database connection : java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer supported : [snip] : Does anyone knows how to avoid this message ? It sounds like you have a (now-)unsupported param in your JDBC URL, or perhaps in one of the resource's param elements. Check the docs for the PostgreSQL JDBC connector, as well as for the database engine itself. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
crossContext in tomcat 5
Does anybody try Attributes crossContext in tomcat 5, it does not work. it works in tomcat 4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Tomcat5 and Servlet Timeout: Possible?
SH Solutions wrote: So if one thread hangs, it hangs forever. If it blocks other threads, the whole app hangs... So, yes, if you application has a bug, it has a bug. Well, unfortunately it is not my application that has this bug, but it seems to be the JDK: The thread hangs in SocketOutputStream.write0() (a native method that is called by write()). I would NOT want tomcat to kill one of my threads, doing security-relevant modifications in some kind of transaction. What's the problem? Isn't it the whole reason for transactions that the whole thing completes or not? Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: ThreadPool: Pool exhausted with 100 threads
Ronald, Thanks this is quite helpful - using your jsp I can see where we hit 100 threads and Tomcat freezes. As I monitor our systems the number of threads slowly grows until 100 is reached. The threads I see when monitoring (using your JSP page) are not closed -- instead they seem to hang out until the 100 mark is reached (at which point we have to restart Tomcat). In effort to avoid this, it looks like we'll be switching to 5.0.28 after some initial testing. Any further suggestions more than welcome Thanks again, Matt --- Ronald Klop <[EMAIL PROTECTED]> wrote: > So, this is an error from the ThreadPool and not > from java or the OS. The errors I got we're errors > from the OS because of a limited nr of threads per > process. There are issues with the ThreadPool solved > in both 4 and 5 (see changelogs), so maybe this will > be solved for you also. > > At my work I use a jsp which I will attach. It shows > all running threads and threadgroups by there name. > It gave me some usefull insight in the inner > workings of Tomcat. > > Ronald. > > > > On Tue Sep 07 07:08:10 CEST 2004 Matt Robinson > <[EMAIL PROTECTED]> wrote: > > Ronald, > > > > The exact error message is "ThreadPool: Pool > exhausted > > with 100 threads", so I assume we have 100 threads > > running -- once this error message appears Tomcat > > stops responding until it is restarted. Is there a > > simple way to check # of threads in use by Tomcat > at > > any given time? > > > > We are running Tomcat 3.2.4 and J2SE 1.4 on > Windows > > 2000. Based on yours and other feedback, we plan > on > > upgrading to 4.x or 5.0 but not sure which is the > > right choice. > > > > Thanks, > > Matt > > > > --- Ronald Klop <[EMAIL PROTECTED]> > wrote: > > > > >On Mon Sep 06 00:40:14 CEST 2004 Matt Robinson > > ><[EMAIL PROTECTED]> wrote: > > >>Steffen, > > >> > > >>Many thanks for the response. The reason we > stuck > > >with > > >>3.2.4 was because of stability. However, as we > > >have > > >>become more successful our systems have been > > >receiving > > >>heavier loads and thus, the Threadpool exhausted > > >>problem. > > >> > > >>Regarding stability/reliability (uptime is a > > >greater > > >>concern for us than performance), would you > > >recommend > > >>5.0 over 4.x or vice versa? > > >> > > >>Also curious if anyone has experienced thread > pool > > >>problems (or successes) with medium to high load > > >>systems under either 4.x or 5.0. > > >> > > >>Thanks again, > > >>Matt > > >> > > > > > > > > >How many threads do you have when it is exhausted > > >and what is the error message you get? > > >We are running Tomcat 5 with about hundred > threads > > >quite ok here. Tomcat 5 is much more efficient, > so > > >it can help you to try it out. > > > > > >Ronald. > > > > > > > > > > > > > > > > > > > __ > > Do you Yahoo!? > > Read only the mail you want - Yahoo! Mail > SpamGuard. > > http://promotions.yahoo.com/new_mail > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > <%@ page > info = "$Id: threads.jsp,v 1.2 2003/05/26 19:24:55 > ronald Exp $" > import = " > java.util.Calendar, > java.util.TimeZone > " > %> > <%! > class Group { > JspWriter out; > Group(JspWriter out) { > this.out = out; > } > void print(ThreadGroup tg, String prefix) throws > java.io.IOException { > int i; > out.println(prefix + "G " + tg.getName()); > ThreadGroup[] tga = new > ThreadGroup[tg.activeGroupCount()]; > int nr = tg.enumerate(tga, false); > for(i = 0; i < nr; i++) { > this.print(tga[i], prefix + "\t"); > } > Thread[] ta = new Thread[tg.activeCount()]; > nr = tg.enumerate(ta, false); > String[] names = new String[nr]; > for(i = 0; i < names.length; i++) { > names[i] = ta[i].getName(); > } > java.util.Arrays.sort(names); > for(i = 0; i < nr; i++) { > out.println(prefix + "T " + names[i]); > } > } > } > %> > > ><%@ include file="/pub/exec/baseDHTML.jspf" %> > > Threads - > <%=request.getServerName()%> > > > <% > java.util.Date now = > Calendar.getInstance(TimeZone.getTimeZone("Europe/Amsterdam")).getTime(); > %> > Time: <%=now.toString()%> > > <% > Thread current = Thread.currentThread(); > ThreadGroup tg = current.getThreadGroup(); > while(tg.getParent() != null) { > tg = tg.getParent(); > } > Group g = new G
Pool and Postgresql
I'm using Postgresql 7.4.x and Tomcat 5.0 under Linux Debian. In my application I'm using the Tomcat Connection Pool to access to a Postgresql Database. During the first access to the context I obtain in the context logger the following message : 2004-09-07 22:23:25 JDBCRealm[/vide]: Exception opening database connection java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer supported at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131) at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:482) at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:461) at org.postgresql.jdbc1.AbstractJdbc1Connection.setAutoCommit(AbstractJdbc1Connection.java:953) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:600) .. After that the application works correctly and it seems not to have any problem. Does anyone knows how to avoid this message ? -- Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lucene index parser problem
Why oh why did you send this to the tomcat lists? Don't cross post! Especially when the question doesn't even apply to one of the lists. Patrick On Tue, 7 Sep 2004 16:35:35 -0400, hui liu <[EMAIL PROTECTED]> wrote: > Hi, > > I have such a problem when creating lucene index for many html files: > > It shows "aborted, expected" for those html files > which contain java scripts. It seems it cannot parse the tags < \>. > Does anyone has any solution? > > Thank you very very much...!!! > > Ivy. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on CD-ROM
Any takers Ruth, Brice wrote: I've gone through the archives and read about setting loggers & workDir to a writable directory, yet I'm still getting an exception thrown in tldScanJar (ContextConfig). I've checked out the code for tldScanJar and I don't see it doing anything but opening an InputStream to the JAR using JarURLConnection - does this Java class try to extract the JAR somewhere? This is on JDK 1.4.2_05, Tomcat 4.1.27, and WinXP SP2. Any guidance would be much appreciated!! -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.0 Shared classes does not work
I installed tomcat 5.5.0 and put some classes in $CATALINA_HOME$/shared/classes, but when I try to use them in my webapps, it always said class not found. I checked classloader document at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html, nothing is wrong. I use these in tomcat 4 and tomcat 5.0.19, all works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: basic authentification with IIS (tomcat 5.x) [FOUND]
I've found : have to disable windows athentication in security in IIS. - Original Message - From: "Philippe Lonchampt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 06, 2004 9:20 PM Subject: basic authentification with IIS (tomcat 5.x) Hello all, I don't understand how to use the tomcat 5.x basic authentification with IIS (ajp13) : it works when using tomcat alone, but with IIS the answer is always "401.1 Not authorized". It seems like IIS don't let Tomcat manage the authentification ? I've read somewhere in this list that it has to do with the ajp.jar library, but I don't understand what to do with it, the topic is not clear for me. I have done all the tomcat conf in the right way (web.xml, server.xml and tomcat-users.xml) since it works with tomcat alone. Thanks in advance. Philippe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
lucene locks index, tomcat has to stop and restart
Hi, I met with such a problem with lucene demo: Each time when I create lucene index, I have to first stop tomcat, and restart tomcat after the index is created. The reason is: the index is locked when using IndexReader.open(index) method in the jsp file. So, I tried to modify the jsp codes by adding close(), but it shows error which said "close() is not a static method". I checked the source codes of lucene IndexReader methods, and found that the close() method is final not static. I tried to change it to static, but resulted in many errors. So, does anybody meet the similar problem as me? Do you have any solutions? Thank you very very much.!! Ivy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
lucene index parser problem
Hi, I have such a problem when creating lucene index for many html files: It shows "aborted, expected" for those html files which contain java scripts. It seems it cannot parse the tags < \>. Does anyone has any solution? Thank you very very much...!!! Ivy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Xalan problem :(
Hi, As the release notes say, the first thing to try if you are experimenting Xalan problems is to take the latest stable version of Xalan and put it in the $CATALINA_HOME/common/endorsed directory. Give that a shot and let us know how it goes ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: Reza Ferrydiansyah [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 4:25 PM >To: [EMAIL PROTECTED] >Subject: Xalan problem :( > >Hi all, > >I'm using jdk1.5rc with tomcat 5.0.27 on windows 2003 server > >This line from one of my classes (inside >WEB-INF/classes/myPackage/myClass.java) gives me an error as follows: >TransformerFactory tFactory = TransformerFactory.newInstance(); > >javax.xml.transform.TransformerFactoryConfigurationError: Provider >org.apache.xalan.processor.TransformerFactoryImpl not found > javax.xml.transform.TransformerFactory.newInstance(Unknown Source) > >I have the source of the jdk1.5rc and looking at the source >org.apache.xalan.processor.TransformerFactoryImpl does not exist. (to >be exact it is com.sun.org.apache.xalan... ) > >Looking at the TransformerFactory newInstance method I can't help to >notice that they try to look for > >public static TransformerFactory newInstance() >throws TransformerFactoryConfigurationError { >try { >return (TransformerFactory) FactoryFinder.find( >/* The default property name according to the JAXP spec */ >"javax.xml.transform.TransformerFactory", >/* The fallback implementation class name, XSLTC */ > >"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"); > >^^^ >^ >} catch (FactoryFinder.ConfigurationError e) { > >which makes me believe that xalan has been changed for jdk1.5rc? Is that >right? > >So I did a little experiment. I created a java program which all it >does is create a newInstance of the TransformerFactory. That is its >main function consists of : >TransformerFactory tFactory = TransformerFactory.newInstance(); > >Compiled it with jdk1.5rc, executed it and it works fine. So the >question is why does the program work when I execute it via command >line (using javac, and java) but not with the tomcat. Tomcat should >use the same library as the one in java right? Of course the biggest >question is how do I make my program work... > >Additional information. This program is done in a new server. That is >there is no previous versions of the jdk nor previous version of >tomcat. > >Thank you. > >-- >-- >Reza Ferrydiansyah >http://www.informatika.org/~reza > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Xalan problem :(
Hi all, I'm using jdk1.5rc with tomcat 5.0.27 on windows 2003 server This line from one of my classes (inside WEB-INF/classes/myPackage/myClass.java) gives me an error as follows: TransformerFactory tFactory = TransformerFactory.newInstance(); javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found javax.xml.transform.TransformerFactory.newInstance(Unknown Source) I have the source of the jdk1.5rc and looking at the source org.apache.xalan.processor.TransformerFactoryImpl does not exist. (to be exact it is com.sun.org.apache.xalan... ) Looking at the TransformerFactory newInstance method I can't help to notice that they try to look for public static TransformerFactory newInstance() throws TransformerFactoryConfigurationError { try { return (TransformerFactory) FactoryFinder.find( /* The default property name according to the JAXP spec */ "javax.xml.transform.TransformerFactory", /* The fallback implementation class name, XSLTC */ "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"); } catch (FactoryFinder.ConfigurationError e) { which makes me believe that xalan has been changed for jdk1.5rc? Is that right? So I did a little experiment. I created a java program which all it does is create a newInstance of the TransformerFactory. That is its main function consists of : TransformerFactory tFactory = TransformerFactory.newInstance(); Compiled it with jdk1.5rc, executed it and it works fine. So the question is why does the program work when I execute it via command line (using javac, and java) but not with the tomcat. Tomcat should use the same library as the one in java right? Of course the biggest question is how do I make my program work... Additional information. This program is done in a new server. That is there is no previous versions of the jdk nor previous version of tomcat. Thank you. -- -- Reza Ferrydiansyah http://www.informatika.org/~reza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why is Tomcat/Connector Installation So Incredibly Painful??
I must agree with QM the mod_jk while is made out to be a daunting task, if you take some time and follow the myrid of tutorials/how-tos out there I would venture to guess that you could do it quickly. I have done it 4 times, Windose and Linux and once I had a problem, it was the second time I did it, and I got a little ahead of myself and had to restart. Do it will clean everything and you should be fine. From: QM <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Why is Tomcat/Connector Installation So Incredibly Painful?? Date: Tue, 7 Sep 2004 14:37:29 -0500 On Tue, Sep 07, 2004 at 02:57:10PM -0400, Lon Palmer wrote: : It's obvious to me ( and probably to everyone else that uses : it ) that then entire process of installing mod_jk is broken. It takes too : much fiddling and effort. I don't share that view. I've setup mod_jk a few times, and it was very straightforward. I followed the docs and ran with it. JDBC/JNDI Resources (another problem that appears regularly) works for me without a hitch, too. Maybe I'm just lucky. ;) As for the rest of your post: I'll spare you a debate and leave it at "whatever works for you, works for you." Some people have an easier time working with the open software than dealing with commercial products. At least have the choice. Having dealt with my fair share of both commercial and free software, the price tag and quality don't necessarily correlate. I've used a few Very Cos$tly Products -- names withheld to protect the guilty ;) -- that required a lot of twiddling to get working, were very fragile once they did work, and "bug reports" were handled pretty much as the vendors felt like it. It's easy to say, "you should have put pressure on them, you're a customer" but when a vendor's large enough and you're bound to their product, that doesn't fly. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat5 and Servlet Timeout: Possible?
Hi > So if one thread hangs, it hangs forever. > If it blocks other threads, the whole app hangs... So, yes, if you application has a bug, it has a bug. I would NOT want tomcat to kill one of my threads, doing security-relevant modifications in some kind of transaction. Not even if other threads are waiting for these core modifications to complere. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: is reloading the web context sufficient ?
Quinten Verheyen wrote: > > I would simply like to know how on-going HTTP traffic is handled when the > classes get reloaded, either by the reloadable attribute in the > or by the Manager webapp reload function. What version of Tomcat are you referring to? Tomcat 4.1.x or Tomcat 5.0.x? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why is Tomcat/Connector Installation So Incredibly Painful??
On Tue, Sep 07, 2004 at 02:57:10PM -0400, Lon Palmer wrote: : It's obvious to me ( and probably to everyone else that uses : it ) that then entire process of installing mod_jk is broken. It takes too : much fiddling and effort. I don't share that view. I've setup mod_jk a few times, and it was very straightforward. I followed the docs and ran with it. JDBC/JNDI Resources (another problem that appears regularly) works for me without a hitch, too. Maybe I'm just lucky. ;) As for the rest of your post: I'll spare you a debate and leave it at "whatever works for you, works for you." Some people have an easier time working with the open software than dealing with commercial products. At least have the choice. Having dealt with my fair share of both commercial and free software, the price tag and quality don't necessarily correlate. I've used a few Very Cos$tly Products -- names withheld to protect the guilty ;) -- that required a lot of twiddling to get working, were very fragile once they did work, and "bug reports" were handled pretty much as the vendors felt like it. It's easy to say, "you should have put pressure on them, you're a customer" but when a vendor's large enough and you're bound to their product, that doesn't fly. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: chinese charsets not supported on Tomcat5.0.28?
I have tested this repeatedly and have yet to find any issue with non-latin characters for some time. You do, however, need to be very careful with configuration settings. Can you post a simple test case that fails and I will have a look at it for you. Mark > -Original Message- > From: nyhgan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 8:06 PM > To: Tomcat-User > Subject: chinese charsets not supported on Tomcat5.0.28? > > Hi all, > > Has any one deployed multi-lingual applications in > tomcat5.0.28? I am deploying an application that has chinese > characters and now all the characters become "?". > > If I switched back to 5.0.19, everything is fine again. There > must be something change in the 5.0.28 that makes it fail to > display non-latin pages properly. > > > nyhgan. > > > - > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J in Tomcat 5.0...I don't believe the FAQ
Hi, No -- different answers apply to different Tomcat versions. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Patrick Burleson [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 3:11 PM >To: Tomcat Users List >Subject: Re: Log4J in Tomcat 5.0...I don't believe the FAQ > >On Tue, 07 Sep 2004 13:02:27 -0400, Geoff <[EMAIL PROTECTED]> wrote: >> >> The correct way to install Log4j as your Tomcat 5.0 system logger is: >> >> 1) Shutdown Tomcat. >> 2) Install commons-logging.jar into common/lib. >> 3) Install log4j-1.2.8.jar into common/lib >> 4) Create an appropriate log4j.properties file in common/classes. >> 5) Restart Tomcat. >> > >I knew there had to be a missing step. By following these directions, >Tomcat's logging now goes through Log4J! > >Thanks Geoff! > >Geoff's answer is the only answer the FAQ should point to in reguards >to getting Tomcat's logging through log4j. > >Patrick > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5 and Servlet Timeout: Possible?
Shapira, Yoav wrote: There's no such option in Tomcat. So if one thread hangs, it hangs forever. If it blocks other threads, the whole app hangs... Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4J in Tomcat 5.0...I don't believe the FAQ
On Tue, 07 Sep 2004 13:02:27 -0400, Geoff <[EMAIL PROTECTED]> wrote: > > The correct way to install Log4j as your Tomcat 5.0 system logger is: > > 1) Shutdown Tomcat. > 2) Install commons-logging.jar into common/lib. > 3) Install log4j-1.2.8.jar into common/lib > 4) Create an appropriate log4j.properties file in common/classes. > 5) Restart Tomcat. > I knew there had to be a missing step. By following these directions, Tomcat's logging now goes through Log4J! Thanks Geoff! Geoff's answer is the only answer the FAQ should point to in reguards to getting Tomcat's logging through log4j. Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat5 and Servlet Timeout: Possible?
Hi, There's no such option in Tomcat. Yoav Shapira Millennium Research Informatics >-Original Message- >From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach >Sent: Tuesday, September 07, 2004 3:09 PM >To: [EMAIL PROTECTED] >Subject: Tomcat5 and Servlet Timeout: Possible? > >Hello everyone, > >I'm a bit puzzled at the moment. > >Isn't there an option to Tomcat5 that specifies a servlet timeout? >(maximum the a servlet may take to execute, after which the >corresponding thread is killed) I could only find connection timeout... > >Regards, > >Andreas > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5 and Servlet Timeout: Possible?
Hello everyone, I'm a bit puzzled at the moment. Isn't there an option to Tomcat5 that specifies a servlet timeout? (maximum the a servlet may take to execute, after which the corresponding thread is killed) I could only find connection timeout... Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
chinese charsets not supported on Tomcat5.0.28?
Hi all, Has any one deployed multi-lingual applications in tomcat5.0.28? I am deploying an application that has chinese characters and now all the characters become "?". If I switched back to 5.0.19, everything is fine again. There must be something change in the 5.0.28 that makes it fail to display non-latin pages properly. nyhgan. - Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now.
Re: TLS-Enabled Connector Prevents Startup
On 07/09/04 20:12, QM wrote: You may want to check what the kernel's using as a source of randomness. I forget the details, but IIRC /dev/urandom never blocks, whereas /dev/random may block under {some condition I can't recall in detail}. Well, the server in question is a vServer, a virtual server which shares the physical hardware with other virtual servers. The machine is hosted on provider's land and I have no physical access to it. All I can do is a ssh to my vServer instance. So, whatever it uses as a source of randomness, I have no way of discovering or changing it. And you are right, /dev/random will block if you try to read more random bytes than it currently has in the pool, it will wait for more random data to become available. /dev/urandom won't block if you ask for more than it has, it will give you what it has and perhaps inform you somehow that it wasn't as much as you requested. My linking /dev/random to /dev/urandom may well affect the quality of the encrypted connection, depends on how the underlying TLS library handles the random sources. In this case it thinks that it reads from /dev/random, so I guess that my solution can result in poor encryption keys. It isn't advisable for high security environments to follow my solution, but rather to check their random sources, as you suggested. In my case, I am one man and that server is my private hobby, a bad key with less random background than it should have is still more than good enough. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is Tomcat/Connector Installation So Incredibly Painful??
I really don't want to add to this heated debate but I feel I must. Posts by Yoav and QM point to the inherent problem with open source software development. It's obvious to me ( and probably to everyone else that uses it ) that then entire process of installing mod_jk is broken. It takes too much fiddling and effort. When some one point's this out on the mailing list we get responses like: "If mod_jk isn't to your liking -- and I see there have been a fair number of gripes (warranted or not, I won't answer to that ;) -- then you're free to write another." - QM and... "All I said mod_jk is trivial to download (I didn't say anything about installation), the connector documentation is not a high priority for at least some of the tomcat developers, and that if someone wants to bitch and moan without contributing they're welcome to, but they shouldn't expect people to care. All that's not only true but mostly self-evident ;)" - Yaov. In one sense they are right. This is an open source project and we have to power to add to the code. In another sense, they are dead wrong. Many sys admins are trying to move their companies into the open source space but managers are unwilling because they can pay for commercial projects that come with support to get projects moving. I know (from experience) if my manager is faced with spending $1000 for a commercial web container (Orion, Resin, JRun, whatever...) or paying for me to fiddle with mod_jk for three days, it's a no brain'r. The commercial container wins every time. Since I'm a developer it's actually cheaper both in the short run and the long run. The Tomcat devs should realize that the squeaky wheel gets the grease for a reason. If a lot of people are complaining about mod_jk, it's broken. Weather technically broken or perceptually broken does not matter. Broken is broken. Regards, Lon -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 1:06 PM To: Tomcat Users List Subject: Re: Why is Tomcat/Connector Installation So Incredibly Painful?? On Tue, Sep 07, 2004 at 06:25:46PM +0200, Endre St?lsvik wrote: : Do you really deny that mod_jk is somewhat hard to install? I mean, : probably 50% av the "OH MY WHATEVER - I CAN'T GET THIS TO WORK!!!" mails : are related to mod_jk.. Yes, but "posts to list" != "users." : Even if it isn't for anything else, a transparent forwarding mechanism : between a "specific subset of the server's URL namespace" (quote from : ServletContext) of the server holding the listen call at port 80, and : Tomcat, will always be needed, I believe. Some people use mod_proxy for just this reason. If mod_jk isn't to your liking -- and I see there have been a fair number of gripes (warranted or not, I won't answer to that ;) -- then you're free to write another. Some would complain that creating Yet Another Connector isn't the answer, but nor is Staying Unhappy With What's There, Knowing It Won't Change The Way You Want It. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
On Tue, Sep 07, 2004 at 07:59:46PM +0200, Igor Zlatkovic wrote: : however bizarre that may sound. It seems that the recent Linux kernel : update wasn't up to Tomcat's liking. For whatever the reason, Tomcat's : initialising of the TLS connector blocks in a read from /dev/random, : always. Ensuring that it reads from /dev/urandom instead makes it happy : again. You may want to check what the kernel's using as a source of randomness. I forget the details, but IIRC /dev/urandom never blocks, whereas /dev/random may block under {some condition I can't recall in detail}. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TLS-Enabled Connector Prevents Startup
Hi, Thanks for posting your solution. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Igor Zlatkovic [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 2:00 PM >To: Tomcat Users List >Subject: Re: TLS-Enabled Connector Prevents Startup > >I have found the solution and will share it here incase someone >encounters a similar problem in the future. > >The solution is: > > # cd /dev > # mv random random-old > # ln -s urandom random > >however bizarre that may sound. It seems that the recent Linux kernel >update wasn't up to Tomcat's liking. For whatever the reason, Tomcat's >initialising of the TLS connector blocks in a read from /dev/random, >always. Ensuring that it reads from /dev/urandom instead makes it happy >again. > >Although I haven't had anything to try with, I assume that every Java >program was affected by this, not only Tomcat. I am also aware of the >fact that this kind of solution is far from perfect, but it is a way >through until I find something else. > >Thanks to everyone for answers and suggestions. > >Ciao, >Igor > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
I have found the solution and will share it here incase someone encounters a similar problem in the future. The solution is: # cd /dev # mv random random-old # ln -s urandom random however bizarre that may sound. It seems that the recent Linux kernel update wasn't up to Tomcat's liking. For whatever the reason, Tomcat's initialising of the TLS connector blocks in a read from /dev/random, always. Ensuring that it reads from /dev/urandom instead makes it happy again. Although I haven't had anything to try with, I assume that every Java program was affected by this, not only Tomcat. I am also aware of the fact that this kind of solution is far from perfect, but it is a way through until I find something else. Thanks to everyone for answers and suggestions. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[VOTE][RESULT] Tomcat 5.0.28 Stability Rating
Hi, The Tomcat Development Team has voted to rate Apache Jakarta Tomcat 5.0.28 as a Stable release, with 6 +1 votes and no votes for Alpha or Beta ratings. The complete voting thread archive is at http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] a.apache.org&by=thread&from=876550. The Tomcat web site has been updated and, as always, users are encouraged to updated to this latest stable version. Yoav Shapira Millennium Research Informatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering and Virtual Hosts
Hi, The server.xml in Tomcat 5 has inside of . Right now, I'm running one host in the Tomcat configuration on each of two computers. server.xml in tomcat running on a computer named c1 has a named c1, and computer c2 has a host named c2. I'm planning to create several virtual hosts that will be clustered across two computers. The virtual hosts, of course, have the same IP address. Can I simply duplicate the definition in each of the sections in the multiple virtual hosts that I define in each computer? In other words: Computer 1: Computer 2: Where all the information in the element is the same for each virtual host on each computer. Seems like I end up with four virtual hosts that are all talking on the same TCP and multicast connections. Do I need to define a different tcpListenAddress / tcpListenPort for each virtual host? Thanks for your help! ==Leonard E. Sitongia VETS / Scientific Computing Division National Center for Atmospheric Research P.O. Box 3000 Boulder CO 80307 USA [EMAIL PROTECTED]voice: (303)497-2454 fax: (303)497-1829 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is Tomcat/Connector Installation So Incredibly Painful??
On Tue, 7 Sep 2004, Shapira, Yoav wrote: | | > Even if it isn't for anything else, a transparent forwarding | mechanism | >between a "specific subset of the server's URL namespace" (quote from | >ServletContext) of the server holding the listen call at port 80, and | >Tomcat, will always be needed, I believe. | | Claiming that something will always be needed is beyond my clairvoyance | abilities, but thankfully some people can apparently see the future ;) My Crystal Ball tells me that there will be approx. 5000 more complaints about mod_jk, and approx. 1000 replies from the developers stating "fix it yourself and DON'T complain anymore!!". At that point, everybody have begun using ASP.NET instead, on Mono. I believe that the reason for these problems lay in the nature of the WebServer/Tomcat bridge: it's rather complex C code being hacked together to run on a heap of different OSes and Webservers. One need insight in two rahter different worlds to be able to code this stuff - and these abilities are not very common, as is plainly obvious. I don't posess them - if I did, I think even I would have scratched that extreme itch a long time ago! Endre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is Tomcat/Connector Installation So Incredibly Painful??
You're right, if you don't have the time to contribute patches or enhancements, you cannot expect anyone to care, since you are not paying for the job. A complaint does, however, point to areas of potential improvement, and wise developers will eventually listen to them, giving each the priority they desire. It's called feedback... ;-) Snapping kills feedback, and without feedback you're pretty much in the dark. Gerardo Juarez On Tue, 7 Sep 2004, Shapira, Yoav wrote: > > Hi, > I would point out a few things: > > - If you can't navigate from the jakarta.apache.org web site to the JK > download links (either source or binary), and must resort to Googling > for the download links, you probably shouldn't be installing and > configuring the connectors (or Tomcat, or Apache httpd) in the first > place ;) It's pretty simple to click on either the "Binaries" or > "Source" code links under the "Downloads" header on the left-hand side > of jakarta.apache.org, and then scroll down the page for whatever > product you want. If you don't feel like reading the page or scrolling > down, you can use ctrl+f to find "mod_jk" right away, no problem. > > - I get completely different Google results from what you report when I > search for mod_jk, with a number of how-to pages coming first. > > - If you don't have time to contribute any patches or enhancements, you > can definitely bitch and gripe but you can't expect anyone to care. All > of us also have jobs and don't get paid for making your life easier. > We'd love to evaluate and integrate any improvements you can come up > with, but naturally connector documentation has never been an area of > high interest to most tomcat developers. Moreover, as Tomcat as > maturing the importance of the connectors in general is going down IMHO, > with more and more standalone installations. > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Greg Ward [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, September 07, 2004 9:27 AM > >To: Tomcat Users List > >Subject: Re: Why is Tomcat/Connector Installation So Incredibly > Painful?? > > > >On 03 September 2004, Peter Alvin said: > >> But why is it so > >> incredibly painful to install Apache/Tomcat/Connector? It always > >> takes me about two days. I look forward to it as much as doing my > >> federal tax returns. > > > >I'm in complete agreement with you. Even finding the right files to > >download is a bit of a chore. ("OK, so everyone says I need mod_jk. > >Therefore I'm looking for a file called... > >jakarta-tomcat-connectors-jk-1.2.6-src.tar.gz. Rght. Well, at > >least they have two letters in common.) > > > >Here's an interesting experiment: google'ing for "mod_jk" finds this > >page: > > http://jakarta.apache.org/site/binindex.cgi > >as the second hit. But the string "mod_jk" occurs nowhere in that > page; > >you have to hunt around until you realize that what you're really > >looking for is "Tomcat Web Server Connectors". And then you only get > to > >the "binary releases" page, which is useless -- I need the source, > >dammit! > > > >Oh, the *first* Google hit for "mod_jk" is > > http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html > >which I think most people who are working with Tomcat 4.1.x or 5.0.x > >would probably ignore based on the URL. > > > >Anyways, once you've downloaded the source (which I've already > forgotten > >how to do -- luckily I kept a local copy), you then have to figure out > >*what* to build in that tree and where to find it. Not obvious. And > >it's different from mod_jk to mod_jk2. And then getting things to > build > >is even less obvious. > > > >Alas, I don't have time to do anything more than bitch and gripe. > >Whoever is actually maintaining mod_jk, mod_jk2, and associated web > >pages, please hear our cries! > > > >Greg > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > This e-mail, including any attachments, is a confidential business communication, > and may contain information that is confidential, proprietary and/or privileged. > This e-mail is intended only for the individual(s) to whom it is addressed, and may > not be saved, copied, printed, disclosed or used by anyone else. If you are not > the(an) intended recipient, please immediately delete this e-mail from your computer > system and notify the sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NoClassDefFoundError Issue
On Tue, Sep 07, 2004 at 10:36:29PM +0530, Avinash R S wrote: : - Root Cause - : java.lang.NoClassDefFoundError: ssbi/bean/SSBIUserMessage : : Prior to restarting the server I didn't have this issue. The classes referred : in the above Exceptions, exist in the correct location. Are there any new classes in the tree? Put another way, has the app been recompiled against all required classes? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
On 07/09/04 17:42, Jason Palmatier wrote: Has the certificate the SSL/TLS connection uses expired? This will cause the TLS connection to fail to come up. Then, if you have a security constraint defined in your web.xml file that requires TLS for your initial pages, the redirect from your normal port to the TLS port will fail (since the TLS port is not active). Thanks for the idea. Unfortunately, the keystore hasn't changed from the time when everything worked. It is a JKS keystore, contains two certificates. The one is the self-signed CA, the other is for the TLS connection, signed by that CA. Both valid until 2013, for another nine years. Tomcat 5.0.18 worked happily with that keystore for several months. Tomcat 5.0.25 also worked with it for several weeks, until I restarted it few days ago. Besides, just the TLS connection not working is not the problem. When a TLS connector is present in conf/server.xml, nothing comes up, not even the normal port. The normal port (80) is open, but no requests are served. The TLS port isn't open at all, according to netstat. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Customizing BASIC authentication
For example, Spec 2.3 specifies The getRemoteUser method returns the user name the client used for authentication. If no user has been authenticated, the getRemoteUser method returns null. getRemoteUser(): ... Whether the user name is sent with each subsequent request depends on the browser and type of authentication. -Message d'origine- De : Robert Bateman [mailto:[EMAIL PROTECTED] Envoyé : lundi 16 août 2004 20:42 À : Tomcat Users List Objet : Re: Customizing BASIC authentication Someone please correct me if I'm wrong here... Also be aware that non-protected pages will not provide you with a value to request.getRemoteUser(). I had assumed I could get the remote user from any page once the user logged in, but it doesn't work as I expected. I believe there *was* a bug report over on the TC bugzilla system and the response I remember was that the system was working as designed. Bob On Saturday 14 August 2004 12:13 am, Jacob Kjome wrote: > You can use request.getRemoteUser() to obtain the username. The password > is not really accessible except by examining the http headers. > > Jake > > At 11:21 PM 8/13/2004 -0400, you wrote: > >Hi all, > > > >I've been spending the last few hours reading about realms, > >valves, authenticators and the like, and I'm totally confused. > >I'm hoping if I describe my situation, someone can help me > >cut through the fog. > > > >I'm working on a simple web app that will feed custom RSS XML > >to clients that must use basic authentication. In my application, > >I need to do more than just look up users somewhere. Instead, the > >login/password values returned via basic authentication headers will be > > used in some fairly complex ways to both authenticate and then > >construct the custom response. > > > >What is the simplest way to customize basic authentication > >in Tomcat 4? It seems that realms are not the way to go, since > >they just handle authentication and have nothing to do with the > >request/response. Valves/authenticators seem like overkill. Form > >based authentication is not an option. > > > >Can I have Tomcat manage basic authentication headers but pass > >the login/password values to my code? And can I then have access > >to that information in the servlet that creates the response? > > > >Many thanks, > > > >Fred > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repost: java.security.AccessControlException
Hi David Thanks for your message. I solved my problem starting tomcat with -security. The fact is that I try first to get things works, even without security and then set security step by step. Now that things are working again I will start to set back security on. Best Regards Andre Legendre David Wall wrote: The syntax is: permission java.security.AllPermission; Of course, why use a security manager at all if the default is no security at all? David - Original Message - From: "Andre Legendre" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 8:34 AM Subject: Repost: java.security.AccessControlException Hi I post again my problem because I get stuck and I need some help. I had a servlet working using jwsdp 1.3. I changed to 1.4 and I get now a java.security.AccessControlException My classes are in a jar located in WEB-INF/lib/ my policy is : grant { permission java.security.AllPermission "", ""; }; Any help welcome Andre Legendre Error is : INFO: Server startup in 20279 ms Setting controller properties Setting controller RMISecurityManager Setting controller RMISecurityManager Finish 127.0.0.1 Setting controller startDiscovery java.security.AccessControlException: access denied (java.io.FilePermission /home/rcs/Master/extern/java/jwsdp/tomcat-jwsdp-1.4/webapps/mfg_ServletToJsp /WEB-INF/classes/com/sun/rio/resources/client/JiniClient.class read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkRead(SecurityManager.java:863) at java.io.File.exists(File.java:678) at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:881) at org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:263) at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:338) at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas sLoader.java:1729) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1597) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:891) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1220) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at WebMfgServiceManager.startDiscovery(Unknown Source) at WebMfgServiceManager.(Unknown Source) at servletToJsp.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10 44) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:719) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis patcher.java:516) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:453) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:369) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:717 ) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:687) at org.apache.jsp.jsptoserv.jsptoservlet_jsp._jspService(jsptoservlet_jsp.java: 45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:286) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:258) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:256) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:210) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:513) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:149) at org.apache.c
Re: Why is Tomcat/Connector Installation So Incredibly Painful??
On Tue, Sep 07, 2004 at 06:25:46PM +0200, Endre St?lsvik wrote: : Do you really deny that mod_jk is somewhat hard to install? I mean, : probably 50% av the "OH MY WHATEVER - I CAN'T GET THIS TO WORK!!!" mails : are related to mod_jk.. Yes, but "posts to list" != "users." : Even if it isn't for anything else, a transparent forwarding mechanism : between a "specific subset of the server's URL namespace" (quote from : ServletContext) of the server holding the listen call at port 80, and : Tomcat, will always be needed, I believe. Some people use mod_proxy for just this reason. If mod_jk isn't to your liking -- and I see there have been a fair number of gripes (warranted or not, I won't answer to that ;) -- then you're free to write another. Some would complain that creating Yet Another Connector isn't the answer, but nor is Staying Unhappy With What's There, Knowing It Won't Change The Way You Want It. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is Tomcat/Connector Installation So Incredibly Painful??
Hi, You have a unique talent for either misunderstanding my posts or taking them out of context ;) >Do you really deny that mod_jk is somewhat hard to install? No, I don't deny it's hard to install, and I didn't deny it in my original email. I said it's easy to download, and it is. >What if you run some PHP stuff and some Servlet stuff on the same >servername? Or simply many tomcats behind a front-end? I didn't say Tomcat standalone is suitable for all situations, but for a growing number of situations, and again I stand by that. > Even if it isn't for anything else, a transparent forwarding mechanism >between a "specific subset of the server's URL namespace" (quote from >ServletContext) of the server holding the listen call at port 80, and >Tomcat, will always be needed, I believe. Claiming that something will always be needed is beyond my clairvoyance abilities, but thankfully some people can apparently see the future ;) I disagree that even now such a transparent forwarding mechanism is strictly needed for many applications, because many servers including Tomcat can bind to port 80 while not running as root. >maybe not the right solution for this. A simple raw forwarding of the >requests from Apache HTTPD to Apache Tomcat would be incredibly nice. There's nothing preventing you from writing this, and either making $$$ off of it (if the need for such a product is as high as you think, you might even get lots of $$$ for it), or donating it to the open-source community. >One also have other HTTP servers than Apache, in particular IIS. And that has to do with my post, how? ;) All I said mod_jk is trivial to download (I didn't say anything about installation), the connector documentation is not a high priority for at least some of the tomcat developers, and that if someone wants to bitch and moan without contributing they're welcome to, but they shouldn't expect people to care. All that's not only true but mostly self-evident ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NoClassDefFoundError Issue
Hi , I have a production tomcat system which is remotely managed for me . Few days back we had a Server System restart and after the restart we are finding the following errors on the server. 2004-09-04 15:58:50 StandardWrapper[/ssbi:birmPortalServlet]: Waiting for 9 instance(s) to be deallocated 2004-09-04 15:58:50 StandardWrapperValve[birmPortalServlet]: Servlet.service() for servlet birmPortalServlet threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) - Root Cause - java.lang.NoClassDefFoundError: ssbi/bean/SSBIUserMessage at ssbi.servlet.birmPortalServlet.doProcess(birmPortalServlet.java:151) at ssbi.servlet.birmPortalServlet.doPost(birmPortalServlet.java:85) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline
Re: Log4J in Tomcat 5.0...I don't believe the FAQ
I went through all of these problems myself when I tried to get Log4j working as my system logger in Tomcat 5.0.27. I followed the directions in the FAQ but log4j was not being detected on bootup. I too modified the "catalina.sh" startup script and added the log4j.jar file to the classpath and even added the bin directory to the classpath in order for the log4j.properties file to be "seen" by the class loader. Only then did Log4j work at startup. However, I had made a fundamental mistake. I eventually did get Log4j to work as others have described using the common/lib and common/classes directories. This morning, I installed a fresh copy of Tomcat 5.0.27 into a temporary directory to see if I could reproduce what I did right and what I did wrong. The correct way to install Log4j as your Tomcat 5.0 system logger is: 1) Shutdown Tomcat. 2) Install commons-logging.jar into common/lib. 3) Install log4j-1.2.8.jar into common/lib 4) Create an appropriate log4j.properties file in common/classes. 5) Restart Tomcat. This actually works. The step that I must have missed the first time I tried this is probably a mistake others are making: you MUST install commons-logging.jar into your common/lib directory. Yes, I know there is a commons-logging-api.jar file in the bin (bootstrap) directory of Tomcat. Leave it there; you can't boot without it. You also can't replace it with a full blown commons-loging.jar file. The commons-logging-api.jar file appears to be a stripped down version of the full commons-logging.jar file which only implements SimpleLog or something like it. Basically, just enough of a logging system to get bootstrapped. Through some classloading voodoo during bootstrapping, if you have the full commons-logging.jar file in your common/lib directory, it replaces the classes from the commons-logging-api.jar file and will reinitialize the logging system and attempt to locate log4j or whatever other logging system you may be using. It was due to my own frustrations at getting Log4j working with Tomcat that I wrote the technical tip I posted to this list this weekend: http://minaret.biz/tips/tomcatLogging.html I appreciate the fact that someone has added a link from the Tomcat FAQ to this page. Anyone is more than welcome to cut, copy and paste any of my stuff to build a better logging FAQ. If you need any help, let me know. Best, Geoff Shapira, Yoav wrote: Hi, Hmm, it's possible that now that we've moved Tomcat's bootstrapping code to also use commons-logging, the impl lib is needed on the bootstrap classpath. I'll amend the FAQ entry to also link to this thread and give some though to updating the documentation-proper (as opposed to the FAQ) on this issue. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, September 05, 2004 2:13 PM To: [EMAIL PROTECTED] Subject: Log4J in Tomcat 5.0...I don't believe the FAQ Patrick Burleson wrote about problems in getting Tomcat to use log4j by following the FAQ. I have been struggling the same fight for some time, but a hint in one of the recipes finally lead me to the solution. It is --not-- enough to place log4j-x-x-x.jar in $CATALINA_HOME/common/lib and the properties file in .../common/classes. You --also-- have to place log4j-x-x-x.jar in classpath when starting tomcat. I did not find a "nice" way of doing this, but appending the path to log4j- x-x-x.jar to the line CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HO ME"/ bin/c ommons-logging-api.jar in .../bin/catalina.sh did the trick, i.e. with this change, commons- logging will discover logj4.jar and use it. It would be nice to be able to supply this extra classpath entry when invoking catalina.sh instead of having to modify the script each time tomcat is updated. regards Erik Bertelsen - WebMail fra Tele2 http://www.tele2.dk - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
On 07/09/04 15:27, Shapira, Yoav wrote: Hi, Is there any additional debug output in the logger, specifically a ClassNotFoundException or a NoClassDefFoundError for a TLS-related class? Has the JVM you're using changed? Unfortunately, there is no additional output. I would have been very happy with a ClassNotFoundException, with any exception at all, that would have told me what the problem is. Everything it says is the following: [spell:/opt/catalina/bin]# ./catalina.sh run Using CATALINA_BASE: /opt/catalina Using CATALINA_HOME: /opt/catalina Using CATALINA_TMPDIR: /opt/catalina/temp Using JAVA_HOME: /opt/j2se Sep 7, 2004 6:47:11 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 and there it remains for all times. The JVM has not changed. This is the one: [spell:/opt/catalina/bin]# java -version java version "1.4.2_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) That is a Java2 SDK, installed in /opt/j2se. By the way, This all happens on a RedHat 9 system. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat5 and JVM in -server Mode?
Hi, STFA. I personally tested several 4.0.x and 4.1.x Tomcat releases on Solaris 8 and Sun JDK 1.3.1 and 1.4.1 versions. Even if stability is better by now, I wouldn't be convinced that -server should be added by default because of portability (to other JVMs) requirements. Yoav Shapira Millennium Research Informatics >-Original Message- >From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach >Sent: Tuesday, September 07, 2004 12:52 PM >To: [EMAIL PROTECTED] >Subject: Re: Tomcat5 and JVM in -server Mode? > >Hi, > > >>Is there any reason why Tomcat 5.0.27 is not run in the JVM -server > > >> Yes: historically observed reduced stability in server mode. > >Where can I find more information about this? Which JVM and Tomcat >versions were tested? > >Regards, > >Andreas > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.0 - Child name is not unique error
Hi QM, I did a recursive grep under $CATALINA_HOME for 'autodeploy', and nothing was found. So, I suppose it is not the case... I followed the tip provided by Allistair (create a lololo.xml in conf/Catalina/localhost/), and the error is gone (thanks Allistair!). The XML syntax to create a logger seems to have changed though... But this is another problem... Bye Helena QM <[EMAIL PROTECTED]> wrote: On Tue, Sep 07, 2004 at 08:50:37AM -0700, helena rato wrote: : I have repeated the exact same process, creating a 'lololo' web app the same way I did create 'blabli' , and I get the same error (Child name 'lololo' is not unique). : : I am 100% sure that I don't have 2 web apps with the same path. The error comes when I add a 'context' tag in server.xml (in my case I'm just trying to add a logger), as explained in my previous mail. Do you have both autodeploy=true *and* some elements (either context.xml or in server.xml)? That would trigger the double-deploy. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Tomcat5 and JVM in -server Mode?
Hi, >>Is there any reason why Tomcat 5.0.27 is not run in the JVM -server > Yes: historically observed reduced stability in server mode. Where can I find more information about this? Which JVM and Tomcat versions were tested? Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is Tomcat/Connector Installation So Incredibly Painful??
> | Moreover, as Tomcat as maturing the importance of the connectors in > | general is going down IMHO, with more and more standalone > installations. I've missed the begining of this but in most environments I have worked in tomcat/app servers are used behind webservers, so connectors or proxies are important to me. Although tomcat might be great standalone this is not the issue - it is more an issue of intergrating app server XYZ into a URL space - this is equally applicable to python based stuff, mod_perl, PHP or weblogic as app servers then to be heavy weight (CPU/Memory) compared to a webserver. > PS: Is it possible to get mod_proxy to do this raw forwarding > perferctly? > (SSL? Client certificates? persistent connections, > pipelining, ALL headers > and whatnots?) .. mod_proxy cannot forward SSL connections. Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is Tomcat/Connector Installation So Incredibly Painful??
On Tue, 7 Sep 2004, Shapira, Yoav wrote: | | Hi, | I would point out a few things: [ - chop - ] Do you really deny that mod_jk is somewhat hard to install? I mean, probably 50% av the "OH MY WHATEVER - I CAN'T GET THIS TO WORK!!!" mails are related to mod_jk.. | Moreover, as Tomcat as maturing the importance of the connectors in | general is going down IMHO, with more and more standalone installations. What if you run some PHP stuff and some Servlet stuff on the same servername? Or simply many tomcats behind a front-end? Even if it isn't for anything else, a transparent forwarding mechanism between a "specific subset of the server's URL namespace" (quote from ServletContext) of the server holding the listen call at port 80, and Tomcat, will always be needed, I believe. The mod_jk approach of inventing a new binary protocol and whatnot is maybe not the right solution for this. A simple raw forwarding of the requests from Apache HTTPD to Apache Tomcat would be incredibly nice. Others probably likes the "enterprise features" (a/k/a clustering) of mod_jk better, and thus won't be happy with a simple forward.. One also have other HTTP servers than Apache, in particular IIS. Endre PS: Is it possible to get mod_proxy to do this raw forwarding perferctly? (SSL? Client certificates? persistent connections, pipelining, ALL headers and whatnots?) .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repost: java.security.AccessControlException
The syntax is: permission java.security.AllPermission; Of course, why use a security manager at all if the default is no security at all? David - Original Message - From: "Andre Legendre" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 8:34 AM Subject: Repost: java.security.AccessControlException > Hi > > I post again my problem because I get stuck and I need some help. > > I had a servlet working using jwsdp 1.3. I changed to 1.4 and I get now > a java.security.AccessControlException > > My classes are in a jar located in WEB-INF/lib/ > my policy is : > grant { > permission java.security.AllPermission "", ""; > }; > > Any help welcome > > Andre Legendre > Error is : > > INFO: Server startup in 20279 ms > Setting controller properties > Setting controller RMISecurityManager > Setting controller RMISecurityManager Finish > 127.0.0.1 > Setting controller startDiscovery > java.security.AccessControlException: access denied > (java.io.FilePermission > /home/rcs/Master/extern/java/jwsdp/tomcat-jwsdp-1.4/webapps/mfg_ServletToJsp /WEB-INF/classes/com/sun/rio/resources/client/JiniClient.class > > read) > at > java.security.AccessControlContext.checkPermission(AccessControlContext.java :269) > at > java.security.AccessController.checkPermission(AccessController.java:401) > at > java.lang.SecurityManager.checkPermission(SecurityManager.java:524) > at java.lang.SecurityManager.checkRead(SecurityManager.java:863) > at java.io.File.exists(File.java:678) > at > org.apache.naming.resources.FileDirContext.file(FileDirContext.java:881) > at > org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:263) > at > org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:338) > at > org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas sLoader.java:1729) > at > org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1597) > at > org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:891) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1340) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1220) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > at WebMfgServiceManager.startDiscovery(Unknown Source) > at WebMfgServiceManager.(Unknown Source) > at servletToJsp.init(Unknown Source) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10 44) > at > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:719) > at > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis patcher.java:516) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:453) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:369) > at > org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:717 ) > at > org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:687) > at > org.apache.jsp.jsptoserv.jsptoservlet_jsp._jspService(jsptoservlet_jsp.java: 45) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:286) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:258) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:256) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:210) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:513) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:149) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196 ) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) > at > org.apache.catal
Re: Tomcat 5.5.0 - Child name is not unique error
On Tue, Sep 07, 2004 at 08:50:37AM -0700, helena rato wrote: : I have repeated the exact same process, creating a 'lololo' web app the same way I did create 'blabli' , and I get the same error (Child name 'lololo' is not unique). : : I am 100% sure that I don't have 2 web apps with the same path. The error comes when I add a 'context' tag in server.xml (in my case I'm just trying to add a logger), as explained in my previous mail. Do you have both autodeploy=true *and* some elements (either context.xml or in server.xml)? That would trigger the double-deploy. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat jsp compile with ant
I figured that this is happenning due to some bug because when I run the ant again after the error it continues till the next one and then again... :) Anyway I figured that this post should have been in some other place (e.g. ant user list). Thanks for your attention David - Original Message - From: "David Aleksanyan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 11:03 PM Subject: tomcat jsp compile with ant > Hi, > > I'm trying to get Ant to compile everything and NOT stop if there is a jsp > that doesn't compile. > > I've got tomcat 4.1.27 and downloaded the latest (current)Ant > I have an app with lots of JSPs. > > After I followed the tomcat docs > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html > I am able to initiate the compile of the whole app. The problem is that some > of the JSPs don't compile with Null Pointer Exception and I get stuck on > those.. > Is there a way to set up ant to proceed even though it can't compile > something? > > Thanks in advance. > > David > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.0 - Child name is not unique error
you shouldn't put Context elements in server.xml. You should define a separate file like lololo.xml and put it in conf/Catalina/localhost/ > -Original Message- > From: helena rato [mailto:[EMAIL PROTECTED] > Sent: 07 September 2004 16:51 > To: Tomcat Users List > Subject: RE: Tomcat 5.5.0 - Child name is not unique error > > > Hi, > > Thanks for looking into this matter. > > I have repeated the exact same process, creating a 'lololo' > web app the same way I did create 'blabli' , and I get the > same error (Child name 'lololo' is not unique). > > I am 100% sure that I don't have 2 web apps with the same > path. The error comes when I add a 'context' tag in > server.xml (in my case I'm just trying to add a logger), as > explained in my previous mail. > > Also, I did try doing the exact same with tomcat 5.0.12: it > works fine (no error and the logger is created). > > Bye > > Helena > > "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Hi, > There's nothing strange about this error: you can't have two webapps > wieh the same path. You couldn't in Tomcat 4.x or 5.0.x, and you can't > in 5.5.x. ;) > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: helena rato [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, September 07, 2004 11:01 AM > >To: [EMAIL PROTECTED] > >Subject: Tomcat 5.5.0 - Child name is not unique error > > > >Hi all, > > > >Here is the problem description: > > > >I have Linux RedHat 9 (kernel 2.4.20-8). > >I have Java jdk 1.5.0 > >I have installed tomcat 5.5.0 > > > >I create a brand new web app, I call it 'blabli' : > > > >mkdir $CATALINA_HOME/webapps/blabli > >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF > >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes > >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib > > > >In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as > >follows: > > > >[EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml > > > >> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > Servlet 2.4 Examples > > > > Servlet 2.4 Examples. > > > > > > > >I re-start tomcat. > > > >At this point, tomcat runs fine. > > > >Now, I add a logger using a context tag in > $CATALINA_HOME/conf/server.xml. > > > >The code added to $CATALINA_HOME/conf/server.xml is: > > > > > debug="5" reloadable="true" crossContext="true"> > > > prefix="localhost_blabli_log." suffix=".txt" > > timestamp="true"/> > > > > > >I re-start tomcat. > > > >And I get a strange error! > > > >The error in catalina.out is: > > > >[GC 3771K->3357K(5044K), 0.0031900 secs] > >Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig > >deployDirectory > >SEVERE: Error deploying web application directory blabli > >java.lang.IllegalArgumentException: addChild: Child name '/blabli' is > not > >unique > > at > >org.apache.catalina.core.ContainerBase.addChildInternal(Conta > inerBase.j > ava: > >749) > > at > >org.apache.catalina.core.ContainerBase.addChild(ContainerBase > .java:739) > > > > > > > > > >Thank-you in advance for any clue! > > > >Helena > > > > > >- > >Do you Yahoo!? > >Yahoo! Mail is new and improved - Check it out! > > > > This e-mail, including any attachments, is a confidential > business communication, and may contain information that is > confidential, proprietary and/or privileged. This e-mail is > intended only for the individual(s) to whom it is addressed, > and may not be saved, copied, printed, disclosed or used by > anyone else. If you are not the(an) intended recipient, > please immediately delete this e-mail from your computer > system and notify the sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.0 - Child name is not unique error
Hi, Thanks for looking into this matter. I have repeated the exact same process, creating a 'lololo' web app the same way I did create 'blabli' , and I get the same error (Child name 'lololo' is not unique). I am 100% sure that I don't have 2 web apps with the same path. The error comes when I add a 'context' tag in server.xml (in my case I'm just trying to add a logger), as explained in my previous mail. Also, I did try doing the exact same with tomcat 5.0.12: it works fine (no error and the logger is created). Bye Helena "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: Hi, There's nothing strange about this error: you can't have two webapps wieh the same path. You couldn't in Tomcat 4.x or 5.0.x, and you can't in 5.5.x. ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: helena rato [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 11:01 AM >To: [EMAIL PROTECTED] >Subject: Tomcat 5.5.0 - Child name is not unique error > >Hi all, > >Here is the problem description: > >I have Linux RedHat 9 (kernel 2.4.20-8). >I have Java jdk 1.5.0 >I have installed tomcat 5.5.0 > >I create a brand new web app, I call it 'blabli' : > >mkdir $CATALINA_HOME/webapps/blabli >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib > >In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as >follows: > >[EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml > >> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > Servlet 2.4 Examples > > Servlet 2.4 Examples. > > > >I re-start tomcat. > >At this point, tomcat runs fine. > >Now, I add a logger using a context tag in $CATALINA_HOME/conf/server.xml. > >The code added to $CATALINA_HOME/conf/server.xml is: > > > debug="5" reloadable="true" crossContext="true"> > > prefix="localhost_blabli_log." suffix=".txt" > timestamp="true"/> > > >I re-start tomcat. > >And I get a strange error! > >The error in catalina.out is: > >[GC 3771K->3357K(5044K), 0.0031900 secs] >Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig >deployDirectory >SEVERE: Error deploying web application directory blabli >java.lang.IllegalArgumentException: addChild: Child name '/blabli' is not >unique > at >org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: >749) > at >org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > > > > >Thank-you in advance for any clue! > >Helena > > >- >Do you Yahoo!? >Yahoo! Mail is new and improved - Check it out! This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: TLS-Enabled Connector Prevents Startup
Has the certificate the SSL/TLS connection uses expired? This will cause the TLS connection to fail to come up. Then, if you have a security constraint defined in your web.xml file that requires TLS for your initial pages, the redirect from your normal port to the TLS port will fail (since the TLS port is not active). Just a thought, Jason __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repost: java.security.AccessControlException
Hi I post again my problem because I get stuck and I need some help. I had a servlet working using jwsdp 1.3. I changed to 1.4 and I get now a java.security.AccessControlException My classes are in a jar located in WEB-INF/lib/ my policy is : grant { permission java.security.AllPermission "", ""; }; Any help welcome Andre Legendre Error is : INFO: Server startup in 20279 ms Setting controller properties Setting controller RMISecurityManager Setting controller RMISecurityManager Finish 127.0.0.1 Setting controller startDiscovery java.security.AccessControlException: access denied (java.io.FilePermission /home/rcs/Master/extern/java/jwsdp/tomcat-jwsdp-1.4/webapps/mfg_ServletToJsp/WEB-INF/classes/com/sun/rio/resources/client/JiniClient.class read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkRead(SecurityManager.java:863) at java.io.File.exists(File.java:678) at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:881) at org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:263) at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:338) at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1729) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1597) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:891) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1220) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at WebMfgServiceManager.startDiscovery(Unknown Source) at WebMfgServiceManager.(Unknown Source) at servletToJsp.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:719) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:516) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:453) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:369) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:717) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:687) at org.apache.jsp.jsptoserv.jsptoservlet_jsp._jspService(jsptoservlet_jsp.java:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:513) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.ca
Tomcat 5.0: Howto define thread values for AJP
Hello, We are using Tomcat with AJP 1.3 I can tell from the Server.xml file that there are several optionsavaible for thread settings for HTTP like maxThreads, minSpareThreads etc Is it possible to define this for AJP as well or is this totally a Web server configuration issue? /L - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: is reloading the web context sufficient ?
To clarify and remove the confusion I'm making ;) webapp.root / WEB-INF / classes / [package] I would simply like to know how on-going HTTP traffic is handled when the classes get reloaded, either by the reloadable attribute in the or by the Manager webapp reload function. Quinten -Original Message- From: Quinten Verheyen Sent: 07 September 2004 15:30 To: Tomcat Users List Subject: RE: is reloading the web context sufficient ? Yes, you are right, it's confusing the way I said it. What I meant was : one web context that contains a lot of custom class-files. Normally, I would agree with you that each application should have it's own context, but there are some reasons why this approach isn't taken : 1) the system we work with expects only one specific web context to be used 2) every application uses common functionality + configuration setup anyway (e.g. database config) 3) I'm talking about hundred's of mostly small applications, imho confuring a separate web context for each would be overkill. Of course, the advantage of having a separate context for each app would be the total non-intrusion when reloading a specific context :s -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 07 September 2004 15:10 To: Tomcat Users List Subject: RE: is reloading the web context sufficient ? Hi, In the Tomcat world, one web application = one web context. So please clarify what you mean by "a lot of applications (in one web context)". Yoav Shapira Millennium Research Informatics >-Original Message- >From: Quinten Verheyen [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 6:15 AM >To: Tomcat Users List >Subject: is reloading the web context sufficient ? > >Hi, > >I'm wondering about strategies for having a production (Tomcat) webserver >that hosts a lot of applications (in one web context) and needs to be >running 24/7. The main issue is not to lose any traffic coming in/out. > >Is reloading a web context via the manager app for every change made to >class-files, lib's etc. a good option ? I mean, does this have any >implications on internet traffic getting lost at the moment the reload >occurs ? >The same reasoning would apply for deploying/undeploying through the admin >webapp. >My guess is that the safe way is handling this through clustering (DNS >round robin), and having 2 tomcat containers running with the same web >context, but only one of them would be accessed at a time. > >Fill me in if I'm wrong. > >Quinten > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tag reuse, setParent and findAncestorWithClass
Thanks Tim, I got it working! -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 10:07 AM To: Tomcat Users List Subject: Re: tag reuse, setParent and findAncestorWithClass Turn off tag pooling. -Tim Justin Kennedy wrote: > Hi Tim, > > I read through the link you posted but I don't see any references to > setParent. I understand that setParent is only called once when the > attributes for a tag are the same (because it's reused), so how should I > go about developing the inner tag so the parent will always be set? I > read up on SimpleTag and that could be the answer, but I'm worried about > performance with this because the writevalue tag is called many many > times on one page. > > Thanksk > > -Original Message- > From: Tim Funk [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 7:59 AM > To: Tomcat Users List > Subject: Re: tag reuse, setParent and findAncestorWithClass > > http://jakarta.apache.org/tomcat/faq/misc.html#tagbroken > > -tim > > Justin Kennedy wrote: > >>Hi, >> >> >> >>I'm upgrading our tag library to Tomcat 5 and having problems. Note > > that > >>they were written back in JSP 1.1 and haven't changed for a few years. >> >> >> >>The problem looks like the tags are being cached and the setParent > > isn't > >>being called for each new "reuse". As a result the wrong tag is > > returned > >>from findAncestorWithClass when the WriteValueTag is re-used in a >>different nested block. Maybe this is how the spec was designed and I >>just don't know the right way to code the tags. Anyway here's what the >>JSP page looks like (note: transacttag issues a call to the database. >>Writevaluetag writes the value of a column from the data returned from >>transacttag. If 'transactId' isn't passed to WriteValueTag, it will > > use > >>the findAncestorWithClass to find the enclosing IterateTag to > > determine > >>the transactId): >> >> >> >> >> >> >> >> >> >>a - >> >> >> >> > value='<%= > >>tmpuiid %>'/> >> >> >> >> >> >> >> >> >> >>#1 - >> >>#2 - >column="FORM_NAME"/> >> >>#3 - >> >> >> >> >> >> >> >> >> >> >> >> >> >>The problems: >> >>1.UI_NAME in #1 is a column from the first "uis" transactTag. The >>writeValueTag prints out the value of this column but it shouldn't >>behave this way because it's enclosed IterateTag has a different >>"transactId". I put this here to demonstrate the problem >>2.FORM_NAME in #3 is a column in the second transactTag of "ui". >>This column value SHOULD be output (like it has always done) because > > the > >>enclosed iterateTag specifies the proper transactId, but this value is >>not output because it's parent is set to the first IterateTag and not >>the second, hence the different transactIds. >> >> >> >>#2 works only because I'm explicitly setting the transactId. >> >> >> >>The WriteValueTag extends the TagSupport class and everything is done > > in > >>the doStartTag event. >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.0 - Child name is not unique error
Hi, Not this one ;) Your use-case with "ROOT" is different. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Allistair Crossley [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 11:06 AM >To: Tomcat Users List >Subject: RE: Tomcat 5.5.0 - Child name is not unique error > >sorry yoav .. i thought this was a bug that we discussed the other day. > >ADC > >> -Original Message- >> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >> Sent: 07 September 2004 16:04 >> To: Tomcat Users List >> Subject: RE: Tomcat 5.5.0 - Child name is not unique error >> >> >> >> Hi, >> There's nothing strange about this error: you can't have two webapps >> wieh the same path. You couldn't in Tomcat 4.x or 5.0.x, and >> you can't >> in 5.5.x. ;) >> >> Yoav Shapira >> Millennium Research Informatics >> >> >> >-Original Message- >> >From: helena rato [mailto:[EMAIL PROTECTED] >> >Sent: Tuesday, September 07, 2004 11:01 AM >> >To: [EMAIL PROTECTED] >> >Subject: Tomcat 5.5.0 - Child name is not unique error >> > >> >Hi all, >> > >> >Here is the problem description: >> > >> >I have Linux RedHat 9 (kernel 2.4.20-8). >> >I have Java jdk 1.5.0 >> >I have installed tomcat 5.5.0 >> > >> >I create a brand new web app, I call it 'blabli' : >> > >> >mkdir $CATALINA_HOME/webapps/blabli >> >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF >> >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes >> >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib >> > >> >In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as >> >follows: >> > >> >[EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml >> > >> >> >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >> >"http://java.sun.com/dtd/web-app_2_3.dtd";> >> > >> >Servlet 2.4 Examples >> > >> > Servlet 2.4 Examples. >> > >> > >> > >> >I re-start tomcat. >> > >> >At this point, tomcat runs fine. >> > >> >Now, I add a logger using a context tag in >> $CATALINA_HOME/conf/server.xml. >> > >> >The code added to $CATALINA_HOME/conf/server.xml is: >> > >> >> >debug="5" reloadable="true" crossContext="true"> >> > > > prefix="localhost_blabli_log." suffix=".txt" >> > timestamp="true"/> >> > >> > >> >I re-start tomcat. >> > >> >And I get a strange error! >> > >> >The error in catalina.out is: >> > >> >[GC 3771K->3357K(5044K), 0.0031900 secs] >> >Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig >> >deployDirectory >> >SEVERE: Error deploying web application directory blabli >> >java.lang.IllegalArgumentException: addChild: Child name >> '/blabli' is >> not >> >unique >> >at >> >org.apache.catalina.core.ContainerBase.addChildInternal(Conta >> inerBase.j >> ava: >> >749) >> >at >> >org.apache.catalina.core.ContainerBase.addChild(ContainerBase >> .java:739) >> > >> > >> > >> > >> >Thank-you in advance for any clue! >> > >> >Helena >> > >> > >> >- >> >Do you Yahoo!? >> >Yahoo! Mail is new and improved - Check it out! >> >> >> >> This e-mail, including any attachments, is a confidential >> business communication, and may contain information that is >> confidential, proprietary and/or privileged. This e-mail is >> intended only for the individual(s) to whom it is addressed, >> and may not be saved, copied, printed, disclosed or used by >> anyone else. If you are not the(an) intended recipient, >> please immediately delete this e-mail from your computer >> system and notify the sender. Thank you. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > >--- >QAS Ltd. >Developers of QuickAddress Software >http://www.qas.com";>www.qas.com >Registered in England: No 2582055 >Registered in Australia: No 082 851 474 >--- > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Security: per app policy, app root relative FilePermissions?
(1) When using a SecurityManager, all permissions are managed globally in two senses. They're granted in a single policy file, conf/catalina.policy and they pertain to all installed webapps. (2) FilePermission can't be relative to the root of a particular webapp. That is my current understanding. If I'm wrong, where can I learn more? Michael -- Michael Schuerig Face reality and stare it down mailto:[EMAIL PROTECTED]--Jethro Tull, Silver River Turning http://www.schuerig.de/michael/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.0 - Child name is not unique error
sorry yoav .. i thought this was a bug that we discussed the other day. ADC > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: 07 September 2004 16:04 > To: Tomcat Users List > Subject: RE: Tomcat 5.5.0 - Child name is not unique error > > > > Hi, > There's nothing strange about this error: you can't have two webapps > wieh the same path. You couldn't in Tomcat 4.x or 5.0.x, and > you can't > in 5.5.x. ;) > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: helena rato [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, September 07, 2004 11:01 AM > >To: [EMAIL PROTECTED] > >Subject: Tomcat 5.5.0 - Child name is not unique error > > > >Hi all, > > > >Here is the problem description: > > > >I have Linux RedHat 9 (kernel 2.4.20-8). > >I have Java jdk 1.5.0 > >I have installed tomcat 5.5.0 > > > >I create a brand new web app, I call it 'blabli' : > > > >mkdir $CATALINA_HOME/webapps/blabli > >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF > >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes > >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib > > > >In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as > >follows: > > > >[EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml > > > > >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > >"http://java.sun.com/dtd/web-app_2_3.dtd";> > > > >Servlet 2.4 Examples > > > > Servlet 2.4 Examples. > > > > > > > >I re-start tomcat. > > > >At this point, tomcat runs fine. > > > >Now, I add a logger using a context tag in > $CATALINA_HOME/conf/server.xml. > > > >The code added to $CATALINA_HOME/conf/server.xml is: > > > > >debug="5" reloadable="true" crossContext="true"> > > > prefix="localhost_blabli_log." suffix=".txt" > > timestamp="true"/> > > > > > >I re-start tomcat. > > > >And I get a strange error! > > > >The error in catalina.out is: > > > >[GC 3771K->3357K(5044K), 0.0031900 secs] > >Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig > >deployDirectory > >SEVERE: Error deploying web application directory blabli > >java.lang.IllegalArgumentException: addChild: Child name > '/blabli' is > not > >unique > >at > >org.apache.catalina.core.ContainerBase.addChildInternal(Conta > inerBase.j > ava: > >749) > >at > >org.apache.catalina.core.ContainerBase.addChild(ContainerBase > .java:739) > > > > > > > > > >Thank-you in advance for any clue! > > > >Helena > > > > > >- > >Do you Yahoo!? > >Yahoo! Mail is new and improved - Check it out! > > > > This e-mail, including any attachments, is a confidential > business communication, and may contain information that is > confidential, proprietary and/or privileged. This e-mail is > intended only for the individual(s) to whom it is addressed, > and may not be saved, copied, printed, disclosed or used by > anyone else. If you are not the(an) intended recipient, > please immediately delete this e-mail from your computer > system and notify the sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.0 - Child name is not unique error
this is a bug in 5.5.0 and you will have to wait for 5.5.1 which I believe Yoav said "might" be out today :p ADC > -Original Message- > From: helena rato [mailto:[EMAIL PROTECTED] > Sent: 07 September 2004 16:01 > To: [EMAIL PROTECTED] > Subject: Tomcat 5.5.0 - Child name is not unique error > > > Hi all, > > Here is the problem description: > > I have Linux RedHat 9 (kernel 2.4.20-8). > I have Java jdk 1.5.0 > I have installed tomcat 5.5.0 > > I create a brand new web app, I call it 'blabli' : > > mkdir $CATALINA_HOME/webapps/blabli > mkdir $CATALINA_HOME/webapps/blabli/WEB-INF > mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes > mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib > > In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml > file, as follows: > > [EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > Servlet 2.4 Examples > > Servlet 2.4 Examples. > > > > I re-start tomcat. > > At this point, tomcat runs fine. > > Now, I add a logger using a context tag in > $CATALINA_HOME/conf/server.xml. > > The code added to $CATALINA_HOME/conf/server.xml is: > > debug="5" reloadable="true" crossContext="true"> > prefix="localhost_blabli_log." suffix=".txt" > timestamp="true"/> > > > I re-start tomcat. > > And I get a strange error! > > The error in catalina.out is: > > [GC 3771K->3357K(5044K), 0.0031900 secs] > Sep 7, 2004 10:51:21 AM > org.apache.catalina.startup.HostConfig deployDirectory > SEVERE: Error deploying web application directory blabli > java.lang.IllegalArgumentException: addChild: Child name > '/blabli' is not unique > at > org.apache.catalina.core.ContainerBase.addChildInternal(Contai > nerBase.java:749) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase. > java:739) > > > > > Thank-you in advance for any clue! > > Helena > > > - > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.0 - Child name is not unique error
Hi, There's nothing strange about this error: you can't have two webapps wieh the same path. You couldn't in Tomcat 4.x or 5.0.x, and you can't in 5.5.x. ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: helena rato [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 11:01 AM >To: [EMAIL PROTECTED] >Subject: Tomcat 5.5.0 - Child name is not unique error > >Hi all, > >Here is the problem description: > >I have Linux RedHat 9 (kernel 2.4.20-8). >I have Java jdk 1.5.0 >I have installed tomcat 5.5.0 > >I create a brand new web app, I call it 'blabli' : > >mkdir $CATALINA_HOME/webapps/blabli >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib > >In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as >follows: > >[EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml > >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >"http://java.sun.com/dtd/web-app_2_3.dtd";> > >Servlet 2.4 Examples > > Servlet 2.4 Examples. > > > >I re-start tomcat. > >At this point, tomcat runs fine. > >Now, I add a logger using a context tag in $CATALINA_HOME/conf/server.xml. > >The code added to $CATALINA_HOME/conf/server.xml is: > >debug="5" reloadable="true" crossContext="true"> > prefix="localhost_blabli_log." suffix=".txt" > timestamp="true"/> > > >I re-start tomcat. > >And I get a strange error! > >The error in catalina.out is: > >[GC 3771K->3357K(5044K), 0.0031900 secs] >Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig >deployDirectory >SEVERE: Error deploying web application directory blabli >java.lang.IllegalArgumentException: addChild: Child name '/blabli' is not >unique >at >org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: >749) >at >org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > > > > >Thank-you in advance for any clue! > >Helena > > >- >Do you Yahoo!? >Yahoo! Mail is new and improved - Check it out! This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.0 - Child name is not unique error
Hi all, Here is the problem description: I have Linux RedHat 9 (kernel 2.4.20-8). I have Java jdk 1.5.0 I have installed tomcat 5.5.0 I create a brand new web app, I call it 'blabli' : mkdir $CATALINA_HOME/webapps/blabli mkdir $CATALINA_HOME/webapps/blabli/WEB-INF mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as follows: [EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml http://java.sun.com/dtd/web-app_2_3.dtd";> Servlet 2.4 Examples Servlet 2.4 Examples. I re-start tomcat. At this point, tomcat runs fine. Now, I add a logger using a context tag in $CATALINA_HOME/conf/server.xml. The code added to $CATALINA_HOME/conf/server.xml is: I re-start tomcat. And I get a strange error! The error in catalina.out is: [GC 3771K->3357K(5044K), 0.0031900 secs] Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory blabli java.lang.IllegalArgumentException: addChild: Child name '/blabli' is not unique at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:749) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) Thank-you in advance for any clue! Helena - Do you Yahoo!? Yahoo! Mail is new and improved - Check it out!
RE: ServletContextListener and HttpSessionActivationListener
Hi, The clarification I had in mine was in 14.2.12.1, to the ServletContextListener's contextInitialized event. The text in the Servlet Specification v2.4 is, "Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized." To me the spirit of the above text implies that this event is fired before session initialization as well. This text was clarified between Servlet Spec 2.3 and 2.4. But it's not explicit enough, and for that you should ask the Servlet Expert Group (you can find a link for that on the JSR154 home page). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Michael Sudkamp [mailto:[EMAIL PROTECTED] >Sent: Monday, September 06, 2004 3:51 AM >To: 'Tomcat Users List' >Subject: AW: ServletContextListener and HttpSessionActivationListener > >Yoav, thanks for your understanding. I've just read the 2.4 spec regarding >this and cannot any big clarifications. Can you point me to the chapter >where you found it. > >I find this issue logged as bug #30344. It's exactly what I mean. But IMO >this not described in the spec, neither 2.3 nor 2.4. > >Michael > >> -Ursprungliche Nachricht- >> Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] >> Gesendet: Freitag, 3. September 2004 15:14 >> An: Tomcat Users List >> Betreff: RE: ServletContextListener and HttpSessionActivationListener >> >> >> >> Hi, >> I think this was clarified in Spec v2.4 to match Michael's >> opinion, and >> there's an open issue for Tomcat 5 for this already. >> >> Yoav Shapira >> Millennium Research Informatics >> > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml security configuration.
[EMAIL PROTECTED] wrote: In my applications web.xml I have Read-WriteArea accessible by users of all roles /* GET POST PUT DELETE These roles are allowed access read rwrite admin If the url-pattern is /* I get my jdbc based form showing, and password authentication using mySQL. If I change it to /repository/index.jsp, i.e. the actual file used, I don't get any authentication. Any advice on what form this element should take please? TIA, DaveP Dave, The security constraint is based on the actual URL requested, not the resource that is being accessed. So, if you're accessing: http://my.host.com/ - and its actually loading http://my.host.com/repository/index.jsp, then your security-constraint won't be triggered if you don't have /* indicated. With a constraint of /repository/index.jsp, try accessing that path directly from your browser - the constraint *should* be triggered then. -Brice -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J in Tomcat 5.0...I don't believe the FAQ
Hi, 1. Because relevant changes have occurred since 5.0.19 (namely more of Tomcat's bootstrapping code using commons-logging). 2. I don't know, looks like an omission for the catalina.bat file. The Windows Service classpath is set by its installer (the .exe distribution). The FAQ now has a separate section on logging with some additional/updated info. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Patrick Burleson [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 10:30 AM >To: Tomcat Users List >Subject: Re: Log4J in Tomcat 5.0...I don't believe the FAQ > >Yoav, > >Thanks for that update. With that explination I now have two >questions, one of which is slightly off-topic: > >1. The author of the message pointed to in the FAQ (can't get to the >message archive at this moment for their name) says they used a stock >5.0.19 install on Windows and got it to work following the simple >instructions. I tried this as well and had it fail. I wonder why that >is? > >2. I noticed that the catalina.sh script includes an explicit adding >of commons-logging-api.jar to the bootstrap classpath, but none of the >Windows scripts do. But if I replace commons-logging-api.jar with the >full commons-logging.jar in the bin directory, Tomcat fails to >startup, not finding Commons Logging classes. Where does the Windows >scripts set this? Or is it somehow hardcoded somewhere? > >Thanks, >Patrick > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat logging technical tips and software
Hi, I've added this to the Tomcat FAQ. Thanks for contributing it. Yoav Shapira Millennium Research Informatics >-Original Message- >From: minaret [mailto:[EMAIL PROTECTED] >Sent: Monday, September 06, 2004 12:23 AM >To: [EMAIL PROTECTED] >Subject: Tomcat logging technical tips and software > >It took a number of hours to get Apache Tomcat version 5.0.27 and Apache >Velocity 1.4 to create log files the way I wanted them for a production >environment using Log4j. I looked around the Internet and couldn't find a >document that pulled this all together, so I wrote one up. If anyone is >interested, please visit: > > http://minaret.biz/tips/tomcatLogging.html > >I also wrote a custom Log4j appender that works in the same manner as the >Tomcat FileLogger. That is available here: > > http://minaret.biz/tips/datedFileAppender.html > >Enjoy. > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4J in Tomcat 5.0...I don't believe the FAQ
Yoav, Thanks for that update. With that explination I now have two questions, one of which is slightly off-topic: 1. The author of the message pointed to in the FAQ (can't get to the message archive at this moment for their name) says they used a stock 5.0.19 install on Windows and got it to work following the simple instructions. I tried this as well and had it fail. I wonder why that is? 2. I noticed that the catalina.sh script includes an explicit adding of commons-logging-api.jar to the bootstrap classpath, but none of the Windows scripts do. But if I replace commons-logging-api.jar with the full commons-logging.jar in the bin directory, Tomcat fails to startup, not finding Commons Logging classes. Where does the Windows scripts set this? Or is it somehow hardcoded somewhere? Thanks, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat5 and JVM in -server Mode?
Hi, Yes: historically observed reduced stability in server mode. Yoav Shapira Millennium Research Informatics >-Original Message- >From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach >Sent: Tuesday, September 07, 2004 9:55 AM >To: [EMAIL PROTECTED] >Subject: Tomcat5 and JVM in -server Mode? > >Hello everyone, > >Is there any reason why Tomcat 5.0.27 is not run in the JVM -server Mode >by default? > >Regards, > >Andreas > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web.xml security configuration.
In my applications web.xml I have Read-WriteArea accessible by users of all roles /* GET POST PUT DELETE These roles are allowed access read rwrite admin If the url-pattern is /* I get my jdbc based form showing, and password authentication using mySQL. If I change it to /repository/index.jsp, i.e. the actual file used, I don't get any authentication. Any advice on what form this element should take please? TIA, DaveP snip here * -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem looking Action instance
Hello, I submitted earlier a request/problem. This is the problem. I am working with Struts and Tomcat 4. Everything works fine (in all mine applications). But there is one pain in the ass. When I do several request to the server (NewSearchForm) everythings works fine untill a certain moment. Than tomcat stops en starts. Therse are the rows in the application log: XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:13 1000] "POST /infojvm.jsp HTTP/1.1" 200 6390 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:18 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:19 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:21 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:23 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:25 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:26 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:28 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:29 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:31 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:33 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:34 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:35 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:37 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:38 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:42 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:43 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodid=0&startdate=&pri ce=®ionid=0&municipalityid=0&city=&cityid=&zipcode_nr_1=&zipcode_lt_1=&zi pcode_nr_2=&zipcode_lt_2=&choise=COURSE HTTP/1.1" 200 13575 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:45 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=1&showhide=1&focus=duration&searchi ng=N&searchstring=&choise=COURSE HTTP/1.1" 200 41966 XXX.XXX.XXX.XX - - [07/Sep/2004:15:34:47 1000] "GET /NewSearch.do?frmSubmit=ShowHide&layerid=0&showhide=1&focus=refnr&searching= N&searchstring=&rubricid=0&educationid=0&levelid=0&methodi
Tomcat5 and JVM in -server Mode?
Hello everyone, Is there any reason why Tomcat 5.0.27 is not run in the JVM -server Mode by default? Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is Tomcat/Connector Installation So Incredibly Painful??
Hi, I would point out a few things: - If you can't navigate from the jakarta.apache.org web site to the JK download links (either source or binary), and must resort to Googling for the download links, you probably shouldn't be installing and configuring the connectors (or Tomcat, or Apache httpd) in the first place ;) It's pretty simple to click on either the "Binaries" or "Source" code links under the "Downloads" header on the left-hand side of jakarta.apache.org, and then scroll down the page for whatever product you want. If you don't feel like reading the page or scrolling down, you can use ctrl+f to find "mod_jk" right away, no problem. - I get completely different Google results from what you report when I search for mod_jk, with a number of how-to pages coming first. - If you don't have time to contribute any patches or enhancements, you can definitely bitch and gripe but you can't expect anyone to care. All of us also have jobs and don't get paid for making your life easier. We'd love to evaluate and integrate any improvements you can come up with, but naturally connector documentation has never been an area of high interest to most tomcat developers. Moreover, as Tomcat as maturing the importance of the connectors in general is going down IMHO, with more and more standalone installations. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Greg Ward [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 07, 2004 9:27 AM >To: Tomcat Users List >Subject: Re: Why is Tomcat/Connector Installation So Incredibly Painful?? > >On 03 September 2004, Peter Alvin said: >> But why is it so >> incredibly painful to install Apache/Tomcat/Connector? It always >> takes me about two days. I look forward to it as much as doing my >> federal tax returns. > >I'm in complete agreement with you. Even finding the right files to >download is a bit of a chore. ("OK, so everyone says I need mod_jk. >Therefore I'm looking for a file called... >jakarta-tomcat-connectors-jk-1.2.6-src.tar.gz. Rght. Well, at >least they have two letters in common.) > >Here's an interesting experiment: google'ing for "mod_jk" finds this >page: > http://jakarta.apache.org/site/binindex.cgi >as the second hit. But the string "mod_jk" occurs nowhere in that page; >you have to hunt around until you realize that what you're really >looking for is "Tomcat Web Server Connectors". And then you only get to >the "binary releases" page, which is useless -- I need the source, >dammit! > >Oh, the *first* Google hit for "mod_jk" is > http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html >which I think most people who are working with Tomcat 4.1.x or 5.0.x >would probably ignore based on the URL. > >Anyways, once you've downloaded the source (which I've already forgotten >how to do -- luckily I kept a local copy), you then have to figure out >*what* to build in that tree and where to find it. Not obvious. And >it's different from mod_jk to mod_jk2. And then getting things to build >is even less obvious. > >Alas, I don't have time to do anything more than bitch and gripe. >Whoever is actually maintaining mod_jk, mod_jk2, and associated web >pages, please hear our cries! > >Greg > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: missing resource bundle shouldn't be
On Tue, Sep 07, 2004 at 09:19:07AM -0400, Shapira, Yoav wrote: : IMHO, the best way to share common code is to put it in a source-code : control system (CVS, Subversion, ClearCase, whatever you want) and have : a consistent deployment process where the deployment script (Ant, Maven, : whatever you want) is also in the source-code control system. This is especially key as needs diverge (version skew). When each app can pull its own version from source control (or just copy a versioned JAR) as part of its build process, you've spared yourself some headaches. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tag reuse, setParent and findAncestorWithClass
Tim, I added this to my tomcat_home/conf/web.xml: jsp org.apache.jasper.servlet.JspServlet enablePooling false I put it right after: But I still see the same behavior. Note: This setting is not overridden in the web.xml for my webapp... I tried putting it there too but no luck. Thanks -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 10:07 AM To: Tomcat Users List Subject: Re: tag reuse, setParent and findAncestorWithClass Turn off tag pooling. -Tim Justin Kennedy wrote: > Hi Tim, > > I read through the link you posted but I don't see any references to > setParent. I understand that setParent is only called once when the > attributes for a tag are the same (because it's reused), so how should I > go about developing the inner tag so the parent will always be set? I > read up on SimpleTag and that could be the answer, but I'm worried about > performance with this because the writevalue tag is called many many > times on one page. > > Thanksk > > -Original Message- > From: Tim Funk [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 7:59 AM > To: Tomcat Users List > Subject: Re: tag reuse, setParent and findAncestorWithClass > > http://jakarta.apache.org/tomcat/faq/misc.html#tagbroken > > -tim > > Justin Kennedy wrote: > >>Hi, >> >> >> >>I'm upgrading our tag library to Tomcat 5 and having problems. Note > > that > >>they were written back in JSP 1.1 and haven't changed for a few years. >> >> >> >>The problem looks like the tags are being cached and the setParent > > isn't > >>being called for each new "reuse". As a result the wrong tag is > > returned > >>from findAncestorWithClass when the WriteValueTag is re-used in a >>different nested block. Maybe this is how the spec was designed and I >>just don't know the right way to code the tags. Anyway here's what the >>JSP page looks like (note: transacttag issues a call to the database. >>Writevaluetag writes the value of a column from the data returned from >>transacttag. If 'transactId' isn't passed to WriteValueTag, it will > > use > >>the findAncestorWithClass to find the enclosing IterateTag to > > determine > >>the transactId): >> >> >> >> >> >> >> >> >> >>a - >> >> >> >> > value='<%= > >>tmpuiid %>'/> >> >> >> >> >> >> >> >> >> >>#1 - >> >>#2 - >column="FORM_NAME"/> >> >>#3 - >> >> >> >> >> >> >> >> >> >> >> >> >> >>The problems: >> >>1.UI_NAME in #1 is a column from the first "uis" transactTag. The >>writeValueTag prints out the value of this column but it shouldn't >>behave this way because it's enclosed IterateTag has a different >>"transactId". I put this here to demonstrate the problem >>2.FORM_NAME in #3 is a column in the second transactTag of "ui". >>This column value SHOULD be output (like it has always done) because > > the > >>enclosed iterateTag specifies the proper transactId, but this value is >>not output because it's parent is set to the first IterateTag and not >>the second, hence the different transactIds. >> >> >> >>#2 works only because I'm explicitly setting the transactId. >> >> >> >>The WriteValueTag extends the TagSupport class and everything is done > > in > >>the doStartTag event. >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TLS-Enabled Connector Prevents Startup
Hi, Is there any additional debug output in the logger, specifically a ClassNotFoundException or a NoClassDefFoundError for a TLS-related class? Has the JVM you're using changed? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Igor Zlatkovic [mailto:[EMAIL PROTECTED] >Sent: Sunday, September 05, 2004 10:16 AM >To: [EMAIL PROTECTED] >Subject: TLS-Enabled Connector Prevents Startup > >Hi there. > >On one day, an otherwise perfectly functioning Tomcat stops responding >to requests. The log file says that one of the threads received an >OutOfMemory exception, so I restart the server. Not a big deal, it has >happened before. But this time the server never comes up, it hangs >somewhere. > >Some experimentation has shown that it works again if I remove the >TLS-enabled connector from the conf/server.xml file. I have two >connectors there, one for HTTP, the other for HTTPS. Both worked good >until this last crash. Now, for some mysterious reason, if the HTTPS >connector is present, the startup of Tomcat shows the following messages: > > Sep 4, 2004 5:21:12 PM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-80 > >and there it stops. The port 80 is opened for listening but noone >answers when you ring there. According to previous good starts, I should >see another two lines just like those above, related to the port 443. >Since the container hangs just before it should have printed them, I >commented out the TLS-enabled connector and Tomcat started. > >What else can I say? The actual port numbers don't matter, I tried >several with the same result. TLS worked perfectly before the crash and >the configuration hasn't changed in between. It was Tomcat 5.0.25, I >downloaded the fresh 5.0.28 and had the same result. I installed 5.0.28 >on my workstation, copied the configuration files from the server and >voila, everything works here. Now I have two identical installations, >the same configuration, the same keystore, the same Java VM, and on the >workstation I see it working, but on the server it hangs unless I >disable the TLS connector in conf/server.xml. The weirdest thing is, >this TLS connector has worked on that very server for several months >now, since the 5.0.18 release. I don't know wether it matters, the >server is a vServer, means it shares hardware with other virtual >servers. It shouldn't matter though, because I allready had this >configuration working there. > >Does anyone have any idea? > >Ciao, >Igor Zlatkovic > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]