Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tomcat: java.lang.NoClassDefFoundError

3 views
Skip to first unread message

DyXin

unread,
May 23, 2003, 9:03:33 PM5/23/03
to
Hi!

I 'm making my first little servlet-project, in combination with Tomcat, for
school, but I always get the following error:

javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core......
........

root cause

java.lang.NoClassDefFoundError: WebPhoenix
at PhoenixServlet.loginAction(PhoenixServlet.java:109)
at PhoenixServlet.doGet(PhoenixServlet.java:36)
at PhoenixServlet.doPost(PhoenixServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core......
........

We find the following line of code at the specified position
(PhoenixServlet.java:109):
IPhoenix my_object = new WebPhoenix ("name");

I 've placed all the .class files in the .../WEB-INF/classes directory
I 've got no compile-errors: everything seems correct to me...
I tried many things, but nothing seems to work: I 've changed my classpath,
I 've compiled with other J2SDK versions, etc...

these are some of my environment variables (Sun Sparc, Solaris OS):
PWD=/home/p01/p005742
CLASSPATH=:/usr/j2se
MANPATH=/usr/man:/opt/SUNWspro/man:/opt/SUNWste/license_tools/man:/usr/java1
.4/man:/opt/sfw/man:/usr/perl5/man::/usr/local/man:/xopt/local/man:/usr/open
win/man:/usr/dt/man:.
JAVA_HOME=/usr/j2se
SHELL=/usr/bin/bash
PATH=/usr/dt/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/usr/java1.4/bin:/usr/cc
s/bin:/bin:/usr/bin:/usr/local/bin:/etc:/usr/etc:/usr/ucb:/usr/perl5/bin:/us
r/local/teTeX/bin/sparc-sun-solaris2.8:/opt/Acrobat4/bin:/opt/sfw/bin:/home/
p01/p005742/usr/sbin:/home/p01/p005742/usr/bin

Does someone know what 's going wrong? I guess that there will be a
Tomcat-specific parameter wich will have the wrong value?...

thnx a lot!

mvg,
DyXin


0 new messages