Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Re: java.lang.IllegalArgumentException: Object is not of type class org.eclipse.jetty.webapp.WebAppContext

I've resolved the problem. The problem was that I've included gwt-dev.jar, which has its own org.eclipse.jetty.* classes.
Sorry for opening the thread!

2010/7/3 Bálint Kriván <balint@xxxxxxxxxxx>
Hi!

I've been using GWT 2.1.0.M1, but now I'm updated to GWT 2.1.M2 and I see that it's using jetty7 as bundled server, so I've updated my files, but I'm getting this:
java.lang.IllegalArgumentException: Object is not of type class org.eclipse.jetty.webapp.WebAppContext
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:195)
at org.eclipse.jetty.plus.webapp.EnvConfiguration.configure(EnvConfiguration.java:95)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:963)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)
at hu.sch.kfc.dev.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:466)
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:118)
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:230)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at hu.sch.kfc.dev.JettyLauncher.start(JettyLauncher.java:559)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:424)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1059)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
at com.google.gwt.dev.DevMode.main(DevMode.java:279)

My jetty-env.xml looks like this:
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <New id="message" class="org.eclipse.jetty.plus.jndi.Resource">
    <Arg>jdbc/kfc</Arg>
    <Arg>
      <New class="org.apache.derby.jdbc.EmbeddedDataSource">
        <Set name="DatabaseName">target/database/kfc</Set>
        <Set name="user"></Set>
        <Set name="password"></Set>
        <Set name="createDatabase">create</Set>
      </New>
    </Arg>
  </New>
</Configure>

It was working on jetty 6 (of course I were using org.mortbay.jetty.webapp.WebAppContext and org.mortbay.jetty.plus.naming.Resource)

What am I doing wrong? How can I make Jetty 7 work?

Very thanks for your help!

--
Regards,
Bálint Kriván



--
Üdv,
Kriván Bálint

Back to the top