aspose file tools*
The moose likes Servlets and the fly likes Tomcat Installation Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Installation Problem" Watch "Tomcat Installation Problem" New topic
Author

Tomcat Installation Problem

Chithra Sankar
Greenhorn

Joined: Oct 17, 2000
Posts: 2
Hi all,
I tried to install Tomat 3.1 on windows NT.
Following environmental variables were set
JAVA_HOME C:\jdk1.2
TOMCAT_HOME c:\jakarta-tomcat
PATH %PATH%;c:\jakarta-tomcat\bin;C:\JavaWebServer\bin;C:\JavaWebServer\jre;C:\JavaWebServer\servlets;C:\VisualCafePDE\BIN;C:\VisualCafePDE\JAVA\BIN;C:\VCafe\BIN;C:\VCafe\JAVA\BIN;C:\Js dk2.0\src:C:\Jsdk2.0\bin
CLASSPATH
%CLASSPATH%;C:\jdk1.2\lib\tools.jar;C:\Study\examples
Opened DOS window and typed
C:\jakarta-tomcat\bin> tomcat start.
I am getting the following exception
C:\jakarta-tomcat\bin>java -Dtomcat.home="c:\jakarta-tomcat" org.apache.tomcat.startup.Tomcat
java.lang.ClassNotFoundException: org/apache/tomcat/service/http/HttpConnectionHandler
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Compiled Code)
at org.apache.tomcat.service.SimpleTcpConnector.setProperty(SimpleTcpConnector.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.xml.MethodSetter.end(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.matchEnd(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.endElement(XmlMapper.java:96)
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.content(Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.content(Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.content(Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.parseInternal(Compiled Code)
at com.sun.xml.parser.Parser.parse(Parser.java:283)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:198)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples"
Context log: path="" Adding context path="" docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test" docBase="webapps/test"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install="c:\jakarta-tomcat" home="C:\jakarta-tomcat" classPath="c:\jakarta-tomcat
.jar;c:\jakarta-tomcat\lib\xml.jar;c:\jakarta-tomcat\lib\servlet.jar;c:\jdk1.2\lib\tools.jar;c:\s
C:\jdk1.2\lib\tools.jar;C:\Study\examples"
Context log: path="/admin" Automatic context load docBase="C:\jakarta-tomcat\webapps\admin"
Context log: path="/admin" Adding context path="/admin" docBase="C:\jakarta-tomcat\webapps\adm
FATAL:java.lang.Exception: Invalid ConnectionHandler
java.lang.Exception: Invalid ConnectionHandler
at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:133)
at org.apache.tomcat.core.ContextManager.start(Compiled Code)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
Please help me.
Thanks in advance
[This message has been edited by Chithra Sankar (edited November 28, 2000).]
Noah Carroll
Ranch Hand

Joined: Sep 20, 2000
Posts: 96
The first thing I notice is that you placed c:\jakarta-tomcat\bin in your path. By doing this it is not necessary to go to the c:\jakarta-tomcat\bin directory to run tomcat start or startup. You also need to add the line c:\jakarta-tomcat\lib to your classpath. It needs access to the servlet class files. I would shorten your directory from c:\jakarta-tomcat to c:\tomcat. It is much easier to use like that.
------------------
I hope its helps, feel free to email me noahcarroll@juno.com
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
I was having the same problem.
Just open server.xml and go to the line where you see:
<Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
just copy and paste the above line again ie repeat the line.
If you don't want to do this use jdk1.3

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Installation Problem