You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Matthew Cordes <mc...@maine.edu> on 2000/06/02 00:09:54 UTC
Install Difficulty-Tomcat 3.1 on Linux
Hello all.
I'm having a bit of trouble getting tomcat 3.1 to do much of anything.
I have correctly set my TOMCAT_HOME and JAVA_HOME ( in my /etc/profile )
and when I launch tomcat via the startup.sh script I receive the
following:
*****************************************
[root bin]# ./startup.sh
Using classpath:
.:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper
r:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tom
/lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/IBM-jdk-1.3.
ib/tools.jar
[root bin]# java.lang.ClassNotFoundException: com.sun.xml.parser.Parser
at java.lang.Throwable.<init>(Throwable.java:96)
at java.lang.Exception.<init>(Exception.java:44)
at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.jav
1)
at java.net.URLClassLoader.findClass(URLClassLoader.java:204)
at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:134)
at
org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:12
at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
FATAL: configuration error
java.lang.Exception: Error creating sax parser
at java.lang.Throwable.<init>(Throwable.java:96)
at java.lang.Exception.<init>(Exception.java:44)
at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
**************************************
Any suggestions?
Also when I try to compile tomcat 3.1 I always receive the message:
Project base dir set to: /home/mcordes/jakarta-tomcat
Executing Target: init
Executing Target: prepare
BUILD FATAL ERROR: srcdir does not exist!
I'm using Ibm's 1.3 jdk ( but I've also tried blackdowns 1.2.2 ) on a
debian (2.2, potato ) linux machine. I plan to incorporate tomcat with
my already existing apache 1.3.12, but am I right in assuming that I
need this to work first?
Thanks for your time...
-Matthew Cordes
Re: Install Difficulty-Tomcat 3.1 on Linux
Posted by Matthew Cordes <mc...@maine.edu>.
Thanks for replying, but I don't think this is the case. The file that
xml.jar that ships with tomcat includes the appropriate classes, but as
I mentioned in my second post, bombs only if xerces.jar (version 1.0.3)
is in my $JAVA_HOME/jre/lib/ext directory; putting it in the classpath
works fine. I was curious if someone knew why this was? And how I could
report it as a bug.
-matt
On Fri, Jun 02, 2000 at 07:13:53AM +0200, Daniel Haischt wrote:
> hello,
>
> it seems that you missed sun's xml parser *.jar files
> (jaxp.jar and parser.jar).
>
> sun's Java API for XML Parsing implementation is available
> through http://java.sun.com/xml.
>
> regards
>
> daniel haischt
> --
>
> ----- Original Message -----
> From: "Matthew Cordes" <mc...@maine.edu>
> To: <to...@jakarta.apache.org>
> Sent: Friday, June 02, 2000 12:09 AM
> Subject: Install Difficulty-Tomcat 3.1 on Linux
>
>
> > Hello all.
> >
> > I'm having a bit of trouble getting tomcat 3.1 to do much of anything.
> > I have correctly set my TOMCAT_HOME and JAVA_HOME ( in my /etc/profile )
> > and when I launch tomcat via the startup.sh script I receive the
> > following:
> >
> > *****************************************
> > [root bin]# ./startup.sh
> > Using classpath:
> > .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper
> >
> r:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/to
> m
> >
> /lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/IBM-jdk-1.3
> .
> > ib/tools.jar
> > [root bin]# java.lang.ClassNotFoundException: com.sun.xml.parser.Parser
> > at java.lang.Throwable.<init>(Throwable.java:96)
> > at java.lang.Exception.<init>(Exception.java:44)
> > at
> > java.lang.ClassNotFoundException.<init>(ClassNotFoundException.jav
> > 1)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:204)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
> > at java.lang.Class.forName1(Native Method)
> > at java.lang.Class.forName(Class.java:134)
> > at
> > org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:12
> > at
> > org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191)
> > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> > FATAL: configuration error
> > java.lang.Exception: Error creating sax parser
> > at java.lang.Throwable.<init>(Throwable.java:96)
> > at java.lang.Exception.<init>(Exception.java:44)
> > at
> > org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207)
> > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> > **************************************
> >
> > Any suggestions?
> >
> > Also when I try to compile tomcat 3.1 I always receive the message:
> >
> > Project base dir set to: /home/mcordes/jakarta-tomcat
> > Executing Target: init
> > Executing Target: prepare
> > BUILD FATAL ERROR: srcdir does not exist!
> >
> > I'm using Ibm's 1.3 jdk ( but I've also tried blackdowns 1.2.2 ) on a
> > debian (2.2, potato ) linux machine. I plan to incorporate tomcat with
> > my already existing apache 1.3.12, but am I right in assuming that I
> > need this to work first?
> >
> > Thanks for your time...
> >
> > -Matthew Cordes
> >
> > --------------------------------------------------------------------------
> > 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
>
Re: Install Difficulty-Tomcat 3.1 on Linux
Posted by Daniel Haischt <si...@gmx.net>.
hello,
it seems that you missed sun's xml parser *.jar files
(jaxp.jar and parser.jar).
sun's Java API for XML Parsing implementation is available
through http://java.sun.com/xml.
regards
daniel haischt
--
----- Original Message -----
From: "Matthew Cordes" <mc...@maine.edu>
To: <to...@jakarta.apache.org>
Sent: Friday, June 02, 2000 12:09 AM
Subject: Install Difficulty-Tomcat 3.1 on Linux
> Hello all.
>
> I'm having a bit of trouble getting tomcat 3.1 to do much of anything.
> I have correctly set my TOMCAT_HOME and JAVA_HOME ( in my /etc/profile )
> and when I launch tomcat via the startup.sh script I receive the
> following:
>
> *****************************************
> [root bin]# ./startup.sh
> Using classpath:
> .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper
>
r:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/to
m
>
/lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/IBM-jdk-1.3
.
> ib/tools.jar
> [root bin]# java.lang.ClassNotFoundException: com.sun.xml.parser.Parser
> at java.lang.Throwable.<init>(Throwable.java:96)
> at java.lang.Exception.<init>(Exception.java:44)
> at
> java.lang.ClassNotFoundException.<init>(ClassNotFoundException.jav
> 1)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:204)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
> at java.lang.Class.forName1(Native Method)
> at java.lang.Class.forName(Class.java:134)
> at
> org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:12
> at
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> FATAL: configuration error
> java.lang.Exception: Error creating sax parser
> at java.lang.Throwable.<init>(Throwable.java:96)
> at java.lang.Exception.<init>(Exception.java:44)
> at
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> **************************************
>
> Any suggestions?
>
> Also when I try to compile tomcat 3.1 I always receive the message:
>
> Project base dir set to: /home/mcordes/jakarta-tomcat
> Executing Target: init
> Executing Target: prepare
> BUILD FATAL ERROR: srcdir does not exist!
>
> I'm using Ibm's 1.3 jdk ( but I've also tried blackdowns 1.2.2 ) on a
> debian (2.2, potato ) linux machine. I plan to incorporate tomcat with
> my already existing apache 1.3.12, but am I right in assuming that I
> need this to work first?
>
> Thanks for your time...
>
> -Matthew Cordes
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>