To deploy a web service in NetBeans IDE 5.0 to JBoss:
- Copy all JAR files from $NB_HOME/ide6/ext/jaxrpc16 to $JBOSS_HOME/servers/default/lib.
- Create web application (Ctrl-Shift-N) and set JBoss as your target server.
- Add this target to your build.xml:
<target name="-pre-init">
<!-- property libs.jaxrpc16.classpath is defined in
$USERDIR/build.properties -->
<property name="j2ee.platform.wscompile.classpath"
value="${libs.jaxrpc16.classpath}"/>
</target>
- Use Web Service wizard to create the web service files and then develop them further.
- Build the web service.
- Take the url-pattern from web.xml and put it in the project's Relative URL edit box (in the Run Panel, in the Project Properties dialog box).
- Run the project. Hurray, this is the result in the browser:

Notes:- Remember to set the proxy as described earlier.
- Remember that when you register JBoss in the IDE, you must make sure that the port you set matches the port set in the actual configuration file, because setting the port in the IDE does not set the port in the configuration file.
- Remember that JBoss and the Sun Java System Application Server both use port 8080 by default, therefore you should manually change one of them if you're going to use both.
- I tried the above steps on Tomcat, but it didn't work.
I was trying to invoke a method called operation. I got such an error:
ERROR [RPCInvocation] org.xml.sax.SAXException: Deserializing parameter 'operation': could not find deserializer for type {urn:NewWebService/types}operation
When I looked into JBoss log i found this:
WARN [TypeMappingDescription] Class not found: ws.NewWebServiceSEI_operation_RequestStruct
WARN [TypeMappingDescription] Class not found: ws.NewWebServiceSEI_operation_ResponseStruct
Do you know how to deal with that?
I am using Netbans 5.0 (20050922) and JBoss 4.0.3rc2.
WARN [org.jboss.webservice.deployment.TypeMappingDescri
ption] Class not found: cz.qds.ws.phonedirectory._arrays.java.lang.StringArray
Method declaration is:
public String[] getNames(java.lang.String name);
And client:
cz.qds.ws.phonedirectory.stub.StringArray sa = phoneDirectorySEIPort.getNames("U");
String[] x = sa.getValue();
for (String s: x) System.out.println(s);
Returns error:
java.rmi.RemoteException: Runtime exception; nested exception is: deserialization error: unexpected XML reader state. expected: END but found: START: item
I have only one difference - I run JBOSS in configuration mode ALL (and copied JAXRPC from NB into server/all/lib directory).
Do you have some ideas?