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

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

Windows 7 Enterprise (Service Pack 1)

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)


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:
@EJB annotation:
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

Comment by xianwu [ 25/Jun/13 ]

Hi Chris

I have uploaded the sample applications and logging files at

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

@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

Comment by gregn123 [ 22/Jul/15 ]

This problem still exists in Glassfish 4.1.

I have fully explained the bug and it's cause, provided sample apps that illustrate and reproduce the bug, and provided a proposed patch for Glassfish 4.1 (source patch + corresponding binary) here:


Please see the README.txt file in the above GitHub repository for more details.

Generated at Wed Feb 10 05:55:02 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.