org.ow2.util.ee.deploy.api.deployer.DeployerException: Cannot load the class 'or g.mortbay.jetty.webapp.WebAppContext'

JIRA | Fawzib Rojas | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    For some reason when I deploy to Jetty 8.1.8 it throws the following exception (the web-jetty.xml was edited to use Jetty-7): 3/11/13 4:47:56 PM (I) EmbeddedBootstrap.start : Configuring EasyBeans for Web Container type 'JETTY6' 3/11/13 4:47:56 PM (W) EmbeddedBootstrap.start : Unable to set the servlet context event on the jetty deployer.The default deployer will be used. org.ow2.util.ee.deploy.api.deployer.DeployerException: Cannot load the class 'or g.mortbay.jetty.webapp.WebAppContext' at org.ow2.easybeans.deployer.AbsDeployer.loadClass(AbsDeployer.java:334 ) at org.ow2.easybeans.deployer.JettyDeployer.<init>(JettyDeployer.java:20 2) at org.ow2.easybeans.server.war.EmbeddedBootstrap.start(EmbeddedBootstra p.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ow2.easybeans.server.war.EasyBeansContextListener.contextInitiali zed(EasyBeansContextListener.java:131) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialize d(ContextHandler.java:771) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialize d(ServletContextHandler.java:424) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextH andler.java:763) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC ontextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav a:1250) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle r.java:706) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492 ) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan dardStarter.java:39) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1 86) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM anager.java:494) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j ava:141) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan ningAppProvider.java:145) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc anningAppProvider.java:56) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni ngAppProvider.java:121) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen tManager.java:555) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager. java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate LifeCycle.java:81) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand ler.java:58) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe r.java:96) at org.eclipse.jetty.server.Server.doStart(Server.java:277) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12 66) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:118 9) Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.webapp.WebAppCont ext at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.ow2.easybeans.deployer.A2013-03-11 16:47:56.594::WARN : LOG4J - F ailed startup of context o.e.j.w.WebAppContext{/ow2-easybeans,file:/C:/Users/f_r ojas/AppData/Local/Temp/jetty-0.0.0.0-8080-ow2-easybeans.war-_ow2-easybeans-any- /webapp/},C:\jetty-8-mssql\webapps\ow2-easybeans.war java.lang.IllegalStateException: Cannot start at org.ow2.easybeans.server.war.EasyBeansContextListener.contextInitiali zed(EasyBeansContextListener.java:135) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialize d(ContextHandler.java:771) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialize d(ServletContextHandler.java:424) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextH andler.java:763) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC ontextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav a:1250) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle r.java:706) at org.eclipse.jetty.webapp.WebAppContextbsDeployer.loadClass(AbsDeploye r.java:329) ... 39 more java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ow2.easybeans.server.war.EasyBeansContextListener.contextInitiali zed(EasyBeansContextListener.java:131) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialize d(ContextHandler.java:771) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialize d(ServletContextHandler.java:424) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextH andler.java:763) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC ontextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav a:1250) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandle r.j.doStart(WebAppContext.java:492) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan dardStarter.java:39) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1 86) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM anager.java:494) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j ava:141) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan ningAppProvider.java:145) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc anningAppProvider.java:56) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) aava:706) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492 ) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(Stan dardStarter.java:39) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:1 86) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentM anager.java:494) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.j ava:141) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scan ningAppProvider.java:145) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Sc anningAppProvider.java:56) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) at org.eclipse.jetty.util.component.Abt org.eclipse.jetty.deploy.provide rs.ScanningAppProvider.doStart(ScanningAppProvider.java:121) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen tManager.java:555) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager. java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate LifeCycle.java:81) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand ler.java:58) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe r.java:96) at org.eclipse.jetty.server.Server.doStart(Server.java:277) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12 66) at java.security.AccessController.doPrivileged(Native Method) at org.eclipsestractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(Scanni ngAppProvider.java:121) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(Deploymen tManager.java:555) at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager. java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(Aggregate LifeCycle.java:81) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHand ler.java:58) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe r.java:96) at org.eclipse.jetty.server.Server.doStart(Server.java:277) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife Cycle.java:64) at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:12 66) at java.security.AccessCon.jetty.xml.XmlConfiguration.main(XmlConfigurat ion.java:1189) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ow2.easybeans.server.war.EasyBeansContextListener.contextInitiali zed(EasyBeansContextListener.java:131) ... 32 more Caused by: java.lang.NullPointerException at org.ow2.easybeans.server.war.EmbeddedBootstrap.start(EmbeddedBootstra p.java:170) ... 37 more troller.doPrivileged(Native Method) at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:118 9) Caused by: java.lang.NullPointerException at org.ow2.easybeans.server.war.EmbeddedBootstrap.start(EmbeddedBootstra p.java:170) ... 37 more

    JIRA | 4 years ago | Fawzib Rojas
    org.ow2.util.ee.deploy.api.deployer.DeployerException: Cannot load the class 'or g.mortbay.jetty.webapp.WebAppContext'

    Root Cause Analysis

    1. org.ow2.util.ee.deploy.api.deployer.DeployerException

      Cannot load the class 'or g.mortbay.jetty.webapp.WebAppContext'

      at org.ow2.easybeans.deployer.AbsDeployer.loadClass()
    2. org.ow2.easybeans
      EmbeddedBootstrap.start
      1. org.ow2.easybeans.deployer.AbsDeployer.loadClass(AbsDeployer.java:334)
      2. org.ow2.easybeans.deployer.JettyDeployer.<init>(JettyDeployer.java:202)
      3. org.ow2.easybeans.server.war.EmbeddedBootstrap.start(EmbeddedBootstrap.java:148)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. org.ow2.easybeans
      EasyBeansContextListener.contextInitialized
      1. org.ow2.easybeans.server.war.EasyBeansContextListener.contextInitialized(EasyBeansContextListener.java:131)
      1 frame
    5. Jetty
      XmlConfiguration$1.run
      1. org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771)
      2. org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
      3. org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763)
      4. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
      5. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
      6. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
      7. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
      8. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      9. org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39)
      10. org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186)
      11. org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494)
      12. org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141)
      13. org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145)
      14. org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56)
      15. org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609)
      16. org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
      17. org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
      18. org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337)
      19. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      20. org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121)
      21. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      22. org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555)
      23. org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230)
      24. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      25. org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81)
      26. org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
      27. org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96)
      28. org.eclipse.jetty.server.Server.doStart(Server.java:277)
      29. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      30. org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1266)
      30 frames
    6. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame