[jbosstools-issues] [JBoss JIRA] (JBIDE-12860) JAX-RS validation problems are not linked

Radoslav Rábara (JIRA) jira-events at lists.jboss.org
Mon Oct 14 10:31:35 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-12860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12813930#comment-12813930 ] 

Radoslav Rábara commented on JBIDE-12860:
-----------------------------------------

Hi, I am not sure if I am reproducing this issue correctly. I reproduced it in JBDS 7.0.0.GA with the expected fail as descripted, but in JBDS 7.1.0.Alpha2-v20131002-0939-B431 I got warnings Multiple JAX-RS Activators for web.xml and App1.java. Existence of the warning in web.xml is related to JBIDE-15662, but I don't know why there is another warning for just App1.java and not for both App1.java and App2.java

This is how I try to reproduce this issue:
STEP: Create Dynamic Web Project with option "Generate web.xml deployment descriptor"
STEP: Activate JAX-RS support
STEP: Create JAX-RS Activator annotated with @ApplicationPath:
{code:title=App1.java|borderStyle=solid}
package test;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

@ApplicationPath("/test")
public class App1 extends Application {

}
{code}
STEP: Create another JAX-RS Activator without @ApplicationPath annotation:
{code:title=App2.java|borderStyle=solid}
package test;

import javax.ws.rs.core.Application;

public class App2 extends Application {

}
{code}
STEP: Configure App2 in web.xml:
{code:title=web.xml|borderStyle=solid}
<?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>test.App2</servlet-name>
  	<url-pattern>/test</url-pattern>
  </servlet-mapping>
</web-app>
{code}
ASSERT: There are warnings:
Multiple JAX-RS Activators are defined for the project. (for each file - App1, App2 and web.xml)
STEPS: comment servlet definition in web.xml and assert that problem markers disappear
                
> JAX-RS validation problems are not linked
> -----------------------------------------
>
>                 Key: JBIDE-12860
>                 URL: https://issues.jboss.org/browse/JBIDE-12860
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.0.0.Beta1
>            Reporter: Jaroslav Jankovič
>            Assignee: Max Rydahl Andersen
>             Fix For: 4.1.1.Alpha2, 4.2.0.Alpha1
>
>
> 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



More information about the jbosstools-issues mailing list