[
https://issues.jboss.org/browse/JBIDE-15526?page=com.atlassian.jira.plugi...
]
Radoslav Rábara edited comment on JBIDE-15526 at 3/27/14 9:37 AM:
------------------------------------------------------------------
Reopened - The problem marker in application class doesn't disappear.
My steps:
STEP: Create Dynamic Web Project with JAX-RS support
STEP: Create class extending Application:
{code}
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("/test")
public class App extends Application {
}
{code}
STEP: Insert servlet definition into web.xml:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID"
version="3.0">
<servlet-mapping>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
<url-pattern>/path2/*</url-pattern>
</servlet-mapping>
<display-name>Test</display-name>
</web-app>
{code}
ASSERT: There are 2 errors (Multiple JAX-RS Activators for both files)
STEP: Comment servlet definition in web.xml
ASSERT: There is no error
FAIL: There is 1 error
Multiple JAX-RS Activators are defined for the project. App.java
was (Author: rrabara):
The problem marker in application class doesn't disappear.
My steps:
STEP: Create Dynamic Web Project with JAX-RS support
STEP: Create class extending Application:
{code}
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("/test")
public class App extends Application {
}
{code}
STEP: Insert servlet definition into web.xml:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID"
version="3.0">
<servlet-mapping>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
<url-pattern>/path2/*</url-pattern>
</servlet-mapping>
<display-name>Test</display-name>
</web-app>
{code}
ASSERT: There are 2 errors (Multiple JAX-RS Activators for both files)
STEP: Comment servlet definition in web.xml
ASSERT: There is no error
FAIL: There is 1 error
Multiple JAX-RS Activators are defined for the project. App.java
JAX-RS validation problems are not linked
-----------------------------------------
Key: JBIDE-15526
URL:
https://issues.jboss.org/browse/JBIDE-15526
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: webservices
Reporter: Jaroslav Jankovič
Assignee: Xavier Coulon
Labels: respin-a
Fix For: 4.2.0.Beta1
This case now fails:
STEP: Create jaxrs problem with Application problem (Multiple application definition -
one class extending Application and one application servlet definition in web.xml)
STEP: comment servlet definition in web.xml
ASSERT: problem marker in web.xml disappears
ASSERT: problem marker in application class disappears
FAIL: problem marker in application class doesn't disappear, because problem markers
are not linked now -> project has to be built to correctly remove both problem markers
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira