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 74732 - Cannot deploy ws from wsdl to the latest GlassFish
Summary: Cannot deploy ws from wsdl to the latest GlassFish
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-10 16:00 UTC by Lukas Jungmann
Modified: 2006-04-19 13:37 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wsdl for test (3.60 KB, text/plain)
2006-04-10 16:02 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2006-04-10 16:00:58 UTC
[b200604100200]

-create new websvc from WSDL (eg. attached one) in web project and deploy project

=> there are exceptions in server log and testing ws fails

-cause:
  -jax-ws library used by IDE is different (older) than one used in latest
GlassFish some classes were renamed eg. javax.xml.bind.annotation.AccessType ->
javax.xml.bind.annotation.XmlAccessType;).

 => we should update version of bundled JAX-WS lib

  -after updating jax-ws lib in the IDE following exception is being thrown
during deployment:
 "modeler error: The @javax.jws.WebMethod annotation cannot be used in with
@javax.jws.WebService.endpointInterface element."

 => we should remove @WebMethod from ws impl class in case of ws from wsdl
Comment 1 Lukas Jungmann 2006-04-10 16:02:50 UTC
Created attachment 29735 [details]
wsdl for test
Comment 2 Milan Kuchtiak 2006-04-11 08:05:53 UTC
Thank you for evaluation.
Yes, there must have been changed something in GlassFish.
Comment 3 Milan Kuchtiak 2006-04-11 12:40:19 UTC
jaxws20 library upgraded to latest version.

The rest of the task is to remove @WebMethod annotation from implementation
class (for WS from WSDL scenario)

I am decreasing the prority to P2.
Comment 4 Milan Kuchtiak 2006-04-11 12:41:15 UTC
Radko, the fix shouldn't be difficult.
Comment 5 Radko Najman 2006-04-12 15:31:53 UTC
Fixed.

Checking in dev/src/org/netbeans/modules/websvc/dev/wizard/WebServiceCreator.java;
/cvs/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/Attic/WebServiceCreator.java,v
 <--  WebServiceCreator.java
new revision: 1.1.2.29; previous revision: 1.1.2.28
done
Checking in core/src/org/netbeans/modules/websvc/core/jaxws/JaxWsUtils.java;
/cvs/websvc/core/src/org/netbeans/modules/websvc/core/jaxws/Attic/JaxWsUtils.java,v
 <--  JaxWsUtils.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Comment 6 Lukas Jungmann 2006-04-19 13:37:40 UTC
v.