JBOSS web service client doesn't work ( runtime modeler error: Wrapper class not found ) -


I have a simple Hello-world EJB3 that has been successfully deployed as a web service. I can see it with the URL:

The customer who works for the glassfish, but does not work for jabos

  Package Com Hardic Mazeb; Import java.net.MalformedURLException; Import java.net.URL; Import javax.xml.namespace.QName; Import javax.xml.ws.Service; Public class JAXWSClient {Private static string host = "localhost"; Private static string portite = "halobiine"; Private stable string savannum = "greeter"; Private Static String ServiceNameJabos = "Hello-YS-Hello-Ys"; // works for glassfish / / // private static string serviceEndpointAddress = "http: //" + host + ": 8080 /" + serviceName; // jboss should work for a private static string service AddresspointAddress = "http: //" + host + ": 8080 /" + serviceName_jboss; Private static string name space = "http://mejb.hardik.com/"; Public static zero main (string [] args) {URL wsdl location = zero; {String Try urlstr = serviceEndpointAddress + "/" + portType + "" WSDL "; Println (urlstr); WsdlLocation = new URL (urlstr);} catch (Malformedlexception e) {// TODO Auto-generated holding block e. PrintStackTrace ();} quenam savannum = QN new name (namespace, savannum); // dynamic service usage service service = service.Create (wsdl location, servicemQ); hello firstgatorport = service.getport (hello class); // Object bean [] = service.getPorts (); System.out.println ("1:" + firstgaterport. Hello ());}}  

How do I get here Execute the error and I get the error:

  wsrunclient.sh -cp "lib / *: dist / hello-client.jar: jboss-generate / *" com.hardik.mejb .JAXWSClient http: // localhost: formula 8080 / Hello- WS- Hello- ws / HelloBean WSDL exception "main" com.sun.xml.internal. Ws.model.RuntimeModelerException: runtime modeler error: wrapper class com.hardik. mejb.jaxws.Hello is not found. have you tried to run APT? com.sun.xml.internal.ws.model.RuntimeModeler.getClass com.sun.xml.internal.ws.model.RuntimeModeler.processDocWrappedMethod ( (RuntimeModeler.java:256) at com.sun at .xml.internal.ws.model.RuntimeModeler.p rocessMethod on com.sun.xml.internal.ws.model.RuntimeModeler.processClass (RuntimeModeler.java:514) (RuntimeModeler.java:341) .ws.model.RuntimeModeler.buildRuntimeModel com.sun on com.sun.xml.internal At .xml.internal.ws.client.WSServiceDelegate.addSEI (WSServiceDelegate.java Lesson88) (RuntimeModeler.java 2827) at com.sun.xml.internal.ws.client. WSServiceDelegate.getPort com.sun.xml.internal on .ws.client.WSServiceDelegate.getPort (WSServiceDelegate.java:274) (WSServiceDelegate.java:291) com.sun.xml.internal.ws.client on com.sun.xml.internal.ws.client.WSServiceDelegate.getPort .WSServiceDelegate.getPort (WSServiceDelegate.java:306) on javax.xml.ws.Service.getPort (WSServiceDelegate.java:302) (Servic E.java.1561) com.hardik.mejb.JAXWSClient.main (unknown source)  

Do I need to generate something? Have I got some jar files?


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -