Hi all.

I tried to create a jax-ts application for JBoss 7.1cr1
As showed on 
http://docs.jboss.org/resteasy/docs/2.3.1.GA/userguide/html_single/index.html#d0e226
I created a simple war module with one class like this:

@Path ("/kiosk")
public class KioskRestService {
    @EJB
    private KioskManager kiosk;

    @Path ("/devices")
    @GET
    public String getDevices() {
        return "";
    }

    @GET
    @Path ("/dev/{id}")
    public String getDevice(@PathParam ("id") Integer id) {
        return "";
    }

    @PUT
    @Path ("/dev/{mac}")
    @Produces ("application/json")
    public String addDevice(@PathParam ("mac") String mac, @QueryParam
("hwm") String hwModel, @QueryParam ("hwv") String hwVersion) {
        SessionID ticSessionID = SessionIdGenerator.generateId();
        final String DEBUG_STR = ticSessionID + ":addDevice: ";
        LOG.debug("{} start", DEBUG_STR);

        String ret = null;
        ret = kiosk.registerNewKiosk(mac, hwModel, hwVersion);
        LOG.trace("{} return {}", DEBUG_STR, ret);
        LOG.debug("{} stop", DEBUG_STR);
        return ret;
    }
}

with a emply web.xml. Then the module was compiled and installed to
running jb7.1cr1 For test I invoked command:
curl -X PUT 'http://localhost:8080/km/kiosk/dev/test?hwm=a&hwv=1'

"km" is the module context.
The jboss wrote in logs:
01:15:37,996 DEBUG
[org.jboss.as.web.security.SecurityContextAssociationValve]
(http--127.0.0.1-8080-2) Failed to determine servlet

In RESTeasy documentation on
http://docs.jboss.org/resteasy/docs/2.3.1.GA/userguide/html_single/index.html#d0e226
was written  that
What I do wrong?

--
Denis Kostousov
email: denis.kostousovATgmailDOTcom
jabber: denis.kostousovATgmailDOTcom
fingerprint: 1FE3 ED00 AA62 AAA4 2737 DFA1 5E82 FDA1 82A9 E8C6

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to