users@jersey.java.net

Re: [Jersey] Re: how to deploy bookstore sample in Glassfish v2.1?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Fri, 15 May 2009 15:26:13 +0200

great.. I will try this ...

* I never used the update center to install Jersey.. and I am not sure
if there is a default pre-installed. .... (in this case I can star to
use "provided" in my Maven projects...)

please release EJB and JMS with Glassfish v3 and then I can finally
migrate everything to the new server.. (* I am installing a solid
state driver and water cooling in my litle box to wait JavaEE 6 with
full powers :) eheh I can't wait anymore, just unleash Java EE 6
....... :) eheh

Hava a nice weekend you all..........

On Fri, May 15, 2009 at 11:21 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>
> On May 14, 2009, at 7:58 PM, Felipe Gaúcho wrote:
>
>> in the log file:
>>
>>
>> [#|2009-05-14T19:57:07.243+0200|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=19;_ThreadName=Timer-16;|deployed
>> with moduleid = bookstore|#]
>>
>>
>> [#|2009-05-14T19:57:07.358+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=19;_ThreadName=Timer-16;_RequestID=4a0b66cf-6a96-4e30-be92-0e664d059a03;|WebModule[/bookstore]PWC1270:
>> Exception starting filter Jersey Filter
>> java.lang.ClassCastException:
>> com.sun.jersey.spi.container.servlet.ServletContainer cannot be cast
>> to javax.servlet.Filter
>>
>
> Do you have a different version of Jersey installed in GF v2 by the update
> center to the version of the sample you are using? I am guessing that is the
> case.
>
> We are experiencing technical difficulties pushing out 1.0.3 and 1.1.0-ea to
> the GF v2 update center :-(
>
> You can modify the class loader delegation to be false in the sun-web.xml of
> the sample:
>
> <sun-web-app error-url="">
>  <context-root>/bookstore</context-root>
>  <class-loader delegate="false"/>
>  <jsp-config>
>    <property name="keepgenerated" value="true">
>      <description>Keep a copy of the generated servlet class' java
> code.</description>
>    </property>
>  </jsp-config>
> </sun-web-app>
>
> and thus the classes in the Jersey jars distributed with the sample with
> override those in the GF distribution.
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>



-- 
Please help to test this application:
http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces