Create you web application.
Most important change is add
com.sun.xml.ws.transport.http.servlet.WSServlet and your webservices entries in web.xml and sun-jaxws.xml
Create EAR file
META-INF---\
Application.xml
webmodule.war---\
META-INF --\
MANIFEST.MF
webservices-api.jar
webservices-extra.jar
webservices-extra-api.jar
webservices-rt.jar
webservices-tools.jar
Remove conflicting jars from WEB-INF/lib
jaxb-api-1.5.jar
jaxb-impl-1.5.jar
jaxb-libs-1.5.jar
jaxb-xjc-1.5.jar
jaxrpc-api-1.1.jar
jaxrpc-impl-1.1.jar
jaxrpc-spi-1.1.jar
xerces-2.0.2.jar
xml-apis-2.0.2.jar
Contents of Application.XML
1
2 <application id="Application_ID1">
3 <display-name>MyEnterpriseApplication</display-name>
4 <module id="WarModule">
5 <web>
6 <web-uri>webmodule.war</web-uri>
7 <context-root>/metrowebservices</context-root>
8 </web>
9 </module>
10 </application>
11
add following line to MANIFEST.MF
Class-Path: webservices-api.jar webservices-extra.jar webservices-extra-api.jar webservices-rt.jar webservices-tools.jar
Finally
ON IBM administration console
select : Classes loaded with application class loader first
2 comments:
Can you give example sun-jaxws.xml? As I am not sure how you will define com.sun.xml.ws.transport.http.servlet.WSServlet in sun-jaxws.xml.
When you use websphere there is no need of defining sun-jaxws.xml. com.sun.xml.ws.transport.http.servlet.WSServlet should be defined in web.xmlk
Post a Comment