[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
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Re: Issue with deploying to JBoss 5.0.0Beta4
by jaikiran
anonymous wrote : Caused by: java.lang.IllegalArgumentException: Null local
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.setLocal(EJBLocalReferenceMetaDa
| ta.java:96)
I could reproduce this with a sample application on JBoss-5.0 Beta4. Seems to happen when you have a ejb-local-ref defined in the web.xml file but none in the jboss-web.xml:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <web-app>
| <display-name>EJB3 Persistence</display-name>
|
| <ejb-local-ref>
| <ejb-ref-name>test</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>org.myapp.ejb2x.HelloWorldLocalHome</local-home>
| <local>org.myapp.ejb2x.HelloWorldLocal</local>
| <ejb-link>HelloWorldBean</ejb-link>
| </ejb-local-ref>
|
| </web-app>
I did not have a jboss-web.xml and started seeing these errors:
2008-03-15 14:08:24,666 DEBUG [org.jboss.deployment.JBossWebAppParsingDeployer] Error during deploy: vfsfile:/D:/jboss-5.0.0.Beta4/server/jaikiran/deploy/ZEJB3Persistence.ear/myapp.war/
| java.lang.IllegalArgumentException: Null local
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.setLocal(EJBLocalReferenceMetaData.java:96)
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.merge(EJBLocalReferenceMetaData.java:142)
| at org.jboss.metadata.javaee.spec.EJBLocalReferenceMetaData.merge(EJBLocalReferenceMetaData.java:120)
|
Adding a jboss-web.xml with the following contents, solved the issue for me:
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE jboss-web PUBLIC
| "-//JBoss//DTD Web Application 5.0//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
|
| <jboss-web>
|
|
|
| <ejb-local-ref>
| <ejb-ref-name>test</ejb-ref-name>
| <local-jndi-name>test/HelloWorld</local-jndi-name>
| </ejb-local-ref>
|
| </jboss-web>
Do you have a jboss-web.xml? If not, try adding one with the appropriate contents and see if it works.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136880#4136880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136880
18 years, 1 month