tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Graham <cl...@newobjectivity.com>
Subject Installing tomcat4 problem on startup:ClassNotFound
Date Fri, 21 Jun 2002 20:03:53 GMT
hello my fellow users,

I allways wonder if all of the people on this list go through as much as I 
seems to, when I am better at this configuration stuff I really want to to 
help other people because it is so hard.

I have installed tomcat4 on a Linux7.1 box and jdk1.3, pretty standard 
install...but it seems to have problems wehen I start the sevice...

[root@meis clay]# service tomcat4 start
Starting tomcat4		[ OK ]

I then check the logs to make sure that it started ok....but it didn't


[root@meis clay]# cat /var/tomcat4/logs/catalina.out

Exception during startup processing
java.lang.reflect.InvocationTargetException: 
java.lang.NoClassDefFoundError: javax/servlet/FilterConfig
        at java.lang.Class.getMethods0(Native Method)
        at java.lang.Class.getMethods(Class.java:742)
        at 
org.apache.catalina.util.xml.SetProperties.setProperty(XmlMapper.java:665)
        at 
org.apache.catalina.util.xml.SetProperties.start(XmlMapper.java:650)
        at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.j  
ava:412)
        at 
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
        at 
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java)
        at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java)
        at 
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal  
idator.java)
        at 
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc  
anner.java)
        at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch 
(XMLDocumentScanner.java)
        at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan  
ner.java)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java)
        at 
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java)
        at 
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

so my first instinct was that I needed to have the particular jar that 
contained this class in my /var/tomcat4/common/lib directory. This is a 
list of what is in my  /usr/java/jdk1.3/jre/lib and /var/tomcat4/common/lib 
dirs:

[root@meis clay]# ls -al /var/tomcat4/common/lib

total 10988
drwxr-xr-x    2 tomcat4  tomcat4      4096 Jun 21 12:55 .
drwxr-xr-x    4 tomcat4  tomcat4      4096 Jun 17 22:08 ..
-rwxr-----    1 tomcat4  tomcat4    330474 Jun 20 21:49 ant.jar
-rwxr-----    1 tomcat4  tomcat4    187162 Jun 20 21:49 crimson.jar
-rwxr-----    1 tomcat4  tomcat4   6848559 Jun 21 07:42 j2ee.jar
-rwxr-----    1 tomcat4  tomcat4    217958 Jun 20 21:49 jasper.jar
-rwxr-----    1 tomcat4  tomcat4     28404 Jun 20 21:49 jaxp.jar
-rwxr-----    1 tomcat4  tomcat4      5618 Jun 20 21:49 jaxp_july01.jar
-rwxr-----    1 tomcat4  tomcat4      6727 Jun 20 21:49 jdbc2_0-stdext.jar
-rwxr-----    1 tomcat4  tomcat4     17780 Jun 20 21:49 JSSLSupport.jar
-rwxr-----    1 tomcat4  tomcat4    117522 Jun 20 21:49 junit.jar
-rwxr-----    1 tomcat4  tomcat4     78140 Jun 20 21:49 log4j-core.jar
-rwxr-----    1 tomcat4  tomcat4    158892 Jun 20 21:49 log4j.jar
-rwxr-----    1 tomcat4  tomcat4    390333 Jun 20 21:49 
mm.mysql-2.0.6.1.jar
-rw-r--r--    1 tomcat4  tomcat4     21171 Mar  4 09:58 naming-common.jar
-rw-r--r--    1 tomcat4  tomcat4     31532 Mar  4 09:58 
naming-resources.jar
-rwxr-----    1 tomcat4  tomcat4    136133 Jun 20 21:49 parser.jar
lrwxrwxrwx    1 tomcat4  tomcat4        33 Jun 17 22:11 servlet.jar -> 
/usr/share/servletapi/servlet.jar
-rwxr-----    1 tomcat4  tomcat4    326441 Jun 20 21:49 struts.jar
-rwxr-----    1 tomcat4  tomcat4    431743 Jun 20 21:49 webserver.jar
-rwxr-----    1 tomcat4  tomcat4    870212 Jun 20 21:49 xalan_aug01.jar
-rwxr-----    1 tomcat4  tomcat4    801714 Jun 20 21:49 xalan.jar
lrwxrwxrwx    1 tomcat4  tomcat4        26 Jun 21 11:03 xerces.jar -> 
/usr/share/java/xerces.jar
-rwxr-----    1 tomcat4  tomcat4    129139 Jun 20 21:49 xml.jar

This JAR turns out to be Sun's j2ee.jar, so I looked to make sure it was 
there..and it is:

[root@meis clay]# tar tf /var/tomcat4/common/lib/j2ee.jar|grep FilterConfig
javax/servlet/FilterConfig.class
org/apache/catalina/core/ApplicationFilterConfig.class

I have even tried to place this file in my /usr/java/jdk1.3/jre/lib 
directory to get it to resolve but alas it does not..

so I am wondering if any of you friends of tomcat 4 have had a simillar 
problem are even hints that may help me...also any basic (and complete) 
guides online for setting up tomcat with apache would be appreciated...

Thanks,

Clay







--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message