This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Installation Problem" Watch "Tomcat Installation Problem" New topic

Tomcat Installation Problem

Chithra Sankar

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
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(
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(
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(
at org.apache.tomcat.util.xml.XmlMapper.readXml(
at org.apache.tomcat.startup.Tomcat.execute(
at org.apache.tomcat.startup.Tomcat.main(
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
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(
at org.apache.tomcat.core.ContextManager.start(Compiled Code)
at org.apache.tomcat.startup.Tomcat.execute(
at org.apache.tomcat.startup.Tomcat.main(
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
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Don't get me started about those stupid light bulbs.
subject: Tomcat Installation Problem
Similar Threads
Servlet delivery in Tomcat
Problems starting Tomcat on my Windows 98 machine
JBuilder problem
JSWDK and Tomcat
Connection Refused