2016-10-22 5 views
0

gwtのバージョンを2.3 to 2.7と他のモジュールからアップグレードしました。 Mavenは、正常終了を構築し、私はsuperDevModeで実行したときに例外突堤の例外と起動の失敗

java.lang.IllegalArgumentException: Object of class 'com.google.gwt.dev.shell.jetty.JettyLauncher.WebAppContextWithReload' is not of type 'org.eclipse.jetty.webapp.WebAppContext'. Object Class and type Class are from different loaders. 

私はどんな考えを持っていないを取得します。

  • のIntelliJ 14
  • 桟橋9.3.12.v20160915
  • 春4.3.3.RELEASE
  • サーブレットAPI 3.1.0
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload{/,file:/home/.../modules/core-war/target/x12/},/home/.../modules/core-war/target/x12 
java.lang.IllegalArgumentException: Object of class 'com.google.gwt.dev.shell.jetty.JettyLauncher.WebAppContextWithReload' is not of type 'org.eclipse.jetty.webapp.WebAppContext'. Object Class and type Class are from different loaders. 
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:323) 
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:281) 
at org.eclipse.jetty.webapp.JettyWebXmlConfiguration.configure(JettyWebXmlConfiguration.java:103) 
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:468) 
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1237) 
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) 
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) 
at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:541) 
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) 
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) 
at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162) 
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) 
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) 
at org.eclipse.jetty.server.Server.doStart(Server.java:282) 
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) 
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:740) 
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:632) 
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1054) 
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) 
at com.google.gwt.dev.DevMode.main(DevMode.java:413) 
+0

のクラスパス内のパスを追加することによって、このjarファイルに依存関係を追加しますか? –

+0

設定は何ですか? web.xml? – Alireza

+0

この質問にも同様の例外があります:http://stackoverflow.com/questions/10800922/jetty-env-xml-with-datasource-leads-to-failing-webappcontext-on-mvn-jettyrun受け入れられた答えは、 -maven-plugin。 –

答えて

0

私はWEB-INF/libからgwt-dev.jarを取り出して、あなたもあなたの設定を追加することができ、私のアリ

 <java classname="com.google.gwt.dev.DevMode" dir="core-war/target/" failonerror="false" fork="true"> 
     <classpath> 
      <path refid="project.source.path"/> 
      <path refid="project.class.path"/> 
      <path location="${basedir}/build-conf/lib/ojdbc-11g-1.6.jar" /> 
      <path location="${mvn.repo.dir}org/netezza/nzjdbc/4.6/nzjdbc-4.6.jar" /> 
      <path location="${mvn.repo.dir}/com/google/gwt/gwt-dev/${gwt.version}/gwt-dev-2.7.0.jar" /> 
     </classpath> 
2

:使用

gwt-dev.jarはWebサーバーのクラスパス上にあります。 gwt-dev.jarを削除します。それが作成されている場合は、範囲を<scope>provided</scope>とし、WEB-INF/libsフォルダに入れないでください。 WEB-INF/libsフォルダでgwt-dev.jarを確認し、必要に応じて削除します。

関連する問題