Struts 사용시 경고 메시지 Server/Service/Engine/Host/Context 처리

-Tomcat6.0버전을 처음 사용해 보면서, 문제가 발생했다. 출처의 아티클을 보면 알겠지만, Tomcat 6.0부터 지원하는 source라는 Attribute 때문에 일어나는 문제라고 한다.

 

Warning:
 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source'

    to  'org.eclipse.jst.j2ee.server:demo' did not find a matching property

 

Solution

Server's Properties -> General -> Location = /Servers/Tomcat v6.0 Server at localhost.server;

Project Explorer -> Servers -> Tomcat v6.0 Server at localhost.server, double click to open it.

Server Options -> Check "Publish module contexts to separate XML files".

Explaination:

  • Tomcat of previous version doesn't support the "source" attribute in the "Context" node of "server.xml" file.

Result:

  • A separate XML file named "demo.xml" was created in the "$server path$\conf\Catalina\localhost\".

Reference:

  • http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/
  • Step

    • New -> Web -> Dynamic Web Project (Target Runtime:Apache Tomcat 6.0;Dynamic Web Module Version:2.5)
    • Window -> Show View -> Servers, New-> Server, Add and Remove Projects...,Start (Server)
    • Step

      • New -> Web -> Dynamic Web Project (Target Runtime:Apache Tomcat 6.0;Dynamic Web Module Version:2.5)
      • Window -> Show View -> Servers, New-> Server, Add and Remove Projects...,Start (Server)

댓글

이 블로그의 인기 게시물

jquery css

Struts2의 작동 원리

JSP/Servlet 한글 깨짐 처리 ?