[jbosstools-issues] [JBoss JIRA] (JBIDE-10744) JAX-RS validation is not working by default

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Tue Feb 21 04:30:38 EST 2012


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

Xavier Coulon commented on JBIDE-10744:
---------------------------------------

Jaroslav,

I can't reproduce that issue on my machine:
from a clear workspace, I created a new Dynamic Web Project targeted at JBoss EAP 5.1, I added the jaxrs-api.jar lib in the java build path, enabled JAX-RS support, then did a "paste" of the following code:

{code}
package com.sample.resource;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;

@Path("/items")
public class TestResource {

	
	@GET
	@Path("/{id}")
	public Response getItem(@PathParam("ide") String id) {
		return null;
	}
}
{code}
that I had previously copied in the system's clipboard. 
Doing a past on the 'src' source folder lets Eclipse create the appropriate package and type.

As a result, I can immediately see 2 validation errors.

Is this the way you got the problem ? Do you still have it ?

Best regards,
Xavier
                
> JAX-RS validation is not working by default
> -------------------------------------------
>
>                 Key: JBIDE-10744
>                 URL: https://issues.jboss.org/browse/JBIDE-10744
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 3.3.0.M5
>            Reporter: Jaroslav Jankovič
>            Assignee: Xavier Coulon
>            Priority: Critical
>             Fix For: 3.3.0.Beta1
>
>
> When working with fresh workspace, JAX-RS validation is not working by default. There must be some "start" action as JAX-RS validation reenabling. It should work without this "action".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list