我正嘗試使用Eclipse Helios和Developer Studio執行Java客戶端代碼,以與WSO2ESB內部的Web服務進行通信。當我運行代碼時,我有以下錯誤:WSO2ESB錯誤Java客戶端使用者和WS提供者
Exception in thread "main" java.lang.NoClassDefFoundError: org/wso2/securevault/SecretResolverFactory
at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92)
at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854)
at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
at org.wso2.cs.helloservices.ProxyWSOneStub.<init>(ProxyWSOneStub.java:91)
at org.wso2.cs.helloservices.ProxyWSOneStub.<init>(ProxyWSOneStub.java:77)
at org.wso2.cs.helloservices.ProxyWSOneStub.<init>(ProxyWSOneStub.java:126)
at org.wso2.cs.helloservices.ProxyWSOneStub.<init>(ProxyWSOneStub.java:118)
at org.wso2.cs.helloservices.ClientSizeResponseSynchronous.ClientSizeResponseSynchronous(ClientSizeResponseSynchronous.java:22)
at org.wso2.cs.helloservices.MainSizeResponseSynchronous.main(MainSizeResponseSynchronous.java:38)
Caused by: java.lang.ClassNotFoundException: org.wso2.securevault.SecretResolverFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 13 more
任何解決方案,請解決此問題?
謝謝。
我覺得「SecretResolverFactory」是不是在你的執行路徑,你能解釋一下你如何運行代碼? – Alper