• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Tomcat Installation Problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
No holds barred. And no bars holed. Except this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!