-
1. Re: BadRequestException using the REST interface
rafachies Jul 22, 2011 2:36 PM (in response to rafachies)Just for information. I've taken off the follow listener from web.xml.
<listener>
<listener-class>org.hornetq.rest.integration.RestMessagingBootstrapListener</listener-class>
</listener>
It can be the cause of my problem.But, if I put this listener on web.xml, i get this exception when starting JBoss:
Caused by: org.jboss.resteasy.spi.LoggableFailure: You cannot have 2 locators for same path: {queue-name}
at org.jboss.resteasy.core.registry.RootSegment.addPath(RootSegment.java:67)
at org.jboss.resteasy.core.registry.RootSegment.addPath(RootSegment.java:97)
Maybe because of these two definitions on resource QueueDesinationResource:
@DELETE
@Path("/{queue-name}")
deleteQueue(@PathParam("queue-name") String name)
@Path("/{queue-name}")