[GLASSFISH-20661] web service endpoint is not available for the deployed EJB application Created: 25/Jun/13  Updated: 26/Jun/13

Status: Open
Project: glassfish
Component/s: web_services
Affects Version/s: 4.0_b89_RC5
Fix Version/s: None

Type: Bug Priority: Major
Reporter: xianwu Assignee: Lukas Jungmann
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS
Windows 7 Enterprise (Service Pack 1)

JDK
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)



 Description   

Reproducible operational steps:
asadmin deploy ws_ejb_ng.jar
Application deployed with name ws_ejb_ng.
Command deploy executed successfully.

Detailed description of the issue:
The deployed EJB application program has the settings below.

1) The WebService annotation and the EJB annotation are included at the same time.
@WebService annotation:
@javax.ws.WebService
@EJB annotation:
@javax.ejb.Stateless
2) The value of < ejb-name > in ejb-jar.xml is different from the value of @Stateless.

The deploy command is successful and no error messages are shown in server.log.
However the web service endpoint is not available.

The testing was under GlassFish v4 b89

If the value of < ejb-name > in ejb-jar.xml matches with the value of @Stateless (see ws_ejb_ok.jar),
then, the web service endpoint is available.

I will include sample applications and loggings late



 Comments   
Comment by xianwu [ 25/Jun/13 ]

Hi Chris

I have uploaded the sample applications and logging files at
https://github.com/xianwum/GLASSFISH-20661

List of Files
ws_ejb_ng.jar (EJB Application whose web service endpoint is not available)
ws_ejb_ng.log (server.log when the ws_ejb_ng.jar is deployed)
ws_ejb_ok.jar (EJB Application whose web service endpoint is available)
ws_ejb_ok.log (server.log when the ws_ejb_ok.jar is deployed)

The only difference between ws_ejb_ng.jar and ws_ejb_ok.jar is <ejb-name> in META-INF\ejb-jar.xml.

In ws_ejb_ok.jar#META-INF\ejb-jar.xml, we have "<ejb-name>HelloEJBa</ejb-name>"
but in ws_ejb_ng.jar#META-INF\ejb-jar.xml, we have "<ejb-name>HelloEJBb</ejb-name>"

In HelloEJB.java, we have

@WebService(endpointInterface="endpoint.Hello")
@Stateless(name = "HelloEJBa")
public class HelloEJB implements Hello {

public String sayHello(String who)

{ return "WebSvcTest-Hello " + who; }

}

Regards, Xianwu

Comment by marina vatkina [ 25/Jun/13 ]

Let's start with web-services

Generated at Tue Apr 28 02:58:59 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.