I haven't used WLS much, but this is almost certainly either (a) you don't
have the Struts jars in place as you think you do ;-) or (b) there are
copies elsewhere on WLS's classpath. Does it have a copy of Struts bundled
or something? Try removing struts.jar from WEB-INF/lib. If that changes the
behaviour, you probably have situation (b).
L.
Petar Tahchiev wrote:
Hi I am working on a project and we are building an ear file that cosists of
2 jars and a war file. When deploying it on the Weblogic Server it reports
no errors, but when requesting the url from the browser it reports the
follwing error:
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:480)
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
at java.lang.Class.getDeclaredMethods(Class.java:1139)
at java.beans.Introspector$1.run(Introspector.java:1127)
at java.security.AccessController.doPrivileged(Native Method)
at
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1125)
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:990)
............................................
I am sure I have the struts.jar in my WEB-INF/lib directory which is
located in the war file and I don't now what is going on. Any
suggestions would be appreciated.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]