Aktive lesere: 6

Lokale meninger, globale ytringer

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.

Anbefalte lenker
Aktivitet
  • http://www.articledirectorypage.com/article13604.html Judi Benzschawel

    You are right on the money with this post, keep up the good work!

  • http://www.articledirectorypage.com/article13604.html Judi Benzschawel

    You are right on the money with this post, keep up the good work!