[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
18 years, 6 months
[JBoss Seam] - any solutions for multiple entity module jars in one WAR?
by zjsun
I want to divide my web application into some module jars(as my project is so large, and want to make deployment easier), each module jar contains the module spec entities. As in a WAR, i want these module jars use the root /WEB-INF/classes/persistence.xml, but after my tries, i am failed.
my war packaging as follows:
| app.war/
| META-INF/
| MANIFEST.MF
| WEB-INF/
| web.xml
| components.xml
| faces-config.xml
| pages.xml
| classes/
| META-INF/
| orm.xml
| persistence.xml
| lib/
| my-module1.jar/
| META-INF/
| MANIFEST.MF
| components.xml
| org/
| jboss/
| module1/
| Entity1.class
| ...
| seam.properties
| ...
| home.xhtml
| entity1List.xhtml
| entity1.xhtml
| ...
| my-module2.jar/
| META-INF/
| MANIFEST.MF
| components.xml
| org/
| jboss/
| module2/
| Entity2.class
| ...
| seam.properties
| ...
| home.xhtml
| entity2List.xhtml
| entity2.xhtml
| ...
| ...
|
| login.xhtml
| register.xhtml
| ...
|
at first, the problem is that JPA does not load these entities in module jars(sitted in /WEB-INF/lib directory), one solution is to add all entity classes in the /WEB-INF/classes/persistence.xml by declaring "class" element.
but i just want not to edit these fussy elements in deployment time, so this solution is not suit for me.
is there any solutions that i can just put a module jar into /WEB-INF/lib directory, and dont need to edit the root persistence.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122461#4122461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122461
18 years, 6 months