Re: tomcat crash on mac os X
Ben Souther wrote: In witch way I can be more precise? By posting your log files. The time of the crash comes from a custom log file from my application: 12 October 2004 17:09:38 (last log of my application, in a good situation this will be followed by other messages) Sever (manual) restart at: 12 October 2004 17:22:04 from catalina.out [a part of the file] === 12-ott-2004 11.31.06 org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /tomcat-docs 12-ott-2004 11.31.06 org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path 12-ott-2004 11.31.06 org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /manager 12-ott-2004 11.31.06 org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,host=localhost 12-ott-2004 11.31.06 org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger 12-ott-2004 11.31.06 org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 12-ott-2004 11.31.12 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 12-ott-2004 11.31.12 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1322 ms 12-ott-2004 11.31.12 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 12-ott-2004 11.31.12 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.25 12-ott-2004 11.31.12 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 12-ott-2004 11.31.13 argentaroggia.filtri.FConnessione init GRAVE: Creato nuovo gruppo di connessioni 12-ott-2004 11.31.17 org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 12-ott-2004 11.31.17 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.25/conf/Catalina/localhost/admin.xml 12-ott-2004 11.31.17 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 12-ott-2004 11.31.17 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 12-ott-2004 11.31.17 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true 12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.25/conf/Catalina/localhost/balancer.xml 12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.25/conf/Catalina/localhost/manager.xml 12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/local/jakarta-tomcat-5.0.25/webapps/jsp-examples 12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/jakarta-tomcat-5.0.25/webapps/ROOT 12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/jakarta-tomcat-5.0.25/webapps/servlets-examples 12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/local/jakarta-tomcat-5.0.25/webapps/tomcat-docs 12-ott-2004 11.31.20 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/local/jakarta-tomcat-5.0.25/webapps/webdav 12-ott-2004 11.31.21 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 12-ott-2004 11.31.21 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 12-ott-2004 11.31.21 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/33 config=/usr/local/tomcat/conf/jk2.properties 12-ott-2004 11.31.21 org.apache.catalina.startup.Catalina start INFO: Server startup in 8729 ms CFMessagePortCreateLocal failed (name = Processes-2.3328 error = 0) 12-ott-2004 17.22.03 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 12-ott-2004 17.22.03 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1309 ms 12-ott-2004 17.22.03 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 12-ott-2004 17.22.03 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.25 12-ott-2004 17.22.03
AW: How to redirect http to https automatically?
Hi Actually, I'm a big advocate against staying in HTTPS, because of the overhead. However, this is a problem with Tomcat, because in the 4.x and 5.x lines it was decided by someone that if a session started in HTTPS it is only valid in HTTPS (basically, the session cookie is turned into a secure cookie only). I do not understand this. I always thought cookies where only valid for ONE domain and ONE Protocol, so the following would be pairwise different and thus cannot share a cookie: http://www.domaina.com http://www.domainb.com http://www.domaina.com http://domainb.com http://www.domaina.com https://www.domaina.com Is my view wrong? Is there a way to reattach a session to a request, if the old sessionID is kown? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Problems with jakarta-tomcat-5.0.28 and Slackware 10.0
Hello list, I have a problem regarding tomcat-5.0.28 on my slackware 10.0 machine. I'm working on it now for more then 2 full day's and it is getting really fristrating. So any help would be welcome. Here is a stat of events: *Because the need arrose to support jsp pages i dessided to install tomcat on my server (running apache 2.0.50) *I downloaded the latest version of tomcat (5.0.28) and used this howto as guideline for the installation. (http://www.linux.com/howtos/Apache-Compile-HOWTO/tomcat.shtml) *After unpacking and installing tomcat in my /usr/local/ directory i tried to start it and check it is running (like said in the howto) *Startup seemed to work (no error output) yet i could not connect. *After a few look for what could be the cause of this i noticed the tomcat was not running. When looking for the cause of this I noticed it started up, to crach and exit just about e second later. *After googling some time i tried several options; *ulimit -s 2048 *export JIT_OPTIONS=-nojit *install latest J2RE all of them without succes. With the dowloads from java.sun i have even more problems. As it appears that those builds are broking for slackware. (Every program from the J2RE and J2SDK gives a segmetation Fault) I really don't know what could be the cause of this... Does anybody have any suggestions? Look below for some output Bart Seresia Waasland Service Netwerk [catalina.out] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# cat logs/catalina.out Oct 16, 2004 3:31:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 16, 2004 3:31:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1098 ms Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/root/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml [startup.sh] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/startup.sh Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /usr/lib/java [catalina.sh debug] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/catalina.sh debug Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /usr/lib/java Initializing jdb ... run run org.apache.catalina.startup.Bootstrap start Set uncaught java.lang.Throwable Set deferred uncaught java.lang.Throwable VM Started: The application has been disconnected
Re: Problems with jakarta-tomcat-5.0.28 and Slackware 10.0
Hello Bart, just to let you know it can be done - we have a slackware 10.0 box that currently has sun's SDK-java 1.4.2_05 and tomcat 5.0.28 installed, and working without problem. it was straight forward and easy to setup as per each's install instructions. no additional settings were required. if your java setup is not correct and functioning properly that would have to be resolved first. Kevin Bart Seresia wrote: Hello list, I have a problem regarding tomcat-5.0.28 on my slackware 10.0 machine. I'm working on it now for more then 2 full day's and it is getting really fristrating. So any help would be welcome. Here is a stat of events: *Because the need arrose to support jsp pages i dessided to install tomcat on my server (running apache 2.0.50) *I downloaded the latest version of tomcat (5.0.28) and used this howto as guideline for the installation. (http://www.linux.com/howtos/Apache-Compile-HOWTO/tomcat.shtml) *After unpacking and installing tomcat in my /usr/local/ directory i tried to start it and check it is running (like said in the howto) *Startup seemed to work (no error output) yet i could not connect. *After a few look for what could be the cause of this i noticed the tomcat was not running. When looking for the cause of this I noticed it started up, to crach and exit just about e second later. *After googling some time i tried several options; *ulimit -s 2048 *export JIT_OPTIONS=-nojit *install latest J2RE all of them without succes. With the dowloads from java.sun i have even more problems. As it appears that those builds are broking for slackware. (Every program from the J2RE and J2SDK gives a segmetation Fault) I really don't know what could be the cause of this... Does anybody have any suggestions? Look below for some output Bart Seresia Waasland Service Netwerk [catalina.out] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# cat logs/catalina.out Oct 16, 2004 3:31:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 16, 2004 3:31:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1098 ms Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 16, 2004 3:31:54 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Oct 16, 2004 3:31:55 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/root/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml [startup.sh] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/startup.sh Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /usr/lib/java [catalina.sh debug] [EMAIL PROTECTED]:~/jakarta-tomcat-5.0.28# ./bin/catalina.sh debug Using CATALINA_BASE: /root/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /root/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /root/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /usr/lib/java Initializing jdb ... run run org.apache.catalina.startup.Bootstrap start Set uncaught java.lang.Throwable Set deferred uncaught java.lang.Throwable VM Started: The application has been disconnected - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with jakarta-tomcat-5.0.28 and Slackware 10.0
On Sat, Oct 16, 2004 at 03:57:59PM +0200, Bart Seresia wrote: : I have a problem regarding tomcat-5.0.28 on my slackware 10.0 machine. So far, so good. : With the dowloads from java.sun i have even more problems. As it appears : that those builds are broking for slackware. (Every program from the : J2RE and J2SDK gives a segmetation Fault) This right here is the problem, or at least the first problem. Tomcat runs inside a Java VM, so if Java doesn't work, you can't expect much out of Tomcat. Find out why the Java SDK is crashing. In some cases, JVM crashes are related to OS patches (or lack thereof). Two more tips: 1/ In your last message, I got the impression Tomcat was running as root. Please review the archives to understand why this is not only unnecessary, but a potentially bad idea. 2/ Try to get Tomcat running on its own before you add Apache to the mix. It's easier to debug and understand Tomcat/J2EE that way. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Customizing Tomcat error page
Unfortunately, the exception-type does not catch return code. I already have one exception-typejava.lang.Exception/exception-type which is a good umbrella for all exception an alike. However, it does not catch 404, for example. Try this in your web.xml error-page error-code400/error-code location/400.jsp/location /error-page 401 and 403 are trickier, but this should solve most your your needs. Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Building Tomct 5.0.28 with JDK 1.5
I'm trying to compile Tomcat 5.0.28 from source using Sun's new JDK 1.5. I am using Ant 1.6.2 (which I built from source against the 1.5 JDK). I successfully get through grabbing all of the dependant libraries that I need. Once the build script gets to the build-main target, I get an error which states javac: target release 1.1 conflicts with default source release 1.5. Can Tomcat be built against the 1.5 JDK? Also, does this error indicate that Tomcat is being built using the 1.1 JDK target, thus skipping optimizations introduced in the 1.2 - 1.5 JDKs? Or, is this a library that was built using 1.1, and is conflicting with 1.5? Here's more of the ANT error output: build-main: [echo] - Java-utils - [echo] -- puretls.present = ${puretls.present} [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar [echo] -- commons-logging = true [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar [echo] -- modeler = true /usr/share/java/commons-modeler-1.1/commons-modeler.jar [echo] -- JDK14 = true [javac] Compiling 63 source files to /usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/classes [javac] javac: target release 1.1 conflicts with default source release 1.5 BUILD FAILED /usr/local/src/jakarta-tomcat-5.0.28-src/build.xml:50: The following error occurred while executing this line: /usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:445: The following error occurred while executing this line: /usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:170: The following error occurred while executing this line: /usr/local/src/jakarta-tomcat-5.0.28-src/jakarta-tomcat-connectors/util/build.xml:67: Compile failed; see the compiler error output for details. It says to check the copuiler error output for details - but I don't know where that is... Much thanks for looking at this and setting me in the right direction Joe Krause
Re: Error Building Tomct 5.0.28 with JDK 1.5
Hi Joe, I'm trying to compile Tomcat 5.0.28 from source using Sun's new JDK 1.5. I am using Ant 1.6.2 (which I built from source against the 1.5 JDK). I successfully get through grabbing all of the dependant libraries that I need. Once the build script gets to the build-main target, I get an error which states javac: target release 1.1 conflicts with default source release 1.5. Can Tomcat be built against the 1.5 JDK? Also, does this error indicate that Tomcat is being built using the 1.1 JDK target, thus skipping optimizations introduced in the 1.2 - 1.5 JDKs? Or, is this a library that was built using 1.1, and is conflicting with 1.5? I believe Tomcat 5.5 is built with 1.5. Don't know what happens to 5.0, though. Why not try 5.5? Here's more of the ANT error output: build-main: snip / [javac] javac: target release 1.1 conflicts with default source release 1.5 Check out the source and target attributes of the javac task. http://ant.apache.org/manual/CoreTasks/javac.html And of course, the javac document. http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Building Tomct 5.0.28 with JDK 1.5
Thanks Shinobu (especially for getting back so quickly) I'll try compiling Tomcat 5.5 instead. The only reason I didn't want to go straight to Tomcat 5.5 was to isolate changes. I'm currently running/compiling Tomcat 5.0.28 against the 1.4.2 JDK in our production environment. I am thinking of upgrading to 1.5 JDK (and eventaully Tomcat 5.5), but I didn't want to introduce too many changes at once. Joe From: Shinobu Kawai [mailto:[EMAIL PROTECTED] Sent: Sat 10/16/2004 6:42 PM To: Tomcat Users List Subject: [SPAM] - Re: Error Building Tomct 5.0.28 with JDK 1.5 - Found word(s) check out in the Text body. Hi Joe, I'm trying to compile Tomcat 5.0.28 from source using Sun's new JDK 1.5. I am using Ant 1.6.2 (which I built from source against the 1.5 JDK). I successfully get through grabbing all of the dependant libraries that I need. Once the build script gets to the build-main target, I get an error which states javac: target release 1.1 conflicts with default source release 1.5. Can Tomcat be built against the 1.5 JDK? Also, does this error indicate that Tomcat is being built using the 1.1 JDK target, thus skipping optimizations introduced in the 1.2 - 1.5 JDKs? Or, is this a library that was built using 1.1, and is conflicting with 1.5? I believe Tomcat 5.5 is built with 1.5. Don't know what happens to 5.0, though. Why not try 5.5? Here's more of the ANT error output: build-main: snip / [javac] javac: target release 1.1 conflicts with default source release 1.5 Check out the source and target attributes of the javac task. http://ant.apache.org/manual/CoreTasks/javac.html And of course, the javac document. http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]