This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187985 - WS support sets invalid URL for session bean web service in web project
Summary: WS support sets invalid URL for session bean web service in web project
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 08:53 UTC by Milan Kuchtiak
Modified: 2010-06-25 03:16 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2010-06-23 08:53:42 UTC
There was a change in GlassFish V3.0.1 (FCS) version: the URL for stateless session bean, annotated with @WebService in web application has changed.

Example 1
@Stateless
@WebService
public class Hello {
...
}

WS URL must be set to
http://localhost:8080/HelloService/Hello 
(not http://localhost:8080/HelloProject/HeloService)

Example 2
@Stateless
@WebService(serviceName="hello", name="h")
public class Hello {
...
}
WS URL must be set to
http://localhost:8080/hello/h 
(not http://localhost:8080/HelloProject/hello
Comment 1 Milan Kuchtiak 2010-06-23 12:20:28 UTC
Waiting for affirmation from GlassFish V3 team, this is the final "rule" for WS URL.
Comment 2 Jeffrey Rubinoff 2010-06-23 13:24:14 UTC
Until this is resolved one way or the other, I've instructed users in all JAX-WS tutorials to use GF 3.0.1 b20, which is the last version I know of before this change. Using b20 also takes care of regressed GlassFish issue 11437. Lastly, in view of the lateness of these changes to GF FCS, I am worried about bugs that we have not yet discovered in NB 6.9/GF 3.0.1 FCS combination.
Comment 3 Jaroslav Pospisil 2010-06-23 13:43:24 UTC
Well,there was time for some testing before release,so at least key features should work OK.On the other hand,there will be patches release soon,so we can add fixes there,if we find something serious yet.
Comment 4 Jeffrey Rubinoff 2010-06-23 17:52:47 UTC
Stupid thing, my last comment included link to NetBeans bug 11437, I wanted link to Glass Fish bug 11437. https://glassfish.dev.java.net/issues/show_bug.cgi?id=11437
Comment 5 Milan Kuchtiak 2010-06-24 08:35:25 UTC
Fixed:
http://hg.netbeans.org/web-main/rev/b40cd576edc5

Seems that GlassFish team changed the way of computing url for EJB endpoint in
web. It's now the same as in EJB module.

Transplanting this change to 6.9.1 will be difficult since there were more changes meanwhile since 6.9 FCS.
Comment 6 Milan Kuchtiak 2010-06-24 14:10:58 UTC
These are instructions for the sustaining engineer how to integrate this fix to 6.9.1.

First fixes for issues 187597, 187598, 187599 (in this order):
http://hg.netbeans.org/web-main/rev/3b6f4e0e58a3
http://hg.netbeans.org/web-main/rev/6a5fd70aef8a
http://hg.netbeans.org/web-main/rev/79c385f847b0
http://hg.netbeans.org/web-main/rev/cc860b65936a

and finally fix for this issue:
http://hg.netbeans.org/web-main/rev/b40cd576edc5

Thank You
Comment 7 Quality Engineering 2010-06-25 03:16:24 UTC
Integrated into 'main-golden', will be available in build *201006250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b40cd576edc5
User: mkuchtiak@netbeans.org
Log: #187985: compute URL for EJB endpoint in war in the same way as in ejb module