Re: How to configure ProxyPassReverse for SSL redirect
Hi, Nick Kew from the httpd-users list pointed me to the final solution: The problem is, that the redirect is initiated through the Location header, which can be rewrited with mod_headers: Header edit Location ^([^/]*//[^/]*)?/spike/(.*)$ $1/$2 I think, mod_proxy should rewrite this header, too, like any other header it rewrites. Is it a bug or am I missing something? Timo 2010/4/28 Mark Thomas : > On 27/04/2010 04:25, Timo Meinen wrote: >> >> Is someone out there, who can explain me, what the problem is? > > It looks like a bug in mod_proxy_ajp. Check you are using the latest httpd > release (2.2.15) and if you still see the problem, open a bug. Note: > mod_proxy_ajp is maintained by the httpd project. > > Mark > > - > 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
Re: How to configure ProxyPassReverse for SSL redirect
Here are some debug information to this problem. The message is logged just after the 302 redirect to the https. The Context-Path of the application is /spike: [Tue Apr 27 16:54:39 2010] [debug] mod_proxy_ajp.c(239): proxy: APR_BUCKET_IS_EOS [Tue Apr 27 16:54:39 2010] [debug] mod_proxy_ajp.c(244): proxy: data to read (max 8186 at 4) [Tue Apr 27 16:54:39 2010] [debug] mod_proxy_ajp.c(259): proxy: got 0 bytes of data [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(652): ajp_read_header: ajp_ilink_received 04 [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(662): ajp_parse_type: got 04 [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(491): ajp_unmarshal_response: status = 302 [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(502): ajp_unmarshal_response: Number of headers is = 2 [Tue Apr 27 16:54:39 2010] [debug] proxy_util.c(1071): ppr: real: ajp://127.0.0.1:9091/spike/ [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(564): ajp_unmarshal_response: Header[0] [Location] = [https://it.localhost.de/spike/users/3] [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(564): ajp_unmarshal_response: Header[1] [Content-Length] = [0] [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(652): ajp_read_header: ajp_ilink_received 05 [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(662): ajp_parse_type: got 05 [Tue Apr 27 16:54:39 2010] [debug] mod_proxy_ajp.c(498): proxy: got response from 127.0.0.1:9091 (127.0.0.1) [Tue Apr 27 16:54:39 2010] [debug] proxy_util.c(2062): proxy: AJP: has released connection for (127.0.0.1) [Tue Apr 27 16:54:39 2010] [info] Initial (No.1) HTTPS request received for child 9 (server it.localhost.de:80) [Tue Apr 27 16:54:44 2010] [debug] mod_proxy_ajp.c(45): proxy: AJP: canonicalising URL //127.0.0.1:9091/spike/spike/users/3 [Tue Apr 27 16:54:44 2010] [debug] proxy_util.c(1488): [client 85.183.135.210] proxy: ajp: found worker ajp://127.0.0.1:9091/spike/ for ajp://127.0.0.1:9091/spike/spike/users/3, referer: http://it.localhost.de/ Problem is that the "ajp_unmarshal_response: Header[0] [Location] = [https://it.localhost.de/spike/users/3]"; doesn't remove the /spike in the response, so that the next request will lead to the doubled-context-path: ajp://127.0.0.1:9091/spike/spike/users/3. Thank you, Timo 2010/4/27 Timo Meinen : > Is someone out there, who can explain me, what the problem is? > > Does the ProxyPassReverse only removes the ContextPath if the protocol > (http/https) in the response is the same than in the request? Is it > possible to configure the Proxy to ignore the protocol information? > > Thank you for any hint - I am stuck with this problem. > > Best regards, > Timo > > 2010/4/22 Timo Meinen : >> Hi Hassan, >> >> yes, there are two VirtualHost entries. One for port 80 and one for >> port 443 with SSL engine enabled. Both have the same proxy >> configuration. >> >> Timo >> >> 2010/4/22 Hassan Schroeder : >>> On Thu, Apr 22, 2010 at 3:25 AM, Timo Meinen >>> wrote: >>> >>>> our configuration is a Apache 2.2 web server, acting as a reverse >>>> proxy for Tomcat 6. This is the configuration: >>>> ServerName it.localhost.de >>>> ProxyPass / ajp://127.0.0.1:8009/spike/ >>>> ProxyPassReverse / ajp://127.0.0.1:8009/spike/ >>>> ProxyPassReverseCookiePath /spike / >>> >>> That's *one* configuration -- do you have this for both the standard >>> port 80 and SSL port 443? >>> >>> In a default 2.2.x install there are separate extra/httpd-vhosts.conf and >>> extra/httpd-ssl.conf files. >>> >>> -- >>> Hassan Schroeder hassan.schroe...@gmail.com >>> twitter: @hassan >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >> >> >> >> -- >> Glück Auf >> Timo >> > > > > -- > Glück Auf > Timo > -- Glück Auf Timo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to configure ProxyPassReverse for SSL redirect
Is someone out there, who can explain me, what the problem is? Does the ProxyPassReverse only removes the ContextPath if the protocol (http/https) in the response is the same than in the request? Is it possible to configure the Proxy to ignore the protocol information? Thank you for any hint - I am stuck with this problem. Best regards, Timo 2010/4/22 Timo Meinen : > Hi Hassan, > > yes, there are two VirtualHost entries. One for port 80 and one for > port 443 with SSL engine enabled. Both have the same proxy > configuration. > > Timo > > 2010/4/22 Hassan Schroeder : >> On Thu, Apr 22, 2010 at 3:25 AM, Timo Meinen >> wrote: >> >>> our configuration is a Apache 2.2 web server, acting as a reverse >>> proxy for Tomcat 6. This is the configuration: >>> ServerName it.localhost.de >>> ProxyPass / ajp://127.0.0.1:8009/spike/ >>> ProxyPassReverse / ajp://127.0.0.1:8009/spike/ >>> ProxyPassReverseCookiePath /spike / >> >> That's *one* configuration -- do you have this for both the standard >> port 80 and SSL port 443? >> >> In a default 2.2.x install there are separate extra/httpd-vhosts.conf and >> extra/httpd-ssl.conf files. >> >> -- >> Hassan Schroeder hassan.schroe...@gmail.com >> twitter: @hassan >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > > > -- > Glück Auf > Timo > -- Glück Auf Timo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to configure ProxyPassReverse for SSL redirect
Hi Hassan, yes, there are two VirtualHost entries. One for port 80 and one for port 443 with SSL engine enabled. Both have the same proxy configuration. Timo 2010/4/22 Hassan Schroeder : > On Thu, Apr 22, 2010 at 3:25 AM, Timo Meinen > wrote: > >> our configuration is a Apache 2.2 web server, acting as a reverse >> proxy for Tomcat 6. This is the configuration: >> ServerName it.localhost.de >> ProxyPass / ajp://127.0.0.1:8009/spike/ >> ProxyPassReverse / ajp://127.0.0.1:8009/spike/ >> ProxyPassReverseCookiePath /spike / > > That's *one* configuration -- do you have this for both the standard > port 80 and SSL port 443? > > In a default 2.2.x install there are separate extra/httpd-vhosts.conf and > extra/httpd-ssl.conf files. > > -- > Hassan Schroeder hassan.schroe...@gmail.com > twitter: @hassan > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Glück Auf Timo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to configure ProxyPassReverse for SSL redirect
Hi, our configuration is a Apache 2.2 web server, acting as a reverse proxy for Tomcat 6. This is the configuration: ServerNameit.localhost.de ProxyPass / ajp://127.0.0.1:8009/spike/ ProxyPassReverse/ ajp://127.0.0.1:8009/spike/ ProxyPassReverseCookiePath /spike / As you can see, the webapp is hosted under ContextPath /spike but available through the proxy via /. Everything works fine, until the webapp sends an redirect to HTTPS. This is done via SpringSecurity. The problem is, that the ProxyPassReverse directive doesn't catch the ContextPath and converts it, if it includes the complete address. These are the logs from the web browser: GET http://it.localhost.de/users/65 => 302 => https://it.localhost.de/spike/users/65 1) Why does the ProxyPassReverse doesn't convert the /spike back to / in https://it.localhost.de/spike/users/65? Is it because the Header isn't relative? The protocol is still AJP and so the Proxy should know how to convert it, right? 1a) If so, how could the webapp switch from http to https and vice versa, when not able to send the absolute address with a new protocol? After this, I tried to set additional ProxyPassReverse directives: ProxyPassReverse/https://it.localhost.de/spike/ ProxyPassReverse/http://it.localhost.de/spike/ This time, the /spike/ is converted to /, but the two directives leads to an infintive loop of redirects to http://it.localhost.de/. 2) How can I stop this loop? or better 3) How can I configure the ProxyPassReverse correctly? As a workaround I have a RewriteRule added like this one RewriteRule ^/spike/(.*)$ /$1 [R=301,L] but this doesn't feel correct and it leads to 3 GET-Requests and redirects each time the webapps wants it user to switch the protocol. Thank you very much Timo Meinen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin datasource
Is the 'initialize' phase of maven executed? Timo 2010/3/26 Pid : > On 26/03/2010 02:01, fachhoch wrote: >> >> I am having trouble setting datasource >> >> here is my configration for datasource >> >> >> >> > type="javax.sql.DataSource" >> username="username" password="password" >> driverClassName="oracle.jdbc.driver.OracleDriver" >> url="myurl"/> >> >> >> >> >> >> and here my pom configration > > Perhaps you meant to include the server.xml? Rather than a POM, which > doesn't tell me anything about what Tomcat is actually using. > > > p > >> >> org.codehaus.mojo >> tomcat-maven-plugin >> 1.0-beta-1 >> >> >> /artms >> >> >> ${basedir}/context.xml >> automatic >> >> >> >> commons-dbcp >> commons-dbcp >> 1.2.2 >> compile >> >> >> com.oracle >> ojdbc >> 14 >> compile >> >> >> >> >> >> am I missing anything ? my application fails starting, complaining cannot >> find datasource ,please tell me what am I doing wrong ? > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Glück Auf Timo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Shutdown hook for correctly unloading drivers
Hi Mark, thank you for the answer. I do have a YourKit license for our open source framework, so I will profile my webapp. > Tomcat has unloaded the driver. That won't be causing your memory leak. Does this mean, that the additional memory which is allocated after a redeploy cannot be the mysql-driver? Timo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Shutdown hook for correctly unloading drivers
Hi, I would like to know, if there is a shutdown-hook for Tomcat available. Or what the prefered way is, to correctly unload drivers like JDBC drivers. Unloading the drivers seems to be important for us, because after redeploying the web appliction to often during continuous integration leads to a OutOfMemory-Errors. And although Tomcat tells me, that it forces the driver to unload, I can see a significant amount of memory allocated additionally each time the webapp is redeployed. My webapp causes Tomcat at shutdown to throw these warning messages: 26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SCHWERWIEGEND: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread SCHWERWIEGEND: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. 26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread SCHWERWIEGEND: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. 26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SCHWERWIEGEND: A web application appears to have started a thread named [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This is very likely to create a memory leak. 26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SCHWERWIEGEND: A web application created a ThreadLocal with key of type [org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl.ThreadCounterImpl] (value [org.aspectj.runtime.internal.cflowstack.threadstackfactoryimpl$threadcounteri...@4ebfa97b]) and a value of type [org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl.ThreadCounterImpl.Counter] (value [org.aspectj.runtime.internal.cflowstack.threadstackfactoryimpl$threadcounterimpl$coun...@90ff2a1]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. Thank you very much Timo Meinen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Monitoring Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Dori, we are using Munin and a JMX plugin for this purpose. Timo Am 22.07.2009 um 17:51 schrieb dori: Hello everyone. What would be the best way or a good way to monitor topcat, so i could see when and where any errors are originating from, say if 10 people an hour are getting a certain http error code then I can work out why and enable me to see how much load tomcat is under and how it's performing? I found Lambaprobe but it dosent seem to have been updated in 3 years and im not sure about it supporting tomcat 6. To paraphrase, how do you know when it's time (or nearly time) to upgrade your Tomcat set up (vertical, horizontal, whatever) Thanks for any (much needed) advice... Dori -- View this message in context: http://www.nabble.com/Monitoring-Tomcat-tp24609118p24609118.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) iEYEARECAAYFAkpoCmsACgkQeh8+Xr6H+wneCgCeLxon3296QwUTC3a5YO7S9jGH fFIAnjvyjbxFLNx7BZFsE2kKUxJXZk71 =1VCg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Memory analysis after 'OutOfMemoryError PermGen space' error induced by redeployments
Obviously, my screenshot couldn't be attached to the mailinglist, so here is it: http://timomeinen.de/bilder/PermGenSpace.png Best regards Timo Meinen Am 23.06.2009 um 10:26 schrieb Timo Meinen | mindmatters: Hello, we host a Tomcat 6 server with several webapps on it. It is used for continuous integration, so the test webapps are deployed often. We run into OutOfMemoryError: PermGen space after some redeployments and cannot find a solution. I connected JConsole remotely and made a screenshot after some redeployments. The screenshot is attached to this mail. After the first redeployment of webapp 1 the PermGen raises to 150MB and after the deployment it is freed to 115 MB, which seems to be ok. However, the second redeployment won't release the PermGen as you can see on the screenshot. After that, every redeployment will take another 40MB of PermGen space wich leads to the OutOfMemory error, because we set the MaxPermSize to 256m. I tried a manual GC, but this worked only once (see screenshot). After this, the GC was useless. The start parameters of the tomcat server are: -server -Xmx1g -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled - Djava.awt.headless=true - javaagent:org.springframework.instrument-3.0.0.M2.jar The stacktrace is: SEVERE: org/springframework/web/context/request/ AbstractRequestAttributes java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethod(Class.java:1935) at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java: 1382) at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:438) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1106) at java .io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 326) at java.util.ArrayList.writeObject(ArrayList.java:570) 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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java: 945) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1461) at java .io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 326) at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: 315) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java: 535) at sun.rmi.transport.tcp.TCPTransport $ConnectionHandler.run0(TCPTransport.java:790) And the screenshot: Any help would be great for us. Thank you very much. Timo Meinen -- --- mindmatters GmbH & Co. KG Neuer Kamp 30 20357 Hamburg - St. Pauli Fon: +49 40 4840593 0 Fax: +49 40 4840593 9 Website: www.mindmatters.de Handelsregister: Amtsgericht Hamburg | HRA 97304 | UID DE225251880 Persönl. haftende Gesellschafterin: mindmatters Verwaltungsgesellschaft mbH Amtsgericht Hamburg | HRB 84595 | Geschäftsführer: Frank Schmitz - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Viele Grüße Timo Meinen -- --- mindmatters GmbH & Co. KG Neuer Kamp 30 20357 Hamburg - St. Pauli Fon: +49 40 4840593 0 Fax: +49 40 4840593 9 Website: www.mindmatters.de Handelsregister: Amtsgericht Hamburg | HRA 97304 | UID D
Memory analysis after 'OutOfMemoryError PermGen space' error induced by redeployments
Hello, we host a Tomcat 6 server with several webapps on it. It is used for continuous integration, so the test webapps are deployed often. We run into OutOfMemoryError: PermGen space after some redeployments and cannot find a solution. I connected JConsole remotely and made a screenshot after some redeployments. The screenshot is attached to this mail. After the first redeployment of webapp 1 the PermGen raises to 150MB and after the deployment it is freed to 115 MB, which seems to be ok. However, the second redeployment won't release the PermGen as you can see on the screenshot. After that, every redeployment will take another 40MB of PermGen space wich leads to the OutOfMemory error, because we set the MaxPermSize to 256m. I tried a manual GC, but this worked only once (see screenshot). After this, the GC was useless. The start parameters of the tomcat server are: -server -Xmx1g -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled - Djava.awt.headless=true - javaagent:org.springframework.instrument-3.0.0.M2.jar The stacktrace is: SEVERE: org/springframework/web/context/request/ AbstractRequestAttributes java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethod(Class.java:1935) at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java: 1382) at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:438) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1106) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java: 1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at java.util.ArrayList.writeObject(ArrayList.java:570) 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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java: 945) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1461) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java: 1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:315) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport $ConnectionHandler.run0(TCPTransport.java:790) And the screenshot: Any help would be great for us. Thank you very much. Timo Meinen -- --- mindmatters GmbH & Co. KG Neuer Kamp 30 20357 Hamburg - St. Pauli Fon: +49 40 4840593 0 Fax: +49 40 4840593 9 Website: www.mindmatters.de Handelsregister: Amtsgericht Hamburg | HRA 97304 | UID DE225251880 Persönl. haftende Gesellschafterin: mindmatters Verwaltungsgesellschaft mbH Amtsgericht Hamburg | HRB 84595 | Geschäftsführer: Frank Schmitz - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Redeploy application
Have a look at 'autodeploy': http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server Timo Am 18.06.2009 um 11:16 schrieb Tokajac: I added this to META-INF/context.xml: ( former: ) just overwrite webapps/appname.war and it seems to work! Any experiences with this approach? Regards Tokajac wrote: Hello, Whenever i want to deploy new version of application (that's VERY often), have to: stop tomcat; execute build.xml -ant script; start tomcat; Is there any way, target in ant, that can make this easier? Regards P.S. http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409 -- View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24089275.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Viele Grüße Timo Meinen -- --- mindmatters GmbH & Co. KG Neuer Kamp 30 20357 Hamburg - St. Pauli Fon: +49 40 4840593 0 Fax: +49 40 4840593 9 Website: www.mindmatters.de Handelsregister: Amtsgericht Hamburg | HRA 97304 | UID DE225251880 Persönl. haftende Gesellschafterin: mindmatters Verwaltungsgesellschaft mbH Amtsgericht Hamburg | HRB 84595 | Geschäftsführer: Frank Schmitz - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Redeploy application
Hi Tokajac, you can create an ANT script like the following: timeoutproperty="server.missing"> unless="server.missing"> Best regards Timo Meinen Am 17.06.2009 um 22:53 schrieb Tokajac: Hello, Whenever i want to deploy new version of application (that's VERY often), have to: stop tomcat; execute build.xml -ant script; start tomcat; Is there any way, target in ant, that can make this easier? Regards P.S. http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409 -- View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24081872.html Sent from the Tomcat - User mailing list archive at Nabble.com. - 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
Re: Upgrade to Tomcat 6 on Ubuntu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Neil, we usually don't use the Tomcat installation provided by Ubuntu, because the files are distributed over the hole filesystem. e.g. conf under /etc. It's no problem to download a regular Tomcat-distribution as tar.gz or zip und unzip it into /opt/tomcat. You can write a simple service-wrapper into /etc/init.d/tomcat to manage the server. This way you have all your information under /opt/ tomcat and it's although possible to install more than one server instance. Best regards, Timo Meinen Am 12.06.2009 um 21:20 schrieb Mukerjee, Neiloy (Neil): I am running Ubuntu 8.04 and already have Tomcat 5.5 installed, but I am told that in order to properly use another program (Solr 1.3), it would be best for me to upgrade to Tomcat 6. However, I have tried going through the regular install process of Tomcat 6, and it doesn't seem to overwrite Tomcat 5.5 - am I misunderstanding something or leaving a step out? -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) iEYEARECAAYFAko2FAMACgkQeh8+Xr6H+wnr9QCeKPSzXMb9d9Ygao6eQSv7mN96 RL4AnRAgoyrL9TQHUXN5OhBexsj8eO/x =HTtM -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org