content top
What is my remote IP? Creating Java web-service for JBoss Deploy Java webservice on JBoss SSH/SFTP client in VB.net with sources

Deploy Java webservice on JBoss

After spending hours bug-tracking and head-banging to try to convert some web-services made for Tomcat to run on JBoss I finally figured out a solution. While you earlier on configured the webservices in various XML configuration files for both Tomcat and JBoss – in JBoss you no longer need that. Simply right-click the package structure you want to generate as a web-service, and select “export”. Export the package structure, as well as other packages/classes that the web-service require as a .jar file. Then simply drop that .jar file into your “deploy” directory and the web-service will automatically install itself.

You can verify your installation by pointing your browser to http://localhost:8080/jbossws/ – there you will be able to list all active web-services, and you will also see if it actually got deployed.

NOTE: Before you go insane as I did today – if you start getting all kinds of strange errors when trying to configure your web-service in JBoss, everything from DATETIME not supported, to xerces and sax conversion problems, then this is all most likely due to how JBoss expect  you to configure your web-service. Do yourself a favor, and follow them easy steps above instead.

Skrevet av Kjell Arne Brudvik den 27.08.2009 liker denne artikkelen.
  • You are right on the money with this post, keep up the good work!
content top