java.lang.ClassNotFoundException:org.wso2.carbon.security.util.SecurityTokenStore

时间:2015-07-29 09:02:39

标签: wso2esb

您在使用Jdk 1.5版本的安全性运行Wso2 Esb客户端Java代码时得到以下解释,您能否提供解决方案..

java.lang.ClassNotFoundException:org.wso2.carbon.security.util.SecurityTokenStore     在java.net.URLClassLoader $ 1.run(URLClassLoader.java:200)     at java.security.AccessController.doPrivileged(Native Method)     在java.net.URLClassLoader.findClass(URLClassLoader.java:188)     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)     at sun.misc.Launcher $ AppClassLoader.loadClass(Launcher.java:268)     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)     在org.apache.ws.security.util.Loader.loadClass(Loader.java:155)     在org.apache.rampart.RampartMessageData.getTokenStorage(RampartMessageData.java:639)     在org.apache.rampart.RampartEngine.process(RampartEngine.java:138)     在org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)     在org.apache.axis2.engine.Phase.invoke(Phase.java:318)     在org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)     在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)     at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)     在org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)     at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)     在org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)     在WSO2.WSO2_Axis2_Client19.UpdateAssetStatusSecuirtyStub.updateAssetStatusSecurity(UpdateAssetStatusSecuirtyStub.java:193)     在WSO2.WSO2_Axis2_Client19.UpdateAssetClientProgram.main(UpdateAssetClientProgram.java:94) 2015年7月29日下午2:30:33 org.apache.ws.security.util.Loader loadClass 警告:org.wso2.carbon.security.util.SecurityTokenStore java.lang.ClassNotFoundException:org.wso2.carbon.security.util.SecurityTokenStore     在java.net.URLClassLoader $ 1.run(URLClassLoader.java:200)     at java.security.AccessController.doPrivileged(Native Method)     在java.net.URLClassLoader.findClass(URLClassLoader.java:188)     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)     at sun.misc.Launcher $ AppClassLoader.loadClass(Launcher.java:268)     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)     在org.apache.ws.security.util.Loader.loadClass(Loader.java:185)     在org.apache.ws.security.util.Loader.loadClass(Loader.java:163)     在org.apache.rampart.RampartMessageData.getTokenStorage(RampartMessageData.java:639)     在org.apache.rampart.RampartEngine.process(RampartEngine.java:138)     在org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)     在org.apache.axis2.engine.Phase.invoke(Phase.java:318)     在org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)     在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)     at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)     在org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)     at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)     在org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)     在WSO2.WSO2_Axis2_Client19.UpdateAssetStatusSecuirtyStub.updateAssetStatusSecurity(UpdateAssetStatusSecuirtyStub.java:193)     在WSO2.WSO2_Axis2_Client19.UpdateAssetClientProgram.main(UpdateAssetClientProgram.java:94) 线程" main"中的例外情况java.lang.RuntimeException:Undefined' WSHandler:无法加载令牌存储类:org.wso2.carbon.security.util.SecurityTokenStore'资源财产     at org.apache.rampart.RampartException.getMessage(RampartException.java:81)     在org.apache.rampart.RampartException。(RampartException.java:61)     在org.apache.rampart.RampartException。(RampartException.java:67)     在org.apache.rampart.RampartMessageData.getTokenStorage(RampartMessageData.java:641)     在org.apache.rampart.RampartEngine.process(RampartEngine.java:138)     在org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)     在org.apache.axis2.engine.Phase.invoke(Phase.java:318)     在org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)     在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)     at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)     在org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)     at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)     在org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)     在WSO2.WSO2_Axis2_Client19.UpdateAssetStatusSecuirtyStub.updateAssetStatusSecurity(UpdateAssetStatusSecuirtyStub.java:193)     在WSO2.WSO2_Axis2_Client19.UpdateAssetClientProgram.main(UpdateAssetClientProgram.java:94)

1 个答案:

答案 0 :(得分:0)

我在java客户端中遇到了与jdk 1.7相同的问题。添加正确的org.wso2.carbon.security.mgt maven依赖项后,它可以正常工作。