Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via felix-users by David Tkaczyk, 1 year ago
The class com.sun.jersey.server.impl.container.WebApplicationProviderImpl implementing provider interface com.sun.jersey.spi.container.WebApplicationProvider could not be instantiated: null
java.lang.ClassCastException: 	at java.lang.Class.cast(Class.java:2990)	at com.sun.jersey.spi.service.ServiceFinder$LazyObjectIterator.hasNext(ServiceFinder.java:641)	at com.sun.jersey.spi.container.WebApplicationFactory.createWebApplication(WebApplicationFactory.java:61)	at com.sun.jersey.spi.container.servlet.ServletContainer.create(ServletContainer.java:325)	at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.create(ServletContainer.java:240)	at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:548)	at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:201)	at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:307)	at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:470)	at javax.servlet.GenericServlet.init(GenericServlet.java:242)	at com.sun.grizzly.http.servlet.ServletAdapter.loadServlet(ServletAdapter.java:428)	at com.sun.grizzly.osgi.httpservice.OSGiServletAdapter.startServlet(OSGiServletAdapter.java:99)	at com.sun.grizzly.osgi.httpservice.OSGiMainAdapter.registerServletAdapter(OSGiMainAdapter.java:178)	at com.sun.grizzly.osgi.httpservice.HttpServiceImpl.registerServlet(HttpServiceImpl.java:92)	at camiant.osgi.msr.rest.HttpServiceServiceTrackerCustomizer.addingService(HttpServiceServiceTrackerCustomizer.java:70)	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:878)	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:732)	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3587)	at org.apache.felix.framework.Felix.access$000(Felix.java:40)	at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:625)	at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:90)	at org.apache.felix.framework.Felix.registerService(Felix.java:2711)	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:252)	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:230)	at com.sun.grizzly.osgi.httpservice.Activator.start(Activator.java:89)	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)	at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)	at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)	at java.lang.Thread.run(Thread.java:619)