This looks like a classic BEA Classloading issue. Check this article to get
an understanding of how to resolve this.
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
The article is a bit more general than this specific problem, but it describes the
solution you need. It's written by someone from BEA.1
You'll need to identify the jar files required to be on the classpath in the Manifest
of the ear file using a "classpath:" line.
I've got struts running on BEA weblogic 6.1 sp3 right now...
Best of luck,
Kevin
http://www.strutskickstart.com
"Foong Tzer" <[EMAIL PROTECTED]> on 11/22/2002 07:10:30 AM
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject: Struts 1.1 beta2 on Weblogic 6.1 SP3 deployment problem
Hi people,
I'm a newbie in the mailing list.
My environment is Weblogic 6.1 SP3 (Win 2000) running Struts 1.1 Beta 2.
With Struts alone via war deployment itself...it works great with this
message: -
<Nov 22, 2002 3:54:09 PM SGT> <Notice> <Management> <Application Poller
started for development server.>
[ChangeAwareClassLoader] : Name is :
META-INF/services/org.apache.commons.logging.LogFactory
0 [Thread-2] INFO util.PropertyMessageResources - Initializing,
config='org.apache.struts.util.LocalStrings', returnNu
ll=true
0 [Thread-2] INFO util.PropertyMessageResources - Initializing,
config='org.apache.struts.action.ActionResources', ret
urnNull=true
341 [Thread-2] INFO util.PropertyMessageResources - Initializing,
config='com.see.sample.webapp.ApplicationResources',
returnNull=true
<Nov 22, 2002 3:54:11 PM SGT> <Notice> <WebLogicServer> <ListenThread
listening on port 7001>
BUT, via ear deployment, it throws an exception like this: -
<Nov 22, 2002 7:40:40 PM SGT> <Notice> <Management> <Application Poller
started for development server.>
[ChangeAwareClassLoader] : Name is :
META-INF/services/org.apache.commons.logging.LogFactory
0 [Thread-2] INFO util.PropertyMessageResources - Initializing,
config='org.apache.struts.util.LocalStrings', returnNu
ll=true
0 [Thread-2] INFO util.PropertyMessageResources - Initializing,
config='org.apache.struts.action.ActionResources', ret
urnNull=true
310 [Thread-2] ERROR digester.Digester - Begin event threw exception
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:394)
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:157)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:47)
at
org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.java:290)
at
org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:161)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1650)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1545)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1574)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:259)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at
weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1384)
at
weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1191)
at
weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1891)
at
weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1267)
at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
at
weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:975)
at
weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
at
weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:860)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
at
weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at
weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at
weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
at java.lang.Thread.run(Thread.java:479)
320 [Thread-2] ERROR action.ActionServlet - Parsing error processing
resource path /WEB-INF/struts-config.xml
java.lang.reflect.InvocationTargetException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
I've scan through the forum, and it seems some say that weblogic has got
some special class loader problem. Others say it's fix by adding a
classpath to the manifest file like this: -
Manifest-Version: 1.0
Created-By: Apache Ant 1.5
Class-Path: commons-beanutils.jar commons-collections.jar
Class-Path: commons-dbcp.jar commons-digester.jar
Class-Path: commons-logging.jar commons-pool.jar
Class-Path: commons-services.jar commons-validator.jar
Class-Path: jakarta-oro.jar struts.jar
No, my Weblogic classpath hasn't got Struts.jar on it.
Anyone has got any other suggestion, please?
Regards,
Tzer
[EMAIL PROTECTED]
Why J2EE needs architecture?
http://www.see-consulting.com
--
http://fastmail.fm - Access your email from home and the web
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>