Hello,


After upgrading from Struts 1.2 to Struts 1.3, I copied
*commons-chain.jar*to the
*WEB**-**INF**\lib* directory.  I still got the following exception when I
logged into the application.



Note: The commons-chain.jar was *never *in the WEB-INF\lib directory when
this project was running using Struts 1.2.  If I don't have the
commons-chain.jar in the WEB-INF\lib directory, I still got the same
exception.

*
*

Also, I have updated all the DTD references to:

<!DOCTYPE struts-config PUBLIC

"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"

"http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd";>

*
*

Could somebody let me know what I have missed here?



Thanks a lot

Joann







*[**3/21/12** 9:55:41:973 **EDT**] 00000019 ActionServlet E
org.apache.struts.action.ActionServlet init Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so marking
the servlet as unavailable.  Most likely, this is due to an incorrect or
missing library dependency.*

*                                 java.lang.NoClassDefFoundError:
org.apache.commons.chain.config.ConfigParser*

*            at
org.apache.struts.action.ActionServlet.initChain(ActionServlet.java:1680)*

            at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:350)

            at javax.servlet.GenericServlet.init(GenericServlet.java:241)

            at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)

            at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:169)

            at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1809)

            at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)

            at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1037)

            at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:958)

            at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:637)

            at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:435)

            at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:304)

            at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)

            at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)

            at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)

            at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)

            at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)

            at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)

            at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)

            at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)

            at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:610)

            at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)

            at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)

            at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)

            at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)

            at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

            at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)

            at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)

            at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)

            at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)

            at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)

Caused by: java.lang.ClassNotFoundException:
org.apache.commons.chain.config.ConfigParser

            at java.net.URLClassLoader.findClass(URLClassLoader.java:434)

            at
com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:653)

            at
com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:619)

            at
com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)

            at
com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)

            at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:541)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:619)

            ... 31 more

Reply via email to