Hi,
I am getting the following exception trying to load an application via
embedded jersey. Any idea what might cause it? Jersey version is 1.3
java.lang.ClassCastException
at java.lang.Class.cast(Class.java:2990)
at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:204)
at com.sun.jersey.core.spi.factory.InjectableProviderFactory.configure(InjectableProviderFactory.java:103)
at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:860)
at com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:153)
at com.sun.jersey.server.impl.application.WebApplicationImpl$11.f(WebApplicationImpl.java:652)
at com.sun.jersey.server.impl.application.WebApplicationImpl$11.f(WebApplicationImpl.java:649)
at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:177)
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:649)
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:644)
at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:428)
at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:277)
at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:573)
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:211)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:332)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:671)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:74)
Is there a way to disable lookup for providers by default?
Regards,
--
Imran M Yousuf
Twitter: @imyousuf - http://twitter.com/imyousuf
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557