One thing you may want to try to do is set the parent classloader to last for 
the ODE application. You can do this through the admin console after ODE is 
deployed or create an EAR file and add a custom deployment.xml file. In my 
experience any application that utilizes Xerces like ODE does must load all the 
libraries from the application first since WebSphere contains it's own version 
of Xerces at the appserver classloader level. IBM did not rename the Xerces 
packages included with the appserver like Sun did with their appserver.

Regards,

Aaron




________________________________
From: Emiel de Grijs <[email protected]>
To: [email protected]
Sent: Thu, May 27, 2010 6:25:02 AM
Subject: Trying to run ODE on WAS 7

I have deployed the ode.war in WebSphere Application Server 7.0.0.9.
Although at first it appears to be deployed just fine it does give errors
when trying to actually use it. I deployed both version 1.3.3 and 2.0.0 of
ode.war (in different context roots).

When I open the Apache ODE's web interface in a browser it will return
"Exception Occurred No responseundefined". When I look into the server log
(SystemOut.log) it appears that it cannot load a certain class as it starts
an error trace with the following line:
Uncaught init() exception created by servlet AxisServlet in application
apache_ode_200: java.lang.NoClassDefFoundError:
org.apache.woden.resolver.URIResolver
(full dump follows)

This happened on starting the ode.war on WAS as well as during opening of
the web interface. In later log lines it says it cannot initialize a servlet
due to previous errors.

Based on messages posted by other users on different sites I changed the
configuration in the following way:
* Class loader order: Classes loaded with local class loader first (parent
last)
* WAR class loader policy: Class loader for each WAR file in application
* Added serializer.jar as an asset
* Added woden-api-1.0M8.jar as an asset
* Added wsdl4j-1.6.2.jar as an asset
* Added the above three assets as shared libraries to ODE business-level
application
* Made references to the mentioned shared libraries from the ODE enterprise
application

All without to much effect other than that version 2.0.0 of ode.war now
gives the server errors on WAR startup only.

Is there anyone with more information on this? Does anyone have a clue on
what goes wrong here and how to sucessfully deploy ode.war on WebSphere
Application Server 7.0.0.9?

Thanks in advance.

full dump of earlier error:

[27-5-10 12:50:15:434 CEST] 00000079 servlet       E
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0100E: Uncaught
init() exception created by servlet AxisServlet in application
apache_ode_200: java.lang.NoClassDefFoundError:
org.apache.woden.resolver.URIResolver
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
    at
org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:60)
    at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
    at
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:237)
    at
org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68)
    at
org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
    at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
    at
org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68)
    at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:519)
    at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:437)
    at
org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:51)
    at com.ibm.ws.cache.servlet.ServletWrapper.init(ServletWrapper.java:238)
    at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
    at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1807)
    at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
    at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1008)
    at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:929)
    at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:608)
    at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:426)
    at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:303)
    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:1315)
    at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
    at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266)
    at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4485)
    at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4663)
    at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043)
    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.startCompositionUnit(CompositionUnitMgrImpl.java:653)
    at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)
    at
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
    at
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
    at
com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
    at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at
com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
    at
com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpViaRuntimeMBean(ControlOperationHelper.java:1104)
    at
com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpOnLocalServer(ControlOperationHelper.java:687)
    at
com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatchCompUnitControlOpToTarget(CompUnitControlOpDispatcher.java:257)
    at
com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatch(CompUnitControlOpDispatcher.java:180)
    at
com.ibm.ws.management.bla.steps.StepStartBLA.execute(StepStartBLA.java:157)
    at
com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151)
    at
com.ibm.wsspi.management.bla.op.compound.CompoundOperation._doPhaseExecute(CompoundOperation.java:102)
    at
com.ibm.wsspi.management.bla.op.compound.CompoundOperation.doExecute(CompoundOperation.java:85)
    at com.ibm.wsspi.management.bla.op.Operation.execute(Operation.java:158)
    at
com.ibm.wsspi.management.bla.op.compound.CompoundOperation.execute(CompoundOperation.java:68)
    at
com.ibm.ws.management.bla.commands.ADTCommand$OperationScheduler.run(ADTCommand.java:524)
    at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.ClassNotFoundException:
org.apache.woden.resolver.URIResolver
    at java.lang.Throwable.<init>(Throwable.java:80)
    at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
    at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:351)
    at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
    at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
    ... 75 more

[27-5-10 12:50:15:439 CEST] 00000079 extension     E
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor
createServletWrapper Error occured while preparing the servlet for
initialization.
                                 javax.servlet.ServletException: SRVE0207E:
Uncaught initialization exception created by servlet
    at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:434)
    at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1807)
    at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
    at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1008)
    at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:929)
    at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:608)
    at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:426)
    at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:303)
    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:1315)
    at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
    at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266)
    at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4485)
    at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4663)
    at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271)
    at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043)
    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.startCompositionUnit(CompositionUnitMgrImpl.java:653)
    at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)
    at
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
    at
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
    at
com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
    at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at
com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
    at
com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpViaRuntimeMBean(ControlOperationHelper.java:1104)
    at
com.ibm.ws.management.bla.runtime.ControlOperationHelper.execControlOpOnLocalServer(ControlOperationHelper.java:687)
    at
com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatchCompUnitControlOpToTarget(CompUnitControlOpDispatcher.java:257)
    at
com.ibm.wsspi.management.bla.runtime.CompUnitControlOpDispatcher.dispatch(CompUnitControlOpDispatcher.java:180)
    at
com.ibm.ws.management.bla.steps.StepStartBLA.execute(StepStartBLA.java:157)
    at
com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151)
    at
com.ibm.wsspi.management.bla.op.compound.CompoundOperation._doPhaseExecute(CompoundOperation.java:102)
    at
com.ibm.wsspi.management.bla.op.compound.CompoundOperation.doExecute(CompoundOperation.java:85)
    at com.ibm.wsspi.management.bla.op.Operation.execute(Operation.java:158)
    at
com.ibm.wsspi.management.bla.op.compound.CompoundOperation.execute(CompoundOperation.java:68)
    at
com.ibm.ws.management.bla.commands.ADTCommand$OperationScheduler.run(ADTCommand.java:524)
    at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.NoClassDefFoundError:
org.apache.woden.resolver.URIResolver
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
    at
org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:60)
    at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
    at
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:237)
    at
org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68)
    at
org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
    at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
    at
org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68)
    at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:519)
    at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:437)
    at
org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:51)
    at com.ibm.ws.cache.servlet.ServletWrapper.init(ServletWrapper.java:238)
    at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
    ... 58 more
Caused by: java.lang.ClassNotFoundException:
org.apache.woden.resolver.URIResolver
    at java.lang.Throwable.<init>(Throwable.java:80)
    at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
    at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:351)
    at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
    at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
    ... 75 more

Reply via email to