Apache Http Server and Tomcat
Are there good reasons to use an Apache Http Server in front of a Tomcat even if I'm using a HW Load Balancer? Thanks, Johann -- View this message in context: http://www.nabble.com/Apache-Http-Server-and-Tomcat-tf4767546.html#a13636658 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]
Tomcat Farm Recommendation
I'm trying to move my Apache Http Server Farm to a Tomcat one and I guess that Tomcat needs more resources than Apache does. Our approach has been always to have many medium size machines than a few big ones, does anybody have any suggestion to the kind of machine + OS needed to get the best tomcat performance? Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-Farm-Recommendation-tf4025344.html#a11433752 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 Farm Recommendation
Thanks for your reply, I know that there are a lot of things to consider to give this kind of answer but my question was more about what do you have that has worked for a corporate site, we're going to have mostly stateless RPC Servlets for a Client Side RIA (GWT) and our scope is millions of users pero month. Thanks. Johann PTS wrote: First things first, I do not have an answer. As for the approach of multiple machines it does allow for better fault tolerance. But is also has the disadvantage of multiple machines to manage. And I am sure the list has lots of other pros and cons. As for the machine brand selection is another area of debate that can go for days. I would recommend a brand you are comfortable with and can get hardware support. As for processor and memory these are really dependent on your application and user load. If you have some base numbers to work from you may get some guidance from the list. For OS you will find that there are supporters from many different camps. Again this is often a case of what you are comfortable with. If you search the list there are some links where comparisons have been made with different OS. Memory: How big is your app? How many apps? How many users? Processor: How many users? How much calculating(processing) in you apps? How many apps? OS: Is it supported with a current stable java environment? Cost? Platform requirements? Doug - Original Message - From: bajistaman [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, July 04, 2007 12:23 PM Subject: Tomcat Farm Recommendation I'm trying to move my Apache Http Server Farm to a Tomcat one and I guess that Tomcat needs more resources than Apache does. Our approach has been always to have many medium size machines than a few big ones, does anybody have any suggestion to the kind of machine + OS needed to get the best tomcat performance? Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-Farm-Recommendation-tf4025344.html#a11433752 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] - 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-Farm-Recommendation-tf4025344.html#a11436329 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 Farm Recommendation
Thanks, I have to still trying to convince some people that Tomcat can perform without a lot more of resources than Apache Http Server does. Johann -- View this message in context: http://www.nabble.com/Tomcat-Farm-Recommendation-tf4025344.html#a11463888 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]
Apache Http Server + Tomcat or just Tomcat?
I have an Apache Http Server farm and I'm trying to build a Tomcat one for my new java systems. I was thinking about what can make the use the Apache one as front end (proxy) of the Tomcat one useful? Thanks, Johann -- View this message in context: http://www.nabble.com/Apache-Http-Server-%2B-Tomcat-or-just-Tomcat--tf4035391.html#a11464034 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: Apache Http Server + Tomcat or just Tomcat?
Thanks!, We have a Solaris and AIX platform but thinking about trying an Intel/Linux one. For many reasons we can't use the latest versions of any product until they've rached some maturity so we are going to try Tomcat 5. Johann -- View this message in context: http://www.nabble.com/Apache-Http-Server-%2B-Tomcat-or-just-Tomcat--tf4035391.html#a11464581 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 benchmark
Probably the best place to start is http://tomcat.apache.org/faq/performance.html -- View this message in context: http://www.nabble.com/Tomcat-benchmark-tf4278535.html#a12189509 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 benchmark
I'm still using tomcat 5 :-) (and Weblogic 8.1), maybe someone interested enough can apply the same test against newer products. Johann -- View this message in context: http://www.nabble.com/Tomcat-benchmark-tf4278535.html#a12190970 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]
Tomcat 5 + Red Hat Linux. Exception trying to load keystore
I followed the instructions from http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html and I have executed the following: keytool -genkey -alias tomcat -keyalg RSA When I run: keytool -list I have the tomcat cert: tomcat, Aug 22, 2007, keyEntry, Certificate fingerprint (MD5): E6:59:10:12:C9:49:AF:72:FA:87:9E:0B:E5:4E:7A:BE But when I start tomcat I get the following Exception [ERROR] 22/08/2007 08:29:35,704] [org.apache.tomcat.util.net.jsse.JSSESocketFactory] Exception trying to load keystore /usr/share/tomcat5/.keystore java.security.KeyStoreException: JKS at java.security.KeyStore.getInstance(libgcj.so.7rh) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(tomcat-util-5.5.23.jar.so) at org.apache.coyote.http11.Http11BaseProtocol.start(tomcat-http-5.5.23.jar.so) at org.apache.coyote.http11.Http11Protocol.start(tomcat-http-5.5.23.jar.so) at org.apache.catalina.connector.Connector.start(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.so) at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.so) at java.lang.reflect.Method.invoke(libgcj.so.7rh) at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so) at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so) [ERROR] 22/08/2007 08:29:35,710] [org.apache.coyote.http11.Http11BaseProtocol] Error starting endpoint java.io.IOException: Exception trying to load keystore /usr/share/tomcat5/.keystore: JKS at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(tomcat-util-5.5.23.jar.so) at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(tomcat-util-5.5.23.jar.so) at org.apache.coyote.http11.Http11BaseProtocol.start(tomcat-http-5.5.23.jar.so) at org.apache.coyote.http11.Http11Protocol.start(tomcat-http-5.5.23.jar.so) at org.apache.catalina.connector.Connector.start(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.so) at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.so) at java.lang.reflect.Method.invoke(libgcj.so.7rh) at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so) at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so) [ERROR] 22/08/2007 08:29:35,715] [org.apache.catalina.startup.Catalina] Catalina.start: LifecycleException: service.getName(): Catalina; Protocol handler start failed: java.io.IOException: Exception trying to load keystore /usr/share/tomcat5/.keystore: JKS at org.apache.catalina.connector.Connector.start(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.so) at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.so) at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.so) at java.lang.reflect.Method.invoke(libgcj.so.7rh) at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so) at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so) Any ideas what could be the problem? Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12278075 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 5 + Red Hat Linux. Exception trying to load keystore
Thanks, but we are already using the one that we got from sun's web site, any other clue? Johann -- View this message in context: http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12279431 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 5 + Red Hat Linux. Exception trying to load keystore
You are right, when I look up the services I can see that Tomcat is running using the JVM that you have told me: /usr/lib/jvm/java/bin/java -Djava.awt.headless=true -Dcatalina.ext.dirs=/usr/... I changed that from the tomcat5.conf file: # tomcat5 service configuration file # you could also override JAVA_HOME here # Where your java installation lives ###JAVA_HOME=/usr/lib/jvm/java JAVA_HOME=/usr/java/latest But probably as I'm executing Tomcat as a service the service def should be the one that is pointing to the wrong JVM. Any idea how the change the service def? Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12279805 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 5 + Red Hat Linux. Exception trying to load keystore
Ok, I'll keep away from this forum the packaged tomcat questions. When I get the real one I'll be back. Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12280051 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]
The Solution
Well, just as a matter of corollary of the soluction everybody was right because even if I had the Sun Jvm installed, the red hat tomcat5 service was getting the JAVA_HOME env entry from the one defined in the file /etc/sysconfig/tomcat5 and not from /etc/tomcat5/tomcat5.conf, so if you changed it in the latest is not going to work because the first overrides the second. Johann -- View this message in context: http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12282114 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]
Load Balancing Tomcat 5.0.X, hardware or software?
Hi!, I'm trying to create a stateless tomcat's farm but wanted sticky session mechanism. What is the best way to achieve this?, using hardware or software load balancing? Thanks, Johann -- View this message in context: http://www.nabble.com/Load-Balancing-Tomcat-5.0.X%2C-hardware-or-software--tf4354748.html#a12408836 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: Load Balancing Tomcat 5.0.X, hardware or software?
And what about SSL?, it is better to let the load balancer to take care of it or every node in the farm? Thanks, Johann -- View this message in context: http://www.nabble.com/Load-Balancing-Tomcat-5.0.X%2C-hardware-or-software--tf4354748.html#a12425400 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: Problems with SSL-enabled Tomcat 5.5
I'm having the same problem. Some people from my company created the Certificate Signing Request and the only thing that I've received was an email with the certificate, then I tried to install it and I had the same problems that Werner has. Do I have to do all over again from Tomcat from the private key, CSR, ...? Thanks, Johann #Generate a private key keytool -storepass changeit -genkey -alias tomcat -keyalg RSA #Generate the Certificate Signing Request (CSR) keytool -storepass changeit -certreq -alias tomcat -file name.csr #Send the CSR to get a certificate #Import the intermediate cert keytool -storepass changeit -import -alias intermediateCA -trustcacerts -file intermediateCA.cer #Import the cert keytool -storepass changeit -import -alias tomcat -trustcacerts -file name.cer -- View this message in context: http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12426259 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: Load Balancing Tomcat 5.0.X, hardware or software?
Many Thanks for your comments, I have everything working now using a HW load balancer but the ssl is being managed by every node just because the guys from networks think that we need to upgrade the current HW Load Balancer to be able to support it and that is not going to happen soon. Johann -- View this message in context: http://www.nabble.com/Load-Balancing-Tomcat-5.0.X%2C-hardware-or-software--tf4354748.html#a12460977 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: Problems with SSL-enabled Tomcat 5.5
I have the same problem than you Werner, everything looks fine but the browser is unable to verify the identity of my site. Firefox says: a) Or the browser doesn't recognize the CA that is supporting the cert. b) Or the cert is uncomplete because of a wrong server configuration. c) Or the site is pretending to be something that is not So still trying to find what is wrong. BTW, my CA gives an intermediate cert that I didn't use because agentbob's tip didn't say anything about it. Maybe I need to install as part of the process just as the CA website says. Did you have to install the intermediate one? Thanks, Johann -- View this message in context: http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12461106 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: Problems with SSL-enabled Tomcat 5.5
So what you did was to create a new private key, CSR and then just follow the instructions from your CA and everything worked? Thanks, Johann -- View this message in context: http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12463871 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: a problem of tomcat5 start
Did you replace the JVM for the SUN's? I had many problems using the Red Hat packaged tomcat and without installing tomcat again it worked fine just replacing the JVM. If you look at the following post The Solution maybe It could help you. http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12278436 Johann -- View this message in context: http://www.nabble.com/a-problem-of-tomcat5-start-tf4372024.html#a12464313 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: Problems with SSL-enabled Tomcat 5.5
Ok, now it is working, I was missing the root cert. I generated a script that did all the work: JAVA_HOME=/usr/java/latest export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH THE_NAME=www.dummy.org export THE_NAME rm /root/.keystore rm /usr/share/tomcat5/.keystore openssl pkcs8 -topk8 -nocrypt -in ${THE_NAME}_key.pem -inform PEM -out ${THE_NAME}_key.der -outform DER openssl x509 -in rootCA_cer.pem -inform PEM -out rootCA_cer.der -outform DER openssl x509 -in intermediateCA_cer.pem -inform PEM -out intermediateCA_cer.der -outform DER openssl x509 -in ${THE_NAME}_cer.pem -inform PEM -out ${THE_NAME}_cer.der -outform DER cat ${THE_NAME}_cer.der intermediateCA_cer.der rootCA_cer.der ${THE_NAME}_all_cer.der javac *.java java ImportKey ${THE_NAME}_key.der ${THE_NAME}_all_cer.der cp /root/keystore.ImportKey /root/.keystore cp /root/.keystore /usr/share/tomcat5/.keystore keytool -keypass changeit -storepass changeit -list -- View this message in context: http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12467259 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]
Tomcat Farm Deployment and Statistics
Is there a way to distribute the deployment of an application through many tomcat's farm instances in different machines setting a context path that is different than the war's name? Is there a way to centrally collect statistics of usage of all of the tomcat's farm instances? Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-Farm-Deployment-and-Statistics-tf4391810.html#a12521532 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 Farm Deployment and Statistics
Thanks Charles, I was reading about JMX and Tomcat and I wonder if is it better (more secure?) to do it at the low level as you suggested or by using the JMX API? Johann -- View this message in context: http://www.nabble.com/Tomcat-Farm-Deployment-and-Statistics-tf4391810.html#a12526752 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 Farm Deployment and Statistics
Have you tried the Client Deployer Package? Johann -- View this message in context: http://www.nabble.com/Tomcat-Farm-Deployment-and-Statistics-tf4391810.html#a12528074 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: Load balancer (apache or hardware)
http://www.nabble.com/Load-Balancing-Tomcat-5.0.X%2C-hardware-or-software--tf4354748.html#a12408836 Check this post Johann -- View this message in context: http://www.nabble.com/Load-balancer-%28apache-or-hardware%29-tf4515421.html#a12921397 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]
App reloading classloading issue?
I'm currently deploying applications to Tomcat using a context file placed inside $CATALINA_HOME/conf/[enginename]/[hostname]/ directory, they have the following content: Context docBase=/someDir/AppName.war/Context If I update the file AppName.war it is reloaded and the changes are reflected but it throws an exception java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub whenever it has to access some remote Ejbs in Weblogic so it forces me to restart the Tomcat server to make it work. The weblogic client libs are placed in $CATALINA_HOME/common/lib. Any idea why is this happenning? is there a classloading issue when reloading an app? Thanks, Johann -- View this message in context: http://www.nabble.com/App-reloading-classloading-issue--tf4535643.html#a12944398 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: App reloading classloading issue?
Filip Hanik - Dev Lists wrote: The weblogic client libs are placed in $CATALINA_HOME/common/lib. yes, but the class that is trying to be loaded is java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stubbajistaman wrote: does the weblogic/rmi/*server*/... hint that it is trying to load a server class, maybe not present in the weblogic *client* library? Filip I get your point but actually the class is part of the classpath. The application works fine when I restart the server but it doesn't when I reload it. So the question is why Tomcat is not able to find a class that was found before doing the reload? By the way I'm using Tomcat 5.5.20.0 with Sun JVM 1.4.2_15-b02 Thanks, Johann -- View this message in context: http://www.nabble.com/App-reloading-classloading-issue--tf4535643.html#a12946585 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: App reloading classloading issue?
Caldarale, Charles R wrote: From: bajistaman [mailto:[EMAIL PROTECTED] Subject: App reloading classloading issue? Don't suppose you'd care to give us a hint about the version of Tomcat you're using? The weblogic client libs are placed in $CATALINA_HOME/common/lib. Are you sure the weblogic jars/classes aren't also somewhere else, such as under WEB-INF of the webapp? Having them in multiple places can result in the symptom you're seeing. - Chuck Sorry, my mistake. I'm using Tomcat 5.5.20.0 with Sun JVM 1.4.2_15-b02 Thanks, Johann -- View this message in context: http://www.nabble.com/App-reloading-classloading-issue--tf4535643.html#a12946673 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: App reloading classloading issue?
Clinton J. Totten wrote: I'm not sure about the error but have you tried just putting the WAR in the webapps directory $CATALINA_HOME/webapps? I tried that but the same error, if i want it to work I have to restart the server. Thanks, Johann -- View this message in context: http://www.nabble.com/App-reloading-classloading-issue--tf4535643.html#a12946776 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: App reloading classloading issue?
Caldarale, Charles R wrote: You just mentioned a dirty word. Do you have CLASSPATH set for the Tomcat execution or included that jar in the -cp parameter for launching Tomcat? (You shouldn't.) If so, that will make the weblogic classes visible to multiple classloaders, which is a Very Bad Thing. I haven't set the tomcat classpath using -cp parameter, I just put the jars inside $CATALINA_HOME/common/lib (Common tomcat classloader visible to both Tomcat internal classes and to all web applications). Thanks, Johann -- View this message in context: http://www.nabble.com/App-reloading-classloading-issue--tf4535643.html#a12947529 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: App reloading classloading issue?
It seems that this is a common problem whenever you need to access weblogic from a non weblogic container. First the wl*client.jar files are not enough to do what a weblogic client needs to do so you need to put the whole weblogic.jar (34MB) in your classpath in order to make it work an not getting CORBA exceptions. Then whenever you need to reload your application you are going to get the java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub exception so it is mandatory to restart the server instance, a very poor solution... Johann -- View this message in context: http://www.nabble.com/App-reloading-classloading-issue--tf4535643.html#a12950164 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]
Setup a Proxy in Tomcat
Is there a way to map a local context to a remote one with tomcat? I mean: http://localhost:8080/somename--http://remotehost/someothername I know that this can be done with Apache Http Server but I'm trying to avoid the need to install one. (BTW I'm using Tomcat 5.5.20) Thanks, Johann -- View this message in context: http://www.nabble.com/Setup-a-Proxy-in-Tomcat-tf4572073.html#a13050590 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: Setup a Proxy in Tomcat
Caldarale, Charles R wrote: Write a filter that does a redirect. I believe that http://tuckey.org/urlrewrite/ has this capability, but I haven't tried it myself. Thanks Charles, I have already created a filter using commons.httpclient but the performance that I'm having is not what I expect to get. I will check urlrewrite. Johann -- View this message in context: http://www.nabble.com/Setup-a-Proxy-in-Tomcat-tf4572073.html#a13058361 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: Setup a Proxy in Tomcat
Tim Funk wrote: This should work: http://sourceforge.net/projects/j2ep/ Thanks Tim, It looks like what I need, Have you tried it?, Does it have good performance? Johann -- View this message in context: http://www.nabble.com/Setup-a-Proxy-in-Tomcat-tf4572073.html#a13058364 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]
Tomcat 5.5 Cluster Without session replication
Is there a way to set up a Tomcat cluster without session replication? How many Tomcat instances is recommended to define by cluster? Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-5.5-Cluster-Without-session-replication-tf4640120.html#a13252267 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 5.5 Cluster Without session replication
Filip Hanik - Dev Lists wrote: yes, that is the most common setup, just add as many Tomcat's as you need and front them with a load balancer with fail over capabilities minimum amount of tomcat to form a cluster, is 2 :) Filip :-), I'm trying to centrally manage resources and deployment and I thought that I could get that using Tomcat's specific cluster configuration but without session state replication, is that possible or do I have to apply the DIY principle?. Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-5.5-Cluster-Without-session-replication-tf4640120.html#a13258810 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]