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 247702 - NB add automatically Jersey libraries when using TomEE JAX-RS
Summary: NB add automatically Jersey libraries when using TomEE JAX-RS
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: TomEE (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
Depends on:
Reported: 2014-10-05 19:35 UTC by iluvtr
Modified: 2015-08-20 19:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

image of bug (137.40 KB, image/png)
2014-10-05 19:35 UTC, iluvtr

Note You need to log in before you can comment on or make changes to this bug.
Description iluvtr 2014-10-05 19:35:10 UTC
Created attachment 149718 [details]
image of bug

NB add automatically Jersey libraries when using TomEE JAX-RS. This is useless and invalid (throwing many exceptions when the app is deployed) because this version of TomEE already includes a JAX-RS implementation

Create a new Ant Java Web Project using the TomEE server 1.7.1, create a new class, put the cursor before the 'public class' , hit Ctrl +, select @Path, and NB add Jersey libraries without information (and your permission)

I think that this problem occurs too when one uses plain Tomcat using Apache CXF JAX-RS implementation

I suggest that NB shouldn't include the JAX-RS libraries automatically, at least it should pop up a window telling you something like 'Do you want to add Jersey JAX-RS implementation?'
Comment 1 David Konecny 2014-10-05 21:06:09 UTC
Looks like TomEE server plugin is not aware of TomEE containing the JAX-RS impl?