• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Deployed JAX-WS war does not execute main()  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I inherited a JAX-WS web service at work that was never used. The developer left the company 5 years ago. It uses maven to build it. It produces a WAR file.
It has an implementation class (MDI) and a class (MDISE) that has a main() which contains the code:
Endpoint.publish("http://localhost:9000/my-ws", new MDI());

When the WS is deployed on JBoss-eap-6.4, MIDSE is not executed. MDI is executed instead. The URI it uses is always http://localhost:8080/my-ws and not the one stated in MDISE

How do i get it to start executing in MDISE?
What am i missing?
Rey
 
Saloon Keeper
Posts: 5485
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main method is not used by WS. Maybe it's in there as part of test code to be run on the command line, but once deployed on the server, it is not used.

Which WS get deployed depends on annotations in the code and the content of the web.xml file.
 
Reyaz Raheem
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim. I am new to java web services.
How then do i change the IP:port from the default localhost:8080 when deployed?
I need to use the server's IP and port 9000.
Thanks
Rey
 
You got style baby! More than this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!