You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "John Pratt (JIRA)" <ji...@apache.org> on 2015/07/11 17:26:04 UTC

[jira] [Comment Edited] (TOMEE-1612) JAX-RS RestService fails with 404 in TomEE 1.7.2

    [ https://issues.apache.org/jira/browse/TOMEE-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623447#comment-14623447 ] 

John Pratt edited comment on TOMEE-1612 at 7/11/15 3:25 PM:
------------------------------------------------------------

Is this flag is new because it isn't listed in http://tomee.apache.org/properties-listing.html ?

You said that 1.7.1 was accepting endpoints without @Path which is true. But in my testing 1.7.1 doesn't accept endpoints with @Path on class. So how do you have a rest service that runs on 1.7.1 and 1.7.2? Is the only way to set 
openejb.jaxrs.scanning.methods=true ?



was (Author: jpratt):
this flag is new because it isn't listed in http://tomee.apache.org/properties-listing.html ?

You said that 1.7.1 was accepting endpoints without @Path which is true. But in my testing 1.7.1 doesn't accept endpoints with @Path on class. So how do you have a rest service that runs on 1.7.1 and 1.7.2? Is the only way to set 
openejb.jaxrs.scanning.methods=true ?


> JAX-RS RestService fails with 404 in TomEE 1.7.2
> ------------------------------------------------
>
>                 Key: TOMEE-1612
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1612
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 1.7.2
>         Environment: windows 7 with jdk 1.8.0_40
>            Reporter: John Pratt
>            Priority: Blocker
>
> We have a RestService that works fine on TomEE 1.7.1 but it fails on TomEE 1.7.2 with a 404 error.
> the rest service looks like this
> public class RestService {
> ...
>     @Path("/Elements")
>     @GET
>     public Response doGetElements() {
>         ....
>     }
> }
> We added a Path to the class as follows and it works on 1.7.2 now
> @Path("")
> public class RestService {
> ...
>     @Path("/Elements")
>     @GET
>     public Response doGetElements() {
>         ....
>     }
> }
> However the path on the class does not work in Tome 1.7.1 we get the 404 error.
> How do you create a restservice that works on both 1.7.1 and 1.7.2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)