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 JBoss Issue Tracker by Christian Schlichtherle, 1 year ago
via Google Groups by Eric Parton, 1 year ago
via Google Groups by Naeem, 4 months ago
java.lang.ClassCastException: Incorrect expected type, org.jboss.shrinkwrap.api.ExtensionLoader, defined for org.jboss.shrinkwrap.impl.base.ServiceExtensionLoader	at org.jboss.shrinkwrap.api.SecurityActions.newInstance(SecurityActions.java:143)	at org.jboss.shrinkwrap.api.ConfigurationBuilder.createDefaultExtensionLoader(ConfigurationBuilder.java:230)	at org.jboss.shrinkwrap.api.ConfigurationBuilder.setDefaults(ConfigurationBuilder.java:204)	at org.jboss.shrinkwrap.api.Configuration.(Configuration.java:81)	at org.jboss.shrinkwrap.api.ConfigurationBuilder.build(ConfigurationBuilder.java:156)	at org.jboss.shrinkwrap.api.ShrinkWrap.createDomain(ShrinkWrap.java:79)	at org.jboss.shrinkwrap.api.ShrinkWrap.createDomain(ShrinkWrap.java:60)	at org.jboss.shrinkwrap.api.ShrinkWrap$DefaultDomainWrapper.(ShrinkWrap.java:204)	at org.jboss.shrinkwrap.api.ShrinkWrap$DefaultDomainWrapper.(ShrinkWrap.java:199)	at org.jboss.shrinkwrap.api.ShrinkWrap.getDefaultDomain(ShrinkWrap.java:108)	at org.jboss.shrinkwrap.api.ShrinkWrap.create(ShrinkWrap.java:136)	at net.java.trueupdate.installer.tomcat.TomcatUpdateInstallerIT$.testArchive(TomcatUpdateInstallerIT.scala:59)	at net.java.trueupdate.installer.tomcat.TomcatUpdateInstallerIT.test(TomcatUpdateInstallerIT.scala:32)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)	at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:301)	at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)	at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)	at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:294)	at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:267)	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:193)	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:345)	at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:49)	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:207)	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:155)	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)	at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:66)	at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:159)	at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:125)	at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:89)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)	at java.lang.Thread.run(Thread.java:745)