You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alec Cove <co...@kpe.com> on 2000/05/02 20:47:18 UTC
java.lang.ClassNotFoundException?
Im getting these errors:
java.lang.ClassNotFoundException:
org/apache/tomcat/service/http/HttpConnectionHandler
and
FATAL:java.lang.Exception: Invalid ConnectionHandler
when I try to start up tomcat. Any ideas why this would come up? The
classpath seems right. HttpConnectionHandler is in webserver.jar, which
seems to be correct in the classpath.
below is the entire:
----------------------------------
H:\desktop\tomcat\bin>tomcat run
Using classpath:
h:\desktop\tomcat\classes;h:\desktop\tomcat\lib\webserver.jar;h
:\desktop\tomcat\lib\jasper.jar;h:\desktop\tomcat\lib\xml.jar;h:\desktop\tom
cat\
lib\servlet.jar;H:\jdk1.2.2\lib\tools.jar;h:\jdk1.2.2\lib\servlet.jar
java.lang.ClassNotFoundException:
org/apache/tomcat/service/http/HttpConnectionH
andler
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Compiled Code)
at
org.apache.tomcat.service.SimpleTcpConnector.setProperty(SimpleTcpCon
nector.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="h:\desktop\tomcat" home="H:\desktop\tomcat"
classPath="
h:\desktop\tomcat\classes;h:\desktop\tomcat\lib\webserver.jar;h:\desktop\tom
cat\
lib\jasper.jar;h:\desktop\tomcat\lib\xml.jar;h:\desktop\tomcat\lib\servlet.j
ar;H
:\jdk1.2.2\lib\tools.jar;h:\jdk1.2.2\lib\servlet.jar"
Context log: path="/admin" Automatic context load
docBase="H:\desktop\tomcat\web
apps\admin"
Context log: path="/admin" Adding context path="/admin"
docBase="H:\desktop\tom
cat\webapps\admin"
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)
Re: java.lang.ClassNotFoundException?
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
David Rodriguez Gonzalez wrote:
> "Craig R. McClanahan" wrote:
>
> >
> > I don't know if this contributed to your particular problems, but I have heard
> > reports that downloading Netscape's 6.0 alpha release and installing it will
> > downgrade your JDK from 1.2.2 to 1.2.0 -- and among other problems this
> > causes,Tomcat won't start any more. Re-installing JDK 1.2.2 seems to clean
> > things up again.
> >
> > I haven't done this myself so I can't verify it -- but it's something to be
> > aware of.
> >
> >
> > Craig McClanahan
> >
>
> I have installed Netscape 6 Preview Release 1 (Red Hat 6.1) , and have no
> problems restarting TomCat. No reinstallation of JDK was needed. That problem
> may happen in Windows platforms only.
>
Sorry, I should have been more specific -- I've heard about this only from Windows
users. It wouldn't affect Linux users because there's no Java support in the Linux
version yet :-(.
>
> David Rodriguez
>
Craig
Re: java.lang.ClassNotFoundException?
Posted by David Rodriguez Gonzalez <dr...@ifca.unican.es>.
"Craig R. McClanahan" wrote:
>
> I don't know if this contributed to your particular problems, but I have heard
> reports that downloading Netscape's 6.0 alpha release and installing it will
> downgrade your JDK from 1.2.2 to 1.2.0 -- and among other problems this
> causes,Tomcat won't start any more. Re-installing JDK 1.2.2 seems to clean
> things up again.
>
> I haven't done this myself so I can't verify it -- but it's something to be
> aware of.
>
>
> Craig McClanahan
>
I have installed Netscape 6 Preview Release 1 (Red Hat 6.1) , and have no
problems restarting TomCat. No reinstallation of JDK was needed. That problem
may happen in Windows platforms only.
David Rodriguez
Re: java.lang.ClassNotFoundException?
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Alec Cove wrote:
> sorry, should have given the platform. Im on NT. After reinstalling jdk1.2.2
> and tomcat3.1 it worked. I dont know if they updated any of the jar files
> while I was in the process of doing this. I had 3.1beta working fine, when I
> initially tried 3.1 release I started getting the ClassNotFoundException.
>
I don't know if this contributed to your particular problems, but I have heard
reports that downloading Netscape's 6.0 alpha release and installing it will
downgrade your JDK from 1.2.2 to 1.2.0 -- and among other problems this
causes,Tomcat won't start any more. Re-installing JDK 1.2.2 seems to clean
things up again.
I haven't done this myself so I can't verify it -- but it's something to be
aware of.
>
> thanks
> Alec
>
Craig McClanahan
RE: java.lang.ClassNotFoundException?
Posted by Alec Cove <co...@kpe.com>.
sorry, should have given the platform. Im on NT. After reinstalling jdk1.2.2
and tomcat3.1 it worked. I dont know if they updated any of the jar files
while I was in the process of doing this. I had 3.1beta working fine, when I
initially tried 3.1 release I started getting the ClassNotFoundException.
thanks
Alec
-----Original Message-----
From: Aleksander Grzebyta [mailto:olekg@talex.com.pl]
Sent: Wednesday, May 03, 2000 9:11 AM
To: tomcat-user@jakarta.apache.org
Subject: Odp: java.lang.ClassNotFoundException?
If your platform (you should give that info) is win95/98 your problems could
be similar to mine:
http://jakarta.apache.org/bugs/show_bug.cgi?id=251
Try to run Tomcat with JDK 1.1.7 to make sure the problem is exactly the
same. It looks like some JARs were compiled with 1.1.* and will not load
with 1.2.2.
sincerely Olek
----- Original Message -----
From: Alec Cove <co...@kpe.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, May 02, 2000 8:47 PM
Subject: java.lang.ClassNotFoundException?
> Im getting these errors:
> java.lang.ClassNotFoundException:
> org/apache/tomcat/service/http/HttpConnectionHandler
>
> and
>
> FATAL:java.lang.Exception: Invalid ConnectionHandler
>
> when I try to start up tomcat. Any ideas why this would come up? The
> classpath seems right. HttpConnectionHandler is in webserver.jar, which
> seems to be correct in the classpath.
>
> below is the entire:
> ----------------------------------
> H:\desktop\tomcat\bin>tomcat run
> Using classpath:
> h:\desktop\tomcat\classes;h:\desktop\tomcat\lib\webserver.jar;h
>
:\desktop\tomcat\lib\jasper.jar;h:\desktop\tomcat\lib\xml.jar;h:\desktop\tom
> cat\
> lib\servlet.jar;H:\jdk1.2.2\lib\tools.jar;h:\jdk1.2.2\lib\servlet.jar
> java.lang.ClassNotFoundException:
> org/apache/tomcat/service/http/HttpConnectionH
> andler
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Compiled Code)
> at
> org.apache.tomcat.service.SimpleTcpConnector.setProperty(SimpleTcpCon
> nector.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="h:\desktop\tomcat" home="H:\desktop\tomcat"
> classPath="
>
h:\desktop\tomcat\classes;h:\desktop\tomcat\lib\webserver.jar;h:\desktop\tom
> cat\
>
lib\jasper.jar;h:\desktop\tomcat\lib\xml.jar;h:\desktop\tomcat\lib\servlet.j
> ar;H
> :\jdk1.2.2\lib\tools.jar;h:\jdk1.2.2\lib\servlet.jar"
> Context log: path="/admin" Automatic context load
> docBase="H:\desktop\tomcat\web
> apps\admin"
> Context log: path="/admin" Adding context path="/admin"
> docBase="H:\desktop\tom
> cat\webapps\admin"
> 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)
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org
Odp: java.lang.ClassNotFoundException?
Posted by Aleksander Grzebyta <ol...@talex.com.pl>.
If your platform (you should give that info) is win95/98 your problems could
be similar to mine:
http://jakarta.apache.org/bugs/show_bug.cgi?id=251
Try to run Tomcat with JDK 1.1.7 to make sure the problem is exactly the
same. It looks like some JARs were compiled with 1.1.* and will not load
with 1.2.2.
sincerely Olek
----- Original Message -----
From: Alec Cove <co...@kpe.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, May 02, 2000 8:47 PM
Subject: java.lang.ClassNotFoundException?
> Im getting these errors:
> java.lang.ClassNotFoundException:
> org/apache/tomcat/service/http/HttpConnectionHandler
>
> and
>
> FATAL:java.lang.Exception: Invalid ConnectionHandler
>
> when I try to start up tomcat. Any ideas why this would come up? The
> classpath seems right. HttpConnectionHandler is in webserver.jar, which
> seems to be correct in the classpath.
>
> below is the entire:
> ----------------------------------
> H:\desktop\tomcat\bin>tomcat run
> Using classpath:
> h:\desktop\tomcat\classes;h:\desktop\tomcat\lib\webserver.jar;h
>
:\desktop\tomcat\lib\jasper.jar;h:\desktop\tomcat\lib\xml.jar;h:\desktop\tom
> cat\
> lib\servlet.jar;H:\jdk1.2.2\lib\tools.jar;h:\jdk1.2.2\lib\servlet.jar
> java.lang.ClassNotFoundException:
> org/apache/tomcat/service/http/HttpConnectionH
> andler
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Compiled Code)
> at
> org.apache.tomcat.service.SimpleTcpConnector.setProperty(SimpleTcpCon
> nector.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="h:\desktop\tomcat" home="H:\desktop\tomcat"
> classPath="
>
h:\desktop\tomcat\classes;h:\desktop\tomcat\lib\webserver.jar;h:\desktop\tom
> cat\
>
lib\jasper.jar;h:\desktop\tomcat\lib\xml.jar;h:\desktop\tomcat\lib\servlet.j
> ar;H
> :\jdk1.2.2\lib\tools.jar;h:\jdk1.2.2\lib\servlet.jar"
> Context log: path="/admin" Automatic context load
> docBase="H:\desktop\tomcat\web
> apps\admin"
> Context log: path="/admin" Adding context path="/admin"
> docBase="H:\desktop\tom
> cat\webapps\admin"
> 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)
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>