users@glassfish.java.net

Re: deployment failed in Glassfish V3

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 12 Jun 2009 08:01:55 +0200

Hi,

Such a class cast exception, in theory, should not occur. Does your
application have any StringReaderProvider implementations registered?
If not i cannot explain why this occurs, and why it occurs then and
not sooner in the initialization.

Paul.


On Jun 11, 2009, at 8:38 PM, Felipe Gaścho wrote:

> I tried to deploy my footprint-service in the Glassfish V3, but I got
> the below error. The same service works fine with V2.x:
>
>
> [#|2009-06-11T20:31:47.442+0200|INFO|glassfish|
> org.apache.catalina.loader.WebappLoader|
> _ThreadID=21;_ThreadName=Thread-1;|Unknown
> loader org.glassfish.internal.api.DelegatingClassLoader_at_1685e30 class
> org.glassfish.internal.api.DelegatingClassLoader|#]
>
> [#|2009-06-11T20:31:47.463+0200|INFO|glassfish|
> com.sun.jersey.api.core.PackagesResourceConfig|
> _ThreadID=21;_ThreadName=Thread-1;|Scanning
> for root resource and provider classes in the packages:
> net.java.dev.footprint.service.resources|#]
>
> [#|2009-06-11T20:31:47.482+0200|INFO|glassfish|
> com.sun.jersey.api.core.PackagesResourceConfig|
> _ThreadID=21;_ThreadName=Thread-1;|Root
> resource classes found:
> class net.java.dev.footprint.service.resources.EventResource
> class net.java.dev.footprint.service.resources.OrganizationResource
> class net.java.dev.footprint.service.resources.MockResource
> class net.java.dev.footprint.service.resources.CertificateResource
> class net.java.dev.footprint.service.resources.Wadl2HtmlResource
> class net.java.dev.footprint.service.resources.UserResource|#]
>
> [#|2009-06-11T20:31:47.483+0200|INFO|glassfish|
> com.sun.jersey.api.core.PackagesResourceConfig|
> _ThreadID=21;_ThreadName=Thread-1;|Provider
> classes found:
> class net.java.dev.footprint.service.resources.EJBProvider|#]
>
> [#|2009-06-11T20:31:47.664+0200|SEVERE|glassfish|
> javax.enterprise.system.container.web.com.sun.enterprise.web|
> _ThreadID=21;_ThreadName=Thread-1;|WebModule[/footprint-
> service]StandardWrapper.Throwable
> java.lang.ClassCastException
> at java.lang.Class.cast(Class.java:2990)
> at
> com
> .sun
> .jersey
> .core
> .spi
> .component
> .ProviderServices.getProvidersAndServices(ProviderServices.java:122)
> at
> com
> .sun
> .jersey
> .server
> .impl
> .model
> .parameter
> .multivalued.StringReaderFactory.init(StringReaderFactory.java:57)
> at
> com
> .sun
> .jersey
> .server
> .impl
> .application.WebApplicationImpl.initiate(WebApplicationImpl.java:562)
> at
> com
> .sun
> .jersey
> .server
> .impl
> .application.WebApplicationImpl.initiate(WebApplicationImpl.java:383)
> at
> com
> .sun
> .jersey
> .spi
> .container.servlet.ServletContainer.initiate(ServletContainer.java:
> 377)
> at com.sun.jersey.spi.container.servlet.ServletContainer
> $InternalWebComponent.initiate(ServletContainer.java:242)
> at
> com
> .sun
> .jersey.spi.container.servlet.WebComponent.load(WebComponent.java:449)
> at
> com
> .sun
> .jersey.spi.container.servlet.WebComponent.init(WebComponent.java:169)
> at
> com
> .sun
> .jersey
> .spi.container.servlet.ServletContainer.init(ServletContainer.java:
> 281)
> at
> com
> .sun
> .jersey
> .spi.container.servlet.ServletContainer.init(ServletContainer.java:
> 442)
> at javax.servlet.GenericServlet.init(GenericServlet.java:243)
>
> --
> Looking for a client application for this service:
> http://fgaucho.dyndns.org:8080/footprint-service/wadl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>