2017-03-16 3 views
1

Jetty에 Tomcat의 EXIT_ON_INIT_FAILURE가 있습니까? (Spring Bean 초기화시) IllegalArgumentException을 던지는 전쟁이 있지만 Jetty는 DeploymentManager (노드 목표에 도달 할 수 없습니다 : 시작됨)에서 WARN 만 인쇄하고 정상적으로 (물론 컨텍스트없이) 시작됩니다. 나는 옵션을 시도 :독립 실행 형 서버의 EXIT_ON_INIT_FAILURE

<?xml version="1.0" encoding="UTF-8"?> 
     <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> 
     <Configure class="org.eclipse.jetty.webapp.WebAppContext"> 
      <Set name="contextPath">{context_path}</Set> 
      <Set name="throwUnavailableOnStartupException">true</Set> 
      <Set name="war">{war_path}</Set> 
      <Set name="maxFormContentSize">10485760</Set> 
     </Configure> 

결과가 없습니다. 부두에서

로그 :이 구성되는 방법 어떤 조언에 미리

2017-03-16 21:45:05.798:WARN:oejd.DeploymentManager:main: Unable to reach node goal: started 
java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'intranetClient' defined in class path resource 
{...stacktrace...} 
2017-03-16 21:45:05.836:INFO:oejs.AbstractConnector:main: Started [email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:5070} 
2017-03-16 21:45:05.840:INFO:oejs.AbstractConnector:main: Started [email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:5075} 
2017-03-16 21:45:05.841:INFO:oejs.Server:main: Started @40994ms 

감사합니다.

+0

해결책을 찾았습니까? – quintin

답변

1

DTD가 오래된 것입니다.

사용 :

<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" 
      "http://www.eclipse.org/jetty/configure_9_3.dtd"> 

는 블록 제거하십시오 ... 나머지는 모두가 당신의 ${jetty.base}/webapps/${context}.xml 파일에 필요한됩니다

<Set name="servletHandler"> 
     <New class="org.eclipse.jetty.servlet.ServletHandler"> 
      <Set name="startWithUnavailable">false</Set> 
     </New> 
    </Set> 

은 실패를 트리거합니다.

+0

DTD를 업데이트했지만 불행히도 여전히 동일 ...;/로그를 포함하고 context.xml을 업데이트했습니다. –