[JBossWS] - Re: JBossWS Tools Overview (wstools, wsprovide, wsconsume)
by donato.brito2
Hello people!
I think I´m little late, but here is my solution to this problem.
I´ve just installed JBossWS 2.0.2GA and following the user guide I´ve had the same problem.
To solve that, I looked in the .bat file and remove the line that contains
"set JBOSS_HOME=%DIRNAME%\.."
Before I removed that line I´d made a backup.
Because in my computer I´ve defined the JBOSS_HOME environment variable to the path where I´ve installed JBoss 4.2.2GA
Just doing that I removed the problem.
Well, that´s it, I´d like to help someone with the same problem.
See ya,
donato
PS: Sorry about my english
"shrikantmulik" wrote : I tried to use wsconsume from JBossWS Native 2.0.1 GA binary distribution. It gives following error:
|
| Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/wsf/spi/tools/cmd/WSConsume
|
| This could be due to classpath setting but is there a need to explicitly set the classpath for running this tool?
|
| Related details are as follows:
|
| OS: Windows XP SP2
| JDK: 1.5.0_12
| Folder: jbossws-native-2.0.1.GA\bin
|
| Hoping for a quick reply!
|
| Shrikant
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122613#4122613
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122613
17 years
[JBossWS] - Re: Cannot obtain wsdl service - Help
by vaswin
In addition to the above problem, i ve tried with wsrunclient to run the client program. but it also failed.
C:\Projects\eclipseLambozworkspace\EchoService\build\classes>wsrunclient uk.co.r
egdeveloper.client.EchoClient
Starting Test Client
Creating a service Using:
http://127.0.0.1:8080/EchoService/EchoBean?wsdl
and {http://webservice.regdeveloper.co.uk/jaws}EchoService
Exception in thread "main" javax.xml.rpc.ServiceException: Failed to create fact
ory: org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:110)
at uk.co.regdeveloper.client.EchoClient.main(EchoClient.java:15)
Caused by: java.lang.NoClassDefFoundError: org/jboss/util/NotImplementedExceptio
n
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:85)
... 1 more
Pls help and explain.
Srinivas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122468#4122468
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122468
17 years
[JBossWS] - Cannot obtain wsdl service - Help
by vaswin
Hi All,
http://www.regdeveloper.co.uk/2007/01/23/ejb_web_services/
When i tried the above example with my JBoss 4.2.2 with Jboss Eclipse, the below error is appeared. help me.
Starting Test Client
Creating a service Using:
http://127.0.0.1:8080/EchoService/EchoBean?wsdl
and {http://webservice.regdeveloper.co.uk/jaws}EchoService
Exception in thread "main" java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://webservice.regdeveloper.co.uk/jaws}EchoService
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111)
at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
at uk.co.regdeveloper.client.EchoClient.main(EchoClient.java:19)
| System.out.println("Starting Test Client");
| URL url = new URL("http://127.0.0.1:8080/EchoService/EchoBean?wsdl");
| QName qname = new QName( "http://webservice.regdeveloper.co.uk/jaws", "EchoService");
| System.out.println("Creating a service Using: \n\t" + url + " \n\tand " + qname);
| ServiceFactory factory = ServiceFactory.newInstance();
| Service remote = factory.createService(url, qname);
| System.out.println("Obtaining reference to a proxy object");
| Echo proxy = (Echo) remote.getPort(Echo.class);
| System.out.println("Accessed local proxy: " + proxy);
| String string = "John";
| System.out.println("Sending: " + string);
| System.out.println("Receiving: " + proxy.echo("John")); }
thx,
Srinivas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122466#4122466
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122466
17 years
[JBossWS] - Re: STRTransform Exception in WS Signing
by lafaserem
Hi!
Ok... I've made it to run the server without this exception adding jbossws-client.jar to the server classpath. I did it so with client but it didn't work.
I've run it in "debug mode" (let's call it like that) and I've seen this:
| DEBUG [main] (SOAPContentElement.java:136) - -----------------------------------
|
| DEBUG [main] (SOAPContentElement.java:137) - Transitioning from XML_VALID to DOM
| _VALID
| DEBUG [main] (SOAPContentElement.java:143) - -----------------------------------
|
| DEBUG [main] (?:?) - setElement("ds:Signature", "null")
| DEBUG [main] (?:?) - setElement("ds:SignedInfo", "null")
| DEBUG [main] (?:?) - setElement("ds:SignatureMethod", "null")
| DEBUG [main] (?:?) - Create URI "http://www.w3.org/2000/09/xmldsig#rsa-sha1" cla
| ss "class org.apache.xml.security.algorithms.implementations.SignatureBaseRSA$Si
| gnatureRSASHA1"
| DEBUG [main] (?:?) - Request for URI http://www.w3.org/2000/09/xmldsig#rsa-sha1
| DEBUG [main] (?:?) - Created SignatureDSA using SHA1withRSA
| DEBUG [main] (?:?) - setElement("ds:KeyInfo", "null")
| java.lang.ClassNotFoundException: org/jboss/ws/extensions/security/STRTransform
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:169)
| at org.apache.xml.security.transforms.Transform.register(Unknown Source)
|
| at org.jboss.ws.extensions.security.STRTransform.<clinit>(STRTransform.j
| ava:64)
| at org.jboss.ws.extensions.security.SignatureVerificationOperation.proce
| ss(SignatureVerificationOperation.java:54)
| at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecod
| er.java:123)
| at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecod
| er.java:185)
| at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(W
| SSecurityDispatcher.java:147)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboun
| dSecurity(WSSecurityHandler.java:78)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handle
| Inbound(WSSecurityHandlerClient.java:40)
| at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericH
| andler.java:55)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
| ndlerChainExecutor.java:295)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
| ndlerChainExecutor.java:140)
| at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(Cl
| ientImpl.java:168)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
|
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:16
| 4)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:15
| 0)
| at $Proxy15.getRate(Unknown Source)
| at org.jbia.ws.Client.main(Client.java:14)
|
but then I see that it does the verification process just perfect...
| DEBUG [main] (SOAPContentElement.java:136) - -----------------------------------
|
| DEBUG [main] (SOAPContentElement.java:137) - Transitioning from XML_VALID to DOM
| _VALID
| DEBUG [main] (SOAPContentElement.java:143) - -----------------------------------
|
| INFO [main] (?:?) - Verification successful for URI "#element-22-1201015964812-
| 31518612"
|
I'll continue searching the reason of this exception, but if you have some clue I'll be very grateful ;)
Thanks ;)
P.d: I've never said but... sorry for my english, I try to do it the better I can hehe :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122262#4122262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122262
17 years