struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baiyu Li" <flanker27....@gmail.com>
Subject error when deploying app with struts 1.2 and weblogic 8.1sp5
Date Mon, 16 Apr 2007 21:58:49 GMT
Hi,

I have a ear app just upgrading to struts 1.2.9. After change codes
according to new struts, the build was successful. But when I deploy
it I always got some exceptions like these:

SEVERE: Begin event threw exception
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor306.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyU
tilsBean.java:1773)
        at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(Prop
ertyUtilsBean.java:1759)
        at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(Prop
ertyUtilsBean.java:1648)
        at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUt
ilsBean.java:1677)
        at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.
java:1022)
        at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.jav
a:811)
        at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
        at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:217)
        at org.apache.commons.digester.Rule.begin(Rule.java:152)
        at org.apache.commons.digester.Digester.startElement(Digester.java:1286)

        at weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(Abstrac
tSAXParser.java:459)
        at weblogic.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:221)
        at weblogic.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(XMLSch
emaValidator.java:618)
        at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XML
NamespaceBinder.java:874)
        at weblogic.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamesp
aceBinder.java:591)
        at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDVa
lidator.java:748)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartE
lement(XMLDocumentFragmentScannerImpl.java:747)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(XMLDocumentFragmentScannerImpl.java:329)
        at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:525)
        at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:581)
        at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
ser.java:1175)
        at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)

        at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)

        at org.apache.commons.digester.Digester.parse(Digester.java:1572)
        at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:738)
        at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:687)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:1094)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
        at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:970)
        at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:949)
        at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:888)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3430)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3375)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3356)
        at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl
etContext.java:6208)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
        at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
.java:2134)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2175)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2122)
        at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivat
ion(SlaveDeployer.java:3099)
        at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
llApplications(SlaveDeployer.java:1768)
        at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:351)
        at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:229)
        at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
        at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
        at weblogic.Server.main(Server.java:32)
Caused by: 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:12
3)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:480)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.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(GenericClass
Loader.java:224)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:41)
        at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
java:358)
        at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
52)
        ... 55 more
16-Apr-2007 5:47:52 PM org.apache.struts.action.ActionServlet handleConfigExcept
ion
SEVERE: Parsing error processing resource path /WEB-INF/struts-config.xml
java.lang.reflect.InvocationTargetException
        at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2792)
        at org.apache.commons.digester.Digester.createSAXException(Digester.java
:2818)
        at org.apache.commons.digester.Digester.startElement(Digester.java:1289)

        at weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(Abstrac
tSAXParser.java:459)
        at weblogic.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:221)
        at weblogic.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(XMLSch
emaValidator.java:618)
        at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XML
NamespaceBinder.java:874)
        at weblogic.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamesp
aceBinder.java:591)
        at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDVa
lidator.java:748)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartE
lement(XMLDocumentFragmentScannerImpl.java:747)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(XMLDocumentFragmentScannerImpl.java:329)
        at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:525)
        at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:581)
        at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
ser.java:1175)
        at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)

        at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)

        at org.apache.commons.digester.Digester.parse(Digester.java:1572)
        at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:738)
        at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:687)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:1094)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
        at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:970)
        at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:949)
        at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:888)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3430)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3375)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3356)
        at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl
etContext.java:6208)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
        at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
.java:2134)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2175)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2122)
        at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivat
ion(SlaveDeployer.java:3099)
        at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
llApplications(SlaveDeployer.java:1768)
        at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:351)
        at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:229)
        at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
        at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
        at weblogic.Server.main(Server.java:32)
<16-Apr-2007 5:47:52 o'clock PM EDT> <Error> <HTTP> <BEA-101216> <Servlet:
"acti
on" failed to preload on startup in Web application: "iss".
javax.servlet.UnavailableException: Parsing error processing resource path /WEB-
INF/struts-config.xml
        at org.apache.struts.action.ActionServlet.handleConfigException(ActionSe
rvlet.java:769)
        at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:745)
        at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:687)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:1094)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
        at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:970)
        at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:949)
        at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:888)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3430)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3375)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3356)
        at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl
etContext.java:6208)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
        at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
.java:2134)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2175)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2122)
        at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivat
ion(SlaveDeployer.java:3099)
        at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
llApplications(SlaveDeployer.java:1768)
        at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:351)
        at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:229)
        at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
        at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
        at weblogic.Server.main(Server.java:32)

---

I can get around it by just putting struts.jar at the beginning of
CLASSPATH; but it's not a good solution yet. I have all libs required
by struts 1.2 inside WEB-INF/lib of my war file which is inside the
ear file. Could anyone has the same issue? Thx :)

-- 
Frank Li

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message