AW: jsp:plugin type=applet... and firefox
Original message: missing plugin. Other servers, such as BEA weblogic, are creating the same page very well for various kinds of clients. Which means: I've deployed the exact same page to weblogic, and it works fine with firefox. Of course, I've already tried to install the plugin, but firefox says the plugin is unknown. -Ursprüngliche Nachricht- Von: Jost Richstein [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 1. Juni 2005 14:00 An: Tomcat Users List Betreff: Re: jsp:plugin type=applet... and firefox Maybe it's not the server generating a wrong page...your browser is just not able to load the plugin. I would install the plugin for Firefox first! [EMAIL PROTECTED] wrote: Hi there, I'm using an applet, with the following line: jsp:plugin type=applet code=applet.MyApplet codebase=. width=100 height=100/ I've assumed, that this works fine for any client. Loading the page with iexplorer does, however, loading it into firefox results in the message missing plugin. Other servers, such as BEA weblogic, are creating the same page very well for various kinds of clients. Now the question is how to get this work with the combination tomcat/firefox. And is there any hassle to be expected with other clients, e.g. opera. regards Heiner T-Systems BU Ulm Dipl. Ing. Heiner Amthauer Systementwickler Magirusstr. 39/1, D-89077 Ulm +49 731 9344-4422 (Tel.) +49 731 9344-4409 (Fax) +49 177 7873405 (Mobil) E-Mail: [EMAIL PROTECTED] http://www.t-systems.com http://www.t-systems.com - 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: client authentication with client certificates (ssl)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Thomas wrote: Paul Puschmann wrote: we'd like to use our Tomcat with ssl and client certificates. Does anybody know if the user information (of the user-certificate) can be used to authenticate? Tomcat is 5.5.7 CLIENT-CERT authentication is supported. That is fine, but how can I use the CLIENT-CERT information in my applications? In the client certificates should be a name and/or customer number in the usual fields. I want my application to use e.g. the customer number for further authorization. (Please answer below the quote, this enhances readability) Paul - -- Linux-User #271918 with the Linux Counter, http://counter.li.org/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (MingW32) iEYEARECAAYFAkKerp0ACgkQqErKtBWD7VSoagCgh9qmuiRedu7h8Jc3bhnVIlCi d14An0ZOBFp2vGfB8tu6Ym/xyNuyCEsj =0rap -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Managed Bean
Hello, I wrote a new UserDatabase Class which meets better our needs. I used Tomcat 5.0 with Java 1.4. Everthing worked fine. Now I want to use Tomcat 5.5 with Java 1.5. I now get the following Exception: SCHWERWIEGEND: Exception creating UserDatabase MBeans for UserDatabase javax.management.MBeanException at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:676 ) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe ans(GlobalResourcesLifecycleListener.java:178) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe ans(GlobalResourcesLifecycleListener.java:146) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe ans(GlobalResourcesLifecycleListener.java:108) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycle Event(GlobalResourcesLifecycleListener.java:80) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardServer.start(StandardServer.java:676 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Caused by: java.lang.Exception: ManagedBean is not found with RSELUserDatabase at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:675 ) ... 13 more I think Tomcat cannot find the mbeans-descriptors.xml file, but I'm not sure. Does anyone know what changed, so that my class does not work anymore? Is it an configuration problem. What do I have to change? Thanks in advance Stefan Parnet This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Renesas does not accept responsibility for any changes made to this message after it was sent. Please note that this email message has been swept by Renesas for the presence of computer viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WebappClassLoader - don't understand what's happening
We are facing a problem with Tomcats WebappClassLoader. We deploy several of our own applications on one Tomcat server. It seems that the WebappClassLoaderS are not isolated but share classes instead. Why would that be? Judging from the (well, outdated) classloader documentation, this should never happen. If an application tries to use a class, and the class is in a jar in its WEB_INF\lib directory, then the class should be loaded by the application's very own WebappClassLoader. It should not be available to other WebappClassLoaderS, isn't that correct? I quote: All unpacked classes and resources in the /WEB-INF/classes directory of your web application archive, plus classes and resources in JAR files under the /WEB-INF/lib directory of your web application archive, are made visible to the containing web application, **but to no others**. Instead of sharing the class, the second WebappClassLoader should load the class again, shouldn't it? So why does a WebappClassLoader here re-use a class already loaded by the WebappClassLoader of another application? We're running 5.5.7 on JDK 142_08. Thanks in advance! Sascha Herrmann Engineering (Java) GE Healthcare Technologies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 connector on Solaris 8)
Hello there, I've tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk connector (mod_jk.so used from file jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing after some time with java.net.SocketException exception. Please help me to get out from this issue Following are the logs and configuration files. ---Tomcathome/logs/Catalina.out--- - [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Initialization processed in 10469 ms [INFO] StandardService - Starting service Catalina [INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28 [INFO] StandardHost - XML validation disabled [INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx ) [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml [INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples [INFO] StandardHostDeployer - Installing web application at context path from URL file:/export/home/tomcat5/webapps/ROOT [INFO] StandardHostDeployer - Installing web application at context path /servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples [INFO] StandardHostDeployer - Installing web application at context path /tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs [INFO] StandardHostDeployer - Installing web application at context path /webdav from URL file:/export/home/tomcat5/webapps/webdav [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080 [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009 [INFO] JkMain - Jk running ID=0 time=4/190 config=/export/home/tomcat5/conf/jk2.properties [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Server startup in 28234 ms [INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080 [WARN] ChannelSocket - Exception executing accept java.net.SocketException: Software caused connection abortjava.net.SocketException: Software caused connection abort at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638) at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) at java.lang.Thread.run(Thread.java:479) [INFO] StandardService - Stopping service Catalina [INFO] StandardHostDeployer - Removing web application at context path /tomcat-docs [INFO] StandardHostDeployer - Removing web application at context path /admin [INFO] LoggerBase - unregistering logger Catalina:type=Logger,path=/admin,host=localhost [INFO] StandardHostDeployer - Removing web application at context path /jsp-examples [INFO] StandardHostDeployer - Removing web application at context path /billing [INFO] StandardHostDeployer - Removing web application at context path /webdav [INFO] StandardHostDeployer - Removing web application at context path /servlets-examples [INFO] StandardHostDeployer - Removing web application at context path /balancer [INFO] StandardHostDeployer - Removing web application at context path /manager [INFO] StandardHostDeployer - Removing web application at context path [INFO] LoggerBase - unregistering logger Catalina:type=Logger,host=localhost [INFO] LoggerBase - unregistering logger Catalina:type=Logger [INFO]
Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8)
Ive tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk connector (mod_jk.so used from file jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing after some time with java.net.SocketException exception. Please help me to get out from this issue Following are the logs and configuration files. ---Tomcathome/logs/Catalina.out [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Initialization processed in 10469 ms [INFO] StandardService - Starting service Catalina [INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28 [INFO] StandardHost - XML validation disabled [INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx ) [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml [INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples [INFO] StandardHostDeployer - Installing web application at context path from URL file:/export/home/tomcat5/webapps/ROOT [INFO] StandardHostDeployer - Installing web application at context path /servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples [INFO] StandardHostDeployer - Installing web application at context path /tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs [INFO] StandardHostDeployer - Installing web application at context path /webdav from URL file:/export/home/tomcat5/webapps/webdav [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080 [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009 [INFO] JkMain - Jk running ID=0 time=4/190 config=/export/home/tomcat5/conf/jk2.properties [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Server startup in 28234 ms [INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080 [WARN] ChannelSocket - Exception executing accept java.net.SocketException: Software caused connection abortjava.net.SocketException: Software caused connection abort at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638) at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:479) [INFO] StandardService - Stopping service Catalina [INFO] StandardHostDeployer - Removing web application at context path /tomcat-docs [INFO] StandardHostDeployer - Removing web application at context path /admin [INFO] LoggerBase - unregistering logger Catalina:type=Logger,path=/admin,host=localhost [INFO] StandardHostDeployer - Removing web application at context path /jsp-examples [INFO] StandardHostDeployer - Removing web application at context path /billing [INFO] StandardHostDeployer - Removing web application at context path /webdav [INFO] StandardHostDeployer - Removing web application at context path /servlets-examples [INFO] StandardHostDeployer - Removing web application at context path /balancer [INFO] StandardHostDeployer - Removing web application at context path /manager [INFO] StandardHostDeployer - Removing web application at context path [INFO] LoggerBase - unregistering logger Catalina:type=Logger,host=localhost [INFO] LoggerBase - unregistering logger Catalina:type=Logger [INFO] Http11Protocol - Stopping Coyote HTTP/1.1 on http-8080
tomcat 5.5.x J2EE Connector
I found this http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg73629.html on the archive but this thread is very old and I am wondering if newer tomcat 5.5.x version implements JCA. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebappClassLoader - don't understand what's happening
This indeed should not happen as this would break sun specs. I would be quite surprised it it was at all possible :/ How did you conclude the webappclassloader is sharing the class between webapps in your case? Are you sure you are not mistakenly using a shared class? Not only does every webapp has his very own webappclassloader, but if you reload the webapp (using the manager/html interface) this should also create a new webclassloader and reload all classes (did you check it was the case?). Am also using tomcat 5.5.7 here, with jdk 1.4.2_05-b04 and we didn't notice such a problem. We can deploy several webapps, all using a library in WEB-INF/lib which is crating singletons. All webapp has it's own sets of singletons. Could it be that you are in fact doing such scenario? - create an object of class A in webapp1 using webappclassloader1 - push this object to some library shared between webapplications - retrieve the object from shared library in webapp2 (as this is via a shared library, it's possibile to do and you and up manipulating in webapp2 an object who's classloader is webappclassloader1) - in webapp2, calls something like a.createB() to get an object of class B and be surprised that the class of B was created using webappclassloader1 Le Jeudi 2 Juin 2005 10:59, Herrmann, Sascha (GE Healthcare) a écrit : We are facing a problem with Tomcats WebappClassLoader. We deploy several of our own applications on one Tomcat server. It seems that the WebappClassLoaderS are not isolated but share classes instead. Why would that be? Judging from the (well, outdated) classloader documentation, this should never happen. If an application tries to use a class, and the class is in a jar in its WEB_INF\lib directory, then the class should be loaded by the application's very own WebappClassLoader. It should not be available to other WebappClassLoaderS, isn't that correct? I quote: All unpacked classes and resources in the /WEB-INF/classes directory of your web application archive, plus classes and resources in JAR files under the /WEB-INF/lib directory of your web application archive, are made visible to the containing web application, **but to no others**. Instead of sharing the class, the second WebappClassLoader should load the class again, shouldn't it? So why does a WebappClassLoader here re-use a class already loaded by the WebappClassLoader of another application? We're running 5.5.7 on JDK 142_08. Thanks in advance! Sascha Herrmann Engineering (Java) GE Healthcare Technologies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8)
Hi, It seems that you are starting http on 2 Ports but you have just 1 instance of Tomcat?? Go to CATALINA_HOME/conf and edit server.xml -- comment out the block were you have Port 8082 and restart Tomcat. Hope that helps... Mit freundlichem Gru / kind regards Dr. Aliye Edao -Ursprngliche Nachricht- Von: M. Owais Ansari [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Juni 2005 11:58 An: tomcat-user@jakarta.apache.org Betreff: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8) Ive tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk connector (mod_jk.so used from file jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing after some time with java.net.SocketException exception. Please help me to get out from this issue Following are the logs and configuration files. ---Tomcathome/logs/Catalina.out [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Initialization processed in 10469 ms [INFO] StandardService - Starting service Catalina [INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28 [INFO] StandardHost - XML validation disabled [INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx ) [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml [INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples [INFO] StandardHostDeployer - Installing web application at context path from URL file:/export/home/tomcat5/webapps/ROOT [INFO] StandardHostDeployer - Installing web application at context path /servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples [INFO] StandardHostDeployer - Installing web application at context path /tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs [INFO] StandardHostDeployer - Installing web application at context path /webdav from URL file:/export/home/tomcat5/webapps/webdav [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080 [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009 [INFO] JkMain - Jk running ID=0 time=4/190 config=/export/home/tomcat5/conf/jk2.properties [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Server startup in 28234 ms [INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080 [WARN] ChannelSocket - Exception executing accept java.net.SocketException: Software caused connection abortjava.net.SocketException: Software caused connection abort at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638) at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:479) [INFO] StandardService - Stopping service Catalina [INFO] StandardHostDeployer - Removing web application at context path /tomcat-docs [INFO] StandardHostDeployer - Removing web application at context path /admin [INFO] LoggerBase - unregistering logger Catalina:type=Logger,path=/admin,host=localhost [INFO] StandardHostDeployer - Removing web application at context path /jsp-examples [INFO] StandardHostDeployer - Removing web application at context path /billing [INFO] StandardHostDeployer - Removing web application at context path /webdav [INFO]
RE: tomcat 5.5.x J2EE Connector
tomcat is not a J2EE implementation so you should not expect JCA to be implemented in tomcat. -Original Message- From: faisal [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 1:35 PM To: tomcat-user@jakarta.apache.org Subject: tomcat 5.5.x J2EE Connector I found this http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg73629.html on the archive but this thread is very old and I am wondering if newer tomcat 5.5.x version implements JCA. - 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 dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8)
Thanks for the quick response! The code snip !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- is already commented. Regards, Muhammad Owais Ansari -Original Message- From: Edao, Aliye [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 3:32 PM To: M. Owais Ansari Cc: Tomcat Users List Subject: AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8) Hi, It seems that you are starting http on 2 Ports but you have just 1 instance of Tomcat?? Go to CATALINA_HOME/conf and edit server.xml -- comment out the block were you have Port 8082 and restart Tomcat. Hope that helps... Mit freundlichem Gru / kind regards Dr. Aliye Edao -Ursprngliche Nachricht- Von: M. Owais Ansari [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Juni 2005 11:58 An: tomcat-user@jakarta.apache.org Betreff: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8) Ive tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk connector (mod_jk.so used from file jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing after some time with java.net.SocketException exception. Please help me to get out from this issue Following are the logs and configuration files. ---Tomcathome/logs/Catalina.out [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Initialization processed in 10469 ms [INFO] StandardService - Starting service Catalina [INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28 [INFO] StandardHost - XML validation disabled [INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx ) [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml [INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples [INFO] StandardHostDeployer - Installing web application at context path from URL file:/export/home/tomcat5/webapps/ROOT [INFO] StandardHostDeployer - Installing web application at context path /servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples [INFO] StandardHostDeployer - Installing web application at context path /tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs [INFO] StandardHostDeployer - Installing web application at context path /webdav from URL file:/export/home/tomcat5/webapps/webdav [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080 [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009 [INFO] JkMain - Jk running ID=0 time=4/190 config=/export/home/tomcat5/conf/jk2.properties [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Server startup in 28234 ms [INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080 [WARN] ChannelSocket - Exception executing accept java.net.SocketException: Software caused connection abortjava.net.SocketException: Software caused connection abort at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638) at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847) at
AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8)
Hi, Can it be, that something is wrong with your server.xml??? If you see the following in catalina.out: [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082 It means some where in server.xml exists a block with port 8082. Is that the case?? If not remove that block completely from your server.xml and try again Regards Aliye -Ursprngliche Nachricht- Von: Muhammad Owais Ansari [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Juni 2005 12:39 An: Edao, Aliye Cc: 'Tomcat Users List' Betreff: RE: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8) Thanks for the quick response! The code snip !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- is already commented. Regards, Muhammad Owais Ansari -Original Message- From: Edao, Aliye [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 3:32 PM To: M. Owais Ansari Cc: Tomcat Users List Subject: AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8) Hi, It seems that you are starting http on 2 Ports but you have just 1 instance of Tomcat?? Go to CATALINA_HOME/conf and edit server.xml -- comment out the block were you have Port 8082 and restart Tomcat. Hope that helps... Mit freundlichem Gru / kind regards Dr. Aliye Edao -Ursprngliche Nachricht- Von: M. Owais Ansari [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Juni 2005 11:58 An: tomcat-user@jakarta.apache.org Betreff: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8) Ive tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk connector (mod_jk.so used from file jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing after some time with java.net.SocketException exception. Please help me to get out from this issue Following are the logs and configuration files. ---Tomcathome/logs/Catalina.out [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Initialization processed in 10469 ms [INFO] StandardService - Starting service Catalina [INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28 [INFO] StandardHost - XML validation disabled [INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx ) [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml [INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples [INFO] StandardHostDeployer - Installing web application at context path from URL file:/export/home/tomcat5/webapps/ROOT [INFO] StandardHostDeployer - Installing web application at context path /servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples [INFO] StandardHostDeployer - Installing web application at context path /tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs [INFO] StandardHostDeployer - Installing web application at context path /webdav from URL file:/export/home/tomcat5/webapps/webdav [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080 [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009 [INFO] JkMain - Jk running ID=0 time=4/190 config=/export/home/tomcat5/conf/jk2.properties [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Server startup in 28234 ms [INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080 [WARN]
tomcat 5.5.9 does not read context.xml
What is the story with context descriptors in 5.5.9. Nothing seems to work right. I have placed the the following context.xml file in the META-INF directory inside my war Context path=/mobile reloadable=true/ When my war is expanded the context does not use the name in the path as specified by context.xml but the name of the war file!! How is it possible to use a context path different to the name of the war file? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.9 does not read context.xml
The value of this field(Path) must not be set except when statically defining a Context in server.xml, This is found on this page under the Path attribute, http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Doug - Original Message - From: teknokrat [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, June 02, 2005 6:45 AM Subject: tomcat 5.5.9 does not read context.xml What is the story with context descriptors in 5.5.9. Nothing seems to work right. I have placed the the following context.xml file in the META-INF directory inside my war Context path=/mobile reloadable=true/ When my war is expanded the context does not use the name in the path as specified by context.xml but the name of the war file!! How is it possible to use a context path different to the name of the war file? thanks - 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]
Lb_factor problem for clustering
Can any body explain me how this lb_factor works in worker2.properties file What is the highest value we can assign to it... Actually my problem is I am using tomcat 5.5.7 with apache 2.0.48 There are 2 tomcat instances. I want some way in which all the request should land up to one tomcat node only not the other one unless first one is down. Thanks Gaurav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 connector on Solaris 8)
Increase your log level to DEBUG everywhere you can, and then retry. Is the application dying when you access your application directly on tomcat (without using Apache) ? py -Original Message- From: Muhammad Owais Ansari [mailto:[EMAIL PROTECTED] Sent: jeudi 2 juin 2005 11:55 To: tomcat-user@jakarta.apache.org Subject: Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 connector on Solaris 8) Hello there, I've tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk connector (mod_jk.so used from file jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing after some time with java.net.SocketException exception. Please help me to get out from this issue Following are the logs and configuration files. ---Tomcathome/logs/Catalina.out--- - [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Initialization processed in 10469 ms [INFO] StandardService - Starting service Catalina [INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28 [INFO] StandardHost - XML validation disabled [INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx ) [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml [INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples [INFO] StandardHostDeployer - Installing web application at context path from URL file:/export/home/tomcat5/webapps/ROOT [INFO] StandardHostDeployer - Installing web application at context path /servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples [INFO] StandardHostDeployer - Installing web application at context path /tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs [INFO] StandardHostDeployer - Installing web application at context path /webdav from URL file:/export/home/tomcat5/webapps/webdav [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080 [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009 [INFO] JkMain - Jk running ID=0 time=4/190 config=/export/home/tomcat5/conf/jk2.properties [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082 [INFO] Catalina - Server startup in 28234 ms [INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080 [WARN] ChannelSocket - Exception executing accept java.net.SocketException: Software caused connection abortjava.net.SocketException: Software caused connection abort at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java: 638) at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .jav a:683) at java.lang.Thread.run(Thread.java:479) [INFO] StandardService - Stopping service Catalina [INFO] StandardHostDeployer - Removing web application at context path /tomcat-docs [INFO] StandardHostDeployer - Removing web application at context path /admin [INFO] LoggerBase - unregistering logger Catalina:type=Logger,path=/admin,host=localhost [INFO] StandardHostDeployer - Removing web application at context path /jsp-examples [INFO] StandardHostDeployer - Removing web application at context path /billing [INFO] StandardHostDeployer - Removing web application at context path /webdav [INFO]
RemoteAddrValve
Hi I'm trying to use RemoteAddrValve to restrict access to a website to a subnet in Tomcat 4.1 Tried : Valve className=org.apache.catalina.valves.RemoteAddrValve allow=xxx.xxx.xxx.xxx/25 / but it doesnt seem to work as access from one of my IP addresses is forbidden. Also, I dont seem to be able to put multiple addresses in the allow function ? Also, can someone confirm whether it is necessary to restart the Tomcat server (version 4.1) if I modify an .xml file in the webapps directory ? Thanks for any help -- Janet * Janet Dickson| http://www.bioss.sari.ac.uk/~janet Biomathematics Statistics Scotland | email: janet at bioss.sari.ac.uk The King's Buildings, Mayfield Rd| Telephone: +44 (0) 131 650 4888 Edinburgh EH9 3JZ, Scotland, UK. | Fax: +44 (0) 131 650 4901 * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WebappClassLoader - don't understand what's happening
Thanks for your reply. It could be. How is a class pushed to a shared library? I used the following code: System.out.println( BoneDBTransactionImpl2 LOADING *** ); System.out.println( Thread Classloader is: + Thread.currentThread().getContextClassLoader() ); System.out.println( Hash: + Thread.currentThread().getContextClassLoader().hashCode() ); System.out.println( Class: + Thread.currentThread().getContextClassLoader().getClass().getName() ); System.out.println( --- ); System.out.println( Class Classloader is: + BoneDBTransactionImpl2.class.getClassLoader() ); System.out.println( Hash: + BoneDBTransactionImpl2.class.getClassLoader().hashCode() ); System.out.println( Class: + BoneDBTransactionImpl2.class.getClassLoader().getClass().getName() ); System.out.println( BoneDBTransactionImpl2 LOADING *** ); I put this into a static initializer block of a class that is in a jar in both WEB_INF\lib directories. I also added this code the constructor of that class. And to make sure to see what loader belongs to what app I also added the code to some methods of classes that are either in app A or in app B and not in both. I start app A. The output shows that - the class is loaded in app A by WebappClassLoader with hash A - the instance is created in app A using the Class loaded by WebappClassLoader with hash A. - Thread context classloader is WebappClassLoader with hash A. Then I start app B. The output shows that - the instance is created in app B using the Class loaded by WebappClassLoader with hash A - Thread context classloader is WebappClassLoader with hash B. The class exists in jar files in both WEB-INF\lib directories, but not in any other lib directory. And - if the class was loaded by a shared classloader, shouldn't the xxx.class.getClassLoader() return the StandardClassLoader? I must admit that I am not too familiar with the deeper concept of J2EE classloading apart from the information found on some web pages. So, if the class indeed is loaded by WebappClassLoader A, how can it be pushed to become a shared one? And how can I prevent this from happening? Or am I making a mistake reading the output? I am sure that the class is not loaded again. I checked the sources in Apache's CVS. I noticed that there is quite some debugging put into WebappClassLoader. But I can't get my server to log these messages. I have the log4j and commons logging jars in my common\lib directory and my log4j.properties (root logger set to debug) in my common\classes directory. I also set the debug to 4 everywhere in my server.xml. I see some catalina debug messages, but I cannot see the messages from the WebappClassLoader. So what am I doing wrong? I believe the debug output would be very helpful in understanding the problem. Sascha -Original Message- From: delbd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 12:33 PM To: Tomcat Users List Subject: Re: WebappClassLoader - don't understand what's happening This indeed should not happen as this would break sun specs. I would be quite surprised it it was at all possible :/ How did you conclude the webappclassloader is sharing the class between webapps in your case? Are you sure you are not mistakenly using a shared class? Not only does every webapp has his very own webappclassloader, but if you reload the webapp (using the manager/html interface) this should also create a new webclassloader and reload all classes (did you check it was the case?). Am also using tomcat 5.5.7 here, with jdk 1.4.2_05-b04 and we didn't notice such a problem. We can deploy several webapps, all using a library in WEB-INF/lib which is crating singletons. All webapp has it's own sets of singletons. Could it be that you are in fact doing such scenario? - create an object of class A in webapp1 using webappclassloader1 - push this object to some library shared between webapplications - retrieve the object from shared library in webapp2 (as this is via a shared library, it's possibile to do and you and up manipulating in webapp2 an object who's classloader is webappclassloader1) - in webapp2, calls something like a.createB() to get an object of class B and be surprised that the class of B was created using webappclassloader1 Le Jeudi 2 Juin 2005 10:59, Herrmann, Sascha (GE Healthcare) a écrit : We are facing a problem with Tomcats WebappClassLoader. We deploy several of our own applications on one Tomcat server. It seems that the WebappClassLoaderS are not isolated but share classes instead. Why would that be? Judging from the (well, outdated) classloader documentation, this should never happen. If an application tries to use a class, and the class is in a jar in its WEB_INF\lib directory, then the class
Re: WebappClassLoader - don't understand what's happening
Le Jeudi 2 Juin 2005 13:49, Herrmann, Sascha (GE Healthcare) a écrit : Thanks for your reply. It could be. How is a class pushed to a shared library? Any library having static methods like SomeLibraryClass.setXYZ(xyz); SomeLibraryClass.getXYZ(xyz); I used the following code: System.out.println( BoneDBTransactionImpl2 LOADING *** ); System.out.println( Thread Classloader is: + Thread.currentThread().getContextClassLoader() ); System.out.println( Hash: + Thread.currentThread().getContextClassLoader().hashCode() ); System.out.println( Class: + Thread.currentThread().getContextClassLoader().getClass().getName() ); System.out.println( --- ); System.out.println( Class Classloader is: + BoneDBTransactionImpl2.class.getClassLoader() ); System.out.println( Hash: + BoneDBTransactionImpl2.class.getClassLoader().hashCode() ); System.out.println( Class: + BoneDBTransactionImpl2.class.getClassLoader().getClass().getName() ); System.out.println( BoneDBTransactionImpl2 LOADING *** ); Tss tss tss, the Threads instances are started by catalina-http and shared inside a Thread pool amongst tomcat application if am not wrond, so i doubt usefull informations comes from it. Only usefull information should comes from BoneDBTransactionImpl2.class.getClassLoader() as this is the classloader which will load any class needed by BoneDBTransactionImpl2. I put this into a static initializer block of a class that is in a jar in both WEB_INF\lib directories. I also added this code the constructor of that class. And to make sure to see what loader belongs to what app I also added the code to some methods of classes that are either in app A or in app B and not in both. I start app A. The output shows that - the class is loaded in app A by WebappClassLoader with hash A - the instance is created in app A using the Class loaded by WebappClassLoader with hash A. - Thread context classloader is WebappClassLoader with hash A. Then I start app B. The output shows that - the instance is created in app B using the Class loaded by WebappClassLoader with hash A - Thread context classloader is WebappClassLoader with hash B. Strange indeed, so you mean when starting app B, the static block of BoneDBTransactionImpl2 is never executed? If that's the case this indeed mean the class was already loaded before. Either this mean you have another lib in webapp B requiring BoneDBTransactionImpl2 and you didn't see the static init message 50 lines before ;), either you indeed have something shared. One easy way to check In webapp A, create a servelt which will set to 1 a static boolean in BoneDBTransactionImpl2 and in webapp B, set another servlet which will read the value of this boolean. first access B servlet to ensure boolean is set to false acces A servlet to switch boolean to true re-access B servlet to check if boolean has switched value in B webapp If that's the case, this really mean class is shared by webapp class loaders, serious problems ahead for tomcat team ;) The class exists in jar files in both WEB-INF\lib directories, but not in any other lib directory. And - if the class was loaded by a shared classloader, shouldn't the xxx.class.getClassLoader() return the StandardClassLoader? dunno I must admit that I am not too familiar with the deeper concept of J2EE classloading apart from the information found on some web pages. me too ;) however, separation in webapps mean every ressource in a .war is not to be shared with any other webapp. So, if the class indeed is loaded by WebappClassLoader A, how can it be pushed to become a shared one? And how can I prevent this from happening? Or am I making a mistake reading the output? I am sure that the class is not loaded again. see message above, i just didn't know how you concluded the class was shared, one common error is to give an instance of some object to a shared library and retreive it in another webapp, not understanding this object you are manipulating is a stranger ;) not your case scenario you describe. I checked the sources in Apache's CVS. I noticed that there is quite some debugging put into WebappClassLoader. But I can't get my server to log these messages. I have the log4j and commons logging jars in my common\lib directory and my log4j.properties (root logger set to debug) in my common\classes directory. I also set the debug to 4 everywhere in my server.xml. I see some catalina debug messages, but I cannot see the messages from the WebappClassLoader. So what am I doing wrong? I believe the debug output would be very helpful in understanding the problem. Yes have same problem here to get usefull log messages from Realms. Seems you have to modify directly the logging level in your java home, logging.properties (and setting it to debug for whole jvm is VERY verbose)
Webapp Alias
All I am trying to configure my tomcat so that i can server WAR's that are automatically generated. This application we have will deploy multiple WAR's and remove them over time, so instead of setting up the JKmounts in apache we just want to be able to say serve everything under http://www.serverlist.com/ct/* and then have apache serve everything in the / for static content. Is there a simple way to set this up using AJP13 i can't seem to find it.
RE: WebappClassLoader - don't understand what's happening
Any library having static methods like SomeLibraryClass.setXYZ(xyz); SomeLibraryClass.getXYZ(xyz); Wow, wow, wow . You mean any class that has static methods gets shared?? Any class that calls static methods? Could you explain that a bit further, please? so i doubt usefull informations comes from it. It works for all the other methods I put this code in. It seems that Tomcat assigns the CL to thread when it's fetched from the pool. It's definitely the case. We have a static log variable in the classes. It holds the log4j logger reference. All the debug output from the class goes into the log file of the application that started first (the one that loaded the class). Even the output when I use the app that was started second. That's how I noticed in the first place. Are you familiar with the classloading stuff? I was wondering ... when the WebappClassLoader doesn't find the class in its path, and then delegates the loading to the shared classloader ... and when then the shared classloader loads the class who resolves the dependecies of this loaded class? Does the WebappClassLoader get a shot first, or is it still the shared classloader? What if the shared classloader loads a class, and then cannot resolve a referenced class (because it's in one of the app's WEB-INF\lib directories) ... how does he determine which child WebappClassLoader he is to use? And who is registered in the JVM then as initiating classloader? I am asking because we have classes in our shared\lib directory. Those classes use a factory pattern to instantiate classes (that can be in the WEB-INF\lib dirs). Now, I wonder how these classes are loaded, that the factory class in shared\lib needs? Or am I thinking in the wrong direction? Does the WebappClassLoader always try first? Damn, I wish I would know this classloading stuff better. Do you have an idea why I cannot get logging output from the WebappClassLoaderS? Sascha -Original Message- From: delbd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 2:32 PM To: Tomcat Users List Subject: Re: WebappClassLoader - don't understand what's happening Le Jeudi 2 Juin 2005 13:49, Herrmann, Sascha (GE Healthcare) a écrit : Thanks for your reply. It could be. How is a class pushed to a shared library? Any library having static methods like SomeLibraryClass.setXYZ(xyz); SomeLibraryClass.getXYZ(xyz); I used the following code: System.out.println( BoneDBTransactionImpl2 LOADING *** ); System.out.println( Thread Classloader is: + Thread.currentThread().getContextClassLoader() ); System.out.println( Hash: + Thread.currentThread().getContextClassLoader().hashCode() ); System.out.println( Class: + Thread.currentThread().getContextClassLoader().getClass().getName() ); System.out.println( --- ); System.out.println( Class Classloader is: + BoneDBTransactionImpl2.class.getClassLoader() ); System.out.println( Hash: + BoneDBTransactionImpl2.class.getClassLoader().hashCode() ); System.out.println( Class: + BoneDBTransactionImpl2.class.getClassLoader().getClass().getName() ); System.out.println( BoneDBTransactionImpl2 LOADING *** ); Tss tss tss, the Threads instances are started by catalina-http and shared inside a Thread pool amongst tomcat application if am not wrond, so i doubt usefull informations comes from it. Only usefull information should comes from BoneDBTransactionImpl2.class.getClassLoader() as this is the classloader which will load any class needed by BoneDBTransactionImpl2. I put this into a static initializer block of a class that is in a jar in both WEB_INF\lib directories. I also added this code the constructor of that class. And to make sure to see what loader belongs to what app I also added the code to some methods of classes that are either in app A or in app B and not in both. I start app A. The output shows that - the class is loaded in app A by WebappClassLoader with hash A - the instance is created in app A using the Class loaded by WebappClassLoader with hash A. - Thread context classloader is WebappClassLoader with hash A. Then I start app B. The output shows that - the instance is created in app B using the Class loaded by WebappClassLoader with hash A - Thread context classloader is WebappClassLoader with hash B. Strange indeed, so you mean when starting app B, the static block of BoneDBTransactionImpl2 is never executed? If that's the case this indeed mean the class was already loaded before. Either this mean you have another lib in webapp B requiring BoneDBTransactionImpl2 and you didn't see the static init message 50 lines before ;), either you indeed have something shared. One easy way to check In webapp A, create a servelt which will set to
RE: Lb_factor problem for clustering
Hello Look at http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html Hope this will help you Jean-Claude -Message d'origine- De : Gaurav Bansal [mailto:[EMAIL PROTECTED] Envoyé : jeudi 2 juin 2005 13:33 À : tomcat-user@jakarta.apache.org Objet : Lb_factor problem for clustering Can any body explain me how this lb_factor works in worker2.properties file What is the highest value we can assign to it... Actually my problem is I am using tomcat 5.5.7 with apache 2.0.48 There are 2 tomcat instances. I want some way in which all the request should land up to one tomcat node only not the other one unless first one is down. Thanks Gaurav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5.9 does not read context.xml
Parsons Technical Services wrote: The value of this field(Path) must not be set except when statically defining a Context in server.xml, This is found on this page under the Path attribute, http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Doug - Original Message - From: teknokrat [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, June 02, 2005 6:45 AM Subject: tomcat 5.5.9 does not read context.xml What is the story with context descriptors in 5.5.9. Nothing seems to work right. I have placed the the following context.xml file in the META-INF directory inside my war Context path=/mobile reloadable=true/ When my war is expanded the context does not use the name in the path as specified by context.xml but the name of the war file!! How is it possible to use a context path different to the name of the war file? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] OK, I am totally confused. Is or is it not best practice to provide a context.xml in META-INF. I thought this was required for hot deployment to work. If I want my context path to have a different name to my war file, how do I achieve this? thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassNotFoundException in thread
Hi all, I've just migrated my appservers from HP-UX to Linux RedHat AS4, and I'm now stuck with a strange issue : I've 2 jar in the WEB-INF/lib directory (common.jar and statistic.jar). The common.jar contains a Watchdog that seek in the DB for job to run, start them, and those jobs are looking for classes by reflection to handle the process to be done. The statistic.jar package contains the classes that handle the process to be done. Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : java.lang.ClassNotFoundException: com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at com.nexans.common.alert.businessmodel.jdbc.AlertJobImpl.run(AlertJobImpl.java:466) at java.lang.Thread.run(Thread.java:534) The problem persists when I extract the classes in the jar into WEB-INF/classes. So now I don't know what to do next and where to search. Does anyone have an idea ? I'm using Tomcat 4.1.31+ mod_jk 1.10 (was using tomcat 4.1.30 and jk2 on HP-ux, but I quite sure the problem is not there...) with java version 1.4.2_07 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05) Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode) on RH and java version 1.4.1.03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1.03-030630-19:37) Java HotSpot(TM) Server VM (build 1.4.1 1.4.1.03-030630-22:07-PA_RISC2.0 PA2.0, mixed mode) on HP-UX Thanks in advance Cyril ZEKSER - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.30 - UTF-8 encoding not working
Hi msjava, I'm trying to migrate our webapp from ServletExec4.1.1/JDK1.3.1 to Tomcat5.0.30/JDK1.4.2. On ServletExec, our app was showing/saving UTF-8 strings correctly. However, after migration to Tomcat, the pages are not showing UTF-8 encoded content correctly. All our JSP pages contain the following: --- %@ page import=java.util.*, java.lang.* contentType=text/html; charset=UTF-8 % ... ... META http-equiv=Content-Type content=text/html; charset=UTF-8 The web.xml file contains: - !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; A filter servlet for all JSPs: - public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) { try { if (null != encoding) { request.setCharacterEncoding(encoding); } filterChain.doFilter(request, response); Do I need to do something else for Tomcat? In particular, do I need to do the stuff mentioned here: http://wiki.apache.org/jakarta-tomcat/Tomcat/UTF-8 Thanks in advance Sanjay NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassNotFoundException in thread
On 6/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : You double checked that com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure is there in the jar and is in the right folder ?. Restarted Tomcat ?. Also try with a fresh copy of the jar. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Re: ClassNotFoundException in thread
Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : You double checked that com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure is there in the jar and is in the right folder ?. Restarted Tomcat ?. Also try with a fresh copy of the jar. Anto, the class is there, both in the jar or in the classes directory (when I removed the jar of course). The package is well spelled, and java at the command line returns me a no main function error when I try to run it from the WEB-INF dir. Tomcat was restarted (both the server and the webapp) many times during this. I guess the problem is elsewhere :) Cyril - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Réf. : Re: ClassNotFoundException in thread
is there a static initialisation code in com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure ? or static properties whose values are taken from other methods? If anything in the static initialisation of class com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure throws an Exception, the class wil be considered as non-existent. (which is quite normal, sometinh that could not be create does not exist) Le Jeudi 2 Juin 2005 15:58, [EMAIL PROTECTED] a écrit : Everything was fin until I migrated. Now the jobs run OK but they fire a ClassNotFoundException as shwon : You double checked that com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedur e is there in the jar and is in the right folder ?. Restarted Tomcat ?. Also try with a fresh copy of the jar. Anto, the class is there, both in the jar or in the classes directory (when I removed the jar of course). The package is well spelled, and java at the command line returns me a no main function error when I try to run it from the WEB-INF dir. Tomcat was restarted (both the server and the webapp) many times during this. I guess the problem is elsewhere :) Cyril - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebappClassLoader - don't understand what's happening
Le Jeudi 2 Juin 2005 14:50, Herrmann, Sascha (GE Healthcare) a écrit : Any library having static methods like SomeLibraryClass.setXYZ(xyz); SomeLibraryClass.getXYZ(xyz); Wow, wow, wow . You mean any class that has static methods gets shared?? Any class that calls static methods? Could you explain that a bit further, please? No, i mean a shared class which has static methods could potentially serves as a bridge for objects between web applications :) I forgot the 'shared' in the sentence 'Any shared library having static methods', sorry ;) so i doubt usefull informations comes from it. It works for all the other methods I put this code in. It seems that Tomcat assigns the CL to thread when it's fetched from the pool. Possible, might have a sense in terms of security. It's definitely the case. We have a static log variable in the classes. It holds the log4j logger reference. All the debug output from the class goes into the log file of the application that started first (the one that loaded the class). Even the output when I use the app that was started second. That's how I noticed in the first place. is log4j a shared lib? if this is the case, might explain why all logs are in one common file (see log4j explanations for details, it's stated log4j should be put in WEB-INF/lib and nowhere else to prevent problems in J2EE environnement). In your case, this simply mean the config is shared, like is the log4j libraries. Don't mis this point: static Logger Logger.getLogger(SomeClass.class), does not mean the logger is 'the one for the class' but this mean the Logger is 'the one having the name some.package.SomeClass' this difference is subtle but has lots of implications when several different classes with excaclty the same name and package are using a common Log4j library. Are you familiar with the classloading stuff? did lose my mind in the maze of classloading several time. I was wondering ... when the WebappClassLoader doesn't find the class in its path, and then delegates the loading to the shared classloader ... and when then the shared classloader loads the class who resolves the dependecies of this loaded class? Does the WebappClassLoader get a shot first, or is it still the shared classloader? when the shared class loader loads a class in the delegation model, it assigns itself to the class.getClassLoader(). That is any other class further loaded by object of the first class will be loaded using the shared classloader. This is the excpected behaviour. So in your question, the answer is no the WebappClassLoader is not given a chance to resolve as shared classloader does not know it's childrens What if the shared classloader loads a class, and then cannot resolve a referenced class (because it's in one of the app's WEB-INF\lib directories) the sharedclassloader is unable to load anything in WEB-INF/lib, because it doesn't know about it. So in your case, it will ask it's parent (probably the JVM classLoader) which will throw a ClassNotFoundException ... how does he determine which child WebappClassLoader he is to use? And who is registered in the JVM then as initiating classloader? The delegation model goes down - top (from the calling class' classloader to the root classloader), it nevers goes back down later. A class instanciated by the shared classloader, is *never* able to load any class from a WEB-INF/lib using Class.forName() I am asking because we have classes in our shared\lib directory. Those classes use a factory pattern to instantiate classes (that can be in the WEB-INF\lib dirs). Now, I wonder how these classes are loaded, that the factory class in shared\lib needs? Sorry but if factories are in shared/lib, they are unable to load anything from WEB-INF/lib with one exception, if they are passed as argument the classloader of the WEB-INF/lib to use, they can use it to instanciate the class. But this is not a suggested way to write factories. However, a better behaviour would anyway be to put those factories in WEB-INF/lib insteed of shared/lib Or am I thinking in the wrong direction? Does the WebappClassLoader always try first? Damn, I wish I would know this classloading stuff better. We all learned the way they work the hardway ;) and yes you are thinking in the wrong direction, you think the delegation model is a 2 way path. This is not, it's a no return path. Do you have an idea why I cannot get logging output from the WebappClassLoaderS? see messages above. ;) Sascha -Original Message- From: delbd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 2:32 PM To: Tomcat Users List Subject: Re: WebappClassLoader - don't understand what's happening Le Jeudi 2 Juin 2005 13:49, Herrmann, Sascha (GE Healthcare) a écrit : Thanks for your reply. It could be. How is a class pushed to a shared library? Any library having static methods like
Number of running threads
Having got nowhere with my previous query ( Consecutive threads ) I've tried to create a much simpler example. I modified the Hello World servlet to introduce a delay of around a minute ( by adding a count loop ). I also made a copy of it as another servlet. I then made about 12 calls to the two servlets. No more than two threads were ever running. I could see from my browser that they were effectively running one after the other. Why only two rather than maxThreads? In my real-world problem a slow thread holds up a whole stack of fast threads as they don't even start until it has finished. The Server Configuration Reference ( http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html ) states: At server startup time, this Connector will create a number of request processing threads (based on the value configured for the minSpareThreads attribute). Each incoming request requires a thread for the duration of that request. If more simultaneous requests are received than can be handled by the currently available request processing threads, additional threads will be created up to the configured maximum (the value of the maxThreads attribute). If still more simultaneous requests are received, they are stacked up inside the server socket created by the Connector, up to the configured maximum (the value of the acceptCount attribute. Any further simultaneous requests will receive connection refused errors, until resources are available to process them. This doesn't seem to happen in my case. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Poor Performance Tomcat5.5.7, Apache2.0.52, Solaris 9
I am hoping someone has experienced this before. The installation is a binary install of Tomcat and a binary install of mod_jk 1.2.6 connector. We have been running performance tests on this install and Tomcat is very, very cpu intensive topping out at 55% of the cpu's on the box. I have never experienced this before and I am having a hard time tracking down the problem. The application does lookups and updates to an Oracle 9i database and it does use its own homegrown connection pool. But the poor performance seems to be on the web side with server threads climbing up into the four hundreds at times. I am including portions of my config files hoping that someone will spot something that I am doing wrong. Httpd.conf: Timeout 300 KeepAlive On MaxKeepAliveRequests 500 KeepAliveTimeout 15 StartServers2 MaxClients 400 MinSpareThreads 150 MaxSpareThreads 300 ThreadsPerChild 25 MaxRequestsPerChild 1 AcceptMutex fcntl Tomcat Server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8011 enableLookups=false redirectPort=8443 protocol=AJP/1.3 maxThreads=500 minSpareThreads=75 maxSpareThreads=250/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Tomcat workers.properties: worker.ajp13w.type=ajp13 worker.ajp13w.host=somehost worker.ajp13w.port=8011 worker.ajp13w.cachesize=600 worker.ajp13w.cache_timeout=600 Can someone tell the correlation of the worker.cachesize and an htptd.conf directive? Thanks in advance. -SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context at Host Level
Hi If i define a jndi resource at the host level, how can i know when tomcat is being stopped to finalize that resource? I mean, in a webapp context level, i can define a ServletContextListener so i can get the event ContextDestroyed and close, say, some opened files. I've been searching and have only found - ServletContextListener - HttpSessionListener there is no ContainerListener or something like that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Version Combinations (Tomcat, OS, JDK)
Greetings, is there a compatibility chart for combinations of OSes and Tomcat/JDK Versions ? (i.e. What JDK is recommended/supported in Tomcat 4.1.29 on Solaris 8) BEA has such has a chart for Weblogic: http://e-docs.bea.com/platform/suppconfigs/configs70/70_over/overview.ht ml Thus I was wondering whether a similar thing exist for Tomcat ? take care, Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Re: Réf. : Re: ClassNotFoundException in thread
Thanks for your answer but : is there a static initialisation code in com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure ? or static properties whose values are taken from other methods? If anything in the static initialisation of class com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure throws an Exception, the class wil be considered as non-existent. (which is quite normal, sometinh that could not be create does not exist) In fact, there is one static property : private static Logger myLog = Logger.getLogger( CreateFileProcedure.class ); but, as you mentionned in another mail, the Log4j.jar is not in common. this jar is in WEB-INF/lib (i've double checked ... kindda paranoid no ? :-) The line that crashed is the following : Object jobClass = Class.forName( getClassName() ).newInstance(); where getClassName() returns com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure The problem is when the Thread try to find the class, because a test JSP can execute this without Exception. What are the possible changes between the two platforms mentioned regarding threads ? (RHAS4 with JDK 1.4.2 and HP-UX11 with JDK 1.4.1). Java has enough memory, and is started in -server mode with -Xmx512m option. Both config files (from both platform) are identical - except of course the directories. I've though also of a ISO-xxx encoding instead of UTF-8 that could cause the problem, but not... This code is a year old, and was working fine in the old platform - that crashed unfortunately... so I had to migrate. Copying the JAR seems not enough to work properly. Any other idea for me to explore ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
accept-language header dropped Tomcat 5.0.28
I have turned on the RequestDumper Valve, but I do not get the accept-language header. locale is set to en_US (not in my browser languages). I'm not sure if this is a problem or not. However, the request getLocale() method always returns en_US (default for the server) because there is no accept-language header. Tomcat 5.0.28 IIS 5.1 JK 1.2.14 Can anyone tell me why accept-language is not coming through?
Jsvc and JRockit
Hello! I have been using jsvc to manage my tomcat process for some time now and with no problems. But, now I'm trying to switch my JVM from SUN to BEA's jRockit and tomcat doesn't start anymore. JRockit just dumps at startup. Is this a known problem? Is jsvc incompatible with JRockit? Is there an alternative? Here are the versions of my programs: Sun JVM: java version 1.5.0_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing) Bea JVM: java version 1.5.0_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09) BEA WebLogic JRockit(R) (build dra-43491-20050413-1952-linux-ia32, R25.1.0-104) Tomcat: 5.5.9 Jsvc: the version that comes with tomcat and downloaded 1.0.1 with the same results. Output from jsvc: 02/06/2005 15:05:16 3362 jsvc debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS -- 02/06/2005 15:05:16 3362 jsvc debug: | Detach: True 02/06/2005 15:05:16 3362 jsvc debug: | Show Version:No 02/06/2005 15:05:16 3362 jsvc debug: | Show Help: No 02/06/2005 15:05:16 3362 jsvc debug: | Check Only: Disabled 02/06/2005 15:05:16 3362 jsvc debug: | Stop:False 02/06/2005 15:05:16 3362 jsvc debug: | Wait:0 02/06/2005 15:05:16 3362 jsvc debug: | Run as service: No 02/06/2005 15:05:16 3362 jsvc debug: | Install service: No 02/06/2005 15:05:16 3362 jsvc debug: | Remove service: No 02/06/2005 15:05:16 3362 jsvc debug: | JVM Name:null 02/06/2005 15:05:16 3362 jsvc debug: | Java Home: /home/acruz/jrockit-jdk1.5.0_02 02/06/2005 15:05:16 3362 jsvc debug: | PID File:/tmp/jsvc.pid 02/06/2005 15:05:16 3362 jsvc debug: | User Name: acruz 02/06/2005 15:05:16 3362 jsvc debug: | Extra Options: 5 02/06/2005 15:05:16 3362 jsvc debug: | -Dcatalina.home=/home/acruz/jakarta-tomcat-5.5.9 02/06/2005 15:05:16 3362 jsvc debug: | -Djava.io.tmpdir=/var/tmp 02/06/2005 15:05:16 3362 jsvc debug: | -Xms256m 02/06/2005 15:05:16 3362 jsvc debug: | -Xmx256m 02/06/2005 15:05:16 3362 jsvc debug: | -Djava.class.path=/home/acruz/jrockit-jdk1.5.0_02//lib/tools.jar:/home/acruz/jakarta-tomcat-5.5.9/bin/commons-daemon.jar:/home/acruz/jakarta-tomcat-5.5.9/bin/bootstrap.jar 02/06/2005 15:05:16 3362 jsvc debug: | Class Invoked: org.apache.catalina.startup.Bootstrap 02/06/2005 15:05:16 3362 jsvc debug: | Class Arguments: 0 02/06/2005 15:05:16 3362 jsvc debug: +--- 02/06/2005 15:05:16 3363 jsvc debug: user changed to 'acruz' 02/06/2005 15:05:16 3362 jsvc debug: User 'acruz' validated 02/06/2005 15:05:16 3362 jsvc debug: Attempting to locate Java Home in /home/acruz/jrockit-jdk1.5.0_02 02/06/2005 15:05:16 3362 jsvc debug: Attempting to locate VM configuration file /home/acruz/jrockit-jdk1.5.0_02/jre/lib/jvm.cfg 02/06/2005 15:05:16 3362 jsvc debug: Attempting to locate VM configuration file /home/acruz/jrockit-jdk1.5.0_02/lib/jvm.cfg 02/06/2005 15:05:16 3362 jsvc debug: Attempting to locate VM configuration file /home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jvm.cfg 02/06/2005 15:05:16 3362 jsvc debug: Found VM configuration file at /home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jvm.cfg 02/06/2005 15:05:16 3362 jsvc debug: Found VM jrockit definition in configuration 02/06/2005 15:05:16 3362 jsvc debug: Checking library /home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jrockit/libjvm.so 02/06/2005 15:05:16 3362 jsvc debug: Java Home located in /home/acruz/jrockit-jdk1.5.0_02 02/06/2005 15:05:16 3362 jsvc debug: +-- DUMPING JAVA HOME STRUCTURE 02/06/2005 15:05:16 3362 jsvc debug: | Java Home: /home/acruz/jrockit-jdk1.5.0_02 02/06/2005 15:05:16 3362 jsvc debug: | Java VM Config.: /home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jvm.cfg 02/06/2005 15:05:16 3362 jsvc debug: | Found JVMs: 1 02/06/2005 15:05:16 3362 jsvc debug: | JVM Name:jrockit 02/06/2005 15:05:16 3362 jsvc debug: | /home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jrockit/libjvm.so 02/06/2005 15:05:16 3362 jsvc debug: +--- 02/06/2005 15:05:16 3362 jsvc debug: Using default JVM in /home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jrockit/libjvm.so 02/06/2005 15:05:16 3362 jsvc debug: Invoking w/ LD_LIBRARY_PATH=/home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386/jrockit:/home/acruz/jrockit-jdk1.5.0_02/jre/lib/i386 02/06/2005 15:05:16 3362 jsvc.exec debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS -- 02/06/2005 15:05:16 3362 jsvc.exec debug: | Detach: True 02/06/2005 15:05:16 3362 jsvc.exec debug: | Show Version:No 02/06/2005 15:05:16 3362 jsvc.exec debug: | Show Help: No 02/06/2005 15:05:16 3362 jsvc.exec debug: | Check Only: Disabled 02/06/2005 15:05:16 3362 jsvc.exec debug: | Stop:False 02/06/2005 15:05:16 3362 jsvc.exec debug: | Wait:0 02/06/2005 15:05:16 3362 jsvc.exec debug: | Run as service: No 02/06/2005 15:05:16 3362
RE: servlet request time out ?!
I would like to bring that issue up again as I haven't resolved it yet and haven't found what's causing it. Any help and ideas are welcome! Thanks, Ross -Original Message- From: Angelov, Rossen Sent: Thursday, May 26, 2005 1:33 PM To: 'Tomcat Users List' Subject: servlet request time out ?! Hi, Does anybody know about a time out on a servlet request with Tomcat 5? The problem is that I have a request that takes about 30 minutes but the browser keeps waiting for the response forever. I tried different browsers but it's the same behavior. I put debug statements in the doPost method and it's finishing correctly. The last debug statement is printed out but the browser is still waiting for the response. Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution.
Tomcat 5 and STRUTS
Hi. I am getting a new server and want to install the tomcat 5 instead of the 4.1. I am using STRUTS!!! Does that give any major problems Soren, DK Nolas Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlet request time out ?!
Maybe the setting in your web.xml is not enough for your request? session-config session-timeout45/session-timeout!-- 30 minutes by default-- /session-config - Original Message - From: Angelov, Rossen [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Thursday, June 02, 2005 11:34 AM Subject: RE: servlet request time out ?! I would like to bring that issue up again as I haven't resolved it yet and haven't found what's causing it. Any help and ideas are welcome! Thanks, Ross -Original Message- From: Angelov, Rossen Sent: Thursday, May 26, 2005 1:33 PM To: 'Tomcat Users List' Subject: servlet request time out ?! Hi, Does anybody know about a time out on a servlet request with Tomcat 5? The problem is that I have a request that takes about 30 minutes but the browser keeps waiting for the response forever. I tried different browsers but it's the same behavior. I put debug statements in the doPost method and it's finishing correctly. The last debug statement is printed out but the browser is still waiting for the response. Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering without farmwardeployer
We have a Tomcat cluster setup across 9 servers with clustering for session replication. However, we are not using the farmwardeployer because we have our own script that we use to shutdown each tomcat, deploy a fix version, and then start it up again so we don't incur any downtime. However, we're seeing some very unusual behavior. After shutting down one node, deleting contents of webapps and work directories, dropping in a new war, and restarting, the new files that get exploded in the webapps directory are not those of the war dropped into the webapps directory. They are instead the files from the previous war which is no longer on the local filesystem. It leads me to believe that even though we have the farmwardeployer turned off, that when we start tomcat in clustered mode, rather than exploding the local war, it's getting the contents of the war from another node. Any ideas? Thanks, Todd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLUTION : Réf. : Réf. : Re: Réf. : Re: ClassNotFoundException in thread
Yeepeh !!! I've found the solution : All I needed to do was changing the loading of the class by : Object jobClass = this.getClass().getClassLoader().loadClass( getClassName() ).newInstance(); //Object jobClass = Class.forName( getClassName() ).newInstance(); I guess the OS and the JVM behave differently from HP-UX to Linux, now the class is found in the Thread. I don't know why the previous code was working in the previous platform... If there is a better wy to write this, please tell me :) Hope this help others people... Cyril ZEKSER Pour : Tomcat Users List tomcat-user@jakarta.apache.org 02/06/2005 17:02 cc : Objet : Réf. : Re: Réf. : Re: ClassNotFoundException in thread(Document link: Cyril ZEKSER) Thanks for your answer but : is there a static initialisation code in com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure ? or static properties whose values are taken from other methods? If anything in the static initialisation of class com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure throws an Exception, the class wil be considered as non-existent. (which is quite normal, sometinh that could not be create does not exist) In fact, there is one static property : private static Logger myLog = Logger.getLogger( CreateFileProcedure.class ); but, as you mentionned in another mail, the Log4j.jar is not in common. this jar is in WEB-INF/lib (i've double checked ... kindda paranoid no ? :-) The line that crashed is the following : Object jobClass = Class.forName( getClassName() ).newInstance(); where getClassName() returns com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure The problem is when the Thread try to find the class, because a test JSP can execute this without Exception. What are the possible changes between the two platforms mentioned regarding threads ? (RHAS4 with JDK 1.4.2 and HP-UX11 with JDK 1.4.1). Java has enough memory, and is started in -server mode with -Xmx512m option. Both config files (from both platform) are identical - except of course the directories. I've though also of a ISO-xxx encoding instead of UTF-8 that could cause the problem, but not... This code is a year old, and was working fine in the old platform - that crashed unfortunately... so I had to migrate. Copying the JAR seems not enough to work properly. Any other idea for me to explore ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 and STRUTS
Nope. I'm using Struts and Tomcat 5.5.x without issue. Just follow the Struts documentation. -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 9:00 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5 and STRUTS Hi. I am getting a new server and want to install the tomcat 5 instead of the 4.1. I am using STRUTS!!! Does that give any major problems Soren, DK Nolas Consulting - 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: RemoteAddrValve
On Thu, Jun 02, 2005 at 12:45:15PM +0100, Janet Dickson wrote: : I'm trying to use RemoteAddrValve to restrict access to a website to a : subnet in Tomcat 4.1 You may want to use a ServletFilter instead. This is supported by the 2.3 servlet spec, which means it will be portable among containers and will thus ease your migration to Tomcat 5.x in the future. Using a Filter would also solve the other problem you mention, that you find you can't put multiple addresses in the allow section. : Valve className=org.apache.catalina.valves.RemoteAddrValve : allow=xxx.xxx.xxx.xxx/25 / : but it doesnt seem to work as access from one of my IP addresses is : forbidden. If possible, could you share the real IP addresses? (If they're internal-only (such as 10.x, 192.168.x, 172.16.x) then you won't expose any private information posting them here.) This may be as simple as a typo. : Also, can someone confirm whether it is necessary to restart the Tomcat : server (version 4.1) if I modify an .xml file in the webapps directory ? Depends on which XML file. If it's one of the files that's used by the container -- context.xml, web.xml, and so on -- then yes, you'll have to restart. If it's a file that's loaded by your app on request, then it's up to your code to decide whether to cache it or reload it every time. -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repeated logging problem on 5.5
I have a double-logging problem, by which I mean that some of my log messages get logged to two logfiles. I have only one logfile configured using java.util.logging, but in some cases, the same log message gets logged to the TC stdout log as well, which I don't want. It's not the end of the world, but I'd like to understand what's happening in case I've misunderstood something. This problem only happens when there is a java.util.logging call from either: - the init() method of my own servlet - a class created during that init() method, that persists in the VM after the init() method has returned, through a static field reference. I asked about this approx 1 days ago, but got no replies, probably because my original post was too wordy. More detail, incl my versions and config setup, are in my original post here: http://article.gmane.org/gmane.comp.jakarta.tomcat.user/113877 Does anyone have any ideas what the cause might be, please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.5.9 does not read context.xml
yes context.xml is fine in META-INF. in fact it is preferred over having it in server.xml. your alternative is to put it in conf/enginename/hostname/yourwebappname.xml (which is in fact what TC will do for you when it unpacks the war). I don't know that you can have the context path name different to the war file. I'm not 100% sure, but can't see how to do it. in fact I can see it being a source of potential confusion. can you explain why you want to do that? OK, I am totally confused. Is or is it not best practice to provide a context.xml in META-INF. I thought this was required for hot deployment to work. If I want my context path to have a different name to my war file, how do I achieve this? thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Number of running threads
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Number of running threads Why only two rather than maxThreads? How many separate clients are you using to test this with? Browsers typically honor the HTTP RFC recommendation of no more that two concurrent requests to a given host at a time. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help for ClassNotFoundExcpetion
Hi , Under tomcat I am integrating the uPortal and running one portlet application in a web context. I put my own classes under the WEB-INF/classes directory and also put jar files in WEB-INF/lib directory , but I am getting the error : ClassNotFoundException , When I put these jar files in tomcat/common/lib directory , its working fine. Can anyone tell me That how and where I can specify for a web application under one context that where are the jar And class files.
Scalability issue question
Currently using IIS and the ISAPI Tomcat redirect. Would like to just use Tomcat instead but don't know if it can handle my static content. The book Apache Tomcat 5 published by WROX warns of performance issues with static content, but ComputerWorld just did an article about Weather.com running their site on multiple load balanced Tomcat servers servicing 18 million hits a day. http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,92583 ,00.html I currently only get around 250 k hits per day but we're about to integrate email with Livelink and that puts me into a whole new performance arena. Any thoughts or guidance would be appreciated. Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright Important Notice!! If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: client authentication with client certificates (ssl)
Paul Puschmann wrote: That is fine, but how can I use the CLIENT-CERT information in my applications? The certificate is exposed as a servlet attribute. You need to read section SRV.4.7 of the servlet specification and if you search the specification for certificate you will find some useful supporting information. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Surprised with this behaviour. Is this a bug ?
Hello, From a servlet deployed in tomcat I am getting the request parameter map by calling getParameterMap() then using reflection calling a Class say Sub that has a method construct(HashMap requestMap). The method is called properly but surprisingly I am getting InvocationTargetException-ClassCastException when I try to read the parameter from the map. Following is the code. Code in Class called from Servlet // Note that the map instance is an instance of org.apache.catalina.util.ParameterMap Method method = cls.getMethod(constructSql, new Class[]{request.getParameterMap().getClass().getSuperclass()}); query = (String) method.invoke(obj, new Object[]{request.getParameterMap()}); Code from Sub public String construct(HashMap requestMap) { log.info(~construct()); log.info(10); Object obj = requestMap.get(ParamKey); log.info(obj.getClass()); log.info(10.1); String str = (String) obj; log.info(str); log.info(10.2); return ; } Console Output == INFO [http-8080-Processor25] SearchCodeQuery - ~construct() INFO [http-8080-Processor25] SearchCodeQuery - 10 INFO [http-8080-Processor25] SearchCodeQuery - class [Ljava.lang.String; INFO [http-8080-Processor25] SearchCodeQuery - 10.1 INFO [http-8080-Processor25] ServletRequestProcessor - java.lang.reflect.InvocationTargetException INFO [http-8080-Processor25] ServletRequestProcessor - java.lang.ClassCastException: [Ljava.lang.String; Is it because that the instance is actually org.apache.catalina.util.ParameterMap and I am trying to call get() over that instance ? But ParameterMap itself does not have any implementation of get() it takes that from its superclass i.e. HashMap. Is it not supposed to run. When you can see in the log that the value is a String object and a similar java application using LinkedHashMap and HashMap runs without any hiccups ? I am using JDK:1.5.0_03, Tomcat:5.5.9 Thanks in advance Nitin __ Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JMX implementation - Tomcat 5.0.28
I was ruinning 5.0.28 on Windows, but now it wont start. I get this message: Due to new licensing guidelines mandated by the Apache Software Foundation Board of Directors, a JMX implementation can no longer be distributed with the Apache Tomcat binaries. As a result, you must download a JMX 1.2 implementation (such as the Sun Reference Implementation) and copy the JAR containing the API and implementation of the JMX specification to: ${catalina.home}/bin/jmx.jar I have downlaoded the implementation and placed th files in the correct bin directory, but I still get this error. Any one else tackled this issue. Regards, Jimmy Ray __ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.30 - UTF-8 encoding not working
Karanjkar, Sanjay V (IT) wrote: Hi msjava, I'm trying to migrate our webapp from ServletExec4.1.1/JDK1.3.1 to Tomcat5.0.30/JDK1.4.2. On ServletExec, our app was showing/saving UTF-8 strings correctly. However, after migration to Tomcat, the pages are not showing UTF-8 encoded content correctly. If your are POSTing your data, request.setCharacterEncoding(UTF-8) should do the trick but you MUST call this before any parameters are read. If you are encoding your data in the URI, you will need to set the URIEncoding attribute on the coyote connector to UTF-8 to ensure that the URI is decoded correctly. Do I need to do something else for Tomcat? In particular, do I need to do the stuff mentioned here: http://wiki.apache.org/jakarta-tomcat/Tomcat/UTF-8 1. Yes 2 3 - No . These might work under some circumstances but 2. is trying to change a read-only property and 3. is hacking around the data not being handled correctly in the first place. When I am testing this, I use the following JSP to make sure Tomcat is correctly configured. A clean Tomcat install should only require URIEncoding=UTF-8 to be added to the connector in server.xml for these to work for any UTF-8 data. You should test it with both method=post and method=get %@ page contentType=text/html; charset=UTF-8 % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleUTF-8 test page/title /head body pUTF-8 data posted to this form was: % request.setCharacterEncoding(UTF-8); out.print(request.getParameter(mydata)); % /p form method=post action=index.jsp enctype=application/x-www-form-urlencoded input type=text name=mydata input type=submit value=Submit / input type=reset value=Reset / /form /body /html If this works, then the chances are your app isn't quite right. If you have a test case that doesn't work (try and make it as simple as possible) post it to the list and I'll take a look. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Shared web.xml
All, I inherited a tomcat installation with two tomcat servers running RedHat Enterprise 3 and tomcat 4.1. They are being load balanced behind a netscaler. The webapps directory and thus the web.xml files for each context are shared via NFS. The problem I have is that any time the web.xml is updated for a context that context is reloaded. Since the web.xml file is shared that means both servers reload the context at the same time. That means downtime. I know I can set up a local copy of web.xml and create a link to that but this makes things more complicated. Is there any way to force tomcat 4 to wait to reload the class until a reload is requested? I have tried reloadable=false for each context. Thanks, Jim T. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context at Host Level
Andrés Glez. wrote: there is no ContainerListener or something like that? Look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html and http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html You need to seach for lifecycle listener. Not part of the spec but might help you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scalability issue question
It can be a good idea to have it load balanced from a performance and uptime point of view. It is hard to absolutely decipher what each Tomcat can specifically handle in terms of load. A load test, which emualates user actions, may give you a ball park. The dependencies are on network, server OS, memory, JVM etc. regards, Hari Mailvaganam On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Currently using IIS and the ISAPI Tomcat redirect. Would like to just use Tomcat instead but don't know if it can handle my static content. The book Apache Tomcat 5 published by WROX warns of performance issues with static content, but ComputerWorld just did an article about Weather.com running their site on multiple load balanced Tomcat servers servicing 18 million hits a day. http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,92583 ,00.html I currently only get around 250 k hits per day but we're about to integrate email with Livelink and that puts me into a whole new performance arena. Any thoughts or guidance would be appreciated. Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright Important Notice!! If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. 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: Version Combinations (Tomcat, OS, JDK)
Spitzley, Kai, VF-DE wrote: is there a compatibility chart for combinations of OSes and Tomcat/JDK Versions ? No. (i.e. What JDK is recommended/supported in Tomcat 4.1.29 on Solaris 8) This is in the documentation (RUNNING.TXT) but the short answer is: 4.1.x - 1.2 or later 5.0.x - 1.3 or later 5.5.x - 5.0 (aka 1.5) or 1.4 with the compat package Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RemoteAddrValve
Janet Dickson wrote: Hi I'm trying to use RemoteAddrValve to restrict access to a website to a subnet in Tomcat 4.1 Tried : Valve className=org.apache.catalina.valves.RemoteAddrValve allow=xxx.xxx.xxx.xxx/25 / but it doesnt seem to work as access from one of my IP addresses is forbidden. Also, I dont seem to be able to put multiple addresses in the allow function ? As per http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html this should be a regular expression. Multiple values should be comma separated. Also, can someone confirm whether it is necessary to restart the Tomcat server (version 4.1) if I modify an .xml file in the webapps directory ? It depends ;) See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scalability issue question
Sorry hit send to fast Tomcat 5.0 and J2SDK 1.42.06 are the versions Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright -Original Message- From: Hari Mailvaganam [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 1:59 PM To: Tomcat Users List Subject: Re: Scalability issue question It can be a good idea to have it load balanced from a performance and uptime point of view. It is hard to absolutely decipher what each Tomcat can specifically handle in terms of load. A load test, which emualates user actions, may give you a ball park. The dependencies are on network, server OS, memory, JVM etc. regards, Hari Mailvaganam On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Currently using IIS and the ISAPI Tomcat redirect. Would like to just use Tomcat instead but don't know if it can handle my static content. The book Apache Tomcat 5 published by WROX warns of performance issues with static content, but ComputerWorld just did an article about Weather.com running their site on multiple load balanced Tomcat servers servicing 18 million hits a day. http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,925 83 ,00.html I currently only get around 250 k hits per day but we're about to integrate email with Livelink and that puts me into a whole new performance arena. Any thoughts or guidance would be appreciated. Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright Important Notice!! If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. 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] Important Notice!! If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scalability issue question
Network is 100megabit Server are 2- HP DL380g4 Dual 3.4gig Xeon chips with 4gig of Ram running Win2003 Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright -Original Message- From: Hari Mailvaganam [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 1:59 PM To: Tomcat Users List Subject: Re: Scalability issue question It can be a good idea to have it load balanced from a performance and uptime point of view. It is hard to absolutely decipher what each Tomcat can specifically handle in terms of load. A load test, which emualates user actions, may give you a ball park. The dependencies are on network, server OS, memory, JVM etc. regards, Hari Mailvaganam On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Currently using IIS and the ISAPI Tomcat redirect. Would like to just use Tomcat instead but don't know if it can handle my static content. The book Apache Tomcat 5 published by WROX warns of performance issues with static content, but ComputerWorld just did an article about Weather.com running their site on multiple load balanced Tomcat servers servicing 18 million hits a day. http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,925 83 ,00.html I currently only get around 250 k hits per day but we're about to integrate email with Livelink and that puts me into a whole new performance arena. Any thoughts or guidance would be appreciated. Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright Important Notice!! If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. 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: Scalability issue question
you could always look at the new performance benchmark i ran for static files on the resources page. it shows the performance of tomcat 5 as the number of clients increase and file size increases. hope that helps peter On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Network is 100megabit Server are 2- HP DL380g4 Dual 3.4gig Xeon chips with 4gig of Ram running Win2003 Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright -Original Message- From: Hari Mailvaganam [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 1:59 PM To: Tomcat Users List Subject: Re: Scalability issue question It can be a good idea to have it load balanced from a performance and uptime point of view. It is hard to absolutely decipher what each Tomcat can specifically handle in terms of load. A load test, which emualates user actions, may give you a ball park. The dependencies are on network, server OS, memory, JVM etc. regards, Hari Mailvaganam On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Currently using IIS and the ISAPI Tomcat redirect. Would like to just use Tomcat instead but don't know if it can handle my static content. The book Apache Tomcat 5 published by WROX warns of performance issues with static content, but ComputerWorld just did an article about Weather.com running their site on multiple load balanced Tomcat servers servicing 18 million hits a day. http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,925 83 ,00.html I currently only get around 250 k hits per day but we're about to integrate email with Livelink and that puts me into a whole new performance arena. Any thoughts or guidance would be appreciated. Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright Important Notice!! If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scalability issue question
I'm a true newbie to this site. I found your article after I submitted the thread. I'm halfway thru it now. Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 2:29 PM To: Tomcat Users List Subject: Re: Scalability issue question you could always look at the new performance benchmark i ran for static files on the resources page. it shows the performance of tomcat 5 as the number of clients increase and file size increases. hope that helps peter On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Network is 100megabit Server are 2- HP DL380g4 Dual 3.4gig Xeon chips with 4gig of Ram running Win2003 Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright -Original Message- From: Hari Mailvaganam [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 1:59 PM To: Tomcat Users List Subject: Re: Scalability issue question It can be a good idea to have it load balanced from a performance and uptime point of view. It is hard to absolutely decipher what each Tomcat can specifically handle in terms of load. A load test, which emualates user actions, may give you a ball park. The dependencies are on network, server OS, memory, JVM etc. regards, Hari Mailvaganam On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Currently using IIS and the ISAPI Tomcat redirect. Would like to just use Tomcat instead but don't know if it can handle my static content. The book Apache Tomcat 5 published by WROX warns of performance issues with static content, but ComputerWorld just did an article about Weather.com running their site on multiple load balanced Tomcat servers servicing 18 million hits a day. http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,9 25 83 ,00.html I currently only get around 250 k hits per day but we're about to integrate email with Livelink and that puts me into a whole new performance arena. Any thoughts or guidance would be appreciated. Scott Wallace Livelink Global Infrastructure Coordinator [EMAIL PROTECTED] 405-270-2027 wk 405-323-2237 cell 405-228-6027 fax I have an existential map; it has 'you are here' written all over it. - Steven Wright Important Notice!! If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. 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] - 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: Scalability issue question
On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote: Currently using IIS and the ISAPI Tomcat redirect. Would like to just use Tomcat instead but don't know if it can handle my static content. The book Apache Tomcat 5 published by WROX warns of performance issues with static content, but ComputerWorld just did an article about Weather.com running their site on multiple load balanced Tomcat servers servicing 18 million hits a day. http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,92583 ,00.html You do realize that article is over a year old don't you? That would be based around Tomcat 4.X and there have been leaps and bounds in perfomance with 5.0 and 5.5 so Tomcat should fare even better than it did back then. However I would be surprised if weather.com were using the Apache webserver and looking at Netcraft it looks like they are, no idea what connectors they are using though. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent: how to detect client has closed connection
Hey Ronald, Thanks for your help. I checked the code. I use default out.. and it indeed was using javax.servlet.jsp.JspWriter, but it does not throw an IOException. Do you know why? Thanks in advance... Luke From: Ronald Klop [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Urgent: how to detect client has closed connection Date: Wed, 1 Jun 2005 14:14:08 +0200 (CEST) What Writer are you using? If you do response.getWriter() you will get a PrintWriter and the docs tell you that PrintWriter doesn't throw exceptions, so your app keeps printing to the writer after an error. (A closed connection is an IOException.) If you use the default out property of a jsp page you get a JspWriter which does throw exeptions on error. Ronald. On Tue May 31 19:42:30 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: Hey guys, I have a problem right now. I wrote a Jsp page to keep sending data to client browser. However, no exception was thrown when I use out.print() to send something to client even after client has closed his web browser. My question is how can i know his browser is closed, so I can stop sending. Also, from the tomcat logs, the reset by peer socket exception was thrown by Tomcat. however, seems i don't have a way to catch it. Can anybody help me with this one... I will be really thankful to any help from you. Thanks, Luke _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
when web.xml changes webapp does not reload if not in webapps
Hello, How should I configure a webapp which is not located in ${catalina.base}/webapps/ that it will reload when I change its web.xml. For example if I change web.xml of manager the manager webapp will not automatically reload. Adding WatchedResourceWEB-INF/web.xml/WatchedResource to ${catalina.base}/conf/catalina/localhost/manager.xml does not make a visible difference: Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ WatchedResourceWEB-INF/web.xml/WatchedResource /Context Does anyone know how to configure this? For what is WatchedResource used for, if not for this? Any ideas? Regards Karl-Heinz ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
when web.xml changes webapp does not reload if not in webapps ..
Hello, Sorry I forgot something. How should I configure a webapp which is not located in ${catalina.base}/webapps/ that it will reload when I change its web.xml. For example if I change web.xml of manager the manager webapp will not automatically reload. Adding WatchedResourceWEB-INF/web.xml/WatchedResource or reloadable=true to ${catalina.base}/conf/catalina/localhost/manager.xml does not make a visible difference: Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false reloadable=true !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ WatchedResourceWEB-INF/web.xml/WatchedResource /Context Does anyone know how to configure this? For what is WatchedResource used for, if not for this? Any ideas? Regards Karl-Heinz ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Usage of DBCP in Tomcat
Hi everyone, The number of sites we support has recently expanded, and we're starting to run into db connection errors : we are running out. Mysql currently has its default max (somewhere around 100?), and I'll be scheduling a restart to increase this count (as an aside: anyone know how to up the connections on a running mysql server?) But I'd also like to find out why the DBCP configuration that I have is not functioning as expected. Is there something I'm missing or not understanding? Tomcat 5.0.29 commons-dbcp-1.2.1.jar JDK 1.4.2 parameter nameurl/name valuejdbc:mysql://xxx:xxx:xxx:xx:/?autoReconnect=true/value /parameter parameter namemaxActive/name value15/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value5000/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value15/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter This, I would read as use up to 15 total connections, maintain no less than 5 at the ready, and wait for no more than 5 seconds before indicating you are 'out of connections'. Also remove a connection if it hasn't been used for more than 15 seconds, and tell me you did that. All the websites share this common config. I'm getting single websites maintaining up to 20 connections. When I examine the mysql instance with the GUI MySql Admin tool, I see pretty much all of them in SLEEP and for well over 5000 seconds, never mind 15 seconds. Perhaps I'm leaking connections, which I'll be investigating as well, but then why aren't they being reclaimed as abandoned? If I don't configure timeBetweenEvictionRunsMillis, will the number of connection in the pool ever be reduced to maxIdle ? Is the autoReconnect screwing me? Thanks for any ideas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I cannot get virtual hosts to work Tomcat 5.5.9
Platform: Windows 2003 Tomcat: Tomcat 5.5.9 Standalone I cannot get virtual hosts to work. Server.xml: Host name=test.com appBase=E:\Webspace\ autoDeploy=true debug=0 deployXML=true unpackWARs=true Aliaswww.test.com/Alias /Host I have the context located here $CATALINA_HOME/conf/[enginename]/test.com/test.xml test.xml: Context docBase=test/ROOT path=ResourceLink name=jdbc/test global=jdbcTest//Context Actual Path to my Virtual host is E:\Webspace\test\ROOT I get page cannot be found when I try and go to test.com. I had this same exact configuration on Tomcat 5.0.28 and it worked perfectly. Please HELP any assistance is greatly appreciated. Thanks, -Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shared web.xml
On Thu, Jun 02, 2005 at 02:01:15PM -0500, Trice, Jim wrote: :I inherited a tomcat installation with two tomcat servers running RedHat : Enterprise 3 and tomcat 4.1. They are being load balanced behind a netscaler. : The webapps directory and thus the web.xml files for each context are shared : via NFS. This will hurt. What's the point of load-balancing the two Tomcat instances (eliminating a single point of failure), if they are susceptible to a problem with the NFS server (introducing a single point of failure)? I realize it's more of a headache to manage two installs than one; but it's even more painful to manage nothing when the shared storage goes south. =) Read on: : The problem I have is that any time the web.xml is updated for a : context that context is reloaded. Since the web.xml file is shared that means : both servers reload the context at the same time. That means downtime. I know : I can set up a local copy of web.xml and create a link to that but this makes : things more complicated. Is there any way to force tomcat 4 to wait to reload : the class until a reload is requested? I have tried reloadable=false for : each context. Setting reloadable=false (inside the Context/ attribute of server.xml, or inside context.xml) and restarting Tomcat should have done it. You mention you inherited this setup. Perhaps the old admins had setup a watchdog job, and that's what triggers restarts? -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.x client SSL and CRL
Hi, I was trying to get tomcat 5.x (standalone) setup for mutual ssl for (only some service URLs) with CRL/OCSP validations. If I write my own CRL validator, how can I tell tomcat to invoke it for such requests? I tried various docs, lists but couldn'tfind any pointers. Any pointers are appeciated. thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to determine clustering problem?
We have a webapp that runs fine in 1 tomcat instance. We have insured that all classes being stored in session are serializable When I put the app into a cluster of 3 Tomcats on my machine, it kind of works, but I am getting inconsistent failures. It is like constantly running down rabbit holes as the errors change continually. Is there a way to debug clustered apps? If this is a possible memory, issue, How do I change the memory configuration for each Tomcat instance? Is there a timeout for each screen request? can I configure it? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + HP-UX = NoSuchMethodError java.lang.String.contains(Ljava/lang/String;)
Any idea why String.contains(String) wouldn't work within Tomcat 4.1 on HP-UX and Java 1.5? I'm getting the following error in the localhost log: java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/String;)Z at edu.asu.vpia.benweb.dao.ResolutionImpl.getSortField(ResolutionImpl.java:47) The line in question says: if( statusDesc.contains(HQ) ) { Immediately suspecting that HP's JVM was being flaky [again], I tried using that method in a simple test program at the command line, which worked. (Details here: http://wiki.wendysmoak.com/cgi-bin/wiki.pl?TomcatNoSuchMethodError ) Then I thought maybe I was somehow accidentally using Java 1.4, which did not contain that method, but everything I can find says I *am* using Java 1.5: When I use the manager app, the bottom of the page says (reformatted for plain text): Server Information Tomcat Version Apache Tomcat/4.1 JVM Version 1.5.0-_24_nov_2004_16_29 JVM Vendor Hewlett-Packard Company OS NameHP-UX OS Version B.11.11 OS Architecture PA_RISC2.0 I put a scriptlet in a JSP to print out all the system properties, and it lists things like: java.vm.version = 1.5.0 FCS (JS B64) jinteg:11.24.04-15:51 PA2.0 (aCC_AP) java.runtime.version = 1.5.0-_24_nov_2004_16_29 java.library.path = /opt/java1.5/jre/lib/PA_RISC2.0:/opt/java1.5/jre/lib/PA_RISC2.0/server:/opt/ java1.5/jre/../lib/PA_RISC2.0:/usr/lib What else can I check? I'd really like to use the new methods in Java 1.5, but I keep having to remove them from my code so it will work once I deploy to the HP-UX production server. (The development box is Win2000/Tomcat 4.1/Sun Java 1.5, and everything works fine there.) Thanks, Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WebappLoader and Auto-Detection of Class Changes
I extended WebappLoader.java to create a custom classloader to allow me to append an alternate set of class folders. The loader works as intended but I noted that it doesn't detect any changes to these resources and call Context.reload() as is the case with WEB-INF/classes, lib, and any WatchedResource entries. What am I missing. Looking at WebappLoader.java and I fail to notice the mechanism which provides said functionality. Can someone point me in the right direction? Many thanks. -- Regards, Scott Dudley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat + HP-UX = NoSuchMethodError java.lang.String.contains(Ljava/lang/String;)
From: Wendy Smoak [EMAIL PROTECTED] Any idea why String.contains(String) wouldn't work within Tomcat 4.1 on HP-UX and Java 1.5? Now I'm *completely* mystified... test.jsp: % out.println( ABC.contains( A ) ); % works fine (prints 'true' on the page). Has anyone EVER seen behavior like this? The same method works in a JSP but does not work in .class files included in the .war? I'm leaning towards 'obscure classloader issue in the HP-UX JVM' but I don't really feel qualified to make that statement. Can you help me prove it or suggest an alternative? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help me please
sir, hi i installed tomcat5.5.9 , the path also specified correctly. but when executing the jsp2.0 examples the following exception is thrown please do help message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.handlePageException(Ljava/lang/Throwable;)V org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithmetic_jsp.java:72) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java) note The full stack trace of the root cause is available in the Tomcat logs. this appear in the log GRAVE: Servlet.service() para servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp lanzó excepción java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.handlePageException(Ljava/lang/Throwable;)V at org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithmetic_jsp.java:73) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) I have installed the jsdk1.5.0_03 the path=jsdk1.5.0_03 /bin JAVA_HOME=WHERE IS JAVA the CATALINA_HOME=WHERE IS TOMCATthe jsp1.2 examples work well could you help me ??? any idea?? Expecting quick reply thanks for all __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/
Re: Tomcat + HP-UX = NoSuchMethodError java.lang.String.contains(Ljava/lang/String;)
On Thu, Jun 02, 2005 at 05:37:23PM -0700, Wendy Smoak wrote: : Any idea why String.contains(String) wouldn't work within Tomcat 4.1 on : HP-UX and Java 1.5? Doesn't Tomcat 4.1 even support JDK 1.5? Are you using 1.5 to build, run, or both? -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.59 hang without any message ?
Anybody encounter this problem ? It just hang and doesn't allow anybody to access it. Any idea ?
Re: Surprised with this behaviour. Is this a bug ?
Not sure I follow all your explanation, and I think you haven't shown us enough of your code to know what's going on, but what is the method signature for method.invoke()? You're passing it an Object and an Object[]. The former (obj) is returned from requestMap.get(). Assuming requestMap is a Map object, the get() method returns an object of whatever type you pit into it, and perhaps you should downcast to this type. The second parameter you're passing into method.invoke() is an Object that has been upcasted from the return value of request.getParameterMap(). That method returns an object of type java.util.Map. In sum, I would look at the method signature for method.invoke(), and cast your arguments in that method call as needed. -Mark nitin dubey wrote: Hello, From a servlet deployed in tomcat I am getting the request parameter map by calling getParameterMap() then using reflection calling a Class say Sub that has a method construct(HashMap requestMap). The method is called properly but surprisingly I am getting InvocationTargetException-ClassCastException when I try to read the parameter from the map. Following is the code. Code in Class called from Servlet // Note that the map instance is an instance of org.apache.catalina.util.ParameterMap Method method = cls.getMethod(constructSql, new Class[]{request.getParameterMap().getClass().getSuperclass()}); query = (String) method.invoke(obj, new Object[]{request.getParameterMap()}); Code from Sub public String construct(HashMap requestMap) { log.info(~construct()); log.info(10); Object obj = requestMap.get(ParamKey); log.info(obj.getClass()); log.info(10.1); String str = (String) obj; log.info(str); log.info(10.2); return ; } Console Output == INFO [http-8080-Processor25] SearchCodeQuery - ~construct() INFO [http-8080-Processor25] SearchCodeQuery - 10 INFO [http-8080-Processor25] SearchCodeQuery - class [Ljava.lang.String; INFO [http-8080-Processor25] SearchCodeQuery - 10.1 INFO [http-8080-Processor25] ServletRequestProcessor - java.lang.reflect.InvocationTargetException INFO [http-8080-Processor25] ServletRequestProcessor - java.lang.ClassCastException: [Ljava.lang.String; Is it because that the instance is actually org.apache.catalina.util.ParameterMap and I am trying to call get() over that instance ? But ParameterMap itself does not have any implementation of get() it takes that from its superclass i.e. HashMap. Is it not supposed to run. When you can see in the log that the value is a String object and a similar java application using LinkedHashMap and HashMap runs without any hiccups ? I am using JDK:1.5.0_03, Tomcat:5.5.9 Thanks in advance Nitin __ Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help for ClassNotFoundExcpetion
On 6/2/05, MEHMOOD, QAISER [EMAIL PROTECTED] wrote: When I put these jar files in tomcat/common/lib directory , its working fine. Can anyone tell me In Tomcat classes in common/lib cannot find a class in a webapplication. Check the stacktrace to see what class is not found and which class is loading this and where it is located. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get user's password from tomcat
Hi all, Once Tomcat has authenticated a login, we can get the the authenticated user's name from the request's getRemoteUser() or getUserPrincipal() methods. Is there a way to get the user's password when the authentication type is form-based or single-sign-on ? Thanks a lot. Jo.- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: when web.xml changes webapp does not reload if not in webapps ..
On 6/3/05, charly [EMAIL PROTECTED] wrote: For example if I change web.xml of manager the manager webapp will not automatically reload. I think you cannot start,stop or reload the manager application. If you look at the localhost/manager/html you can see that there is no link to do that. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat thread is dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 connector on Solaris 8)
Thanks for your response, Yes the tomcat still dies with out apache might be because the configuration for mod_jk are still there only the apache is shutdown. below are the updated logs after changing in workers.properties, and commenting out the following lines in server.xml !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- Tomcathome/conf/workers.properties-- # Define 1 real worker using ajp13 worker.list=exampWorker # Set properties for worker1 (ajp13) worker.exampWorker.type=ajp13 worker.exampWorker.host=127.0.0.1 worker.exampWorker.port=8009 worker.exampWorker.lbfactor=2.5 #worker.exampWorker.cachesize=10 #worker.exampWorker.cache_timeout=600 #worker.exampWorker.socket_keepalive=1 #worker.exampWorker.socket_timeout=300 Tomcathome/logs/localhost_log.2005-06-02.txt- 2005-06-02 17:46:05 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChai n: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.ru les.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webap p.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] 2005-06-02 17:46:22 StandardContext[/jsp-examples]ContextListener: contextInitialized() 2005-06-02 17:46:22 StandardContext[/jsp-examples]SessionListener: contextInitialized() 2005-06-02 17:46:23 StandardContext[/servlets-examples]ContextListener: contextInitialized() 2005-06-02 17:46:23 StandardContext[/servlets-examples]SessionListener: contextInitialized() 2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@5 75415') 2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1 eb0') 2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@5 ee400') 2005-06-02 18:09:40 StandardContext[/jsp-examples]SessionListener: contextDestroyed() 2005-06-02 18:09:40 StandardContext[/jsp-examples]ContextListener: contextDestroyed() 2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.Stri ng;@33319f') 2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.Stri ng;@7ecd78') 2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.Stri ng;@63849c') 2005-06-02 18:09:40 StandardContext[/servlets-examples]SessionListener: contextDestroyed() 2005-06-02 18:09:40 StandardContext[/servlets-examples]ContextListener: contextDestroyed() --Tomcathome/logs/Catalina.out--- [INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080 [INFO] Catalina - Initialization processed in 10455 ms [INFO] StandardService - Starting service Catalina [INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28 [INFO] StandardHost - XML validation disabled [INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx ) [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml [INFO] StandardHostDeployer - Processing Context configuration file URL file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml [INFO] WebappClassLoader - validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, sectio n 9.7.2. Offending class: javax/servlet/Servlet.class [INFO] StandardHostDeployer - Installing web application at context path /jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples [INFO] StandardHostDeployer - Installing web application at context path from URL
RE: Tomcat 5.0.30 - UTF-8 encoding not working
Hi, Apologies, my previous mail was missing a few things... Correction - Tomcat *does* show UTF-8 encoded data correctly (after fetching from the database). It also saves UTF-8 encoded data correctly (I verified this by looking at a saved record). However, the place where it fails is when I pass UTF-8 data as a URL parameter to a popup screen. In the attached screenshot, you can see that the main screen fetches and displays UTF-8 data correctly but the popup screen (which pops up on clicking the Edit button) shows garbled characters. I checked the encoding on the popup screen and it does show me UTF-8. Am I losing the encoding when constructing the URL string? Note that this all works fine when I use ServletExec.. Fyi, the popup screen is launched via the following javascript code: function editConfirmComment() { var form = document.frm_update; var confirmComment = form.updComment.value; var url = '../../fc3Common/view/externalCommentDetails.jsp?dummy=dummy' + 'confirmComment=' + encodeURIComponent(confirmComment); popupWindow(url, 'ExternalCommentDetails', 480, 240); } Mark, in this case would I need to do as you said in your comments? If you are encoding your data in the URI, you will need to set the URIEncoding attribute on the coyote connector to UTF-8 to ensure that the URI is decoded correctly. A clean Tomcat install should only require URIEncoding=UTF-8 to be added to the connector in server.xml for these to work for any UTF-8 data. One issue is that my app would be hosted on a web farm. As the above looks to be a server-wide change, it will affect other apps hosted on the instance too, right? Thanks and regards Sanjay Morgan Stanley -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 12:27 AM To: Tomcat Users List Subject: Re: Tomcat 5.0.30 - UTF-8 encoding not working Karanjkar, Sanjay V (IT) wrote: Hi msjava, I'm trying to migrate our webapp from ServletExec4.1.1/JDK1.3.1 to Tomcat5.0.30/JDK1.4.2. On ServletExec, our app was showing/saving UTF-8 strings correctly. However, after migration to Tomcat, the pages are not showing UTF-8 encoded content correctly. If your are POSTing your data, request.setCharacterEncoding(UTF-8) should do the trick but you MUST call this before any parameters are read. If you are encoding your data in the URI, you will need to set the URIEncoding attribute on the coyote connector to UTF-8 to ensure that the URI is decoded correctly. Do I need to do something else for Tomcat? In particular, do I need to do the stuff mentioned here: http://wiki.apache.org/jakarta-tomcat/Tomcat/UTF-8 1. Yes 2 3 - No . These might work under some circumstances but 2. is trying to change a read-only property and 3. is hacking around the data not being handled correctly in the first place. When I am testing this, I use the following JSP to make sure Tomcat is correctly configured. A clean Tomcat install should only require URIEncoding=UTF-8 to be added to the connector in server.xml for these to work for any UTF-8 data. You should test it with both method=post and method=get %@ page contentType=text/html; charset=UTF-8 % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleUTF-8 test page/title /head body pUTF-8 data posted to this form was: % request.setCharacterEncoding(UTF-8); out.print(request.getParameter(mydata)); % /p form method=post action=index.jsp enctype=application/x-www-form-urlencoded input type=text name=mydata input type=submit value=Submit / input type=reset value=Reset / /form /body /html If this works, then the chances are your app isn't quite right. If you have a test case that doesn't work (try and make it as simple as possible) post it to the list and I'll take a look. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.30 - UTF-8 encoding not working
Hi Mark, Adding URIEncoding=UTF-8 to the coyote connector did the trick. Thanks a bunch! My guess is that our app will be hosted on a tomcat instance that only hosts UTF-8-aware apps. Thanks and regards Sanjay -Original Message- From: Karanjkar, Sanjay V (IT) Sent: Friday, June 03, 2005 10:44 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 5.0.30 - UTF-8 encoding not working Hi, Apologies, my previous mail was missing a few things... Correction - Tomcat *does* show UTF-8 encoded data correctly (after fetching from the database). It also saves UTF-8 encoded data correctly (I verified this by looking at a saved record). However, the place where it fails is when I pass UTF-8 data as a URL parameter to a popup screen. In the attached screenshot, you can see that the main screen fetches and displays UTF-8 data correctly but the popup screen (which pops up on clicking the Edit button) shows garbled characters. I checked the encoding on the popup screen and it does show me UTF-8. Am I losing the encoding when constructing the URL string? Note that this all works fine when I use ServletExec.. Fyi, the popup screen is launched via the following javascript code: function editConfirmComment() { var form = document.frm_update; var confirmComment = form.updComment.value; var url = '../../fc3Common/view/externalCommentDetails.jsp?dummy=dummy' + 'confirmComment=' + encodeURIComponent(confirmComment); popupWindow(url, 'ExternalCommentDetails', 480, 240); } Mark, in this case would I need to do as you said in your comments? If you are encoding your data in the URI, you will need to set the URIEncoding attribute on the coyote connector to UTF-8 to ensure that the URI is decoded correctly. A clean Tomcat install should only require URIEncoding=UTF-8 to be added to the connector in server.xml for these to work for any UTF-8 data. One issue is that my app would be hosted on a web farm. As the above looks to be a server-wide change, it will affect other apps hosted on the instance too, right? Thanks and regards Sanjay Morgan Stanley -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 12:27 AM To: Tomcat Users List Subject: Re: Tomcat 5.0.30 - UTF-8 encoding not working Karanjkar, Sanjay V (IT) wrote: Hi msjava, I'm trying to migrate our webapp from ServletExec4.1.1/JDK1.3.1 to Tomcat5.0.30/JDK1.4.2. On ServletExec, our app was showing/saving UTF-8 strings correctly. However, after migration to Tomcat, the pages are not showing UTF-8 encoded content correctly. If your are POSTing your data, request.setCharacterEncoding(UTF-8) should do the trick but you MUST call this before any parameters are read. If you are encoding your data in the URI, you will need to set the URIEncoding attribute on the coyote connector to UTF-8 to ensure that the URI is decoded correctly. Do I need to do something else for Tomcat? In particular, do I need to do the stuff mentioned here: http://wiki.apache.org/jakarta-tomcat/Tomcat/UTF-8 1. Yes 2 3 - No . These might work under some circumstances but 2. is trying to change a read-only property and 3. is hacking around the data not being handled correctly in the first place. When I am testing this, I use the following JSP to make sure Tomcat is correctly configured. A clean Tomcat install should only require URIEncoding=UTF-8 to be added to the connector in server.xml for these to work for any UTF-8 data. You should test it with both method=post and method=get %@ page contentType=text/html; charset=UTF-8 % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleUTF-8 test page/title /head body pUTF-8 data posted to this form was: % request.setCharacterEncoding(UTF-8); out.print(request.getParameter(mydata)); % /p form method=post action=index.jsp enctype=application/x-www-form-urlencoded input type=text name=mydata input type=submit value=Submit / input type=reset value=Reset / /form /body /html If this works, then the chances are your app isn't quite right. If you have a test case that doesn't work (try and make it as simple as possible) post it to the list and I'll take a look. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.