You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yu...@mergent.com on 2002/05/04 00:50:23 UTC
RE: java.lang.NoClassDefFoundError-Con't find the Class in the sa
me p ackage?
Thank you for you all.
I'm sorry that the Controller indead starts with upercace C. I messed up
when writing the email.
I still didn't find out what want wrong. It is working befor on another
machine under tomcat1
Thank you again.
Yunming
-----Original Message-----
From: rsequeira@transentric.com [mailto:rsequeira@transentric.com]
Sent: Friday, May 03, 2002 6:04 PM
To: Tomcat Users List
Subject: Re: java.lang.NoClassDefFoundError-Con't find the Class in the
same p ackage?
Apparently it cannot seem to find the class "
org/apache/xerces/dom/DOMExceptionImpl" which is being referenced from
"com.fis.Controller.Controller" class.
See if you have xerces.jar under $CATALINA_HOME/common/lib.
Also this maybe a typo on your part when composing your email but
nevertheless,
<snip>
the structure is:
--classes (file: Find.class)
--com
--fis
--controller (Controller.class, Composer.class)
</snip>
^ (the "c" should be uppercase. Note "C" in the "Controller"
package name in your javacode is in uppercase.
RS
Yunming.Li@mergent.com on 05/03/2002 04:52:25 PM
Please respond to "Tomcat Users List" <to...@jakarta.apache.org>
To: tomcat-user@jakarta.apache.org
cc:
Subject: java.lang.NoClassDefFoundError-Con't find the Class in the same
p ackage?
I've put a class struecture into Tomcat4_home/webapps/jds/WEB-INFO/classes
the structure is:
--classes (file: Find.class)
--com
--fis
--controller (Controller.class, Composer.class)
in Find.java:
import com.fis.Controller.*;
...
protected Controller controller =null;
...
controller = new Controller(...);
in Composer.java,
package com.fis.Controller;
Hi,
I can't figure it out what is happening. please help.
in Controller.java:
package com.fis.Controller;
private com.fis.Controller.Composer _composer = null;
//Controller constructor:
{
_composer = new com.fis.Controller.Composer(..., ...); # ERROR
LINE
(line 104)
..
}
java.lang.NoClassDefFoundError: org/apache/xerces/dom/DOMExceptionImpl at
com.fis.Controller.Controller.(Controller.java:104) at
Find.init(Find.java:54)
...
My Qestion is :
Why the NoClassDefFoundError? the Controller.class and Composer.class is in
the same package!
Thank you very much.
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>