Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Cannot deploy web service in GlassFish using together @WebserviceProvider and @Stateless

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to deploy in GlassFish JAX-WS web service,
Here is a snippet of class were the web service is defined. Pay attention that I use @WebServiceProvider

The problem is about the deploying the service in GlassFish ( . For some reason it seems that it the server treats like EJB but not service endpoint.
I made such conclusion based on the GlassFish log :

[#|2012-09-08T16:39:15.682-0400|INFO|glassfish3.1.2||_ThreadID=20;_ThreadName=Thread-2;|EJB5181:Portable JNDI names for EJB HelloWorldEJBWS: [java:global/JAX-WS_GreetingEJBMutualAuthProvider/HelloWorldEJBWS, java:global/JAX-WS_GreetingEJBMutualAuthProvider/HelloWorldEJBWS!]|#]

[#|2012-09-08T16:39:15.792-0400|INFO|glassfish3.1.2||_ThreadID=20;_ThreadName=Thread-2;|WS00019: EJB Endpoint deployed
JAX-WS_GreetingEJBMutualAuthProvider listening at address at http://localhost:8088/HelloWorldWSService/com.ivan.wsejb.provider.HelloWorldEJBWS|#]

For comparison I provide the log when I deployed the service using @WebService but not @WebServiceProvider

[#|2012-09-08T16:41:50.514-0400|INFO|glassfish3.1.2||_ThreadID=22;_ThreadName=Thread-2;|WS00019: EJB Endpoint deployed
JAX-WS_GreetingEJBMutualAuth listening at address at http://localhost:8088/HelloWorldEJBWSService/HelloWorldEJBWS|#]

and here is snipped of the code when I apply @WebService

Did I do something wrong ?
Mike Abramov
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did everything right, but was mislead by GlassFish. It could be a a bug...
When I deploy web service with endpoint implemented as servlet (second case) in the console I can see endpoint, but in case with endpoint implemented as EJB the endpoint did not appear in the console. But I could access the WSDL with a link http://ABRAMOV1:8088/HelloWorldWSService/com.ivan.wsejb.provider.HelloWorldEJBWS?wsdl and ultimately tested web service with the client
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic