2012-09-27 2 views
1

gwt-maven-plugin을 사용하여 Maven을 사용하여 레거시 프로젝트를 실행하려고합니다. 다음 오류가 있습니다.인터페이스 com.google.gwt.core.ext.typeinfo.JClassType이 발견되었지만 클래스가 필요했습니다.

Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

GWT 2.4.0과 연결되어 있습니다. GWT를 다운 그레이드하거나 gwtp를 다시 컴파일하는 것에 대한 답변이 있지만 이해가되지 않습니다.

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>gwt-maven-plugin</artifactId> 
    <version>2.4.0</version> 
    <executions> 
     <execution> 
      <goals> 
       <goal>compile</goal> 
       <goal>i18n</goal> 
      </goals> 
     </execution> 
    </executions> 

    <configuration> 
     <runTarget>someTarget.html</runTarget> 
     <hostedWebapp>${webappDir}</hostedWebapp> 
     <i18nMessagesBundle>org.I18nMsg</i18nMessagesBundle> 
    </configuration> 
</plugin> 

<pluginManagement> 
    <plugins> 
     <pluginExecution> 
      <pluginExecutionFilter> 
       <groupId> 
        org.codehaus.mojo 
       </groupId> 
       <artifactId> 
       gwt-maven-plugin 
       </artifactId> 
       <versionRange> 
       [2.4.0,) 
       </versionRange> 
       <goals> 
        <goal>i18n</goal> 
       </goals> 
      </pluginExecutionFilter> 
      <action> 
       <execute></execute> 
      </action> 
      </pluginExecution> 
     </pluginExecutions> 
.... 

오류 :

[INFO] Scanning for additional dependencies: jar:file:/C:/Users/xxx/.m2/repository/com/extjs/gxt/2.2.0/gxt-2.2.0.jar!/com/extjs/gxt/ui/client/core/El.java 
[INFO]  Computing all possible rebind results for 'com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl' 
[INFO]   Rebinding com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl 
[INFO]    Could not find an exact match rule. Using 'closest' rule <replace-with class='com.extjs.gxt.ui.client.core.impl.ComputedStyleImplIE'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding 
[INFO]   Rebinding com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl 
[INFO]    Could not find an exact match rule. Using 'closest' rule <replace-with class='com.extjs.gxt.ui.client.core.impl.ComputedStyleImplIE'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding 
[INFO] [ERROR] Errors in 'jar:file:/C:/Users/xxx/.m2/repository/com/extjs/gxt/2.2.0/gxt-2.2.0.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java' 
[INFO]  [ERROR] Internal compiler error 
[INFO] java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected 
+0

[GWT 2.1에서 2.4로 업그레이드] 중복 가능 (http://stackoverflow.com/questions/10175254/gwt-upgrade-from-2-1-to-2-4) –

답변

5

는 GWT는 지난 1-2 년 자신의 API를 여러 깨는 변경을, 당신은 GWT 2.2 주위에 만든 하나에 실행하고 있습니다. 사용중인 GXT 버전은 GWT 2.2가 출시되기 전의 버전이므로 향후 모든 버전과 자동으로 호환되지 않을 수 있습니다. ...

몇 가지 선택 사항이 있습니다. 가장 새로운 버전으로 이동하는 것이 좋습니다. GXT의 최신 2.2.x 버전에는 세 가지 다른 병이 있습니다. GWT 2.2.0과 호환되며 현재 버전 (작성 당시 2.5.0-rc1)이므로 -22 버전이 필요합니다.

최신 GXT 버전으로 업데이트 할 수없는 경우 GWT 버전에 맞게 GXT를 다시 컴파일하십시오. 몇개의 클래스 만이 재 컴파일 될 필요가 있습니다. 대부분은 com.extjs.gxt.ui.rebind입니다.

그리고 이것이 새로운 프로젝트 인 경우 GXT 3을 고려해보십시오. GWT 모범 사례를 더 잘 활용하고, 성능을 향상시키고, 2.x 시리즈보다 더 정기적 인 업데이트를 사용하십시오.

관련 문제