[JBossWS] - Re: Call a web service
by rodosa
I don't know why it's looking into ws.jaxws.Hola directory because it doesn't exist! I built it and to check what happens and now the exception is :
| Exception in thread "main" java.lang.IllegalArgumentException: ws.JbpmService is not an interface
| at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
| at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
| at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:546)
| at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:292)
| at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274)
| at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267)
| at javax.xml.ws.Service.getPort(Service.java:92)
| at client.JbpmServiceService.getJbpmServicePort(JbpmServiceService.java:52)
| at client.JbpmWSClient.main(JbpmWSClient.java:91)
|
This is right. I haven't got the interface there, I have the class. So, how I have to put the files to this work fine??? Have I to create the jaxws manually to this works fine??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137013#4137013
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137013
16 years, 9 months
[JBossWS] - Re: Call a web service
by rodosa
The before exception was solucionated putting the libraries into the endorsed lib folder of my JAVA_HOME. But now I have another problem. I was looking information about that in google and I think that is a problem of bad situation of my files I don't now exactly. This is the exception:
| Exception in thread "main" com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class ws.jaxws.Hola is not found. Have you run APT to generate them?
| at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:249)
| at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:545)
| at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:492)
| at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:334)
| at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:220)
| at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:588)
| at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:291)
| at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274)
| at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267)
| at javax.xml.ws.Service.getPort(Service.java:92)
| at client.JbpmServiceService.getJbpmServicePort(JbpmServiceService.java:52)
| at client.JbpmWSClient.main(JbpmWSClient.java:91)
|
|
And my files are in the following directories:
*client* //The client and the files generated with wsconsume
-Hola.java
-HolaResponse.java
-JbpmService.java
-JbpmServiceService.java
-JbpmWSClient.java
-ObjectFactory.java
-package-info.java
*ws*
-JbpmService.java
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137009#4137009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137009
16 years, 9 months
[JBossWS] - Re: Call a web service
by rodosa
If I run the client as Java application the following exception it's thrown:
| java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/jboss-4.2.2.GA/client/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
| at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:172)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
| at javax.xml.bind.ContextFinder.find(Unknown Source)
| at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
| at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
| at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186)
| at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:65)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at java.lang.Class.newInstance0(Unknown Source)
| at java.lang.Class.newInstance(Unknown Source)
| at javax.xml.ws.spi.FactoryFinder.newInstance(Unknown Source)
| at javax.xml.ws.spi.FactoryFinder.find(Unknown Source)
| at javax.xml.ws.spi.Provider.provider(Unknown Source)
| at javax.xml.ws.Service.<init>(Unknown Source)
| at client.JbpmServiceService.<init>(JbpmServiceService.java:42)
| at client.JbpmWSClient.<clinit>(JbpmWSClient.java:85)
| Exception in thread "main"
|
I've put jaxb-api.jar in the lib/endorsed folder but it doesn't work.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136910#4136910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136910
16 years, 9 months
[JBossWS] - Re: Call a web service
by rodosa
Thanks for yours answers but I should make sth bad because it doesn't work.
1) rphadnis: Yes, the url for the wsdl is accessible. I could see in the browser.
2) PeterJ: I have some problems. I follow the steps you've mencionated but I don't know what's wrong. This is what occurs when I try to execute the client.
| Entro en el cliente
| Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/NotImp
| lementedException
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
| at java.lang.Class.getConstructor0(Class.java:2699)
| at java.lang.Class.newInstance0(Class.java:326)
| at java.lang.Class.newInstance(Class.java:308)
| at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:36)
| at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:95)
| at javax.xml.ws.spi.Provider.provider(Provider.java:76)
| at javax.xml.ws.Service.<init>(Service.java:57)
| at client.JbpmServiceService.<init>(JbpmServiceService.java:42)
| at client.JbpmWSClient.main(JbpmWSClient.java:79)
|
Any ideas? Thank you very much
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136901#4136901
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136901
16 years, 9 months
[JBossWS] - I can't create .SAR from eclipse
by Intecdom
Hello everyone,
Fist of all, I'm quite new with eclipse and JBoss, and I've tried reading all the information I've found about them before asking you... But I've not succeed in the next problem. If any of you can help me, I'd be deeply thankfull...
I'm developing a web application with eclipse-JBoss.
I've created an EJB project with a service.
My first problem is that I cannot create a ".sar" directly by building the project, and surfing the net I saw a trick... I change the extension ".jar" to ".sar" manually inside the ".ear" produced. I thought this was not so bad as the service seems to work in this way... But I'm sure there should be a way to get directly the file .sar
The second problem (the main one) is that I can access and use properly all the web pages, BeansClients and ServerBeans if the service is not started. But when I started the service (manually from JBoss), some parts of the project stop working.
Might the second problem follows the first one? Any help in any of them?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136783#4136783
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136783
16 years, 9 months