tomcat start error
Hi, I've installed tomcat 3.3.1 and j2sdk1.4 on windows 98 machine. I have an application that includes following web.xml file. Tomcat is running, but before the running, some error lines display on DOS console, but tomcat is running correctly. This is the error lines; 2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: Element type session-timeout is not declared. 2002-09-10 09:30:37 - Ctx(/VT) : Line 4 /web-app/ 2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: Element type servlet is not declared. 2002-09-10 09:30:37 - Ctx(/VT) : Line 6 /web-app/ 2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: Element type servlet-name is not declared. 2002-09-10 09:30:37 - Http10Interceptor: Starting on 8080 2002-09-10 09:30:37 - Ajp12Interceptor: Starting on 8007 2002-09-10 09:30:37 - Ajp13Interceptor: Starting on 8009 EmbededTomcat: Startup time 600 This is my web.xml file; web-app display-nameDatabase App/display-name session-timeout30/session-timeout servlet servlet-nameVT/servlet-name servlet-classVTServlet/servlet-class /servlet servlet-mapping servlet-nameVT/servlet-name url-patternVTServlet/url-pattern /servlet-mapping /web-app What is the problem? How can I eliminate this error line?
Tomcat start error
I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is PATH=%PATH%;c:\jdk13\bin set JAVA_HOME=C:\jdk13 set TOMCAT_HOME=C:\tomcat When I run tomcat run, i just get an error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat If I run startup, it just say start a new window and the new window just a blinking and disappear, as follwing message displayed, Including all jars in C:\TOMCAT\lib in your CLASSPATH. Using CLASSPATH: C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\ WEBSER~1.JAR;C: \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 \lib\tools.jar; Starting Tomcat in new window Your help is greatly apreciated. Thanks, Peter
RE: Tomcat start error
Don't start Tomcat in a new window. In tomcat.bat, there's be a line like, start Tomcat java org.apache.tomcat.startup.Tomcat ... Strip everything before java. Then, when you run tomcat.bat, any errors will show up in your current window. -- Bill K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 8:03 AM To: [EMAIL PROTECTED] Subject: Tomcat start error I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is PATH=%PATH%;c:\jdk13\bin set JAVA_HOME=C:\jdk13 set TOMCAT_HOME=C:\tomcat When I run tomcat run, i just get an error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat If I run startup, it just say start a new window and the new window just a blinking and disappear, as follwing message displayed, Including all jars in C:\TOMCAT\lib in your CLASSPATH. Using CLASSPATH: C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\ WEBSER~1.JAR;C: \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 \lib\tools.jar; Starting Tomcat in new window Your help is greatly apreciated. Thanks, Peter
RE: Tomcat start error
if you edit the startup.bat file you'll find a line that starts with start this is what opens the new window. if you just remove this word, tomcat will start up in the window that the startup.bat runs in -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 May 2001 16:03 To: [EMAIL PROTECTED] Subject: Tomcat start error I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is PATH=%PATH%;c:\jdk13\bin set JAVA_HOME=C:\jdk13 set TOMCAT_HOME=C:\tomcat When I run tomcat run, i just get an error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat If I run startup, it just say start a new window and the new window just a blinking and disappear, as follwing message displayed, Including all jars in C:\TOMCAT\lib in your CLASSPATH. Using CLASSPATH: C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\ WEBSER~1.JAR;C: \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 \lib\tools.jar; Starting Tomcat in new window Your help is greatly apreciated. Thanks, Peter
RE: Tomcat start error
Try putting C:\jdk13\lib\tools.jar in your Classpath -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 11 May 2001 16:03 To: [EMAIL PROTECTED] Subject: Tomcat start error I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is PATH=%PATH%;c:\jdk13\bin set JAVA_HOME=C:\jdk13 set TOMCAT_HOME=C:\tomcat When I run tomcat run, i just get an error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat If I run startup, it just say start a new window and the new window just a blinking and disappear, as follwing message displayed, Including all jars in C:\TOMCAT\lib in your CLASSPATH. Using CLASSPATH: C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\ WEBSER~1.JAR;C: \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 \lib\tools.jar; Starting Tomcat in new window Your help is greatly apreciated. Thanks, Peter
Re: Tomcat start error
Make sure servlet.jar does not exist somewhere that would override the classpath like c:\jdk13\jre\lib\ext (I think this is the correct directory - just check it doesn't exist anywhere under c:\jdk13\jre). From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat start error Date: Fri, 11 May 2001 11:02:31 -0400 I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is PATH=%PATH%;c:\jdk13\bin set JAVA_HOME=C:\jdk13 set TOMCAT_HOME=C:\tomcat When I run tomcat run, i just get an error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat If I run startup, it just say start a new window and the new window just a blinking and disappear, as follwing message displayed, Including all jars in C:\TOMCAT\lib in your CLASSPATH. Using CLASSPATH: C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\ WEBSER~1.JAR;C: \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 \lib\tools.jar; Starting Tomcat in new window Your help is greatly apreciated. Thanks, Peter _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Tomcat start error
Just for completeness, to follow up my previous message - here's a link to my original message - http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg15227.html I think I was getting the same problem - the NoClassDefFoundError. Pain in the ass. Hope this helps. Tony From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat start error Date: Fri, 11 May 2001 11:02:31 -0400 I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is PATH=%PATH%;c:\jdk13\bin set JAVA_HOME=C:\jdk13 set TOMCAT_HOME=C:\tomcat When I run tomcat run, i just get an error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat If I run startup, it just say start a new window and the new window just a blinking and disappear, as follwing message displayed, Including all jars in C:\TOMCAT\lib in your CLASSPATH. Using CLASSPATH: C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\ WEBSER~1.JAR;C: \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 \lib\tools.jar; Starting Tomcat in new window Your help is greatly apreciated. Thanks, Peter _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
tomcat start error
hi everyone, when i shutdown tomcat i get this error message ./tomcat.sh: line 164: 770 Segmentation fault (core dumped) $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME} org.apache.tomcat.startup.Tomcat -stop "$@" does anyone know why??? thanks Georges