2014-05-22 9 views
1

나는 내 프로젝트에서 gwt maven 플러그인을 사용하기 시작했고 모든 것이 잘 작동하는 것 같다. 그러나, superdevmode가 올바르게 작동하지 못하고 IDE (IntelliJ)에 표시 할 수있는 오류를 얻을 수 없어 디버깅이 상당히 어려워졌습니다. 내가 할 때 여기에 gwt : run-codeserver 사용

는 GWT 로그입니다 : 여기에 실행

[INFO] Scanning for projects... 
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded. SingleThreadedBuilder with a thread count of 1 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] >>> gwt-maven-plugin:2.5.0:run (default-cli) @ xxxxxadmin >>> 
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2 
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.0:i18n (default) @ xxxxxadmin --- 
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.0:generateAsync (default) @ xxxxxadmin --- 
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xxxxxadmin --- 
[INFO] Using 'UTF-8' encoding to copy filtered resources. 
[INFO] Copying 883 resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ xxxxxadmin --- 
[INFO] Compiling 1 source file to /Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT/WEB-INF/ classes 
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:exploded (default) @ xxxxxadmin --- 
[INFO] Exploding webapp 
[INFO] Assembling webapp xxxxxadmin] in [/Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT] 
[INFO] Processing war project 
[INFO] Copying webapp resources [/Users/myuser/git xxxxxadmin/src/main/webapp] 
[INFO] Webapp assembled in [867 msecs] 
[INFO] 
[INFO] <<< gwt-maven-plugin:2.5.0:run (default-cli) @ xxxxxadmin <<< 
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2 
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.0:run (default-cli) @ xxxxxadmin --- 
[INFO] create exploded Jetty webapp in /Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT 
[INFO] auto discovered modules [com xxxxx.admin.gwt.portaladmin] 
[ERROR] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler. JspRuntimeContext). 
[ERROR] log4j:WARN Please initialize the log4j system properly. 
[ERROR] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 
[INFO] ISC: Configuring log4j from: file:/Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT/ WEB-INF/classes/log4j.isc.config.xml 
[INFO] === 2014-05-22 10:50:18,873 [main] INFO Logger - Logging system started. 

되는 로그 내가 GWT를 수행 할 때 실행 - codeserver

[INFO] Scanning for projects... 
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded. SingleThreadedBuilder with a thread count of 1 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] >>> gwt-maven-plugin:2.5.0:run-codeserver (default-cli) @ xxxxxxadmin >>> 
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2 
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.0:i18n (default) @ xxxxxxadmin --- 
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.0:generateAsync (default) @ xxxxxxadmin --- 
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xxxxxxadmin --- 
[INFO] Using 'UTF-8' encoding to copy filtered resources. 
[INFO] Copying 883 resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ xxxxxxadmin --- 
[INFO] Compiling 1 source file to /Users/myuser/git/xxxxxxadmin/target/xxxxxxadmin-1.0-SNAPSHOT/WEB- INF/classes 
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:exploded (default) @ xxxxxxadmin --- 
[INFO] Exploding webapp 
[INFO] Assembling webapp [xxxxxxadmin] in [/Users/myuser/git/xxxxxxadmin/target/xxxxxxadmin-1.0- SNAPSHOT] 
[INFO] Processing war project 
[INFO] Copying webapp resources [/Users/myuser/git/xxxxxxadmin/src/main/webapp] 
[INFO] Webapp assembled in [815 msecs] 
[INFO] 
[INFO] <<< gwt-maven-plugin:2.5.0:run-codeserver (default-cli) @ xxxxxxadmin <<< 
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2 
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.0:run-codeserver (default-cli) @ xxxxxxadmin --- 
[INFO] auto discovered modules [com.xxxxxx.admin.gwt.portaladmin] 
[INFO] workDir: /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-7465083041692192607. tmp 
[INFO] binding: user.agent=safari 
[INFO] binding: compiler.useSourceMaps=true 
[INFO] binding: locale=en 
[INFO] Compiling module com.xxxxxx.admin.gwt.portaladmin 

Here is the screen I see on the superdevmode codeserver Here is the screen I see when I click "Dev Mode On"

그러나, 컴파일 버튼을 클릭해도 아무 일도 일어나지 않습니다. 이전 설정에서 컴파일 로그를 볼 수 있었고 페이지가 끝나면 페이지가 다시로드되었습니다.

gwt : debug 실행의 경우 여기에 설명 된대로 환경을 설정할 수 없습니다. here.

gwt : debug maven 구성을 실행했습니다.

gwt:debug maven configuration

원격 구성 제안 당

remote configuration

. 나는 gwt : run을 할 때처럼 GWT 개발 모드 창을 보게된다. 그러나 어떤 로그 정보도 보지 않는다. 단지 this

[업데이트] 나는 북마크 코드를 해킹했다. 우리는 북마클릿에 대한 오류를 격리했다 그래서 지금

[INFO] Compiling module com.xxxxx.admin.gwt.portaladmin 
[INFO] Validating units: 
[INFO]  Ignored 80 units with compilation errors in first pass. 
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. 
[INFO] Compiling 18 permutations 
[INFO]  Compiling permutation 0... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 1... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 2... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 3... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 4... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 5... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 6... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 7... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 8... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 9... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 10... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 11... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 12... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 13... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 14... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 15... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 16... 
[INFO]  Source Maps Enabled 
[INFO]  Compiling permutation 17... 
[INFO]  Source Maps Enabled 
[INFO] Compile of permutations succeeded 
[INFO] Linking into /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-431669712100879679.tmp/com.xxxxxx.admin.gwt.portaladmin/compile-2/war/portaladmin; Writing extras to /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-431669712100879679.tmp/com.xxxxxx.admin.gwt.portaladmin/compile-2/extras/portaladmin 
[INFO] Link succeeded 
[INFO] Compilation succeeded -- 29.577s 
[INFO] Compile completed in 29782 ms 
[INFO] [ERROR] invalid callback: null 

http://localhost:9876/recompile/portaladmin?__gwtDevModeSession:portaladmin 

내 superdevmode 서버가 응답 URL을 호출 어떻게 든 내 북마크 오른쪽 서버 또는 오른쪽으로 매개 변수를 가리 키지 않습니다. 도와 주시겠습니까? 여기에 내가 북마크 특성에 데브 모드를 클릭하면 내가 볼 것입니다 :

javascript:{ window.__gwt_bookmarklet_params = {server_url:'http://localhost:9876/',module_name:'portaladmin'}; var s = document.createElement('script'); s.src = 'http://localhost:9876/dev_mode_on.js'; void(document.getElementsByTagName('head')[0].appendChild(s));} 

를 서버에 호출을 검사함으로써, 그것은 할 얻을 수 없다/AJAX 호출을 다시 컴파일. 어떻게 든 dev_mode_on.js 파일에 문제가 있습니다

답변

0

log4j 초기화 문제를 없애려고 했습니까? 로깅이 작동하지 않으면 종종 눈이 멀어집니다. WEB-INF/classes/log4j.isc.config.xml이 유효합니까?

+0

다른 모든 로그를 보는 것 같습니다. 다음은 /target/xxxxxxadmin-1.0-SNAPSHOT/WEB-INF/classes/log4j.isc.config.xml에 대한 로그입니다. – lanzalibre