Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS Handler

 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi experts,

I am getting given error during the publish of my EAR file. com.ibm.ws.exception.RuntimeError: javax.xml.ws.WebServiceException: The @HandlerChain configuration file WEB-INF/Handler.xml in the class com.hcl.ac.mercury.airprice.airprice.AirPriceWSSOAPImpl could not be loaded.

According to this Using handlers in JAX-WS Web services, handler chain configuration XML file must be in class path. I am putting the handler file under WEB-INF folder.

Please tell me why this Handler configuration file is not able to load . I am adding @HandlerChain annotation to my Service class after @javax.jws.WebService annotation. Do I need to put Handler.xml file some where else ?


Regards,
Vijay Kumar

 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one knows , I believe most of the web services are using Hander configurations.

Regards,
Vijay Kumar
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "I am putting the handler file under WEB-INF folder." mean - where exactly? WEB-INF is not in the classpath; WEB-INF/classes is, though. Also, you need a @HandlerChain annotation somewhere that points to the file.
 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

I was putting the Handler.xml in WEB-INF/ which is not in class path.

--Vijay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic