[jbosstools-issues] [JBoss JIRA] (JBIDE-24651) JAX-RS support (Facet) not installed for JAR projects, that are packaged into WAR's WEB-INF/lib
Vsevolod Golovanov (JIRA)
issues at jboss.org
Wed Jul 5 12:53:00 EDT 2017
Vsevolod Golovanov created JBIDE-24651:
------------------------------------------
Summary: JAX-RS support (Facet) not installed for JAR projects, that are packaged into WAR's WEB-INF/lib
Key: JBIDE-24651
URL: https://issues.jboss.org/browse/JBIDE-24651
Project: Tools (JBoss Tools)
Issue Type: Bug
Affects Versions: 4.4.4.Final
Environment: JBDS 10.4.0.GA
Reporter: Vsevolod Golovanov
Attachments: m2e-jax-rs-activation-jboss-ex.zip
{quote}Put REST webresource in a war project - m2e adds JAX-RS support to the project.
Put REST webresource in a jar project, that is deployed in a war - m2e does not add JAX-RS support to the project.
As JAX-RS 2.0 spec says in 2.3.2 Servlet:
"A JAX-RS application is packaged as a Web application in a .war file. The application classes are packaged in WEB-INF/classes or WEB-INF/lib and required libraries are packaged in WEB-INF/lib. See the Servlet specification for full details on packaging of web applications."
That means you can have REST webresources in jars, that are deployed in a war. Such jars are web fragments in servlet terms.
The reproducer is attached.
The war project receives the relevant facets: Dynamic Web Module and JAX-RS.
The jar-ui project receives the Web Fragment Module facet, but no JAX-RS.{quote}
This is a quote from an analogous [m2e-wtp issue|https://bugs.eclipse.org/bugs/show_bug.cgi?id=519228]. I'm not sure if there is anything to be done at JBT side of things, or if this is a strictly m2e-wtp issue. I see two relevant JBT specifics: jboss' repackaged jax-rs spec api and the JAX-RS/JAX-RS Support thingie in project properties.
I've attached a jboss-specific reproducer here, that uses jboss' repackaged jax-rs spec api.
It shows both JAX-RS Support not being enabled and JAX-RS facet not being added to a jar web fragment project.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jbosstools-issues
mailing list