- This topic has 1 reply, 1 voice, and was last updated 15 years, 8 months ago by Michaelw.
-
AuthorPosts
-
MichaelwMemberI created a Weblogic client which invokes a WSE-enabled .Net Web Service using ANT. The main hurdle was creating the policy file and setting the username and password on the client side. Finally it works. I have Weblogic Server 10.0 installed.
Now I want to use MyEclipse to build and deploy this stand-alone web service client.
I import the client jar and other Weblogic jar files into MyEclipse Java project. The stand-alone Java application compiled with no errors. However, when I ran the application it
gave me the following errors. What am I missing in MyEclipse runtime?The errors:
java.rmi.RemoteException: SOAPFaultException – FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [antlr/TokenStreamException] FaultActor [null] Detail [<detail><bea_fault:stacktrace xmlns:bea_fault=”http://www.bea.com/servers/wls70/webservice/fault/1.0.0″>java.lang.NoClassDefFoundError: antlr/TokenStreamException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at weblogic.xml.crypto.dsig.TransformImpl.initTransformFactories(TransformImpl.java:42)
at weblogic.xml.crypto.dsig.TransformImpl.<clinit>(TransformImpl.java:37)
at weblogic.wsee.security.WssRuntime.initInternal(WssRuntime.java:17)
at weblogic.wsee.security.WssRuntime.<clinit>(WssRuntime.java:11)
at weblogic.xml.crypto.wss.api.WSSecurityFactory.<clinit>(WSSecurityFactory.java:20)
at weblogic.xml.crypto.wss.WSSecurityContext.init(WSSecurityContext.java:175)
at weblogic.xml.crypto.wss.WSSecurityContext.<init>(WSSecurityContext.java:197)
at weblogic.wsee.security.WssHandler.setupSecurityContext(WssHandler.java:215)
at weblogic.wsee.security.WssHandler.getSecurityPolicyDriver(WssHandler.java:161)
at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:53)
at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:72)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:123)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:99)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:101)
at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:331)
at driver.image.client.ImageRetrievalSoap_Stub.imagingFolioFetchMostRecent(Unknown Source)
at test.client.TestClient.main(TestClient.java:64)
Caused by: java.lang.ClassNotFoundException: antlr.TokenStreamException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
… 30 more
Caused by: java.lang.ClassNotFoundException: antlr.TokenStreamException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at weblogic.xml.crypto.dsig.TransformImpl.initTransformFactories(TransformImpl.java:42)
at weblogic.xml.crypto.dsig.TransformImpl.<clinit>(TransformImpl.java:37)
at weblogic.wsee.security.WssRuntime.initInternal(WssRuntime.java:17)
at weblogic.wsee.security.WssRuntime.<clinit>(WssRuntime.java:11)
at weblogic.xml.crypto.wss.api.WSSecurityFactory.<clinit>(WSSecurityFactory.java:20)
at weblogic.xml.crypto.wss.WSSecurityContext.init(WSSecurityContext.java:175)
at weblogic.xml.crypto.wss.WSSecurityContext.<init>(WSSecurityContext.java:197)
at weblogic.wsee.security.WssHandler.setupSecurityContext(WssHandler.java:215)
at weblogic.wsee.security.WssHandler.getSecurityPolicyDriver(WssHandler.java:161)
at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:53)
at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:72)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:123)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:99)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:101)
at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:331)
at driver.image.client.ImageRetrievalSoap_Stub.imagingFolioFetchMostRecent(Unknown Source)
at test.client.TestClient.main(TestClient.java:64)
</bea_fault:stacktrace></detail>]; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: antlr/TokenStreamException
at driver.image.client.ImageRetrievalSoap_Stub.imagingFolioFetchMostRecent(Unknown Source)
at test.client.TestClient.main(TestClient.java:64)
Caused by: javax.xml.rpc.soap.SOAPFaultException: antlr/TokenStreamException
at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:311)
at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:114)
at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:99)
at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:87)
at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:248)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:218)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:159)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:114)
at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:331)
… 2 more
Caused by: java.lang.NoClassDefFoundError: antlr/TokenStreamException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at weblogic.xml.crypto.dsig.TransformImpl.initTransformFactories(TransformImpl.java:42)
at weblogic.xml.crypto.dsig.TransformImpl.<clinit>(TransformImpl.java:37)
at weblogic.wsee.security.WssRuntime.initInternal(WssRuntime.java:17)
at weblogic.wsee.security.WssRuntime.<clinit>(WssRuntime.java:11)
at weblogic.xml.crypto.wss.api.WSSecurityFactory.<clinit>(WSSecurityFactory.java:20)
at weblogic.xml.crypto.wss.WSSecurityContext.init(WSSecurityContext.java:175)
at weblogic.xml.crypto.wss.WSSecurityContext.<init>(WSSecurityContext.java:197)
at weblogic.wsee.security.WssHandler.setupSecurityContext(WssHandler.java:215)
at weblogic.wsee.security.WssHandler.getSecurityPolicyDriver(WssHandler.java:161)
at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:53)
at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:72)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:123)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:99)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:101)
… 4 more
Caused by: java.lang.ClassNotFoundException: antlr.TokenStreamException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
… 30 moreThanks
Mikew
MichaelwMemberThanks. This problem is solved. I have to include a few weblogic jar files in the project classpath. It is working now.
-
AuthorPosts