users@jersey.java.net

Re: [Jersey] Jersey on app engine

From: Casper Bang <casper_at_jbr.dk>
Date: Wed, 8 Apr 2009 13:04:04 +0200

Congrats! Are you using the Eclipse stuff? I'm using the command line utils

/Casper

On Wed, Apr 8, 2009 at 1:01 PM, Erdinc Yilmazel <erdinc_at_yilmazel.com> wrote:

> I just managed to deploy a simple HelloWorld resource on appengine dev
> appserver without any problems using ServletContainer as a servlet
> filter. Here is my web.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 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>Joovie V 0.1</display-name>
> <filter>
> <filter-name>JoovieServlet</filter-name>
>
> <filter-class>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
> <init-param>
> <param-name>javax.ws.rs.Application</param-name>
> <param-value>Joovie</param-value>
> </init-param>
> <init-param>
>
> <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
>
> <param-value>com.sun.jersey.api.core.PackagesResourceConfig</param-value>
> </init-param>
> <init-param>
> <param-name>com.sun.jersey.config.property.packages</param-name>
> <param-value>com.joovie.webapp.pages</param-value>
> </init-param>
> </filter>
> <filter-mapping>
> <filter-name>JoovieServlet</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> </web-app>
>
>
> I will get back to you when i try other features of jersey.
>
> Erdinc
>
> On Wed, Apr 8, 2009 at 11:57 AM, Imran M Yousuf
> <imran_at_smartitengineering.com> wrote:
> > On Wed, Apr 8, 2009 at 4:39 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
> >> Hi,
> >> On Apr 8, 2009, at 12:33 PM, Casper Bang wrote:
> >>
> >> I briefly tried deploying Bookstore onto GAE/j this morning, but got
> stuck
> >> when it oddly complained over filter element:
> >>
> >>
> >> I am guessing that servlet filters are not supported yet.
> >
> > FYI, please check the following to see whats not supported -
> >
> http://code.google.com/appengine/docs/java/config/webxml.html#web_xml_Features_Not_Supported
> >
> > - Imran
> >
> >> Perhaps trying the hello world web app sample might work?
> >> Paul.
> >>
> >> com.google.apphosting.utils.config.AppEngineConfigException:
> Unrecognized
> >> element <filter>
> >> at
> >>
> com.google.apphosting.utils.config.AppEngineWebXmlProcessor.processSecondLevelNode(AppEngineWebXmlProcessor.java:91)
> >> at
> >>
> com.google.apphosting.utils.config.AppEngineWebXmlProcessor.processXml(AppEngineWebXmlProcessor.java:46)
> >> at
> >>
> com.google.apphosting.utils.config.AppEngineWebXmlReader.processXml(AppEngineWebXmlReader.java:80)
> >> at
> >>
> com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:51)
> >> at
> >> com.google.appengine.tools.admin.Application.<init>(Application.java:72)
> >> at
> >>
> com.google.appengine.tools.admin.Application.readApplication(Application.java:94)
> >> at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:92)
> >> at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:59)
> >>
> >> Also, although it claims to handle war files it will not. You need to
> deploy
> >> webapp directories, with a specialized web.xml called appengine-web.xml.
> I
> >> attribute these issues to it still being an early beta and did not
> persue it
> >> further. If you have better luck, let us know :)
> >>
> >> /Casper
> >>
> >>
> >> On Wed, Apr 8, 2009 at 12:20 PM, Imran M Yousuf
> >> <imran_at_smartitengineering.com> wrote:
> >>>
> >>> On Wed, Apr 8, 2009 at 4:07 PM, Erdinc Yilmazel <erdinc_at_yilmazel.com>
> >>> wrote:
> >>> >> Why don't you give it a try and report back? :-)
> >>> >>
> >>> >> Paul.
> >>> >
> >>> > I will do so as soon as possible :)
> >>> >
> >>>
> >>> I am eagerly waiting for the results as I am planning to do a app next
> >>> weekend as well :).
> >>>
> >>> Best regards,
> >>>
> >>> Imran
> >>>
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> >>> > For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >>> >
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Imran M Yousuf
> >>> Entrepreneur & Software Engineer
> >>> Smart IT Engineering
> >>> Dhaka, Bangladesh
> >>> Email: imran_at_smartitengineering.com
> >>> Blog: http://imyousuf-tech.blogs.smartitengineering.com/
> >>> Mobile: +880-1711402557
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> >>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >>>
> >>
> >>
> >>
> >
> >
> >
> > --
> > Imran M Yousuf
> > Entrepreneur & Software Engineer
> > Smart IT Engineering
> > Dhaka, Bangladesh
> > Email: imran_at_smartitengineering.com
> > Blog: http://imyousuf-tech.blogs.smartitengineering.com/
> > Mobile: +880-1711402557
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> > For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>