struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glania, Damian" <gla...@norcom.de>
Subject classloader problem using WLS6.0
Date Thu, 03 May 2001 09:20:39 GMT
Hi,
if I deploy my EJB-applikation using struts (struts.jar is stored in the
.war-file in WEB-INF/lib) as .ear-file (on WLS6.0 SP1 running on NT4.0 or
Win2000) I get exceptions like:
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
	at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLo
ader.java:280)
	at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.
java:147)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at
org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.java:
1667)
	at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1534)
	at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:489)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:208)
	at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1127)
	at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1529)
	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
(The classloader seems to find the ActionServlet but not the ActionForm)
I read all posting concerning "classloader" here and in the WL-news-groups
and tried some sugestions (including placing struts.jar in the CLASSPATH in
startWeblogic-script and removing    <load-on-startup>1</load-on-startup>
from web.xml ) but nothing helps. 

If  I expand the .war-file by myself to appropriate directory structure all
works perfectly well.

Thanks,
  Damian


Mime
View raw message