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.
Summary: | NetBeans force usage of METRO 2.0 library | ||
---|---|---|---|
Product: | webservices | Reporter: | hmlnarik |
Component: | Code | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mgrebac |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
hmlnarik
2010-05-18 13:44:15 UTC
Just to be sure this is not WSIT issue, but a generic WS support issue - would you please provide reproduction steps? Thanks. Yes, agree, the request is legitimate. Reproduction steps: (Setup: Netbeans 6.8, having both Tomcat 6 and GlassFish v3 installed) 1) Create a new Web Application project 2) Create a new class HelloWorld with the following contents: =============== import javax.jws.WebParam; import javax.jws.WebService; @WebService(targetNamespace = "http://my.org/ns/", serviceName="HelloWorld") public class HelloWorld { public String sayHi(@WebParam(name = "text") String text) { return "Hi " + text; } } =============== 3) Save the class 4) Now inspect project libraries (it contains METRO 2.0) and web.xml file (contains new entries for Metro WS servlets and listener). A new file "sun-jaxws.xml" is created as well which is unusable for frameworks other than Metro. We plan to fix this "intrusive" behaviour to the next release. Fixed: http://hg.netbeans.org/web-main/rev/b6eda0858e43 Note: the fix was implemented for ant project types only. Maven projects work fine from the beginning. Integrated into 'main-golden', will be available in build *201007130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b6eda0858e43 User: mkuchtiak@netbeans.org Log: #186299: don't force METRO 2.0 stack in WS Support |