My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: Failed to launch: Object is not of type class org.mortbay.jetty.webapp.WebAppContext
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by joerg.ho...@googlemail.com, Jun 25, 2013
What steps will reproduce the problem?
1. I followed the instructions of gwt-jetty (jar on classpath, added option to GWT launch config in eclipse)
2. Start my GWT application.

What is the expected output? What do you see instead?
Should work and launch my app but I get:

java.lang.IllegalArgumentException: Object is not of type class org.mortbay.jetty.webapp.WebAppContext
	at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:195)
	at org.eclipse.jetty.webapp.JettyWebXmlConfiguration.configure(JettyWebXmlConfiguration.java:86)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:991)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:588)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:380)
	at de.csenk.gwt.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:572)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
	at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:134)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
	at org.eclipse.jetty.server.Server.doStart(Server.java:242)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
	at de.csenk.gwt.jetty.JettyLauncher.start(JettyLauncher.java:670)
	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)
	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
	at com.google.gwt.dev.DevMode.main(DevMode.java:311)

What version of the product are you using? On what operating system?
7.1.6.v20100715 on Win7 with GWT 2.5.1.

Jun 25, 2013
#1 joerg.ho...@googlemail.com
Debugging reveals that the object is:
JettyLauncher$WebAppContextWithReload@270fcaa4@270fcaa4/,file:/C:/Users/hohwille/projects/mmm/mmm-app/mmm-app-war/src/main/webapp/,C:\Users\hohwille\projects\mmm\mmm-app\mmm-app-war\src\main\webapp

According to my Eclipse it seems to extend WebAppContext so I guess some ClassLoaderIssue is the reason here...
Jun 25, 2013
#2 joerg.ho...@googlemail.com
Yep, here you can see what is going wrong:
[WARN] Server class 'org.mortbay.jetty.webapp.WebAppContext' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/Users/hohwille/.m2/repository/com/google/gwt/gwt-dev/2.5.1/gwt-dev-2.5.1.jar' to the web app classpath for this session
   [WARN] Failed startup of context JettyLauncher$WebAppContextWithReload@72600874@72600874/,file:/C:/Users/hohwille/projects/mmm/mmm-app/mmm-app-war/src/main/webapp/,C:\Users\hohwille\projects\mmm\mmm-app\mmm-app-war\src\main\webapp


Powered by Google Project Hosting