I'm using WebSphere 6.1 with the EBJ3 Feature Pack installed. Does anyone know what jar I need to include in my project from the AppServer folder of my WebSphere installation in order to be able to use the @WebService annoation? I cannot seem to find it. Thanks.
A:
You will require either:
- The webservice Feature Pack for Websphere 6.1 http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg21264563
- A JAXWS implementation, such the Reference Implementation https://jax-ws.dev.java.net/
Pay attention to the order of installation of the Websphere Feature Packs
snowflake
2010-06-01 11:09:23
I think maybe you misunderstood my question. I already have the feature pack installed. My question is which specific jar do I need to include in my project to get the @WebService annotation?
dcp
2010-06-01 11:50:05
@dcp EBJ3 Feature Pack brings you EJB3 Session Beans and JPA Entities, but Bean publication of WebServices requires the Webservice feature pack that is a different feature pack.
snowflake
2010-06-01 14:39:54
@snowflake, actually I still cannot find the jar. I tried with 7.0 and was able to find it, but then I had to downgrade back to 6.1 because client won't allow 7.0. So I don't know what jar this annotation is in. Do you know the exact jar?
dcp
2010-06-03 00:16:01
@dcp To be more clear, you don't have any jar to include in your project when using the feature pack. The Webservice annotation is provided at runtime by the application server in the classpath if using the Webservice Feature Pack for websphere (not required in 7.0). Without the Webservice Feature Pack (that delivers you the Webservice annotation in the com.ibm.jaxws.thinclient_6.1.0.jar) you have to use a third party library (jar), such JAXWS-RI but not the one of WAS.Feel free to ask for details if it is not clear.
snowflake
2010-06-04 08:23:36
@snowflake - Thank you so much, that was the info I needed!
dcp
2010-06-04 17:26:13
A:
WAS_HOME/lib/j2ee.jar
Note that in WAS 7.0+, all JARs needed for development are located in WAS_HOME/dev/.
bkail
2010-06-01 15:36:39
A:
WAS_HOME/plugins/ - com.ibm.jaxws.tools_6.1.0.jar You may also need to include com.ibm.jaxb.tools, com.ibm.ws.runtime and org.apache.axis2 jars too.
LeXXXa
2010-08-24 08:12:14