Hi,
I found below exception [total 3 exceptions ] in servicemix log when
posting messgae to webservice using cxfbc:provider with Time Stamp Security
Here enlcosing the cxbc:provider configuration:
Error:
XX_configure_reg_sigalgos 32 ms
18:55:24,734 | DEBUG | rovider-thread-1 | Init |
102 - org.apache.servicemix.bundles.xmlsec - 1.4.3.3 |
XX_configure_reg_transforms 62 ms
18:55:24,890 | DEBUG | rovider-thread-1 | WSSConfig |
113 - org.apache.ws.security.wss4j - 1.5.9 | The provider BC was added at
position: 2
18:55:24,890 | DEBUG | rovider-thread-1 | Loader |
113 - org.apache.ws.security.wss4j - 1.5.9 |
org.apache.security.juice.provider.JuiCEProviderOpenSSL in classloader
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@988edd
java.lang.ClassNotFoundException:
org.apache.security.juice.provider.JuiCEProviderOpenSSL in classloader
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@988edd
at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)[140:org.apache.xbean.classloader:3.7]
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)[:1.5.0_15]
at
org.apache.ws.security.util.Loader.loadClass(Loader.java:185)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.ws.security.WSSConfig.loadProvider(WSSConfig.java:578)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.ws.security.WSSConfig.addJceProvider(WSSConfig.java:635)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:294)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.ws.security.WSSConfig.(WSSConfig.java:312)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:321)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:173)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:134)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:247)[156:servicemix-cxf-bc:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:606)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:370)[121:servicemix-common:2011.01.0]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)[:1.5.0_15]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)[:1.5.0_15]
at java.lang.Thread.run(Thread.java:595)[:1.5.0_15]
18:55:24,890 | DEBUG | rovider-thread-1 | WSSConfig |
113 - org.apache.ws.security.wss4j - 1.5.9 | The provider JuiCE could not be
added: org.apache.security.juice.provider.JuiCEProviderOpenSSL not found by
org.apache.ws.security.wss4j [113]
18:55:24,906 | DEBUG | rovider-thread-1 | WSS4JOutInterceptor |
- - | Action: 32
18:55:24,906 | DEBUG | rovider-thread-1 | WSS4JOutInterceptor |
- - | Actor: null
18:55:24,921 | DEBUG | rovider-thread-1 | WSHandler |
113 - org.apache.ws.security.wss4j - 1.5.9 | Performing Action: 32
18:55:24,921 | DEBUG | rovider-thread-1 | WSSConfig |
113 - org.apache.ws.security.wss4j - 1.5.9 |
org.apache.ws.security.action.TimestampAction
java.lang.ClassCastException: org.apache.ws.security.action.TimestampAction
at
org.apache.ws.security.WSSConfig.getAction(WSSConfig.java:505)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.access$200(WSS4JOutInterceptor.java:50)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:257)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:134)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:247)[156:servicemix-cxf-bc:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:606)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:370)[121:servicemix-common:2011.01.0]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)[:1.5.0_15]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)[:1.5.0_15]
at java.lang.Thread.run(Thread.java:595)[:1.5.0_15]
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal@26e26f
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor@b7cdc6
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@f1d0a3
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor@1049cbf
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor@652f4d
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.interceptor.StaxOutInterceptor@1b8935b
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.servicemix.cxfbc.interceptors.JbiOutInterceptor@41201a
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@126b7df
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.ws.policy.ServerPolicyOutFaultInterceptor@1f5a5b
18:55:24,921 | DEBUG | rovider-thread-1 | PhaseInterceptorChain |
- - | Invoking handleFault on interceptor
org.apache.cxf.ws.policy.PolicyOutInterceptor@d27196
18:55:24,937 | WARN | rovider-thread-1 | PhaseInterceptorChain |
- - | Interceptor for {http://order.demo/}OrderProcessImplService has
thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Security processing failed.
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:272)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:134)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:247)[156:servicemix-cxf-bc:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:606)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:370)[121:servicemix-common:2011.01.0]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)[:1.5.0_15]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)[:1.5.0_15]
at java.lang.Thread.run(Thread.java:595)[:1.5.0_15]
Caused by: org.apache.ws.security.WSSecurityException: General security
error (Unable to load class org.apache.ws.security.action.TimestampAction);
nested exception is:
java.lang.ClassCastException:
org.apache.ws.security.action.TimestampAction
at
org.apache.ws.security.WSSConfig.getAction(WSSConfig.java:510)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:205)[113:org.apache.ws.security.wss4j:1.5.9]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.access$200(WSS4JOutInterceptor.java:50)[116:org.apache.cxf.bundle:2.3.2]
at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:257)[116:org.apache.cxf.bundle:2.3.2]
... 10 more
Caused by: java.lang.ClassCastException:
org.apache.ws.security.action.TimestampAction
at
org.apache.ws.security.WSSConfig.getAction(WSSConfig.java:505)[113:org.apache.ws.security.wss4j:1.5.9]
... 13 more
18:55:26,328 | DEBUG | heckpoint Worker | MessageDatabase |
43 - org.apache.activemq.activemq-core - 5.4.2 | Checkpoint started.
18:55:26,671 | DEBUG | heckpoint Worker | MessageDatabase |
43 - org.apache.activemq.activemq-core - 5.4.2 | Checkpoint done.
18:55:26,906 | DEBUG | fault] Scheduler | Queue |
43 - org.apache.activemq.activemq-core - 5.4.2 | Expiring messages ..
18:55:26,906 | DEBUG | fault] Scheduler | Queue |
43 - org.apache.activemq.activemq-core - 5.4.2 |
org.apache.servicemix.jbi.cluster toPageIn: 0, Inflight: 0,
pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0
I enclosed below dependencies in pom.xml file
org.apache.servicemix
servicemix-cxf-bc
2010.01
org.apache.servicemix.bundles
org.apache.servicemix.bundles.wss4j
1.5.4_1
org.apache.cxf
cxf-rt-ws-security
2.3.3
org.apache.ws.security
wss4j
1.5.11
Please suggest me do i need to add any more dependecy files to work it
properly.I am using servicemix 4.3 version.
Regards,
Praveen Chakinala
--
View this message in context:
http://servicemix.396122.n5.nabble.com/cxfbc-java-lang-ClassNotFoundException-org-apache-security-juice-provider-JuiCEProviderOpenSSL-tp4290867p4290867.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.