jar loading in folder web-inf/lib/folder/*.jar
HI, Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss 5.0.1GA this works fine but The tomcat class loader cant load thease files., Thease jar files (WEB-INF/lib/a_foolder/*.jar) is referenced from the main.jar file (WEB-INF/lib/main.jar) manifest: WEB-INF/lib/main.jar/META-INF/MANIFEST.MF: /WEB-INF/lib/a_folder/cxf-rt-frontend-jaxws-2.2.jar /a_folder/geronimo-ws-metadata_2.0_spec-1.1.2.jar I have also tried with prefix without any success, WEB-INF/lib/a_folder/cxf-rt-frontend-jaxws-2.2.jar WEB-FIN/lib/a_folder/geronimo-ws-metadata_2.0_spec-1.1.2.jar Dosnt tomcat support loading of jar libs within a folder in WEB-INF/lib ? - Karan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat 6 service on local computer could not start (1067 err or)
Hello all, I have got a support question to which I cannot find a clear answer in online fora. My TomCat installation won't start anymore. This morning it worked, I ran jsp and servlets, but now it doesnt. I use Windows Vista and Apache Tomcat 6. In the 'services' of windows I tried to manually start tomcat, but I get the following error message: Could not start the Apache Tomcat 6 service on Local Computer. Error 1067: The process terminated unexpectedly. in Apache's 'log' folder I find the following entries (repeating endlessly, because I keep on trying! ;-) ) [2009-06-30 11:33:39] [info] Procrun (2.0.4.0) started [2009-06-30 11:33:39] [info] Running Service... [2009-06-30 11:33:39] [info] Starting service... [2009-06-30 11:33:39] [info] Error occurred during initialization of VM [2009-06-30 11:33:39] [info] java/lang/NoClassDefFoundError [2009-06-30 11:33:39] [info] : java/lang/Object What happened in the mean time (between the 'working tomcat' and the 'non-working tomcat'): - I tried to make my first Servlet and need 'javac' for this, so I installed jdk-6u14-windows-i586 - I added the JDK to the PATH variable in Windows environment - I rebooted my system - started Apache TomCat manually (I installed it that way) - AND GOT THE ERROR (1067) - I uninstalled Tomcat (It was very new) - Re-installed Tomcat - The installer asked if Tomcat may start: YES! - The icon appeared in my task bar (right bottom), but stayed red - right mouse on icon 'start service': nothing happens - then again via 'services' of windows and I got the same error message! Does it have to do anything with JDK? During installation Tomcat asks for the JRE / JDK location.. I point this to 1.6 (while it asks for 5).. Is that the problem? What should I do? Hannes _ Haal meer uit je leven met Windows Live http://www.microsoft.com/netherlands/windowslive/Views/index.aspx
tomcat 6 service on local computer could not start (1067 err or)
Hello all, I have got a support question to which I cannot find a clear answer in online fora. My TomCat installation won't start anymore. This morning it worked, I ran jsp and servlets, but now it doesnt. I use Windows Vista and Apache Tomcat 6. In the 'services' of windows I tried to manually start tomcat, but I get the following error message: Could not start the Apache Tomcat 6 service on Local Computer. Error 1067: The process terminated unexpectedly. in Apache's 'log' folder I find the following entries (repeating endlessly, because I keep on trying! ;-) ) [2009-06-30 11:33:39] [info] Procrun (2.0.4.0) started [2009-06-30 11:33:39] [info] Running Service... [2009-06-30 11:33:39] [info] Starting service... [2009-06-30 11:33:39] [info] Error occurred during initialization of VM [2009-06-30 11:33:39] [info] java/lang/NoClassDefFoundError [2009-06-30 11:33:39] [info] : java/lang/Object What happened in the mean time (between the 'working tomcat' and the 'non-working tomcat'): - I tried to make my first Servlet and need 'javac' for this, so I installed jdk-6u14-windows-i586 - I added the JDK to the PATH variable in Windows environment - I rebooted my system - started Apache TomCat manually (I installed it that way) - AND GOT THE ERROR (1067) - I uninstalled Tomcat (It was very new) - Re-installed Tomcat - The installer asked if Tomcat may start: YES! - The icon appeared in my task bar (right bottom), but stayed red - right mouse on icon 'start service': nothing happens - then again via 'services' of windows and I got the same error message! Does it have to do anything with JDK? During installation Tomcat asks for the JRE / JDK location.. I point this to 1.6 (while it asks for 5).. Is that the problem? What should I do? Hannes _ Haal meer uit je leven met Windows Live http://www.microsoft.com/netherlands/windowslive/Views/index.aspx
Re: tomcat 6 service on local computer could not sta rt (1067 error)
Could not start the Apache Tomcat 6 service on Local Computer. Error 1067: The process terminated unexpectedly. Just a few What is your exact location of the JDK and is it different if you do not specify it in the path. what is your JAVA_HOME set to If you revert the changes, does the problem go away Have you seen this behaviour on other systems What tomcat version are you using Where did you install tomcat Did you try a manual installation (zip) instead of using the installer If you clear the log file Could you post everything form start to error? Also, when I have the time I'll post a step by step I use to install tomcat under windows HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat 6 service on local computer c ould not start (1067 error)
In response to you questions: javac is at C:\Program Files\Java\jdk1.6.0_14\bin I removed C:\Program Files\Java\jdk1.6.0_14\bin; from the PATH in windows: no difference when starting service I have no JAVA_HOME in environment vars... Should it be there or somewhere else? revert the changes: I removed the PATH entry. Now I also uninstalled JAva SE Development Kit 6 update 14 (Java 6 Update 14 is still there) I've never seen trouble like this on other systems (it's my first experience with tomcat) version: I installed apache-tomcat-6.0.20 (the windows (exe) installer) at C:\Program Files\Apache Software Foundation\Tomcat 6.0 No I reboot, and try Tomcat Again. The log: [2009-06-30 12:35:15] [info] Procrun (2.0.4.0) started [2009-06-30 12:35:15] [info] Running Service... [2009-06-30 12:35:15] [info] Starting service... [2009-06-30 12:35:17] [info] Error occurred during initialization of VM [2009-06-30 12:35:17] [info] java/lang/NoClassDefFoundError [2009-06-30 12:35:17] [info] : java/lang/Object [2009-06-30 12:54:23] [info] Procrun (2.0.4.0) started [2009-06-30 12:54:23] [info] Running Service... [2009-06-30 12:54:23] [info] Starting service... [2009-06-30 12:54:23] [info] Error occurred during initialization of VM [2009-06-30 12:54:23] [info] java/lang/NoClassDefFoundError [2009-06-30 12:54:23] [info] : java/lang/Object (it started automatically during system start up, and then I tried it manually again!) (this try was without jdk 1.6 and withouth the path variable) So, what about JAVA_HOME and do you think you can solve this? In the mean time I try to un-install tomcat and reinstall it (just with the exe, because this worked before!) Hannes From: serge.fonvi...@gmail.com Date: Tue, 30 Jun 2009 12:09:51 +0200 Subject: Re: tomcat 6 service on local computer could not start (1067 error) To: users@tomcat.apache.org Could not start the Apache Tomcat 6 service on Local Computer. Error 1067: The process terminated unexpectedly. Just a few What is your exact location of the JDK and is it different if you do not specify it in the path. what is your JAVA_HOME set to If you revert the changes, does the problem go away Have you seen this behaviour on other systems What tomcat version are you using Where did you install tomcat Did you try a manual installation (zip) instead of using the installer If you clear the log file Could you post everything form start to error? Also, when I have the time I'll post a step by step I use to install tomcat under windows HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Nieuws, entertainment en de laatste roddels. Je vind het op MSN.nl! http://nl.msn.com/
RE: tomcat 6 service on local computer could not start ( 1067 error)
From: Hannes Smit [mailto:hsmit...@hotmail.com] Subject: RE: tomcat 6 service on local computer could not start (1067 error) I have no JAVA_HOME in environment vars... Should it be there or somewhere else? No environment variables are used by the service, so you don't need it. No I reboot, and try Tomcat Again. The log: [2009-06-30 12:35:17] [info] Error occurred during initialization of VM This would indicate the JVM isn't where the service wrapper thinks it is. Run the tomcat6w.exe program, go to the Java tab, clear the Use default box if it's set, and enter the correct path to jvm.dll in the Java Virtual Machine line; for your installation, it should be: C:\Program Files\Java\jdk1.6.0_14\bin\client\jvm.dll Reinstalling Tomcat will probably fix it as well. The problem was created when you changed JVMs out from under Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat 6 service on local computer c ould not start (1067 error)
Thanks Chuck, Serge I installed jdk 5, jre 5, jdk 6 and jre 6 and apache tomcat again Then I added the 1.6 jdk to the PATH of windows I modified in tomcat6w the path to C:\Program Files\Java\jdk1.6.0_14\jre\bin\client\jvm.dll (don't know why jre is there.. but it works). Now CMD: 'java' works (it gave the same error as the logs gave about VM) and 'javac' works since I put this path in PATH at the beginning instead of the end! (probably something goes wrong in this PATH reading... It seems that my TomCat is working Lets build my first Web service! Thanks to you both From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 07:08:14 -0500 Subject: RE: tomcat 6 service on local computer could not start (1067 error) From: Hannes Smit [mailto:hsmit...@hotmail.com] Subject: RE: tomcat 6 service on local computer could not start (1067 error) I have no JAVA_HOME in environment vars... Should it be there or somewhere else? No environment variables are used by the service, so you don't need it. No I reboot, and try Tomcat Again. The log: [2009-06-30 12:35:17] [info] Error occurred during initialization of VM This would indicate the JVM isn't where the service wrapper thinks it is. Run the tomcat6w.exe program, go to the Java tab, clear the Use default box if it's set, and enter the correct path to jvm.dll in the Java Virtual Machine line; for your installation, it should be: C:\Program Files\Java\jdk1.6.0_14\bin\client\jvm.dll Reinstalling Tomcat will probably fix it as well. The problem was created when you changed JVMs out from under Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Gratis emoticons voor in je Messenger! http://www.msnmessengerexperience.nl/chuck/
Re: How do I support a login form embedded in templates
Chris, Thanks, yes, a drive-by login is what I am after. I am bummed that Tomcat does not support this - it seems the common setup on most sites I visit on the Net. (I suppose it is more accurate to that say I am bummed that the J2EE standard does not define this behavior as Tomcat is only implementing those rules.) I agree with your view of isUserInRole() - but this is a large application which I am loathe to change everything. I will check out the packages you mention or role my own security using a filter or similar. Thanks again for the response! Steve B. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, On 6/29/2009 1:58 PM, Steve B. wrote: I understand that Tomcat's FORM authorization setup expects me to secure URL's and then let Tomcat invoke the login form before proceeding to these URL's when requested. However, I have a site for which we are creating a new layout which includes a small login form in the left column. Throughout the site we use roles defined in the web.xml (checked using isUserInRole() ). I see many sites use this layout-embedded login form, so I expect there is some way to set this up in Tomcat. Can someone point me at some info? I am using Struts in case that matters. So, you want to be able to invoke j_security_check without first having requested a protected resource, right? I call this a drive-by login, and, unfortunately, Tomcat does not support this directly. I switched to use securityfilter (http://securityfilter.sourceforge.net) primarily for this reason. Alternatives include using ACEGI (or Spring Security these days) (I think... Ihaven't used it so I don't know if drive-by logins are supported) or writing your own authentication and authorization mechanism. You could even patch Tomcat directly to allow this kind of login, but you run the risk of tying yourself to a particular version 9or even patch level) of Tomcat. That's why I recommend using something like securityfilter. I see many sites use this concept of putting the login form in the template - does this setup require me to abandon Tomcat's authentication/authorization mechanisms? My site has many pages and features which all use the isUserInRole() - I dread having to recode the whole site just for a simple login form. FWIW, I find using isUserInRole to be tedious and possibly insecure (that is, the page developer has to make these kinds of decisions, instead of an application designer at a higher-level). Do you really need to have role checking in your JSPs? Typically, by the time the view is being rendered, permissions are somewhat irrelevant. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpJGpIACgkQ9CaO5/Lv0PCv2QCgsFGy2sc7hIFK3R6dkub2MJIQ qeAAn1TScfQZGla8LkTGP5lzdqJqdcFM =GOhP -END PGP SIGNATURE- - 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 do I support a login form embedded in templates
Hi, Steve and Chris. Steve, can you use AJAX to request a protected resource and to provide username/password to your real login page (configured at web.xml) or directly to j_security_check ? I don't know if this will work (and if this is what you have in mind), but: 1. Design your unprotected pages at your will (including a small login box); 2. When user fills the form in your small login box, - Send a JS XmlHttpRequest (AJAX) to a protected resource (for instance protected_resource.jsp); - Send a JS XmlHttoRequest to your real login page (login.jsp) or to j_security_check passing j_username and j_password extracted from your small login page (you can detect if login has failed or not using the response of XmlHttpRequest) ; - If is all right, reload the page or load any other resource that you want. Will it work ? On Tue, 2009-06-30 at 08:41 -0400, Steve B. wrote: Chris, Thanks, yes, a drive-by login is what I am after. I am bummed that Tomcat does not support this - it seems the common setup on most sites I visit on the Net. (I suppose it is more accurate to that say I am bummed that the J2EE standard does not define this behavior as Tomcat is only implementing those rules.) I agree with your view of isUserInRole() - but this is a large application which I am loathe to change everything. I will check out the packages you mention or role my own security using a filter or similar. Thanks again for the response! Steve B. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, On 6/29/2009 1:58 PM, Steve B. wrote: I understand that Tomcat's FORM authorization setup expects me to secure URL's and then let Tomcat invoke the login form before proceeding to these URL's when requested. However, I have a site for which we are creating a new layout which includes a small login form in the left column. Throughout the site we use roles defined in the web.xml (checked using isUserInRole() ). I see many sites use this layout-embedded login form, so I expect there is some way to set this up in Tomcat. Can someone point me at some info? I am using Struts in case that matters. So, you want to be able to invoke j_security_check without first having requested a protected resource, right? I call this a drive-by login, and, unfortunately, Tomcat does not support this directly. I switched to use securityfilter (http://securityfilter.sourceforge.net) primarily for this reason. Alternatives include using ACEGI (or Spring Security these days) (I think... Ihaven't used it so I don't know if drive-by logins are supported) or writing your own authentication and authorization mechanism. You could even patch Tomcat directly to allow this kind of login, but you run the risk of tying yourself to a particular version 9or even patch level) of Tomcat. That's why I recommend using something like securityfilter. I see many sites use this concept of putting the login form in the template - does this setup require me to abandon Tomcat's authentication/authorization mechanisms? My site has many pages and features which all use the isUserInRole() - I dread having to recode the whole site just for a simple login form. FWIW, I find using isUserInRole to be tedious and possibly insecure (that is, the page developer has to make these kinds of decisions, instead of an application designer at a higher-level). Do you really need to have role checking in your JSPs? Typically, by the time the view is being rendered, permissions are somewhat irrelevant. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpJGpIACgkQ9CaO5/Lv0PCv2QCgsFGy2sc7hIFK3R6dkub2MJIQ qeAAn1TScfQZGla8LkTGP5lzdqJqdcFM =GOhP -END PGP SIGNATURE- - 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 -- If there must be trouble, let it be in my day, that my child may have peace. Thomas Paine - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat 6 service on local computer could not start ( 1067 error)
From: Hannes Smit [mailto:hsmit...@hotmail.com] Subject: RE: tomcat 6 service on local computer could not start (1067 error) I installed jdk 5, jre 5, jdk 6 and jre 6 Overkill? I modified in tomcat6w the path to C:\Program Files\Java\jdk1.6.0_14\jre\bin\client\jvm.dll (don't know why jre is there.. but it works). Within each JDK is a so-called private JRE; you can use that or the public JRE that you also installed. since I put this path in PATH at the beginning instead of the end! If you poke around in C:\Windows\system32 you'll likely find a java.exe and possibly some other Java-related launchers. I think these are installed when you put in a public JRE, but they may well be inappropriate for the levels you're using. Putting the JDK's bin directory first insures that will be searched before system32. - 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: How do I support a login form embedded in templates
Daniel Henrique Alves Lima wrote: Hi, Steve and Chris. Steve, can you use AJAX to request a protected resource and to provide username/password to your real login page (configured at web.xml) or directly to j_security_check ? I don't know if this will work (and if this is what you have in mind), but: 1. Design your unprotected pages at your will (including a small login box); 2. When user fills the form in your small login box, - Send a JS XmlHttpRequest (AJAX) to a protected resource (for instance protected_resource.jsp); It seems to me that you can skip the above step, no ? And do the following one immediately. - Send a JS XmlHttoRequest to your real login page (login.jsp) or to j_security_check passing j_username and j_password as parameters. extracted from your small login page (you can detect if login has failed or not using the response of XmlHttpRequest) ; - If is all right, reload the page or load any other resource that you want. I think the problem is here (but probably solvable) : In return to a successful login by the XmlHttpRequest, the server sends back a page, along with a set-cookie header, or with embedded ;jsessionid=.. parameters. This response page is received by the XmlHttpRequest handler. This does not automatically (I think) mean that the browser (as a whole) knows about it, nor that any next outgoing request is going to magically include the jsessionid. I believe there is more work to do here.. ;-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat hang when start with service tomcat start
dear all i have a very weird problem with starting tomcat and would be most grateful if any one can give me some clue. OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8) java: jdk1.6.0_14 tomcat:apache-tomcat-6.0.20 if i try to start tomcat using service tomcat start it hangs at INFO: Initializing Spring root WebApplicationContext or reboot also hangs here BUT, if i run the following commands, it starts up fine: /etc/init.d/tomcat start /etc/rc5.d/S80tomcat start $CATALINA_HOME/bin/startup.sh thanks for any suggestions regards zcw _ With Windows Live, you can organise, edit, and share your photos. http://clk.atdmt.com/UKM/go/134665338/direct/01/
Re: tomcat hang when start with service tomcat start
zhicheng wang wrote: ... i have a very weird problem with starting tomcat I think it is not so weird.. OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8) java: jdk1.6.0_14 tomcat:apache-tomcat-6.0.20 if i try to start tomcat using service tomcat start it hangs Where did you get this Tomcat ? is it the RedHat package, or a real Tomcat that you downloaded from tomcat.apache.org and installed yourself ? If it is a real Tomcat (as Chuck would say), then probably your problems come from mixing up a RedHat startup script, with a non-RedHat Tomcat package. The RedHat startup command service probably makes a number of assumptions about where files are, how to set up the environment, etc.., which your real Tomcat does not like. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[OT] Running multiple RMI Services
Hi, I understand that its utterly off-topic, but i just can't find anything on the topic, is anybody using rmi anyway? Here's the problem, I have two server machines A and B. On each machine some RMIServices are running. Lets say that A1 and A2 are running on A and B1 and B2 on B. Now A1 and A2 may register themself on A and B1 and B2 on B. RMIRegistry will not allow B1 and B2 register on A or A1/A2 on B. Now the question, how a client running on C is supposed to know where to lookup for an instance of A1 and for an instance of B1? What I'm really looking for is a very simple thing called NameService which is provided with each CORBA implementation. Or at least a method to dump an rmi reference to a string (something like the IOR, there must be one in RMI too, I see it if I call remote.toString() :). If I could dump it out, I would easily write a naming service myself. So is anyone here using RMI on more than one machine? thanks in advance! Leon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How do I support a login form embedded in templates
On Tue, 2009-06-30 at 16:32 +0200, André Warnier wrote: Daniel Henrique Alves Lima wrote: 2. When user fills the form in your small login box, - Send a JS XmlHttpRequest (AJAX) to a protected resource (for instance protected_resource.jsp); It seems to me that you can skip the above step, no ? And do the following one immediately. I don't know if Tomcat likes a directly call to login page/j_security_check (i think i've just had troubles using this approach). I've did a similar thing to force an applet to authenticate the user using Tomcat's declarative security in my webapp a long time ago. I think the problem is here (but probably solvable) : In return to a successful login by the XmlHttpRequest, the server sends back a page, along with a set-cookie header, or with embedded ;jsessionid=.. parameters. I really don't know what is the exact moment when jsessionid is created. I think that set-cookie will be handled by the browser as a whole (just testing to be sure), but ';jsessionid=' could be a problem. In previous applet example, i've used javascript (called from the applet) to ask the value of JSESSIONID cookie, after a successfully authentication. This response page is received by the XmlHttpRequest handler. This does not automatically (I think) mean that the browser (as a whole) knows about it, nor that any next outgoing request is going to magically include the jsessionid. If you create an unauthenticated session before, will Tomcat reuse sessionid after authentication ? If it does, you just need to do a request.getSession(true) in the first (unprotected) resource of your webapp. -- If there must be trouble, let it be in my day, that my child may have peace. Thomas Paine - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
hi thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years. the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext regards zcw Date: Tue, 30 Jun 2009 16:51:55 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: tomcat hang when start with service tomcat start zhicheng wang wrote: ... i have a very weird problem with starting tomcat I think it is not so weird.. OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8) java: jdk1.6.0_14 tomcat:apache-tomcat-6.0.20 if i try to start tomcat using service tomcat start it hangs Where did you get this Tomcat ? is it the RedHat package, or a real Tomcat that you downloaded from tomcat.apache.org and installed yourself ? If it is a real Tomcat (as Chuck would say), then probably your problems come from mixing up a RedHat startup script, with a non-RedHat Tomcat package. The RedHat startup command service probably makes a number of assumptions about where files are, how to set up the environment, etc.., which your real Tomcat does not like. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ MSN straight to your mobile - news, entertainment, videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/
Re: tomcat hang when start with service tomcat start
zhicheng wang wrote: hi thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years. the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext Ha, that may be another matter altogether. I have an old system like that, with an old CPU and not too much RAM, and this one webapp which takes 15 minutes to initialize whenever I restart Tomcat. During that time, Tomcat is using 99% of the system's CPU time. Are you sure that this is not simply the case here ? You could check with top what really happens. You could also make this webapp into a non-ROOT webapp, and not start it right away. I believe there is a load-on-startup parameter for that in the web.xml of the application, which you can set to 0. Then the app will only initialise when you first call it. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext What does a thread dump show? - 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: tomcat hang when start with service tomcat start
hi but we can start tomcat with other methods such as /etc/init.d/tomcat start /etc/rc5.d/S80tomcat start $CATALINA_HOME/bin/startup.sh the above methods all work fine. and those are called by /sbin/service. Date: Tue, 30 Jun 2009 17:26:14 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: tomcat hang when start with service tomcat start zhicheng wang wrote: hi thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years. the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext Ha, that may be another matter altogether. I have an old system like that, with an old CPU and not too much RAM, and this one webapp which takes 15 minutes to initialize whenever I restart Tomcat. During that time, Tomcat is using 99% of the system's CPU time. Are you sure that this is not simply the case here ? You could check with top what really happens. You could also make this webapp into a non-ROOT webapp, and not start it right away. I believe there is a load-on-startup parameter for that in the web.xml of the application, which you can set to 0. Then the app will only initialise when you first call it. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ MSN straight to your mobile - news, entertainment, videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/
RE: tomcat hang when start with service tomcat start
hi do you mean kill -3 pid it printed nothing (while tomcat was hanging) From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 10:29:57 -0500 Subject: RE: tomcat hang when start with service tomcat start From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext What does a thread dump show? - 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 _ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/
RE: tomcat hang when start with service tomcat start
hi sorry for the previous email. found the dump: 2009-06-30 16:50:25 Full thread dump Java HotSpot(TM) Server VM (14.0-b16 mixed mode): MySQL Statement Cancellation Timer daemon prio=10 tid=0x08bc5400 nid=0x1ff4 in Object.wait() [0x8edfe000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x95877f50 (a java.util.TaskQueue) at java.lang.Object.wait(Object.java:485) at java.util.TimerThread.mainLoop(Timer.java:483) - locked 0x95877f50 (a java.util.TaskQueue) at java.util.TimerThread.run(Timer.java:462) Low Memory Detector daemon prio=10 tid=0x8fdad800 nid=0x1b80 runnable [0x] java.lang.Thread.State: RUNNABLE CompilerThread1 daemon prio=10 tid=0x8fdab400 nid=0x1b7f waiting on condition [0x] java.lang.Thread.State: RUNNABLE CompilerThread0 daemon prio=10 tid=0x8fda9c00 nid=0x1b7e waiting on condition [0x] java.lang.Thread.State: RUNNABLE Signal Dispatcher daemon prio=10 tid=0x8fda8400 nid=0x1b7d waiting on condition [0x] java.lang.Thread.State: RUNNABLE Finalizer daemon prio=10 tid=0x8fd98c00 nid=0x1b6a in Object.wait() [0x8fa63000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x944dcb30 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) - locked 0x944dcb30 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) Reference Handler daemon prio=10 tid=0x8fd97400 nid=0x1b69 in Object.wait() [0x8fab4000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x94426190 (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:485) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked 0x94426190 (a java.lang.ref.Reference$Lock) main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at
RE: tomcat hang when start with service tomcat start
Send reply to: Tomcat Users List users@tomcat.apache.org From: zhicheng wang zcwli...@hotmail.co.uk To: users@tomcat.apache.org Subject:RE: tomcat hang when start with service tomcat start Date sent: Tue, 30 Jun 2009 16:53:08 +0100 hi do you mean kill -3 pid it printed nothing (while tomcat was hanging) Look in the catalina.out logfile. From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 10:29:57 -0500 Subject: RE: tomcat hang when start with service tomcat start From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext What does a thread dump show? - 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 _ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 6.0.18 Virtual Hosting and Log4J
Hello all, I have virtual hosting enabled in tomcat 6.0.18. But I can not forward logs into proper log files. I wants to have two log files, one for tomcat and one for virtual host. Following is my configuration: Server.xml -- Host name=a.localhost appBase=/full/path/to/appbase unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=a override=true reloadable=true crossContext=true allowLinking=true / Valve className=org.apache.catalina.valves.FastCommonAccessLogValve directory=logs prefix=a_access_log. suffix=.txt pattern=common resolveHosts=false / /Host Log4j.properties (/tomcat/lib/log4j.properties) - log4j.rootLogger=ERROR, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=1MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n # Logging for sbus log4j.appender.A=org.apache.log4j.RollingFileAppender log4j.appender.A.File=${catalina.home}/logs/a.log log4j.appender.A.MaxFileSize=1MB log4j.appender.A.MaxBackupIndex=1 log4j.appender.A.layout=org.apache.log4j.PatternLayout log4j.appender.A.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INFO, R log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=false log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[a.localhost]=DEBUG, A log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[a.localhost]=false The problem: --- All 404 errors and other application errors from http://a.localhost goes to tomcat.log instead of a.log. a.log however does have messages when you start tomcat. Am I missing something? Thanks. Regards, Dhaval
Re: jar loading in folder web-inf/lib/folder/*.jar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karan, On 6/30/2009 3:12 AM, k...@dossier.no wrote: Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss 5.0.1GA this works fine but The tomcat class loader cant load thease files. Tomcat is following the servlet specification, which does not have any provisions for subdirectories within WEB-INF/lib. JBoss is operating outside the servlet specification in order to support this. Thease jar files (WEB-INF/lib/a_foolder/*.jar) is referenced from the main.jar file (WEB-INF/lib/main.jar) manifest: WEB-INF/lib/main.jar/META-INF/MANIFEST.MF: /WEB-INF/lib/a_folder/cxf-rt-frontend-jaxws-2.2.jar /a_folder/geronimo-ws-metadata_2.0_spec-1.1.2.jar A JAR file's manifest isn't used for any class loading operations, unless the JAR file is being run by the JVM such as java -jar [jarfile] and the MANIFEST.MF file contains a Class-Path entry. The contents of your MANIFEST.MF file are not relevant. I have also tried with prefix without any success, WEB-INF/lib/a_folder/cxf-rt-frontend-jaxws-2.2.jar WEB-FIN/lib/a_folder/geronimo-ws-metadata_2.0_spec-1.1.2.jar Dosnt tomcat support loading of jar libs within a folder in WEB-INF/lib ? No. If you must have subdirectories within your WEB-INF/lib, you can either attempt to configure Tomcat's class loaders to do that (I'm not sure how that would be done) or you can write your own ClassLoader and use /that/ for your webapp. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpKNlgACgkQ9CaO5/Lv0PB6jwCgqPdUOpEVa5JYKkmD+SyrxkY+ 7IUAniOVjinJSx7Nd43VpMbjE4F6lOv4 =loFf -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Service available for HTTPS only? (no HTTP)
Hello! Situation: At the moment we are working on following environment and not able to make any updates with the next time: Win2000 Workstation Tomcat 5.0.28 Axis 1.3 JDK 1.5_11 Until today we had only one HTTP connector configured in Tomcat to provide some (Axis) SOAP Services. All of them work fine! Target Solution We need to use HTTPS (SSL) for one of these services instead of HTTP. We configured a second connector in the Tomcat und followed this instruction: http://www.torsten-horn.de/techdocs/ssl.htm The service XY is now available via HTTPS and it works fine! Problem: The service XY can still be called via HTTP (without SSL). == Does anyone knows a trick to avoid calls via HTTP to this service? We can not remove the HTTP connector because some other services on this server have to be available with HTTP. Many thanks in advance, Stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Change Tomcat listening interface in Windows
I installed Tomcat 6 on Windows XP from the .exe installer, and I need to configure it to only listen on the localhost IP. Is this a change I can make in one of the .xml files? -- View this message in context: http://www.nabble.com/Change-Tomcat-listening-interface-in-Windows-tp24275290p24275290.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
Clustering questions
I'm investigating to set up my first Tomcat cluster and have some questions. 1. Using a SimpleTcpCluster, it looks like session information is replicated to all members of the cluster. If all members of the cluster go down at once, is the session information lost? Can a simple cluster be combined with a Persistent Manager to save session information if all members of the cluster go down at once? 2. If I set up a SimpleTcpCluster, does that eliminate the need for the load balancer to use sticky sessions? 3. Is it possible to use a PersisentManager and a shared database to replicate sessions through the database, eliminating the need for the clustering stuff? I've read some posts that indicate that the PersistentManager writes sessions to the database at its discretion, not immediately. 4. Has anyone used nginx as a load balancer for tomcat? Any feedback on the wisdom of that? Mitch - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jar loading in folder web-inf/lib/folder/*.jar
On Tue, 2009-06-30 at 11:59 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karan, On 6/30/2009 3:12 AM, k...@dossier.no wrote: Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss 5.0.1GA this works fine but The tomcat class loader cant load thease files. Tomcat is following the servlet specification, which does not have any provisions for subdirectories within WEB-INF/lib. JBoss is operating outside the servlet specification in order to support this. Thease jar files (WEB-INF/lib/a_foolder/*.jar) is referenced from the main.jar file (WEB-INF/lib/main.jar) manifest: WEB-INF/lib/main.jar/META-INF/MANIFEST.MF: /WEB-INF/lib/a_folder/cxf-rt-frontend-jaxws-2.2.jar /a_folder/geronimo-ws-metadata_2.0_spec-1.1.2.jar A JAR file's manifest isn't used for any class loading operations, unless the JAR file is being run by the JVM such as java -jar [jarfile] and the MANIFEST.MF file contains a Class-Path entry. The contents of your MANIFEST.MF file are not relevant. I remember Weblogic allowed this CLASSPATH manifest nightmare, but i don't recommend it because: 1. Even when using WL, only some classloaders (EAR classloader ?) seems to work with this (WAR classloader do not); 2. If you write the wrong path, there will be no warning/error message and you just discover the problem when you (or your container/app server) try to load some classes/resources from that jar; 3. I never knew relative to what this entries in manifest file are. I think that the path was relative to EAR structure, but (if i'm not wrong :-)) CLASSPATH manifest entries are relative to the path of the jar that include them. If you declare (in the manifest file of dir_one/a.jar) 'dir_two/b.jar', the classloader will try to load dir_two/b.jar FROM dir_one. I think that it will try to load dir_one/dir_two/b.jar because a.jar is IN dir_one. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Change Tomcat listening interface in Windows
From: smooochy [mailto:dps...@shsu.edu] Subject: Change Tomcat listening interface in Windows Is this a change I can make in one of the .xml files? Yes. Did you try reading the doc? http://tomcat.apache.org/tomcat-6.0-doc/config/index.html Set the address attribute in whatever Connector elements you're using. - 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: jar loading in folder web-inf/lib/folder/*.jar
Karan, if you really want/need this, try to: A) build a.jar an place a start up servlet into it (or any class loaded/executed when you application starts). Change Classpath entry (in the manifest of a.jar) to include mylib/b.jar. Put a.jar under WEB/lib; B) build b.jar and put it under WEB/lib/mydir/b.jar. Be sure that Classpath entry (of a.jar's manifest) includes mydir/b.jar; Start your app. On Tue, 2009-06-30 at 14:13 -0300, Daniel Henrique Alves Lima wrote: On Tue, 2009-06-30 at 11:59 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karan, On 6/30/2009 3:12 AM, k...@dossier.no wrote: Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss 5.0.1GA this works fine but The tomcat class loader cant load thease files. Tomcat is following the servlet specification, which does not have any provisions for subdirectories within WEB-INF/lib. JBoss is operating outside the servlet specification in order to support this. Thease jar files (WEB-INF/lib/a_foolder/*.jar) is referenced from the main.jar file (WEB-INF/lib/main.jar) manifest: WEB-INF/lib/main.jar/META-INF/MANIFEST.MF: /WEB-INF/lib/a_folder/cxf-rt-frontend-jaxws-2.2.jar /a_folder/geronimo-ws-metadata_2.0_spec-1.1.2.jar A JAR file's manifest isn't used for any class loading operations, unless the JAR file is being run by the JVM such as java -jar [jarfile] and the MANIFEST.MF file contains a Class-Path entry. The contents of your MANIFEST.MF file are not relevant. I remember Weblogic allowed this CLASSPATH manifest nightmare, but i don't recommend it because: 1. Even when using WL, only some classloaders (EAR classloader ?) seems to work with this (WAR classloader do not); 2. If you write the wrong path, there will be no warning/error message and you just discover the problem when you (or your container/app server) try to load some classes/resources from that jar; 3. I never knew relative to what this entries in manifest file are. I think that the path was relative to EAR structure, but (if i'm not wrong :-)) CLASSPATH manifest entries are relative to the path of the jar that include them. If you declare (in the manifest file of dir_one/a.jar) 'dir_two/b.jar', the classloader will try to load dir_two/b.jar FROM dir_one. I think that it will try to load dir_one/dir_two/b.jar because a.jar is IN dir_one. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Service available for HTTPS only? (no HTTP)
From: Stefan Rainer [mailto:s.rai...@teamaxess.com] Subject: Service available for HTTPS only? (no HTTP) The service XY can still be called via HTTP (without SSL). == Does anyone knows a trick to avoid calls via HTTP to this service? Read the servlet spec, the contents of which are intentionally *not* duplicated in the Tomcat docs. Specifically, set a transport-guarantee of CONFIDENTIAL in your webapp's WEB-INF/web.xml file. See the servlet spec for exact details. - 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: tomcat hang when start with service tomcat start
From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) many recursive calls snipped That's an awful lot of nested calls. I wonder if your startup script has created an infinite symlink loop? - 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: Change Tomcat listening interface in Windows
Honestly I have never worked with Apache before, and I was just asked to package it for deploying it across our campus. So I have looked at the documentation, but it's all Greek to me. But I will look into this and figure it out. Thanks a lot for pointing me in the right direction. -- View this message in context: http://www.nabble.com/Change-Tomcat-listening-interface-in-Windows-tp24275290p24276294.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
RE: Change Tomcat listening interface in Windows
From: smooochy [mailto:dps...@shsu.edu] Subject: Re: Change Tomcat listening interface in Windows So I have looked at the documentation, but it's all Greek to me. There are several books on Tomcat, if you can't follow the docs; O'Reilly may be the least objectionable. You will likely want to become familiar with the servlet spec as well: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html If you haven't found it yet, conf/server.xml has most of the Tomcat-specific config; conf/web.xml contains the servlet spec-defined config values for all webapps. - 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: Clustering questions
Mitch Claborn wrote: I'm investigating to set up my first Tomcat cluster and have some questions. 1. Using a SimpleTcpCluster, it looks like session information is replicated to all members of the cluster. If all members of the cluster go down at once, is the session information lost? Can a simple cluster be combined with a Persistent Manager to save session information if all members of the cluster go down at once? Tomcat 6 has two session managers DeltaManager - all to all replication BackupManager - primary/backup strategy All members going down at once, means you have problem beyond replication, and replication or storing session data will not solve anything for you :) 2. If I set up a SimpleTcpCluster, does that eliminate the need for the load balancer to use sticky sessions? yes, but it is still recommended to use sticky sessions. Many reasons why. 3. Is it possible to use a PersisentManager and a shared database to replicate sessions through the database, eliminating the need for the clustering stuff? I've read some posts that indicate that the PersistentManager writes sessions to the database at its discretion, not immediately. It happens periodically on a background thread. 4. Has anyone used nginx as a load balancer for tomcat? Any feedback on the wisdom of that? You have several options, buying an appliance or using software. If you want software, you can use haproxy, or the apache webserver (httpd) with mod_proxy_balancer or mod_jk Filip Mitch - 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: tomcat hang when start with service tomcat start
hi Chuck many thanks for the reply here is the /etc/init.d/tomcat, it only hangs when run by /sbin/service tomcat start #!/bin/bash # # Startup script for Tomcat, the Apache Servlet Engine # #zcw modified to report status so that it and can be used by service check script 20040114 #zcw modifed to accommdate different versions of tomcat # # chkconfig: 345 80 20 # description: Tomcat is the Apache Servlet Engine RI for Servlet # processname: tomcat # pidfile: /var/run/tomcat.pid # config: /etc/tomcat/conf # # Gomez Henri hgo...@users.sourceforge.net # Keith Irwin keith_ir...@non.hp.com # Nicolas Mailhot nicolas.mail...@one2team.com # # Source function library. . /etc/rc.d/init.d/functions JAVA_HOME=/opt/java/jdk export JAVA_HOME RETVAL=0 CATALINA_HOME=/var/tomcat TOMCAT_PROG=Tomcat # See how we were called. start() { # Start Tomcat in debug mode SHUTDOWN_PORT=`netstat -vatn|grep LISTEN|grep 8005|wc -l` if [ $SHUTDOWN_PORT -ne 0 ]; then echo Tomcat already started else echo -n Starting $TOMCAT_PROG ... #set ${CATALINA_HOME}/bin/startup.sh fi } stop() { SHUTDOWN_PORT=`netstat -vatn|grep LISTEN|grep 8005|wc -l` if [ $SHUTDOWN_PORT -eq 0 ]; then echo Tomcat already stopped else echo -n Stopping $TOMCAT_PROG: ${CATALINA_HOME}/bin/shutdown.sh fi } status() { status ${TOMCAT_PROG} } # See how we were called. case $1 in start) start ;; stop) stop ;; restart) stop sleep 2 start ;; status) tompid=`/bin/ps -ef | /bin/grep tomcat |/bin/grep -v check | /bin/grep -v grep | /bin/grep -v status | /bin/sed -e 's/^ *//' -e 's/ .*//'` if [ ${tompid} != ] then echo ${TOMCAT_PROG} pid ${tompid} is running ... else echo ${TOMCAT_PROG} is dead ... fi ;; *) echo Usage: $TOMCAT_PROG {start|stop|restart|status} exit 1 esac exit $RETVAL ZCW From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 12:12:39 -0500 Subject: RE: tomcat hang when start with service tomcat start From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) many recursive calls snipped That's an awful lot of nested calls. I wonder if your startup script has created an infinite symlink loop? - 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 _ MSN straight to your mobile - news, entertainment, videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/
Re: tomcat hang when start with service tomcat start
zhicheng wang wrote: hi IF but we can start tomcat with other methods such as $CATALINA_HOME/bin/startup.sh (which is the basic script that starts Tomcat) AND /etc/init.d/tomcat start (which basically calls $CATALINA_HOME/bin/startup.sh) AND /etc/rc5.d/S80tomcat start (which is simply a link to /etc/init.d/tomcat) AND NOT WITH /sbin/service THEN the problem must be in something that /sbin/service is doing. OR am I missing something ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: tomcat hang when start with service tomcat start the problem must be in something that /sbin/service is doing. Correct; the script that should be undergoing scrutiny is /sbin/service, but the OP seems to be avoiding that for some reason. - 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: Tomcat 6.0.18 Virtual Hosting and Log4J
Hi, Dhaval. Unless you have added log4j support, i think tomcat 6 installation use java4 log as default log engine. Could this be the problem ? Have you tried to change conf/logging.properties ? Another components (using commons logging for instance) can be using the log4j.properties in tomcat classpath. On Tue, 2009-06-30 at 08:59 -0700, Dhaval Patel wrote: Hello all, I have virtual hosting enabled in tomcat 6.0.18. But I can not forward logs into proper log files. I wants to have two log files, one for tomcat and one for virtual host. Following is my configuration: Server.xml -- Host name=a.localhost appBase=/full/path/to/appbase unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=a override=true reloadable=true crossContext=true allowLinking=true / Valve className=org.apache.catalina.valves.FastCommonAccessLogValve directory=logs prefix=a_access_log. suffix=.txt pattern=common resolveHosts=false / /Host Log4j.properties (/tomcat/lib/log4j.properties) - log4j.rootLogger=ERROR, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=1MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n # Logging for sbus log4j.appender.A=org.apache.log4j.RollingFileAppender log4j.appender.A.File=${catalina.home}/logs/a.log log4j.appender.A.MaxFileSize=1MB log4j.appender.A.MaxBackupIndex=1 log4j.appender.A.layout=org.apache.log4j.PatternLayout log4j.appender.A.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INFO, R log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=false log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[a.localhost]=DEBUG, A log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[a.localhost]=false The problem: --- All 404 errors and other application errors from http://a.localhost goes to tomcat.log instead of a.log. a.log however does have messages when you start tomcat. Am I missing something? Thanks. Regards, Dhaval -- If there must be trouble, let it be in my day, that my child may have peace. Thomas Paine - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0.18 Virtual Hosting and Log4J
In older tomcat versions, log4j was the default log engine. On Tue, 2009-06-30 at 17:38 -0300, Daniel Henrique Alves Lima wrote: Hi, Dhaval. Unless you have added log4j support, i think tomcat 6 installation use java4 log as default log engine. Could this be the problem ? Have you tried to change conf/logging.properties ? Another components (using commons logging for instance) can be using the log4j.properties in tomcat classpath. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat hang when start with service tomcat start
2009/6/30 zhicheng wang zcwli...@hotmail.co.uk: if i try to start tomcat using service tomcat start it hangs at INFO: Initializing Spring root WebApplicationContext or reboot also hangs here BUT, if i run the following commands, it starts up fine: /etc/init.d/tomcat start /etc/rc5.d/S80tomcat start $CATALINA_HOME/bin/startup.sh AFAIK, one of essentials about /sbin/service is that starts the script using empty environment. Maybe that causes the difference. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat hang when start with service tomcat start
are you using a mounted network drive? Filip Caldarale, Charles R wrote: From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) many recursive calls snipped That's an awful lot of nested calls. I wonder if your startup script has created an infinite symlink loop? - 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
DBCP and Firewall timeouts
Hello, We have a tomcat 5.5 server and a mysql 5.1 database sitting between a firewall. The firewall times out connections after 60 minutes. We tried setting the minEvictableIdleTimeMillis to be 30 minutes but we are still seeing these timeouts. Is there a recommended config of ensuring the connection pool connections either get cleanly terminated or are sanity checked for proper connectivity? We are using JRuby/Tomcat/Rails and are seeing a lot of timeouts after inactivity in the app. Thanks AD - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org