2016-11-22 13 views
0

私はSuperDevModeで自分のGWTプロジェクトを開始しようとしています'com.google.gwt.dev.shell.jetty.JettyLauncher.WebAppContextWithReload'のオブジェクトのタイプが 'org.eclipse.jetty.webapp.WebAppContext'ではありません

2016-11-22 09:32:25,752 [main] INFO org.eclipse.jetty.server.Server - jetty-9.2.14.v20151106 
Starting Jetty on port 8888 
    [WARN] Failed startup of context [email protected]{/,file:/C:/Users/xxx/.IntelliJIdea2016.2/system/gwt/xxxTrunk.1eba6fcd/xxx.b010468/run/www/,STARTING}{C:\Users\xxx\.IntelliJIdea2016.2\system\gwt\xxxTrunk.1eba6fcd\xxx.b010468\run\www} 
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. in file:/C:/Users/xxx/.IntelliJIdea2016.2/system/gwt/xxxTrunk.1eba6fcd/xxx.b010468/run/www/WEB-INF/jetty-web.xml 
    at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:296) 
    at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248) 
    at org.eclipse.jetty.webapp.JettyWebXmlConfiguration.configure(JettyWebXmlConfiguration.java:102) 
    at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:479) 
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1337) 
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741) 
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) 

Mavenの設定: Gwt 2.8-rc1 super dev mode is not working on IntelliJ IDEA 2016.2.5

ランのconf:で提案されているように、私はGWT-devを追加

<dependency> 
    <groupId>com.google.gwt</groupId> 
    <artifactId>gwt-servlet</artifactId> 
    <version>2.8.0</version> 
    <scope>runtime</scope> 
</dependency> 
<dependency> 
    <groupId>com.google.gwt</groupId> 
    <artifactId>gwt-user</artifactId> 
    <version>2.8.0</version> 
    <scope>provided</scope> 
</dependency> 

<dependency> 
    <groupId>com.google.gwt</groupId> 
    <artifactId>gwt-dev</artifactId> 
    <version>2.8.0</version> 
    <scope>provided</scope> 
</dependency> 

... 

<!-- Additional GWT libraries --> 
<dependency> 
    <groupId>net.customware.gwt.dispatch</groupId> 
    <artifactId>gwt-dispatch</artifactId> 
    <version>1.2.0</version> 
</dependency> 
<dependency> 
    <groupId>com.googlecode.mvp4g</groupId> 
    <artifactId>mvp4g</artifactId> 
    <version>1.3.1</version> 
</dependency> 
<dependency> 
    <groupId>com.smartgwt</groupId> 
    <artifactId>smartgwt</artifactId> 
    <version>6.0p</version> 
</dependency> 
<dependency> 
    <groupId>com.google.guava</groupId> 
    <artifactId>guava-gwt</artifactId> 
    <version>19.0</version> 
</dependency> 

... 

<plugins> 
<!-- GWT Maven Plugin --> 
<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>gwt-maven-plugin</artifactId> 
    <version>2.8.0</version> 
    <executions> 
     <execution> 
      <goals> 
       <goal>compile</goal> 
       <goal>test</goal> 
        <goal>i18n</goal> 
      </goals> 
     </execution> 
    </executions> 

    <configuration> 
     <extraJvmArgs>-Xmx1024m -Xms512m -Xss512k</extraJvmArgs> 
     <runTarget>xxx.html</runTarget> 
     <hostedWebapp>${webappDirectory}</hostedWebapp> 
     <i18nMessagesBundle>xxx.Messages</i18nMessagesBundle> 
     <style>OBF</style> 
     <disableCastChecking>true</disableCastChecking> 
    </configuration> 
</plugin> 

のIntelliJで、私は次のエラーを取得していますiguration VMオプション:

-Xmx2048m -XX:MaxPermSizeを= 1024メートル-Djava.naming.factory.initial = org.eclipse.jetty.jndi.InitialContextFactory

桟橋-web.xml構成:

<?xml version="1.0"?> 
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> 
<Configure id="wac" class="org.eclipse.jetty.webapp.WebAppContext"> 
    <New id="configurationDataSource" class="org.eclipse.jetty.plus.jndi.Resource"> 

     <Arg>jdbc/configurationDataSource</Arg> 
     <Arg> 
      <New class="org.apache.commons.dbcp.BasicDataSource"> 
       <Set name="driverClassName">oracle.jdbc.OracleDriver</Set> 
       <Set name="url">xxx</Set> 
       <Set name="username">xxx</Set> 
       <Set name="password">xxx/Set> 
      </New> 
     </Arg> 
    </New> 
    <New id="configuration" class="org.eclipse.jetty.plus.jndi.EnvEntry"> 
     <Arg>configuration</Arg> 
     <Arg type="java.lang.String">classpath:META-INF/application-local.properties</Arg> 
     <Arg type="boolean">true</Arg> 
    </New> 
</Configure> 

私はmvn依存関係を分析しました:tree。含ま追加の桟橋のバージョンはありません

GWTインストールディレクトリへのパス:

C:\ Users \ユーザーxxx.m2リポジトリ\ \ COM \グーグル\ GWT \ GWT-devの2.8.0

JDK \バージョン:8

答えて

0

IntelliJ IDEAを2016.2.5から2016.3に更新したときに問題がなくなった

関連する問題