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:
<!-- property libs.jaxrpc16.classpath is defined in
- 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:
- 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.