Ivica Loncar created WSS-409:
--------------------------------

             Summary: explicit dependency on XMLDSigRI in WSSConfig causes 
java.lang.ClassNotFoundException: 
org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI on WAS 8.5
                 Key: WSS-409
                 URL: https://issues.apache.org/jira/browse/WSS-409
             Project: WSS4J
          Issue Type: Bug
          Components: WSS4J Core
    Affects Versions: 1.6.7
         Environment: Websphere 8.5
            Reporter: Ivica Loncar
            Assignee: Colm O hEigeartaigh


I'm trying to run CXF web service client that uses WSS4j 1.6.7 to create signed 
request.
It should run on WebSphere 8.5.
I'm trying to remove dependency on 
org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI. Instead I would like to use 
implementation that IBM provides. I have removed xmlsec from WEB-INF/lib of the 
web application.
 
Unfortunately, because WSSConfig has explicit dependency on 
org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI I've got 
java.lang.ClassNotFoundException: 
org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI 
and I don't get a chance to go further.

Please remove explicit dependency on 
org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI. I guess it should be 
implemented in the same way as it is implemented for BC.

Stack trace:

 java.lang.NoClassDefFoundError: org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI
        at java.lang.J9VMInternals.verifyImpl(Native Method)
        at java.lang.J9VMInternals.verify(J9VMInternals.java:85)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:162)
        at 
hr.pbzcard.ddkservices.axis2.security.ProviderInitializationListener.contextInitialized(ProviderInitializationListener.java:19)
        at 
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1651)
        at 
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:414)
        at 
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
        at 
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
        at 
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
        at 
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
        at 
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
        at 
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1170)
        at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
        at 
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)
        at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:769)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1364)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2169)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
        at 
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
        at 
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5339)
        at 
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5555)
        at 
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
        at 
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
        at 
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
        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:1335)
        at 
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
        at 
com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
        at 
com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1482)
        at 
com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1371)
        at 
com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1320)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
        at 
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
        at 
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
        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:1335)
        at 
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
        at 
com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
        at 
com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at 
com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:480)
        at 
com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:311)
        at 
com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:65)
        at 
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:733)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:532)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1783)
Caused by: java.lang.ClassNotFoundException: 
org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
        at 
com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:198)
        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to