2014-07-22 6 views
0

Java 7 (Java 7과 동일한 문제점 있음)이 설치된 Ubuntu VM에서 Activator 1.2.3을 실행하고 있습니다. 나는 Java Play 서버를 실행하여 열차/개발을 시도했다.잠시 후 Java Play activator가 충돌합니다.

그것은 성공적으로 시작하고, 난 내 브라우저에서 UI에 액세스 할 수 있지만 그렇게 상관없이 나는 아무것도 할 수 있는지의 여부를 분 후에 활성제 충돌/다음 오류와 함께 중지 :

/opt/activator/activator ui -Dhttp.address=0.0.0.0 
Checking for a newer version of Activator (current version 1.2.3)... 
... our current version 1.2.3 looks like the latest. 
Found previous process id: 16189 
FOUND REPO = activator-local @ file:/opt/activator-1.2.3/repository 
Play server process ID is 16442 
[info] play - Application started (Prod) 
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:8888 
java.lang.RuntimeException: Web server never started! 
     at scala.sys.package$.error(package.scala:27) 
     at activator.UIMain.checkAlive$1(UIMain.scala:164) 
     at activator.UIMain.waitForServerStartup(UIMain.scala:169) 
     at activator.UIMain.run(UIMain.scala:115) 
     at activator.UIMain.run(UIMain.scala:87) 
     at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) 
     at xsbt.boot.Launch$.withContextLoader(Launch.scala:129) 
     at xsbt.boot.Launch$.run(Launch.scala:109) 
     at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36) 
     at xsbt.boot.Launch$.launch(Launch.scala:117) 
     at xsbt.boot.Launch$.apply(Launch.scala:19) 
     at xsbt.boot.Boot$.runImpl(Boot.scala:44) 
     at xsbt.boot.Boot$.main(Boot.scala:20) 
     at xsbt.boot.Boot.main(Boot.scala) 
Error during sbt execution: java.lang.RuntimeException: Web server never started! 
[info] application - onStop received closing down the app 
[warn] application - AppManager onApplicationStop is disabled pending some 
refactoring so it works with FakeApplication in tests 

답변

0

방금 ​​호출 한 CheckAlive 메서드가 로컬 호스트가 아니라 모든 IP에서 수신 대기하도록 지정했기 때문에 지정된 0.0.0.0 등의 IP에 대해 테스트하려고했기 때문에 실패했을 수 있다는 것을 알았습니다 (How to force Typesafe Activator to listen 0.0.0.0:8888 참조). IP 매개 변수를 VM의 외부 IP (10.0.2.15)로 설정했는데 안정적으로 보입니다.

IP_ADDRESS=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` 
/opt/activator/activator ui -Dhttp.address=${IP_ADDRESS} -Dhttp.port=8888 & 
: 자동화 목적

/opt/activator/activator ui -Dhttp.address=10.0.2.15 

은 또한 다음과 같은 작업을 수행 할 수