-
1. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
peterj Mar 29, 2008 3:55 PM (in response to sajhak)yes
yes
(Did you read the documentation? http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS)
See also http://www.jboss.com/index.html?module=bb&op=viewtopic&t=131079 -
2. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
sajhak Mar 30, 2008 5:26 PM (in response to sajhak)
thanks for the link Peter.
when i deploy the service endpoint , it gives an error saying something relevent to JAXB2.0 ....
The service implementation is as folows is as follows.public class SayHelloWebServiceBean implements SayHelloWebService { public String sayHello(String name) { return "Hello , welcome " + name; } }
i feel the error is because my methods parameters and return types are "String" . is that the case ?
if so how should i correct that ?
Is this an issue with JBOSS (application server) ? because , as i remember right , in Sun Application server , this method wont give errors..
pls help
thanks in advance
Saji -
3. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
peterj Mar 31, 2008 11:04 AM (in response to sajhak)Please post the code for SayHelloWebService.
Also, you need an @WebService annotation. See the discussion at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104843 -
4. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
sajhak Mar 31, 2008 5:58 PM (in response to sajhak)Here s the code for SayHelloWebService
import javax.ejb.Remote; import javax.jws.WebMethod; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; @Remote @WebService( name = "SayHello", targetNamespace = "http://org.jboss.ws/samples/retail/profile") //@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) public interface SayHelloWebService { @WebMethod public String sayHello(String name); }
PS : by the way , when i put the JAXB2.0-.jar file into the lib of the JBOSS the problem is solved.I did that without any understanding , as the exception said something like "endorsed directory....place that jar file in the xxx directory ... "
now it works fine , but im not clear about why i had to place that .jar in the lib ?? that kinda thing hasnt mentioned any of the materials i reffered.
could u explain the reason for that ?
thanks
Saji -
5. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
peterj Mar 31, 2008 7:11 PM (in response to sajhak)Are you using JDK 6? If so, no wonder you are running into problems.
-
6. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
sajhak Apr 1, 2008 8:56 AM (in response to sajhak)yes , im using JDK 6 .
does JBOSS not support that ? -
7. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
peterj Apr 1, 2008 11:59 AM (in response to sajhak)JBossAS 4.2.x is qualified only with JDK 5. See my responses at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=102355&postdays=0&postorder=asc&start=10
JBossAS 5.0 will support JDK 6 -
8. Re: javaEE5 JAX-WS web services - JBOSS 4.2.2
sajhak Apr 1, 2008 2:54 PM (in response to sajhak)ok . thanks