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 206527 - Do not extend JEE6 project classpath with Jersey libraries
Summary: Do not extend JEE6 project classpath with Jersey libraries
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on: 206526 206529
Blocks: 204816
  Show dependency tree
 
Reported: 2011-12-19 11:20 UTC by Denis Anisimov
Modified: 2012-01-11 16:15 UTC (History)
2 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 Denis Anisimov 2011-12-19 11:20:13 UTC
JEE6 spec requires presence of JSR311.
So J2EE server with JEE6 profile should have JSR311 API in its classpath.
Such server should have also RESTful implementation specific classes that allow to run RESTful WS in its container.

So RESTful configuration dialog should not extend project classpath with Jersey jar files.

See also issue #204816.
Comment 1 Denis Anisimov 2011-12-20 12:17:02 UTC
Fix on GF side : web-main#fbfedfcd8985

I chose the way to fix JEE6 profile special case in any server plugin separately
instead of common logic to avoid call to JaxRsStack within REST modules (in JEE6 case). 
Such approach allows to extend classpath with all Jersey libraries available :
do not extend project classpath but some special classpath (like J2EE server) with jar files which will not be added into the resulting deployment unit.
Comment 2 Quality Engineering 2011-12-21 15:38:17 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/fbfedfcd8985
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#206527 on the GF side.
Comment 3 Denis Anisimov 2012-01-10 08:05:53 UTC
web-main#505e46a32c46
Fix for Weblogic
Comment 4 Quality Engineering 2012-01-11 16:15:42 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/505e46a32c46
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#206527 - Do not extend JEE6 project classpath with Jersey libraries ( Weblogic plugin ).