Can anyone offer up some ideas as to why the first example publishes
fine but the second does not? I have played around with trailing
slashes (/) in the @Path and other little tweaks but I get the same
result. I get the dreaded "No operation matching request path is
found" with anything other than the first example. I am using trunk
right now but I believe this was happening when using 2.1.1 also.
This works
============================
@Path("/")
@ProduceMime("application/xml")
public class UserServiceWSImpl implements UserServiceWS {
@Autowired private UserService userService;
@GET
@Path("/user/template")
@ProduceMime("application/xml")
public Response template( ) {
return Response.ok( userService.createInitializedUser()
).build();
}
}
This does not work
============================
@Path("/user")
@ProduceMime("application/xml")
public class UserServiceWSImpl implements UserServiceWS {
@Autowired private UserService userService;
@GET
@Path("/template")
@ProduceMime("application/xml")
public Response template( ) {
return Response.ok( userService.createInitializedUser()
).build();
}
}
Thank you,
-Anthony