deploy tomcat quietly and automatically
Dears I wanna deploy tomcat on many windows servers. A binary source has been chosen (apache-tomcat-6.0.29.exe). Is there a way to deploy it quietly and automatically like JDK(such as : jdk-6u24-windows-x64.exe /quiet) Thanks
Tomcat clustering session attribute is changed without request
Hi all, I have configured tomcat 7 cluster by using [1] with DeltaManager and it works fine. However I have the following 2 questions: 1) My application stores session map in memory(admin can force logout of any user and change some session attribute). Will this session attribute be replicated if it is changed without tomcat http request (changed by backend task for example)? 2) It's seems that expireSessionsOnShutdown=false in DeltaManager can solve the problem with http://old.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-td16178701.html? [1] http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html Best Regards, Paul Hodchenkov Senior Java developer, Oxagile Skype: paul.hodchenkov Email: mailto:paul.hodchen...@oxagile.com
Re: Tomcat clustering session attribute is changed without request
Op maandag, 24 oktober 2011 12:55 schreef Hodchenkov, Paul paul.hodchen...@oxagile.com: Hi all, I have configured tomcat 7 cluster by using [1] with DeltaManager and it works fine. However I have the following 2 questions: 1) My application stores session map in memory(admin can force logout of any user and change some session attribute). Will this session attribute be replicated if it is changed without tomcat http request (changed by backend task for example)? 2) It's seems that expireSessionsOnShutdown=false in DeltaManager can solve the problem with http://old.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-td16178701.html? [1] http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html Best Regards, Paul Hodchenkov Senior Java developer, Oxagile Skype: paul.hodchenkov Email: mailto:paul.hodchen...@oxagile.com Hi, 1. Changes in the session are only replicated at the end of a request. BTW: My experience with holding references to Sessions in your own map is that it is harder than you think. It is more easy to create a map with blocked userids and block those users with a filter. 2. I don't understand your question. Ronald.
RE: Tomcat clustering session attribute is changed without request
Hi, -- Changes in the session are only replicated at the end of a request. 1)So is there any way to 'force' replication if HttpSession was changed without http request? --2. I don't understand your question. 2) AFAIK tomcat fires onSessionDestroyed event when some node in cluster is stopped gracefully. However, in my environment I don't observe such behavior. Does expireSessionsOnShutdown parameter in Delta Manager, has something with it? -Original Message- From: Ronald Klop (Mailing List) [mailto:ronald-mailingl...@base.nl] Sent: Monday, October 24, 2011 2:20 PM To: Tomcat Users List Subject: Re: Tomcat clustering session attribute is changed without request Op maandag, 24 oktober 2011 12:55 schreef Hodchenkov, Paul paul.hodchen...@oxagile.com: Hi all, I have configured tomcat 7 cluster by using [1] with DeltaManager and it works fine. However I have the following 2 questions: 1) My application stores session map in memory(admin can force logout of any user and change some session attribute). Will this session attribute be replicated if it is changed without tomcat http request (changed by backend task for example)? 2) It's seems that expireSessionsOnShutdown=false in DeltaManager can solve the problem with http://old.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-td16178701.html? [1] http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html Best Regards, Paul Hodchenkov Senior Java developer, Oxagile Skype: paul.hodchenkov Email: mailto:paul.hodchen...@oxagile.com Hi, 1. Changes in the session are only replicated at the end of a request. BTW: My experience with holding references to Sessions in your own map is that it is harder than you think. It is more easy to create a map with blocked userids and block those users with a filter. 2. I don't understand your question. Ronald. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error while first Run of Tomcat Server 7.0.22
On Sat, 2011-10-22 at 07:22 -0700, Amit Kumar wrote: Anyway if you could plz tell me how you concluded I hv installed 32-bit JVM that will be very helpful. When you look at the output from java -version, it does not list your JVM as being 64-bit. C:\Oracle\Middleware\jdk160_18\binjava -version java version 1.6.0_18 Java(TM) SE Runtime Environment (build 1.6.0_18-b07) Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) If you had a 64-bit JVM, it would look something like the following. Note the third line contains 64-bit. java version 1.6.0_26 Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) Dan
Re: Tomcat clustering session attribute is changed without request
On 24/10/2011 11:55, Hodchenkov, Paul wrote: Hi all, I have configured tomcat 7 cluster by using [1] with DeltaManager and it works fine. However I have the following 2 questions: 1) My application stores session map in memory(admin can force logout of any user and change some session attribute). Will this session attribute be replicated if it is changed without tomcat http request (changed by backend task for example)? What does 'stores session map in memory' actually mean? Instead of copying session objects around the place, why not just use the JMX API and the operations on the Manager MBean? Catalina:type=Manager,context=/myapp,host=localhost p 2) It's seems that expireSessionsOnShutdown=false in DeltaManager can solve the problem with http://old.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-td16178701.html? [1] http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html Best Regards, Paul Hodchenkov Senior Java developer, Oxagile Skype: paul.hodchenkov Email: mailto:paul.hodchen...@oxagile.com signature.asc Description: OpenPGP digital signature
Re: deploy tomcat quietly and automatically
On 24/10/2011 10:46, Josh Ho wrote: Dears I wanna deploy tomcat on many windows servers. A binary source has been chosen (apache-tomcat-6.0.29.exe). Is there a way to deploy it quietly and automatically like JDK(such as : jdk-6u24-windows-x64.exe /quiet) Why not pick the zip version just unzip it (quietly)? p signature.asc Description: OpenPGP digital signature
RE: Tomcat clustering session attribute is changed without request
Hi, Thanks for the reply! - What does 'stores session map in memory' actually mean? It's ConcurrentMapString, HttpSession map which is filled by HttpListener. I can access session attributes of any user using this approach. Does changes to attributes in HttpSession cause a replication in this case? What is the benefit of using JMX connection to access the session instead of HttpListener in this case? -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Monday, October 24, 2011 3:59 PM To: Tomcat Users List Subject: Re: Tomcat clustering session attribute is changed without request On 24/10/2011 11:55, Hodchenkov, Paul wrote: Hi all, I have configured tomcat 7 cluster by using [1] with DeltaManager and it works fine. However I have the following 2 questions: 1) My application stores session map in memory(admin can force logout of any user and change some session attribute). Will this session attribute be replicated if it is changed without tomcat http request (changed by backend task for example)? What does 'stores session map in memory' actually mean? Instead of copying session objects around the place, why not just use the JMX API and the operations on the Manager MBean? Catalina:type=Manager,context=/myapp,host=localhost p 2) It's seems that expireSessionsOnShutdown=false in DeltaManager can solve the problem with http://old.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-td16178701.html? [1] http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html Best Regards, Paul Hodchenkov Senior Java developer, Oxagile Skype: paul.hodchenkov Email: mailto:paul.hodchen...@oxagile.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat clustering session attribute is changed without request
On 24/10/2011 14:05, Hodchenkov, Paul wrote: Hi, Thanks for the reply! - What does 'stores session map in memory' actually mean? It's ConcurrentMapString, HttpSession map which is filled by HttpListener. I can access session attributes of any user using this approach. Does changes to attributes in HttpSession cause a replication in this case? Don't know, probably. What is the benefit of using JMX connection to access the session instead of HttpListener in this case? It means you don't have to jump through hoops to access something that is already accessible elsewhere. p -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Monday, October 24, 2011 3:59 PM To: Tomcat Users List Subject: Re: Tomcat clustering session attribute is changed without request On 24/10/2011 11:55, Hodchenkov, Paul wrote: Hi all, I have configured tomcat 7 cluster by using [1] with DeltaManager and it works fine. However I have the following 2 questions: 1) My application stores session map in memory(admin can force logout of any user and change some session attribute). Will this session attribute be replicated if it is changed without tomcat http request (changed by backend task for example)? What does 'stores session map in memory' actually mean? Instead of copying session objects around the place, why not just use the JMX API and the operations on the Manager MBean? Catalina:type=Manager,context=/myapp,host=localhost p 2) It's seems that expireSessionsOnShutdown=false in DeltaManager can solve the problem with http://old.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-td16178701.html? [1] http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html Best Regards, Paul Hodchenkov Senior Java developer, Oxagile Skype: paul.hodchenkov Email: mailto:paul.hodchen...@oxagile.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: OpenPGP digital signature
Re: deploy tomcat quietly and automatically
2011/10/24 Josh Ho josh...@ecareme.com: Dears I wanna deploy tomcat on many windows servers. A binary source has been chosen (apache-tomcat-6.0.29.exe). Which is outdated and has several known security issues. Is there a way to deploy it quietly and automatically like JDK(such as : jdk-6u24-windows-x64.exe /quiet) The same about 6u24. Anyway, silent install is done with an /S. You may get the list of command line options running it with /? (since 6.0.30), but there are not many of them. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JMX access through firewall
Hey Christopher, All machines are running IPv4, IPv6 is disabled. And it is possible use with or without space between -L and its forwarding specifiers. Today is my third day fighting against this... totally frustrated! Is there a log configuration that I can turn on to check if the JMX connections coming from VisualVM are being served? On Fri, Oct 21, 2011 at 7:08 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thiago, On 10/21/2011 1:37 PM, Thiago Moreira (timba) wrote: On my host machine I fired the tunneling with: ssh -v -L10.226.2.212/8849/localhost/8849 -L10.226.2.212/8850/localhost/8850 192.168.56.101 Is it possible that ssh is confused by your use of IPv6-style forwarding syntax while using IPv4 addresses? Also, -L expects a space between it and the forwarding specifier. How about this: ssh -L 10.226.2.212:8850:localhost:8850 \ -L 10.226.2.212:8850:localhost:8850 - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6h31QACgkQ9CaO5/Lv0PDNjQCeMLN901blBs4zDVUeZoCGQLVh wlQAoJBV9nTl2fqRy5Bgv0YK57/Pa7m6 =bAqT -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: deploy tomcat quietly and automatically
Because of compatible issue, I must install 6.0.29. I've tried /S /D option but only /S worked on 6.0.29. 2011/10/24 Konstantin Kolinko knst.koli...@gmail.com 2011/10/24 Josh Ho josh...@ecareme.com: Dears I wanna deploy tomcat on many windows servers. A binary source has been chosen (apache-tomcat-6.0.29.exe). Which is outdated and has several known security issues. Is there a way to deploy it quietly and automatically like JDK(such as : jdk-6u24-windows-x64.exe /quiet) The same about 6u24. Anyway, silent install is done with an /S. You may get the list of command line options running it with /? (since 6.0.30), but there are not many of them. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: deploy tomcat quietly and automatically
I am new to Tomcat. I am afraid there are differences between zip version and setup version? I know setup version could be installed as a service. Maybe someone could tell me other differences, then I could use zip version instead. 2011/10/24 Pid p...@pidster.com On 24/10/2011 10:46, Josh Ho wrote: Dears I wanna deploy tomcat on many windows servers. A binary source has been chosen (apache-tomcat-6.0.29.exe). Is there a way to deploy it quietly and automatically like JDK(such as : jdk-6u24-windows-x64.exe /quiet) Why not pick the zip version just unzip it (quietly)? p
RE: deploy tomcat quietly and automatically
From: Josh Ho [mailto:josh...@ecareme.com] Subject: Re: deploy tomcat quietly and automatically Because of compatible issue, I must install 6.0.29. What compatibility issue would that be? - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
servlet session method with https
The specification ( servlet 2.4 ) says that the servlet session may be implemented via session cookie or, in the case of https, via the ssl mechanism. My server is only accessible via https. Does tomcat use the ssl mechanism in this case? I do see the JSESSINID cookie, so as far as I can tell, it uses the cookie method.
Re: servlet session method with https
On 24/10/2011 16:30, chad.da...@emc.com wrote: The specification ( servlet 2.4 ) says that the servlet session may be implemented via session cookie or, in the case of https, via the ssl mechanism. My server is only accessible via https. Does tomcat use the ssl mechanism in this case? No. SSL based session tracking is only available from Tomcat 7 onwards. I do see the JSESSINID cookie, so as far as I can tell, it uses the cookie method. I assume that cookie name is a typo and you meant JSESSIONID. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: deploy tomcat quietly and automatically
Only that version passed operation test. Other version is not allowed to be deployed. 2011/10/24 Caldarale, Charles R chuck.caldar...@unisys.com From: Josh Ho [mailto:josh...@ecareme.com] Subject: Re: deploy tomcat quietly and automatically Because of compatible issue, I must install 6.0.29. What compatibility issue would that be? - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: .nfsxxx file created when undeploying applications
It's for a client too and I don't have acces to the server or applications so I first think it comes from Tomcat and now I'm trying to understand what's happening and what is possible to do. Thanks 2011/10/23 Hassan Schroeder hassan.schroe...@gmail.com On Sun, Oct 23, 2011 at 1:56 AM, Nicolas Dordet dorde...@gmail.com wrote: I have a Tomcat 5.5.17 run on Solaris. TOMCAT_HOME is on a mounted NFS partition. When doing undeploy of an application, some .nfsxx files are created et dot no allow suppression of repertories. It seems that one process of tomcat still have files opened when trying to remove files and that's why .nfsxxx files are created. So in my point of view it is a Tomcat bug, all processes should close files before removing it on NFS. Wow, I had a client with the exact same problem and -- oh, wait, it wasn't Tomcat, it was OC4J :-) And IIRC those files are artifacts that appear for reasons having nothing to do with undeployment; it's only that undeployment fails and makes those artifacts' presence obvious. The fix is *not running an app server off an NFS partition*. Really. Doctor, it hurts when I hit myself in the head. Don't do that. YMMV, -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JMX access through firewall
Another step forward... I got jconsole print some debugging information. Using *jconsole -J-Djava.util.logging.config.file=logging.properties* And found out that it is necessary add the catalina-jmx-remote.jar to jconsole classpath (*jconsole -J-Djava.util.logging.config.file=logging.properties -J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar:$JAVA_HOME/lib/tools.jar:catalina-jmx-remote.jar *) now I'm getting this connection refused error. I can ping without problems the domain *tmoreira2020-VirtualBox.* Oct 24, 2011 1:46:33 PM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: jmxServiceURL=service:jmx:rmi:// 10.226.2.187:8850/jndi/rmi://10.226.2.187:8849/jmxrmi] connecting... Oct 24, 2011 1:46:33 PM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: jmxServiceURL=service:jmx:rmi:// 10.226.2.187:8850/jndi/rmi://10.226.2.187:8849/jmxrmi] finding stub... Oct 24, 2011 1:46:33 PM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: jmxServiceURL=service:jmx:rmi:// 10.226.2.187:8850/jndi/rmi://10.226.2.187:8849/jmxrmi] connecting stub... Oct 24, 2011 1:46:33 PM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: jmxServiceURL=service:jmx:rmi:// 10.226.2.187:8850/jndi/rmi://10.226.2.187:8849/jmxrmi] getting connection... Oct 24, 2011 1:46:33 PM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: jmxServiceURL=service:jmx:rmi:// 10.226.2.187:8850/jndi/rmi://10.226.2.187:8849/jmxrmi] failed to connect: java.rmi.ConnectException: Connection refused to host: tmoreira2020-VirtualBox; nested exception is: java.net.ConnectException: Connection refused * *Not sure why this exception is happening. On Mon, Oct 24, 2011 at 11:34 AM, Thiago Moreira (timba) tmoreira2...@gmail.com wrote: Hey Christopher, All machines are running IPv4, IPv6 is disabled. And it is possible use with or without space between -L and its forwarding specifiers. Today is my third day fighting against this... totally frustrated! Is there a log configuration that I can turn on to check if the JMX connections coming from VisualVM are being served? On Fri, Oct 21, 2011 at 7:08 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thiago, On 10/21/2011 1:37 PM, Thiago Moreira (timba) wrote: On my host machine I fired the tunneling with: ssh -v -L10.226.2.212/8849/localhost/8849 -L10.226.2.212/8850/localhost/8850 192.168.56.101 Is it possible that ssh is confused by your use of IPv6-style forwarding syntax while using IPv4 addresses? Also, -L expects a space between it and the forwarding specifier. How about this: ssh -L 10.226.2.212:8850:localhost:8850 \ -L 10.226.2.212:8850:localhost:8850 - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6h31QACgkQ9CaO5/Lv0PDNjQCeMLN901blBs4zDVUeZoCGQLVh wlQAoJBV9nTl2fqRy5Bgv0YK57/Pa7m6 =bAqT -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Re: : tomcat error 404
Humm, well I did the whole export CLASSPATH thing. So I should just have to place them in my apps lib directory, as shown below, and it should load automagically? Dave On 22/07/64 2:59 PM, Pid wrote: On 24/10/2011 00:18, Dave Filchak wrote: I upload the JavaMail and JAF libs to /home/##/public_html/WEB-INF/lib/ and added them to my $CLASSPATH I now get the following: How did you add them to the classpath? Tomcat automatically loads Jars resources found in its various lib classes directories, so don't do that... p Error initializing sub-systems: Please check the following: 1. That your machine has a valid connection to jdbc:mysql://localhost:3306/#_exodus Using: Username: #_exodus Password: # Driver: com.mysql.jdbc.Driver *DETAILS FOLLOW:* java.lang.Exception: Unable to Initialize Environment: java.lang.NoClassDefFoundError: javax/mail/Address at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source) at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source) at com.snapmedia.SystemController.init(SystemController.java:86) at com.snapmedia.WebSystemController.init(WebSystemController.java:39) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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.start(Bootstrap.java:295) 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.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219) Caused by: java.lang.ClassNotFoundException: javax.mail.Address at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284) ... 25 more which is a different error but seemingly still to do with mail? Dave snip - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: RE: Re: : tomcat error 404
As I said, I have been trying to crash learn. I am not, I repeat not, a tomcat user but willing to try and learn. It is not always clear to us who have not been doing this for a long time. Try to be patient with us I did actually move the context to META-INF. Cheers, Dave On 22/07/64 2:59 PM, Caldarale, Charles R wrote: The META-INF/context.xml location is the usual, when you're packaging a webapp up for distribution. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Re: : tomcat error 404
On Mon, 2011-10-24 at 12:41 -0400, Dave Filchak wrote: Humm, well I did the whole export CLASSPATH thing. So I should just have to place them in my apps lib directory, as shown below, and it should load automagically? Indeed it should. No need to monkey with CLASSPATH. You may need to restart the app and/or tomcat, however. Since you're getting the same error, can you post a directory listing of WEB-INF/lib? Dave On 22/07/64 2:59 PM, Pid wrote: On 24/10/2011 00:18, Dave Filchak wrote: I upload the JavaMail and JAF libs to /home/##/public_html/WEB-INF/lib/ and added them to my $CLASSPATH I now get the following: How did you add them to the classpath? Tomcat automatically loads Jars resources found in its various lib classes directories, so don't do that... p Error initializing sub-systems: Please check the following: 1. That your machine has a valid connection to jdbc:mysql://localhost:3306/#_exodus Using: Username: #_exodus Password: # Driver: com.mysql.jdbc.Driver *DETAILS FOLLOW:* java.lang.Exception: Unable to Initialize Environment: java.lang.NoClassDefFoundError: javax/mail/Address at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source) at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source) at com.snapmedia.SystemController.init(SystemController.java:86) at com.snapmedia.WebSystemController.init(WebSystemController.java:39) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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.start(Bootstrap.java:295) 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.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219) Caused by: java.lang.ClassNotFoundException: javax.mail.Address at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284) ... 25 more which is a different error but seemingly still to do with mail? Dave snip - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
jsessionid cookie across webapps
As I understand it, sessions are unique to each webapp. However, I see the same jsessionid cookie being used for requests to two different webapps in the same container. Is this correct? Tomcat 5.5.34
RE: jsessionid cookie across webapps
Read up on the emptySessionPath connector setting in the Tomcat configuration guide. This will explain it. -Original Message- From: chad.da...@emc.com [mailto:chad.da...@emc.com] Sent: Monday, October 24, 2011 10:34 AM To: users@tomcat.apache.org Subject: jsessionid cookie across webapps As I understand it, sessions are unique to each webapp. However, I see the same jsessionid cookie being used for requests to two different webapps in the same container. Is this correct? Tomcat 5.5.34 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: jsessionid cookie across webapps
Read up on the emptySessionPath connector setting in the Tomcat configuration guide. This will explain it. Which, for the record, is here: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Make Errors for JK-1.2.32 solaris/sparc
Beryle Simmons Beryle.Simmons at RaymondJames.com writes: Just checking to see in anyone had any thoughts on this one. -- I normally use the solaris/sparc binary for mod_jk, but I see they aren't available for download with the latest version. I'm trying to compile JK-1.2.32 with solaris 10/sparc, but I'm receiving errors, below is some information: OS: Solaris 10 Generic_144488-17 H/W: sparc SunFire V440 Apache version: 2.2.19 Tomcat version: 5.5.33 Java version: 1.5.0_30-b03 The configure script runs ok. When I ran make for the first time, I received the below error: Usr/ccs/bin/ld: illegal option -- rpath This seemed to be related to a mistake in the .../native/apache-2.0 Makefile. I removed the word path from the -r option and was able to get past that error. Now I get almost through the build and get the below: /usr/local/apache2/build/libtool -silent -mode=install cp mod_jk.la /export/home//tomcat-connectors-1.2.32-src/native/apache-2.0/ Cp: cannot access ..libs/mod_jk.lai Make[1]: *** [mod_jk.so] Error 2 Any help would be appreciated, thanks! Did you ever figure out the issue with this? I am getting the exact same message and I'm running out of ideas on how to solve it. Thanks, -Ben - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Undeploy fails with Tomcat 7 manager application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, On 10/22/2011 7:38 AM, Mike wrote: The logfile is created within the application deployed to the webapps directory of tomcat (and there within [applicationName]\resources\log). I am not trying to delete it. However, when issuing the redeploy command with maven the problem appears (The continued presence of this file may cause problems.) and the application cannot be redeployed. Even when trying to undeploy the application via the tomcat manager (via the manager gui button undeploy) it cannot be undeployed completely. Only the war file and all application files except the log file are removed. Only when stopping tomcat can the application be completely removed. After starting tomcat again I can deploy again successfully. Sounds like you aren't properly shutting-down your logging system when your webapp undeploys. That would result in the file staying open and thus being unavailable for delete. I agree with Pid that putting application log files into the deployment directory is a bad idea in general: they'll get deleted when you redeploy :) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6lsaQACgkQ9CaO5/Lv0PA5QwCdGy2ousZ4bZ0aWvX2Pg7zB0ht 0tUAoLmUQDD2Ee0u1O6R3XDsHL/Y8jUp =4GME -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Make Errors for JK-1.2.32 solaris/sparc
On 24.10.2011 19:24, Ben wrote: Beryle Simmons Beryle.Simmons at RaymondJames.com writes: Just checking to see in anyone had any thoughts on this one. -- I normally use the solaris/sparc binary for mod_jk, but I see they aren't available for download with the latest version. I'm trying to compile JK-1.2.32 with solaris 10/sparc, but I'm receiving errors, below is some information: OS: Solaris 10 Generic_144488-17 H/W: sparc SunFire V440 Apache version: 2.2.19 Tomcat version: 5.5.33 Java version: 1.5.0_30-b03 The configure script runs ok. When I ran make for the first time, I received the below error: Usr/ccs/bin/ld: illegal option -- rpath This seemed to be related to a mistake in the .../native/apache-2.0 Makefile. I removed the word path from the -r option and was able to get past that error. Now I get almost through the build and get the below: /usr/local/apache2/build/libtool -silent -mode=install cp mod_jk.la /export/home//tomcat-connectors-1.2.32-src/native/apache-2.0/ Cp: cannot access ..libs/mod_jk.lai Make[1]: *** [mod_jk.so] Error 2 Any help would be appreciated, thanks! Did you ever figure out the issue with this? I am getting the exact same message and I'm running out of ideas on how to solve it. Which compiler are you using? Sun Studio or gcc? It should work smoothly with gcc. But in fact you shoudln't change compiler between the httpd build and mod_jk build. So if your web server was build with Sun Studio, you would need to build mod_jk with it as well and vice versa. I haven't checked building with Sun Studio for a long time, so there might be problems. I can have a look, but I'd the full make output with the original Makefile containing the rpath flag. It would be even better, if you could edit the Makefiles (top level diretory and below) and remove the --silent from the LIBTOOL definition before running the make. As always first run make clean and then make. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jsessionid cookie across webapps
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chad, On 10/24/2011 1:33 PM, chad.da...@emc.com wrote: As I understand it, sessions are unique to each webapp. However, I see the same jsessionid cookie being used for requests to two different webapps in the same container. Is this correct? You mean that you are seeing the same JSESSIONID cookie being sent from the client to the server regardless of the app? That usually happens when you have done one (or more) of the following: 1. Nested one webapp inside another one's URL space (e.g. webapp1 - /, webapp2 - /foo) 2. Modified your configuration to use an empty session cookie path (which essentially makes the path /) All webapps will get this cookie, but only those for which the cookie is valid will use it. In general, it's no harm for the cookie to be there in duplicate, but you can confuse the heck out of yourself when it happens. Tomcat is smart enough to use any valid JSESSIONID cookie that comes in, so extras are not a big deal. We had a problem where we were using the session id from an incoming request to do a loop-back request to a *different webapp*. The webapp accepting the client request was not configured to use sessions -- just blindly forwarded the session id that came-in with the request to the other webapp (where the session id was supposed to be valid). In this case, the ordering of the JSESSIONID cookies was very important (and cannot be predicted) and had an effect on whether or not the request would be successfully processed. The solution was to stop using nested URL spaces and the JSESSIONID overlap disappeared completely. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6ltdYACgkQ9CaO5/Lv0PAX8QCeOq0/ylKLx+s8qfrV8RU2V6Qr SrYAmwZ6yM2VM1nofa55G1MauQr3ZWAn =E80b -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: ODBC jar files
Ok, thanks for that explanation. I'll test putting one in the WEB-INF/lib and see if I can connect to it that way. If so, I'll see where I need to go from there. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, October 20, 2011 4:14 PM To: Tomcat Users List Subject: RE: ODBC jar files From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: ODBC jar files I had web app A with a context file in its META-INF directory and web app B with a (different) context file in its META-INF directory. That's not related to the classloader being used here. There's a separate one for Tomcat's lib directory, and that's the only one that sees the jars in that location. You can put a JDBC jar in WEB-INF/lib, but then the webapp has to do its own DB connection pooling. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org