Thanks Jeff,

Thanks, I am just trying to set it up:

1) Downloaded the latest(1.2.1.GA)
2) In Eclipse created a new GAE Project
3) I have been looking in the book "RESTful Java with JAX-RS, 1st
Edition" - found the sample code for "oreilly-workbook/ex03_1"
4) Copied the ( Customer.java & CustomerResource.java &
ShoppingApplication.java ) classes to my new GAE project.
5) Added to Class Path: serverlet-api-2.5.jar   &
webserver-1.3.3.jar    & jsr311-api-1.1.jar
6) Changed the web.xml serverlet to :

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">
    <display-name>Archetype Created Web Application</display-name>

    <servlet>
        <servlet-name>Resteasy</servlet-name>
        <servlet-
class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</
servlet-class>
        <init-param>
            <param-name>javax.ws.rs.Application</param-name>
            <param-
value>com.restfully.shop.services.ShoppingApplication</param-value>
        </init-param>
    </servlet>

    <servlet-mapping>
        <servlet-name>Resteasy</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>
        <welcome-file-list>
                <welcome-file>index.html</welcome-file>
        </welcome-file-list>
</web-app>

7) And I am getting an Error:
......
com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: EXCEPTION
java.lang.ClassNotFoundException:
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
.....

Can you point out anything in my steps that I am doing wrong?

Lastly, would I loos anything if I figured out to implement my own
javax.ws.rs.Application?

Thanks again
Regards
ChrisDane

On Jan 16, 10:23 pm, Jeff Schnitzer <[email protected]> wrote:
> JBoss Resteasy works fine without any special customization for GAE.
> I use it extensively.
>
> http://www.jboss.org/resteasy
>
> Jeff
>
>
>
> On Sat, Jan 16, 2010 at 1:09 PM, ChrisDane <[email protected]> wrote:
> > Hi there,
> > Has anyone seen any examples on using only JAX-RS on GAE.
>
> > Implementing the javax.ws.rs.core.Application and A resource Class
> > etc?
>
> > Thanks in advance
> > Regards
> > ChrisDane
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine for Java" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to