Help with Tomcat and mod_jk
Hi All, Running Tomcat 6.0.13 on Windows Server 2003 x64 with an Apache Web Server 2.2.4 (on a separate server) with mod_jk 1.2.20 Regularly getting these in the log - same warning every time... 23-Jan-2008 08:24:56 org.apache.jk.core.MsgContext action WARNING: Error sending end packet java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121) at org.apache.jk.core.MsgContext.action(MsgContext.java:301) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.finish(Response.java:305) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket. java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:686) at java.lang.Thread.run(Thread.java:619) 23-Jan-2008 08:24:56 org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 The workers.properties file contains the following for the worker involved; worker.worker7.type=ajp13 worker.worker7.host=fred.abc.co.uk worker.worker7.port=8009 worker.worker7.socket_timout=300 worker.worker7.socket_keepalive=true (I think the socket_timout is unsupported for this level of mod_jk, but to tell the truth I can't seem to find the relevant directives documentation!) The httpd.conf contains... LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] Can anybody shed some light on this? Cheers, Darren. Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 Disclaimer --- This email message has been scanned for viruses by Mimecast. Mimecast delivers a complete managed email solution from a single web based platform. For more information please visit www.mimecast.com ---
Re: Help with Tomcat and mod_jk
Darren Kukulka wrote: Hi All, Running Tomcat 6.0.13 on Windows Server 2003 x64 with an Apache Web Server 2.2.4 (on a separate server) with mod_jk 1.2.20 We are currently at 2.2.8/1.2.26 ... Regularly getting these in the log - same warning every time... 23-Jan-2008 08:24:56 org.apache.jk.core.MsgContext action WARNING: Error sending end packet See http://www.nabble.com/mod_jk-broken-pipe-ts6882827.html The workers.properties file contains the following for the worker involved; ... (I think the socket_timout is unsupported for this level of mod_jk, but to tell the truth I can't seem to find the relevant directives documentation!) http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html http://tomcat.apache.org/connectors-doc/reference/workers.html http://tomcat.apache.org/connectors-doc/reference/apache.html Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Subclass of Servlet: Inherited method is not visible
Hi, The following schematically describes my setup. Basically, there are two servlets, one being a subclass of the other: public class ServletA extends ParameterMethodResolvingServlet { public void init() { ... } public void methodA() { ... } } public class ServletB extends ServletA { public void init() { super.init(); ... } } The web.xml contains a mapping to ServletB. When I issue an ajax request to that servlet calling methodA(), the following error occurs: HTTP ERROR: 501 No such method: methodA But everything runs fine when I change ServletB to: public class ServletB extends ServletA { public void init() { super.init(); ... } public void methodA() { super.methodA(); } } Since it is inherited, I expect Tomcat to actually see methodA() without the workaround as shown above. I am using Tomcat 5.5.25 and Java 1.6.0_03 Any help will be appreciated. Paul Pichota - This email was sent using SquirrelMail. Webmail for nuts! http://squirrelmail.org/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Subclass of Servlet: Inherited method is not visible
You should ask the implementors of ParameterMethodResolvingServlet (according to Google this seems to a project within dfki), or look at it's implementation. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 23, 2008 12:24 PM To: users@tomcat.apache.org Subject: Subclass of Servlet: Inherited method is not visible Hi, The following schematically describes my setup. Basically, there are two servlets, one being a subclass of the other: public class ServletA extends ParameterMethodResolvingServlet { public void init() { ... } public void methodA() { ... } } public class ServletB extends ServletA { public void init() { super.init(); ... } } The web.xml contains a mapping to ServletB. When I issue an ajax request to that servlet calling methodA(), the following error occurs: HTTP ERROR: 501 No such method: methodA But everything runs fine when I change ServletB to: public class ServletB extends ServletA { public void init() { super.init(); ... } public void methodA() { super.methodA(); } } Since it is inherited, I expect Tomcat to actually see methodA() without the workaround as shown above. I am using Tomcat 5.5.25 and Java 1.6.0_03 Any help will be appreciated. Paul Pichota - This email was sent using SquirrelMail. Webmail for nuts! http://squirrelmail.org/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
Hi, Have you solved this problem? I'm having it too. I suspect that my application is compiled with, and trying to use at runtime, just one version of ServletFileUpload.parseRequest -- but that Tomcat uses another internally, and since it's a Servlet request, Tomcat's version is being applied. (The effective classpath for servlets under Tomcat 6.0 is pretty mysterious.) Christian Aschoff wrote: Hm, i think the complete stack-trace does not help further, but anyway: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (ServletFileUpload.java:126) at de.retrobib.utils.RequestParameterFetcher.buildHashs (RequestParameterFetcher.java:156) at de.retrobib.utils.RequestParameterFetcher.init (RequestParameterFetcher.java:58) at de.retrobib.actions.secure.BatchAction.executeAction (BatchAction.java:85) at de.retrobib.actions.RetrobibAction.execute(RetrobibAction.java:83) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at de.retrobib.filter.SecurityFilter.doFilter(SecurityFilter.java:93) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at de.retrobib.filter.URLFilter.doFilter(URLFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) I can not find a second commons...-lib. Maybe it is somewhere inside NetBeans 6.0...? Am 07.01.2008 um 12:12 schrieb David Delbecq: Check you don't have 2 versions of commons fileupload. Also, provide a more complete stacktrace to get meaningful answers :) En l'instant précis du 07/01/08 12:09, Christian Aschoff s'exprimait en ces termes: Hi, i have a webapplication developed with NetBeans 5.5. Everything is fine. But when i recompile it with NetBeans 6.01, i get a 2008-01-07 10:13:51,244 ERROR [http-8084-2] (RetrobibAction.java: 89) - Exception in Action java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest( Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest( ServletFileUpload.java:126) Exception when uploading files (via apache.commons.fileupload). I upgraded all librarys (io/collections/fileupload) but this does not helped. Any hint for me? Regards, Christian --- Dipl. Ing. (FH) Christian Aschoff Büro: Universität Ulm Kommunikations- und Informationszentrum Abt. Informationssysteme Raum O26/5403 Albert-Einstein-Allee 11 89081 Ulm Tel. 0731 50-22432 Fax. 0731 50-22471 [EMAIL PROTECTED] Privat: Fabristr. 13 89075 Ulm Deutschland/Old Europe Tel. 0731
RE: Subclass of Servlet: Inherited method is not visible
Urgh, should have seen that. This explains everything. Thanks. You should ask the implementors of ParameterMethodResolvingServlet (according to Google this seems to a project within dfki), or look at it's implementation. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 23, 2008 12:24 PM To: users@tomcat.apache.org Subject: Subclass of Servlet: Inherited method is not visible Hi, The following schematically describes my setup. Basically, there are two servlets, one being a subclass of the other: public class ServletA extends ParameterMethodResolvingServlet { public void init() { ... } public void methodA() { ... } } public class ServletB extends ServletA { public void init() { super.init(); ... } } The web.xml contains a mapping to ServletB. When I issue an ajax request to that servlet calling methodA(), the following error occurs: HTTP ERROR: 501 No such method: methodA But everything runs fine when I change ServletB to: public class ServletB extends ServletA { public void init() { super.init(); ... } public void methodA() { super.methodA(); } } Since it is inherited, I expect Tomcat to actually see methodA() without the workaround as shown above. I am using Tomcat 5.5.25 and Java 1.6.0_03 Any help will be appreciated. Paul Pichota - This email was sent using SquirrelMail. Webmail for nuts! http://squirrelmail.org/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This email was sent using SquirrelMail. Webmail for nuts! http://squirrelmail.org/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
Tomcat as distributed doesn't have the commons-fileupload library. If this is a conflict between two versions in two different locations, it's one you've setup. Take a look and make sure there isn't another one in tomcat's /lib directory. --David Liquid Mark wrote: Hi, Have you solved this problem? I'm having it too. I suspect that my application is compiled with, and trying to use at runtime, just one version of ServletFileUpload.parseRequest -- but that Tomcat uses another internally, and since it's a Servlet request, Tomcat's version is being applied. (The effective classpath for servlets under Tomcat 6.0 is pretty mysterious.) Christian Aschoff wrote: Hm, i think the complete stack-trace does not help further, but anyway: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (ServletFileUpload.java:126) at de.retrobib.utils.RequestParameterFetcher.buildHashs (RequestParameterFetcher.java:156) at de.retrobib.utils.RequestParameterFetcher.init (RequestParameterFetcher.java:58) at de.retrobib.actions.secure.BatchAction.executeAction (BatchAction.java:85) at de.retrobib.actions.RetrobibAction.execute(RetrobibAction.java:83) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at de.retrobib.filter.SecurityFilter.doFilter(SecurityFilter.java:93) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at de.retrobib.filter.URLFilter.doFilter(URLFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) I can not find a second commons...-lib. Maybe it is somewhere inside NetBeans 6.0...? Am 07.01.2008 um 12:12 schrieb David Delbecq: Check you don't have 2 versions of commons fileupload. Also, provide a more complete stacktrace to get meaningful answers :) En l'instant précis du 07/01/08 12:09, Christian Aschoff s'exprimait en ces termes: Hi, i have a webapplication developed with NetBeans 5.5. Everything is fine. But when i recompile it with NetBeans 6.01, i get a 2008-01-07 10:13:51,244 ERROR [http-8084-2] (RetrobibAction.java: 89) - Exception in Action java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest( Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest( ServletFileUpload.java:126) Exception when uploading files (via apache.commons.fileupload). I upgraded all librarys (io/collections/fileupload) but this does not helped. Any hint for me? Regards, Christian --- Dipl. Ing. (FH) Christian Aschoff Büro: Universität Ulm Kommunikations- und Informationszentrum Abt. Informationssysteme Raum O26/5403 Albert-Einstein-Allee 11 89081 Ulm Tel. 0731 50-22432 Fax. 0731 50-22471 [EMAIL
Re: Question about Tomcat/IIS and NTLM authentication
Gabe Wong wrote: I guess I misunderstood your objective. You are not interested in manipulating the user name. You just want to check if the stripped user name is in a specific role? Gabe, Yeah, I guess that sums it up better than my original post. I thought that maybe if I could just manipulate the principal name that I could just pass that along to hasRoles and everything would work similarly. If you have any other ideas on how I could do that, I would be grateful. Thanks, Eric -- View this message in context: http://www.nabble.com/Question-about-Tomcat-IIS-and-NTLM-authentication-tp14997483p15041571.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ordered loading of WAR files
On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... cached is not the right word. It is how deployment mechanism works in tomcat. The presence of app_name.xml in tc/conf/Catalina/localhost/ means that you application has been successfully deployed. Removal of the file means that you trigger the auto-deployment mechanism for your application. See http://tomcat.apache.org/tomcat-6.0-doc/config/context.html for details (look for $CATALINA_HOME/conf/[enginename]/[hostname]/ there) As for your problem I understand, that you have database connection in one application, and are reusing it from another one? Is it just that? It it is the case, I suggest to move connection pool configuration from application context.xml into GlobalNamingResources of server.xml, see http://tomcat.apache.org/tomcat-6.0-doc/config/globalresources.html In application context.xml you will specify a local synonym for this global resource using ResourceLink element. I hope this will help you. Best regards, K. 2008/1/18, Fu-Tung Cheng [EMAIL PROTECTED]: Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet context.xml mechanism. On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... and that on the 2nd startup it tries to test the connection before the war that is the connection has loaded. I've solved this temporarily by deleting this directory before startup. Does anyone know of a better way to do this? I am using tomcat 6014. Thanks, Fu-Tung - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat worked before, now it doesn't
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 B, B McFee wrote: | I tried the attached and got the following output which I don't | understand: | | Proto Local Address Foreign AddressState | TCPC36432-B:8007 C36432-B:0 LISTENING | TCPC36432-B:8080 C36432-B:0 LISTENING These two are the items of interest: you configured an ajp12 connection on port 8007 (the first line) and an HTTP connector on port 8080 (the second line). You can see that they are both listening, which indicates to me that Tomcat /is/ running. What port are you using for SHUTDOWN? The first non-comment line of your server.xml should be something like this: Server port=8006 shutdown=SHUTDOWN That's the port we're looking for. If Tomcat isn't listening on that port, you'll have to kill the process some way other than running shutdown.bat. Once you get Tomcat stopped, clear out everything in the work directory and try to re-start it and let us know how it goes. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeXXnEACgkQ9CaO5/Lv0PD9jQCgtzv5FX3MgPnS/NvLF8+LDZ9q 2kAAn3ikkOsZppRIH/vn96XDj/SaMD/T =ZPqo -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with Tomcat and mod_jk
Thanks Rainer, I'll look into upgrading the apache/mod_jk combination -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: 23 January 2008 10:42 To: Tomcat Users List Subject: Re: Help with Tomcat and mod_jk Darren Kukulka wrote: Hi All, Running Tomcat 6.0.13 on Windows Server 2003 x64 with an Apache Web Server 2.2.4 (on a separate server) with mod_jk 1.2.20 We are currently at 2.2.8/1.2.26 ... Regularly getting these in the log - same warning every time... 23-Jan-2008 08:24:56 org.apache.jk.core.MsgContext action WARNING: Error sending end packet See http://www.nabble.com/mod_jk-broken-pipe-ts6882827.html The workers.properties file contains the following for the worker involved; ... (I think the socket_timout is unsupported for this level of mod_jk, but to tell the truth I can't seem to find the relevant directives documentation!) http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html http://tomcat.apache.org/connectors-doc/reference/workers.html http://tomcat.apache.org/connectors-doc/reference/apache.html Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 Disclaimer --- This email message has been scanned for viruses by Mimecast. Mimecast delivers a complete managed email solution from a single web based platform. For more information please visit www.mimecast.com ---
problem with mod_jk and tomcat-host downtime on solaris
Hi, I use apache-2.2.4 together with mod_jk-1.2.25 to load balance a bunch of tomcat-5.5.25 servers. All servers are running on Solaris 10 and are implemented as zones. The setup works really good during normal operation. But when a server dies for some reason, and with it the zones running tomcat, mod_jk does not stop sending requests to the unavailable tomcats until the operating system times out the tcp connect. This takes more than a few minutes. Reading the documentation suggests that socket_timeout is the appropiate setting to deal with this problem but does not work on Solaris. I could not find any usable settings in Solaris itself, so I am hoping this can be solved with mod_jk configuration. What is the correct way to have mod_jk recognize the tomcats as unavailable more quickly on Solaris? Below you can find my current mod_jk configuration. Thanks Christian # # default worker list worker.list=escenic,jkstatus # worker template worker.template.port=9009 worker.template.type=ajp13 worker.template.lbfactor=1 worker.template.socket_keepalive=0 worker.template.connect_timeout=1 worker.template.reply_timeout=4 worker.template.connection_pool_timeout=30 # workers definition worker.escapp1.reference=worker.template worker.escapp1.host=apppubl1.online.local ... ... ... # load balancer definition worker.escenic.type=lb worker.escenic.max_reply_timeouts=3 worker.escenic.balance_workers=escapp1,escapp9,escapp3,escapp4,escapp5,escapp6,escapp7,escapp8 worker.escenic.sticky_session=1. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to install tomcat on iseries AS400
Hi All, I have experience installaing apache-tomcat on Linux, but now I need to install apache-tomcat on AS400, the operate syste is V5R4M0. I need a guide, somebody can help me ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to install tomcat on iseries AS400
Hello Vida, back in 1998 I had to install Java classes on an AS400. The IBM boxes do not have hierarchical file systems such as: UNIX/Linux/Windows.IBM uses some type of formatted file system using HEADS, CYLINDERS and TRACKS. In '98 IBM provided something called the Q shell and a green screen terminal window from whence to issue commands: define classpath, java and javac path etc. That was then. In all-likelihood you will need to get an IBM green screen session going if the iSeries interface does not have something already available for such purposes. My money is on digging into the iSeries features. HTH, David. Vida Luz Arista wrote .. Hi All, I have experience installaing apache-tomcat on Linux, but now I need to install apache-tomcat on AS400, the operate syste is V5R4M0. I need a guide, somebody can help me ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet or filter (or valve) that acts like mod_jk
All, I have rather an odd situation that I'm hoping someone can give me some advice on. Short version: I need to know if there's a servlet, filter or valve that can be used to provide the same functionality as mod_jk does for Apache. In other words, I want to map certain requests to a JK connector running on a different servlet container. Long version: I have a third-party web application deployed that generates some specific content (in this case maps). For licensing reasons, I can only deploy this web application in a couple of places. Now, our developers are all running tomcat locally. Our applications that consume these maps embed them in iframes. Of course, because of cross-domain security restrictions, javascript interaction between the two frames causes problems. For security and ease-of-admin reasons, we don't want to install Apache/mod_jk locally. What I would like is something that I can plug in to Tomcat to allow requests for this third party software to be passed off to a different servlet container. If I can do this, then the cross-domain issue goes away completely (there's also a good shot at getting rid of the iframe completely). I have found a couple of proxy servlets out there, but they seem somewhat limited (only process GET requests, etc). My thought was that if there was a servlet that spoke JK, then you could simply map requests to that servlet through to the JK connector on another servlet container, just like Apache/mod_jk does. Am I out of my mind or what? Thanks, Brantley - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet or filter (or valve) that acts like mod_jk
Have you tried .. http://sourceforge.net/projects/j2ep I do not know of a jk implemention done in java. -Tim Brantley Hobbs wrote: All, I have rather an odd situation that I'm hoping someone can give me some advice on. Short version: I need to know if there's a servlet, filter or valve that can be used to provide the same functionality as mod_jk does for Apache. In other words, I want to map certain requests to a JK connector running on a different servlet container. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to install tomcat on iseries AS400
take a look at this article by California Software implementing Unisys OS on AS/400 http://www.itjungle.com/tfh/tfh081604-story03.html chuck has considerable expertise in this area.. M- - Original Message - From: David Brown [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, January 23, 2008 11:27 AM Subject: Re: how to install tomcat on iseries AS400 Hello Vida, back in 1998 I had to install Java classes on an AS400. The IBM boxes do not have hierarchical file systems such as: UNIX/Linux/Windows.IBM uses some type of formatted file system using HEADS, CYLINDERS and TRACKS. In '98 IBM provided something called the Q shell and a green screen terminal window from whence to issue commands: define classpath, java and javac path etc. That was then. In all-likelihood you will need to get an IBM green screen session going if the iSeries interface does not have something already available for such purposes. My money is on digging into the iSeries features. HTH, David. Vida Luz Arista wrote .. Hi All, I have experience installaing apache-tomcat on Linux, but now I need to install apache-tomcat on AS400, the operate syste is V5R4M0. I need a guide, somebody can help me ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to install tomcat on iseries AS400
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: how to install tomcat on iseries AS400 take a look at this article by California Software implementing Unisys OS on AS/400 http://www.itjungle.com/tfh/tfh081604-story03.html You misread the article (which is 3.5 years old, anyway). The effort here was to migrate AS/400 customers off of that platform and onto a more usable one: our ES7000 high-end servers running Windows Server or Linux. There was never any attempt to put an alternative OS on the AS/400. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 64 bits
Hello! Is there any problem run Tomcat under 64 bits platform? And about JDK? Is it possible install JDK 32 bits for 64 bits platform? Thanks a lot A.
Re: Servlet or filter (or valve) that acts like mod_jk
Tim Funk wrote: Have you tried .. http://sourceforge.net/projects/j2ep I do not know of a jk implemention done in java. JMeter includes an AJP13 client. I would expect that to be overkill though. I also do not know of any fully featured Java based reverse proxy servlet. In your case, you might be able to write something reasonable on top of httpclient for the HTTP protocol (using http to the backend and not AJP13). It's not trivial, because e.g. you can't simply forward all HTTP headers (some of them indicate prtocol features, and if you forward them you need to configure your backend connection to be in compliance with what the headers indicate - example: connection keep alive handling). Nevertheless, if you understand the cases for which you actually need the forwarding good enough and they are limited in variation, it might be best to write the servlet from scratch using httpclient for the protocol part. -Tim Brantley Hobbs wrote: All, I have rather an odd situation that I'm hoping someone can give me some advice on. Short version: I need to know if there's a servlet, filter or valve that can be used to provide the same functionality as mod_jk does for Apache. In other words, I want to map certain requests to a JK connector running on a different servlet container. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mod_jk and tomcat-host downtime on solaris
Christian Schausberger wrote: Hi, I use apache-2.2.4 together with mod_jk-1.2.25 to load balance a bunch of tomcat-5.5.25 servers. All servers are running on Solaris 10 and are implemented as zones. The setup works really good during normal operation. But when a server dies for some reason, and with it the zones running tomcat, mod_jk does not stop sending requests to the unavailable tomcats until the operating system times out the tcp connect. This takes more than a few minutes. Reading the documentation suggests that socket_timeout is the appropiate setting to deal with this problem but does not work on Solaris. I could not find any usable settings in Solaris itself, so I am hoping this can be solved with mod_jk configuration. What is the correct way to have mod_jk recognize the tomcats as unavailable more quickly on Solaris? I would start adding a prepost_timeout. See: http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html and http://tomcat.apache.org/connectors-doc/reference/workers.html Caution: there's a bug in 1.2.25 that makes max_reply_timouts useless. Consider upgrading to 1.2.26 (even if this is not the solution to the problem you are asking for). Below you can find my current mod_jk configuration. Thanks Christian # # default worker list worker.list=escenic,jkstatus # worker template worker.template.port=9009 worker.template.type=ajp13 worker.template.lbfactor=1 worker.template.socket_keepalive=0 worker.template.connect_timeout=1 worker.template.reply_timeout=4 worker.template.connection_pool_timeout=30 # workers definition worker.escapp1.reference=worker.template worker.escapp1.host=apppubl1.online.local ... ... ... # load balancer definition worker.escenic.type=lb worker.escenic.max_reply_timeouts=3 worker.escenic.balance_workers=escapp1,escapp9,escapp3,escapp4,escapp5,escapp6,escapp7,escapp8 worker.escenic.sticky_session=1. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 64 bits
Is there any problem run Tomcat under 64 bits platform? And about JDK? Is it possible install JDK 32 bits for 64 bits platform? We run Tomcat 5.5 using CentOS 5 X86_64 and Java 6 (x64 -- previously amd64 also worked) without any issues. David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ordered loading of WAR files
On Wed, Jan 23, 2008 at 05:01:35PM +0300, Konstantin Kolinko wrote: On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... cached is not the right word. It is how deployment mechanism works in tomcat. The presence of app_name.xml in tc/conf/Catalina/localhost/ means that you application has been successfully deployed. Removal of the file means that you trigger the auto-deployment mechanism for your application. See http://tomcat.apache.org/tomcat-6.0-doc/config/context.html for details (look for $CATALINA_HOME/conf/[enginename]/[hostname]/ there) Well, I can understand his confusion, as it mirrors my own. Here is what it says: Context elements may be explicitly defined: * in the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml) extension will be used as the context path. Multi-level context paths may be defined using #, e.g. context#path.xml. The default web application may be defined by using a file called ROOT.xml. * if the previous file was not found for this application, in an individual file at /META-INF/context.xml inside the application files * inside a Host element in the main conf/server.xml In addition to explicitly specified Context elements, there are several techniques by which Context elements can be created automatically for you. Note: explicitly defined. This says to me that $CATALINA_HOME/conf/[enginename]/[hostname]/contextname.xml, if it exists, is configuration data provided by the person deploying the application. It doesn't say anything about Tomcat owning these files and being allowed to create and destroy them at will. The documentation apparently doesn't reflect the behavior of the code. Let me say that I find the documented behavior much more useful than what we actually get. -- Mark H. Wood, Lead System Programmer [EMAIL PROTECTED] Typically when a software vendor says that a product is intuitive he means the exact opposite. pgpILC1cF60dV.pgp Description: PGP signature
problem with tomcat-native 1.1.10 and tomcat 6.0.14
Hi, i have a working tomcat 6.0.14 and now i want to use tomcat-native beacause it use openssl and not java-ssl so .. 1) i installed tomcat-native 1.1.10 2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile, SSLPassword and SSLProtocol=TLSv1 to HTTPS Connector ... for HTTP Connector nothing has changed) 3) started tomcat again ... no error .. but not tcp sockets (for 8080 and 8443 ports) only this i have in catalina.out -- Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.10. Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. --- the tomcat is running but it doesn't listen on any port !!! --- bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start tomcat2736 58.8 3.3 675280 34696 pts/0Sl 19:50 0:02 \_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start -- some help would be musch appreciated !!! thanks Mihai signature.asc Description: This is a digitally signed message part
Problems with jars or else.
Hi all, I've build a Web Service that should reload me Axis due to an Ant project file, the service calls Main.main() (included on ant library) with the arguments -f C:\\anthome\\axis.xml reload, the target. When I call the service by the Client the st_out log file says to me that the file axis.xml is processed but then happens something, throws me an Exception and Tomcat service stops itself. java.lang.NoClassDefFoundError: org/apache/tools/ant/util/DateUtils at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:305) at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:158) at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2008) at org.apache.tools.ant.Main.runBuild(Main.java:718) at org.apache.tools.ant.Main.startAnt(Main.java:199) at org.apache.tools.ant.Main.start(Main.java:161) at org.apache.tools.ant.Main.main(Main.java:250) at man.ServerManager.reloadAxisMainAnt(ServerManager.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) 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.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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) that was the exception... I've put on CATALINA_HOME\shared\lib and on axis\WEB-INF\lib all ant jars file... What shoul I do? Thank you - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
load balancing issue
I am running apache httpd 2.0.46 on a redhat server as a load balancer for a tomcat 6 cluster, also on redhat servers. I point my browser to the home page on the load balancer server and it returns the index.html just fine. I log into the application, again, fine. I click on one of the menu items, which works, then I hit a button and I get a 404. For example, if the application was called myapp, the error says: HTTP Status 404 - /myapp/myapp/index.html _ type Status report message /myapp/myapp/index.html description The requested resource (/myapp/myapp/index.html) is not available. _ Apache Tomcat/6.0.14 Any ideas as to what might cause this error that deep? Thanks! Thom Hehl Sr. eJuror Architect * Office (859) 277-8800 x 144 * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ACS, Inc. Government Solutions 1733 Harrodsburg Road Lexington, KY 40504-3617 This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and notify sender via e-mail at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] or by telephone at 859-277-8800 ext. 144. Thank you.
Re: Problems with jars or else.
Don't put your jars at duplicate locations (shared/lib and webapp/WEB-INF/lib) it should be enought to put the in your WEB-INF/lib folder. [EMAIL PROTECTED] a écrit : Hi all, I've build a Web Service that should reload me Axis due to an Ant project file, the service calls Main.main() (included on ant library) with the arguments -f C:\\anthome\\axis.xml reload, the target. When I call the service by the Client the st_out log file says to me that the file axis.xml is processed but then happens something, throws me an Exception and Tomcat service stops itself. java.lang.NoClassDefFoundError: org/apache/tools/ant/util/DateUtils at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:305) at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:158) at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2008) at org.apache.tools.ant.Main.runBuild(Main.java:718) at org.apache.tools.ant.Main.startAnt(Main.java:199) at org.apache.tools.ant.Main.start(Main.java:161) at org.apache.tools.ant.Main.main(Main.java:250) at man.ServerManager.reloadAxisMainAnt(ServerManager.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) 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.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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) that was the exception... I've put on CATALINA_HOME\shared\lib and on axis\WEB-INF\lib all ant jars file... What shoul I do? Thank you - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 64 bits
Andrew Hole schrieb: Is there any problem run Tomcat under 64 bits platform? None that I'm aware of. Neither can I image what that problem might be. I'm running Tomcat on some x86_64 Linux machines and have yet to encounter an architecture-specific problem. And about JDK? Is it possible install JDK 32 bits for 64 bits platform? It's possible (at least on Linux with the proper 32bit compatibility libs installed). But why would one want to that (wrt to Tomcat)? Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet or filter (or valve) that acts like mod_jk
JMeter includes an AJP13 client. I would expect that to be overkill though. I also do not know of any fully featured Java based reverse proxy servlet. In your case, you might be able to write something reasonable on top of httpclient for the HTTP protocol (using http to the backend and not AJP13). It's not trivial, because e.g. you can't simply forward all HTTP headers (some of them indicate prtocol features, and if you forward them you need to configure your backend connection to be in compliance with what the headers indicate - example: connection keep alive handling). Nevertheless, if you understand the cases for which you actually need the forwarding good enough and they are limited in variation, it might be best to write the servlet from scratch using httpclient for the protocol part. Tim: Thanks for the reply. The proxy implementation you recommended didn't seem to work (it supplied redirects instead of actually proxying). The documentation was somewhat ill maintained, which kind of compounded the problem. Unfortunately the project seems to be abandoned, so I'm going to have to move on to something else. It's probably quicker to write something up as a servlet (as Rainer recommended) than dig through source to try to figure it out. I do appreciate the link though. Rainer: Thanks for the suggestion. I think that might be what I end up with*sigh*. B. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New Portal Using Apache Tomcat
I just wanted to say thanks to the Apache Tomcat teams for providing the means for a new Type of Portal!!! Over the holiday a new portal was released for eLearning that uses searches/mapping/video/video capture and a lot more. It uses the latest Apache and Tomcat servers on the back in to host web services and has been very stable and reliable so far. Thanks to the teams that made this possible!!! Screenshots are found at: http://www.myuniportal.com/screenshots.php Regards, Tony Anecito Founder, MyUniPortal Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about Tomcat/IIS and NTLM authentication
eborisow wrote: Gabe Wong wrote: I guess I misunderstood your objective. You are not interested in manipulating the user name. You just want to check if the stripped user name is in a specific role? Gabe, Yeah, I guess that sums it up better than my original post. I thought that maybe if I could just manipulate the principal name that I could just pass that along to hasRoles and everything would work similarly. If you have any other ideas on how I could do that, I would be grateful. Thanks, Eric Since the hasRole is being called, can you not do a super.hasRole against the stripped user name of the Principal. If so won't that suffice? -- Regards Gabe Wong NGASI AppServer Manager JAVA AUTOMATION and SaaS Enablement a href=http://www.ngasi.comhttp://www.ngasi.com/a NEW! 8.0 - Centrally manage multiple physical servers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Windows Service Installer vs Core zip install xml
I am having issues with XSLT files depending on which download option of Tomcat 6.0.14 that I choose. If I download the ZIP file under Core, my XSLT files transform with no problems. However if I download and use the Windows Service Installer instead, I am getting the following errors in my Tomcat log: ERROR: 'unknown protocol: c' FATAL ERROR: 'Could not compile stylesheet' javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet [http-8080-1] Has anyone else had this problem? -- View this message in context: http://www.nabble.com/Tomcat-Windows-Service-Installer-vs-Core-zip-install-xml-tp15048926p15048926.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 64 bits
From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 64 bits And about JDK? Is it possible install JDK 32 bits for 64 bits platform? But why would one want to that (wrt to Tomcat)? Perhaps if part of your webapp includes native libraries that aren't readily available in 64-bit forms. Can't think of any other real reason at the moment. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help - Duplicated session ID problem
Yang Cao wrote: Please let me know if you have seen any similar problems before, and if so, what's the root cause and fix? Could be: - Most likely is application error - are you storing request objects anywhere? - Could be a Tomcat bug. Upgrade to 5.5.25. There is at least one issue in the change log that might cause this. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL error when invoking web service
Thanks for the response. The client can be any one who wants to post an XML message to this URL. So you could create an xml message and post the request using https. Not sure why the client would need to 'add' this certificate. We have written code to connect to many such web services and we never need to add certificates from the server we are connecting to? For example, if we need to use Fedex's API service, we need to send the request using https, but we have never added any certificates from them on our server. Bill Barker wrote: Rizwan Merchant [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, We have a web based application running on Tomcat 6. The server.xml file is configured so that the application can handle incoming https requests on port 443 (default). When a user hits the URL http://www.mydomain.com, it automatically redirects to https://www.mydomain.com (due to security constraint set up in web.xml). We also have a web service running which is invoked by posting the request message to http://www.mydomain.com/rpc2 I am trying to enforce ssl on this service as well, but when a message is posted to https://www.mydomain.com/rpc2 (secure using https protocol), the client is seeing the following error: (Posting the message to http://www.mydomain.com/rpc2 works fine) *Error 60:SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed* You didn't say what the client is so I can't offer much on how to fix it. But the error is saying that the client couldn't find the CA certificate that signed your Tomcat server certificate in it's list of trusted CAs. As a result, the client correctly desides not to trust your Tomcat server. You need to add the CA certificate to the client's trusted certificate list, as explained in the documentation for the client (but probably cacerts.pem). Basically, the https is working fine on the website, but not for the web service (which, from what I understand, is being handled by a separate servlet, rpc2). Any ideas please? Thanks, -Rizwan Merchant. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: load balancing issue
The obvious question is, does /myapp/myapp/index.html actually exist on the server? If the button sends you to the wrong URL then of course you get a 404. So the first place to look is the web page with that button on it. There are other things that could cause problems like that, but without details about your setup I don't want to make wild guesses. -- Len On Jan 23, 2008 1:13 PM, Hehl, Thomas [EMAIL PROTECTED] wrote: I am running apache httpd 2.0.46 on a redhat server as a load balancer for a tomcat 6 cluster, also on redhat servers. I point my browser to the home page on the load balancer server and it returns the index.html just fine. I log into the application, again, fine. I click on one of the menu items, which works, then I hit a button and I get a 404. For example, if the application was called myapp, the error says: HTTP Status 404 - /myapp/myapp/index.html _ type Status report message /myapp/myapp/index.html description The requested resource (/myapp/myapp/index.html) is not available. _ Apache Tomcat/6.0.14 Any ideas as to what might cause this error that deep? Thanks! Thom Hehl Sr. eJuror Architect * Office (859) 277-8800 x 144 * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ACS, Inc. Government Solutions 1733 Harrodsburg Road Lexington, KY 40504-3617 This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and notify sender via e-mail at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] or by telephone at 859-277-8800 ext. 144. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download Dialog inclusing file extention
Kazufumi Arai wrote: Hello, someone gives me information about definishion parameter for download dialog. I have phenomenon that windows download dialog with no file extention when using tomcat 1.4.x. I guess where I can set file extention like .mol in any file in conf folder included in tomcat 1.4.x This isn't a Tomcat setting, it is caused by how you have coded your application. You probably just need to set the headers properly. Post some sample code and someone on the list should help out. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: load balancing issue
The button will, in the example with questionnaire, point to ../do/workflowMgr?flowName=questionnaire. The good URL would be server/myapp/do/workflowMgr?flowName=questionnaire. That's why I don't understand why it's running to /myapp/myapp/index.html. Neither doubling up the app name or the index.html make any sense at all to me. -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 23, 2008 3:07 PM To: Tomcat Users List Subject: Re: load balancing issue The obvious question is, does /myapp/myapp/index.html actually exist on the server? If the button sends you to the wrong URL then of course you get a 404. So the first place to look is the web page with that button on it. There are other things that could cause problems like that, but without details about your setup I don't want to make wild guesses. -- Len On Jan 23, 2008 1:13 PM, Hehl, Thomas [EMAIL PROTECTED] wrote: I am running apache httpd 2.0.46 on a redhat server as a load balancer for a tomcat 6 cluster, also on redhat servers. I point my browser to the home page on the load balancer server and it returns the index.html just fine. I log into the application, again, fine. I click on one of the menu items, which works, then I hit a button and I get a 404. For example, if the application was called myapp, the error says: HTTP Status 404 - /myapp/myapp/index.html _ type Status report message /myapp/myapp/index.html description The requested resource (/myapp/myapp/index.html) is not available. _ Apache Tomcat/6.0.14 Any ideas as to what might cause this error that deep? Thanks! Thom Hehl Sr. eJuror Architect * Office (859) 277-8800 x 144 * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ACS, Inc. Government Solutions 1733 Harrodsburg Road Lexington, KY 40504-3617 This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and notify sender via e-mail at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] or by telephone at 859-277-8800 ext. 144. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | if you look at the stack trace, there is no error in the clustering | code. something is modifying your session attribute while the cluster is | trying to send it I'm suggesting that this should not be considered an error: there's nothing in the API or servlet spec that says you can't modify an object as it sits in the session. no, its just common sense, given that the session should represent a client state, and by the time the cluster tries to serialize it, the request is over. developers misuse sessions all the time, I would add this into that category. While I would not consider this a bug in Tomcat, the fact remains that there is no reasonable way to protect against this (save working on a separate copy of the object and then replacing the one in the session). one can use a technology like terracotta that handles replication completely separate from the request flow, and at the field level. that technology doesn't suffer from the problem described above Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: load balancing issue
So it seems that the application is sending a redirect to /myapp/myapp/index.html. You'll have to figure out why that is. (Judging from the URLs you mention it looks like you're using Struts, but I'm not an expert on that.) If you want to see whether the server is sending a redirect response, use a browser plug-in such as Live HTTP Headers or ieHTTPHeaders to look at the browser requests and server responses. -- Len On Jan 23, 2008 3:30 PM, Hehl, Thomas [EMAIL PROTECTED] wrote: The button will, in the example with questionnaire, point to ../do/workflowMgr?flowName=questionnaire. The good URL would be server/myapp/do/workflowMgr?flowName=questionnaire. That's why I don't understand why it's running to /myapp/myapp/index.html. Neither doubling up the app name or the index.html make any sense at all to me. -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 23, 2008 3:07 PM To: Tomcat Users List Subject: Re: load balancing issue The obvious question is, does /myapp/myapp/index.html actually exist on the server? If the button sends you to the wrong URL then of course you get a 404. So the first place to look is the web page with that button on it. There are other things that could cause problems like that, but without details about your setup I don't want to make wild guesses. -- Len On Jan 23, 2008 1:13 PM, Hehl, Thomas [EMAIL PROTECTED] wrote: I am running apache httpd 2.0.46 on a redhat server as a load balancer for a tomcat 6 cluster, also on redhat servers. I point my browser to the home page on the load balancer server and it returns the index.html just fine. I log into the application, again, fine. I click on one of the menu items, which works, then I hit a button and I get a 404. For example, if the application was called myapp, the error says: HTTP Status 404 - /myapp/myapp/index.html _ type Status report message /myapp/myapp/index.html description The requested resource (/myapp/myapp/index.html) is not available. _ Apache Tomcat/6.0.14 Any ideas as to what might cause this error that deep? Thanks! Thom Hehl Sr. eJuror Architect * Office (859) 277-8800 x 144 * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ACS, Inc. Government Solutions 1733 Harrodsburg Road Lexington, KY 40504-3617 This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and notify sender via e-mail at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] or by telephone at 859-277-8800 ext. 144. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | no, its just common sense, given that the session should represent a | client state, | and by the time the cluster tries to serialize it, the request is over. There's no guarantee that the request is complete before session changes are replicated, is there? In that case, you can never manipulate any collection you put into the session. If you want to change something, you have to first remove it from the session, then change it, then put it back. In fact, you still are not covered, because removing the object from the session merely removes the reference. If the session replicator is running and copying, say, a Map to another machine in the cluster, you can't even remove it from the session in order to modify it: you /must/ make a copy of it and work on the copy. That's ridiculous IMHO. | developers misuse sessions all the time, I would add this into that | category. Of course they do, but modifying a collection that's in the session while the replicator just happens to be trying to serialize the session is simply unreasonable to prevent. | one can use a technology like terracotta that handles replication | completely separate from the request flow, and at the field level. | that technology doesn't suffer from the problem described above I'm not sure it would... iterating over a collection (which I assume is what the session replicator is doing) while another thread (a request) is making legitimate changes to it would lead to a CME no matter what replication technology is being used. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeXsiMACgkQ9CaO5/Lv0PBfmgCcCFnKujLG269RQ+y/vqyPTBMB sVQAn1z1mIrDf92g0UsFKeKgH/etyY3F =MCCh -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Windows Service Installer vs Core zip install xml
hoffmandirt wrote: I am having issues with XSLT files depending on which download option of Tomcat 6.0.14 that I choose. If I download the ZIP file under Core, my XSLT files transform with no problems. However if I download and use the Windows Service Installer instead, I am getting the following errors in my Tomcat log: ERROR: 'unknown protocol: c' FATAL ERROR: 'Could not compile stylesheet' javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet [http-8080-1] Has anyone else had this problem? Did you try Google? I found just over 0.75 million hits so it looks like the answer to your question is yes. The issue is usually caused when you use C:\\MyFile.txt for a URL rather than file:///C:/MyFile.txt somewhere in your code. Are both installs using exactly the same JVM? There may be slight differences in how tolerant different JVMs are of this issue. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about Tomcat/IIS and NTLM authentication
Gabe Wong wrote: Since the hasRole is being called, can you not do a super.hasRole against the stripped user name of the Principal. If so won't that suffice? Gabe, Yeah, I was thinking that. The hasRole though takes two parameters... a Principal and the role name. I could not find any easy way to manipulate the existing object name. I also looked into creating a GenericPrincipal, but that requires a password parameter. The one thing I haven't tried is 'fudging' it by passing a user name and password that I know exists and see if that works. Although, that won't help me in the future when I don't know the password. Thanks, Eric -- View this message in context: http://www.nabble.com/Question-about-Tomcat-IIS-and-NTLM-authentication-tp14997483p15054271.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy given that the session should represent a client state, and by the time the cluster tries to serialize it, the request is over. That ignores the situation where multiple requests from the same client are being processed concurrently. What are the conditions that provoke replication (and therefore serialization)? What mechanism is provided for request processors to synchronize with the replicator? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Windows Service Installer vs Core zip install xml
Interesting, however I am pointing to the same JDK 1.5 for both. I wanted to switch to the service instead of the bat startup and shutdown scripts. I will give that a try and check it out. I was searching google for could not compile stylesheet. markt-2 wrote: hoffmandirt wrote: I am having issues with XSLT files depending on which download option of Tomcat 6.0.14 that I choose. If I download the ZIP file under Core, my XSLT files transform with no problems. However if I download and use the Windows Service Installer instead, I am getting the following errors in my Tomcat log: ERROR: 'unknown protocol: c' FATAL ERROR: 'Could not compile stylesheet' javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet [http-8080-1] Has anyone else had this problem? Did you try Google? I found just over 0.75 million hits so it looks like the answer to your question is yes. The issue is usually caused when you use C:\\MyFile.txt for a URL rather than file:///C:/MyFile.txt somewhere in your code. Are both installs using exactly the same JVM? There may be slight differences in how tolerant different JVMs are of this issue. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-Windows-Service-Installer-vs-Core-zip-install-xml-tp15048926p15054962.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote appBase/docBase for war file
Hi All, Is it possible to source a remote WAR file (hosted as a static resource in the htdocs folder of an Apache Web Server) into an Apache Tomcat 6.x server instance? The idea is for the Tomcat to source in the latest WAR file during boot time. Host name=mydomain.com unpackWARs=false autoDeploy=true appBase=some http link Context path= docBase=jar:http://mydomain2/someapp.war!/; debug=1 reloadable=true crossContext=true ... ... I'd appreciate any pointer. If this feature is not available, what module should I start poking at to get something along these lines? Thanks, Pushkal - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspApplicationContext
Any feedback would be very appreciated. I am getting an error with respect to the servlet listener, please see the following: Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 Apache Tomcat 6.0.14 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Tomcat console: WARNING: Couldn't initialize Jasper java.lang.NoClassDefFoundError: javax/servlet/jsp/JspApplicationContext at org.apache.jasper.compiler.JspRuntimeContext.clinit(JspRuntimeContext.java:73) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.catalina.core.JasperListener.lifecycleEvent(JasperListener.java:63) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:767) at org.apache.catalina.startup.Catalina.load(Catalina.java:518) at org.apache.catalina.startup.Catalina.load(Catalina.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL error when invoking web service
Rizwan Merchant [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the response. The client can be any one who wants to post an XML message to this URL. So you could create an xml message and post the request using https. Not sure why the client would need to 'add' this certificate. We have written code to connect to many such web services and we never need to add certificates from the server we are connecting to? For example, if we need to use Fedex's API service, we need to send the request using https, but we have never added any certificates from them on our server. Without looking, Fedex almost certainly uses one of the big commercial CAs (e.g. Verisign, Thwate). Their CA certs ship with almost all SSL enabled clients, and so the client will be able to verify the certificate chain up to a trusted CA. This is pretty much the only way to go if anyone can post to the URL. If you're using your own CA (or, worse, a self-signed cert), then the server's certificate won't be trusted without adding the CA cert (and in the case of self-signed, may not be trusted in any case). SSL certificates work sort of like the mafia: If someone I trust will sign for you, then I'll trust you ;). Bill Barker wrote: Rizwan Merchant [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, We have a web based application running on Tomcat 6. The server.xml file is configured so that the application can handle incoming https requests on port 443 (default). When a user hits the URL http://www.mydomain.com, it automatically redirects to https://www.mydomain.com (due to security constraint set up in web.xml). We also have a web service running which is invoked by posting the request message to http://www.mydomain.com/rpc2 I am trying to enforce ssl on this service as well, but when a message is posted to https://www.mydomain.com/rpc2 (secure using https protocol), the client is seeing the following error: (Posting the message to http://www.mydomain.com/rpc2 works fine) *Error 60:SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed* You didn't say what the client is so I can't offer much on how to fix it. But the error is saying that the client couldn't find the CA certificate that signed your Tomcat server certificate in it's list of trusted CAs. As a result, the client correctly desides not to trust your Tomcat server. You need to add the CA certificate to the client's trusted certificate list, as explained in the documentation for the client (but probably cacerts.pem). Basically, the https is working fine on the website, but not for the web service (which, from what I understand, is being handled by a separate servlet, rpc2). Any ideas please? Thanks, -Rizwan Merchant. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.NoClassDefFoundError: javax/servlet/jsp/JspApplicationContext
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: java.lang.NoClassDefFoundError: javax/servlet/jsp/JspApplicationContext Did you put jsp-api.jar in your webapp's WEB-INF/lib directory? You shouldn't; none of the jars or classes therein that Tomcat supplies in its lib directory may be present in a webapp's libraries. Also, if you've set the CLASSPATH environment variable, get rid of that; CLASSPATH must not be used in conjunction with Tomcat. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about Tomcat/IIS and NTLM authentication
eborisow wrote: Gabe Wong wrote: Since the hasRole is being called, can you not do a super.hasRole against the stripped user name of the Principal. If so won't that suffice? Gabe, Yeah, I was thinking that. The hasRole though takes two parameters... a Principal and the role name. I could not find any easy way to manipulate the existing object name. I also looked into creating a GenericPrincipal, but that requires a password parameter. The one thing I haven't tried is 'fudging' it by passing a user name and password that I know exists and see if that works. Although, that won't help me in the future when I don't know the password. Short of hacking Tomcat, another possibility, is if you can access the LDAP data - perhaps a thread that populates a Database with the names with the group. Then check the data as the hasRole method is called. -- Regards Gabe Wong NGASI AppServer Manager JAVA AUTOMATION and SaaS Enablement a href=http://www.ngasi.comhttp://www.ngasi.com/a NEW! 8.0 - Centrally manage multiple physical servers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 server.xml
Hi, I have my web site files in webapps/mywebsite and lets assume I can't use webapps/ROOT. I wanted my URL to be localhost:8080 though versus localhost:8080/mywebsite, so I added the tag Context path= docBase=mywebsite / to the conf/server.xml. It works, I can go to localhost:8080 and get to my site, but localhost:8080/mywebsite also still works and I want to disable this. I thought that turning autoDeploy=false in the Host tag would do this but it didn't (see below). Ex. Host name=localhost appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Thats my first problem. My second is that I am now getting an error after using my web application for a bit. I get a PermGen space out of memory error and soon after the web site dies. I'm using Tomcat 5.5.20 and Java JDK/JRE 1.5.0_07. This is a professional 3rd party web app so I don't have access to the source code and all I can really tell you is that it uses Hibernate and I believe the Spring Framework. If I revert my server.xml config file back to normal all is well again. Has anyone ran into this problem or know of a fix or what I'm doing wrong here? Thank you, John Le
RE: Tomcat 5.5 server.xml
From: John Le [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 server.xml I have my web site files in webapps/mywebsite and lets assume I can't use webapps/ROOT. Why would we assume that? The straightforward solution is to change the name of your webapp's directory to ROOT and you're done. Alternatively, don't deploy your webapp under the Host appBase directory - keep it outside of Tomcat's directory tree, and create a conf/Catalina/[host]/ROOT.xml file containing a Context element with an absolute docBase attribute pointing to the webapp location. Do not use a path attribute in this scenario. I get a PermGen space out of memory error and soon after the web site dies. You most likely have a memory leak in the application, regardless of whether or not it's a professional webapp. Hibernate is also notorious for chewing up the heap, although it doesn't usually fill up PermGen. Assuming your PermGen is adequately sized, you need to run a profiler and find out who's creating all the Class objects and where they're doing it. Deploying the webapp twice (which is what you're doing by refusing to name it properly) does increase the load on PermGen. I'm using Tomcat 5.5.20 and Java JDK/JRE 1.5.0_07. Both of those could be upgraded a bit, just to rule out some esoteric problem that's already been fixed. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mod_jk and tomcat-host downtime on solaris
Rainer Jung wrote: I would start adding a prepost_timeout. See: http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html and http://tomcat.apache.org/connectors-doc/reference/workers.html Maybe I misunderstood this directive. connect_timeout only applies after the TCP connection has been established. I thought the order in which those timeouts apply is: 1.) socket_timeout 2.) connect_timeout 3.) prepost_timeout Does prepost_timeout actually work even though the underlying TCP connection can not be established? Caution: there's a bug in 1.2.25 that makes max_reply_timouts useless. Consider upgrading to 1.2.26 (even if this is not the solution to the problem you are asking for). I will upgrade as soon as possible. Thanks, Christian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with tomcat-native 1.1.10 and tomcat 6.0.14
nobody has any advices about this issue ? regards, Mihai On Wed, 2008-01-23 at 19:53 +0200, Mihai COSTACHE wrote: Hi, i have a working tomcat 6.0.14 and now i want to use tomcat-native beacause it use openssl and not java-ssl so .. 1) i installed tomcat-native 1.1.10 2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile, SSLPassword and SSLProtocol=TLSv1 to HTTPS Connector ... for HTTP Connector nothing has changed) 3) started tomcat again ... no error .. but not tcp sockets (for 8080 and 8443 ports) only this i have in catalina.out -- Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.10. Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. --- the tomcat is running but it doesn't listen on any port !!! --- bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start tomcat2736 58.8 3.3 675280 34696 pts/0Sl 19:50 0:02 \_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start -- some help would be musch appreciated !!! thanks Mihai signature.asc Description: This is a digitally signed message part