Installing JBossWS : JAX-WS implementation for JBoss

This article explains how to install JBossWS on JBoss Application Server

Introduction

JBossWS is JAX-WS implementation for JBoss Aplication Server. If you want to deploy JAX-WS compatible Web Services, you need to install the JBossWS patch on your JBoss application Server. At the time of writing this article, the latest stable version of JBoss is 4.2.1.GA and that of JBossWS is 2.0.0.GA.

Prerequisites

This article assumes that you have the following tasks are already performed:

  • Download and install JBoss Application Server from JBoss Downloads.
  • Download and install Apache Ant from ant download page.
  • Download the latest JBossWS implemenation from the JBossWS website. The download will be named similar to jbossws-native-X.X.X.
  • Set ANT_HOME and add ant binaries to your PATH

Installation

Extract the contents of jbossws-native.x.x.x to a directory. Inside the directory you'll find a file named ant.properties. If you have a file named ant.properties.example rename the sam to ant.properties. Edit the file and update the line jboss42.home=/home .... with jboss42.home=/your/local/path/to/JBOSS If you are using Windows make sure that your escape the '\' with '\\'. For example, of your JBoss AS is installed in the directory C:\JBoss-4.2.1-GA then use jboss42.home=c:\\JBoss-4.2.1-GA

Run the commmand ant deploy-jboss42
That should install the JBossWS libraries and other files in your JBoss Application Server. You are now ready to test and deploy JAX-WS webservices in your JBoss container.

Testing

Start the application server using the run.sh or run.bat. You can check if the JBossWS is properly installed by going to the URL http://localhost:8080/jbossws

Comments

Installation files need mods

Thanks. But the installation files needed to be modified removing the occurrences of the wrong versione of Jboss. If you have 4.2.2 version all the others needed to be removed. Also <ant-dir>/bin needed to be added to PATH.

Regarding JBoss WS CXF installation on Eclipse 3.5 Galileo

Hi, I followed the same steps as written in this blog .When I executed the ant command , it shows me Build successful message and I already set the ANT in the Path variable.But I when I try to create a new Dynamic web Project and a simple POJO named as Converter.java . Now I try to create Web Service using bottom up project.But it throws an exception. Exception Details :- Exception in thread "main" java.lang.NoClassDefFoundError: gnu/getopt/LongOpt at org.jboss.wsf.spi.tools.cmd.WSProvide.parseArguments(WSProvide.java:83) at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:76) POJO details :- package com.test.ws; import javax.jws.WebMethod; import javax.jws.WebService; @WebService(serviceName="Converter" , targetNamespace="www.cecsoft.com") public class Converter { @WebMethod(action="Say hello") public float celsiusToFarenheit ( float celsius ) { return (celsius * 9 / 5) + 32; } @WebMethod(action="Bye Bye") public float farenheitToCelsius ( float farenheit ) { return (farenheit - 32) * 5 / 9; } } Please help out from the problem. Any help would be highly appreciated. Thanks Sandy

Post new comment

The content of this field is kept private and will not be shown publicly.