users@glassfish.java.net

Re: Cannot access WAR webservices from EJB if deployed in an EAR

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 Apr 2010 12:15:31 PDT

Ok I fixed it. This is how...

Right click the web service connector in the EJB JAR under "Web Service References" in netbeans, select "Edit Web Service Attributes", select "WSImport Option" tab....

In this section add a new option called "package" and define a package. This will add the "-p" option to wsimport with your new package which removes the collision.

Only issue now is that my log files are being flooded with the following each time the web service is hit:
WSP1049: Loaded WSIT configuration from file: file:/C:/Program Files/glassfish-v2/domains/domain1/applications/j2ee-apps/ESP/HGTCoreEJB_jar/META-INF/wsit-client.xml
[Message sent by forum member 'brentfrederick']

http://forums.java.net/jive/thread.jspa?messageID=395991