ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • tomcat에 context추가해 web 여러개 띄우기~
    잡다구리 2010. 6. 16. 10:26
    폴더 구조
    D:\ProjectA\tomcat6
                            ├ conf
                            │   └ Catalina
                            │              └ localhost : WebTest.xml (context.xml)
                            └ webapps
                                       └ WebTest
                                                   └ WebContent

    잘 못 된 파일명 (context.xml)
    D:\ProjectA\tomcat6\conf\Catalina\localhost\context.xml

    xml 내용
    <Context docBase=" 예: 절대경로) D:\ProjectA\tomcat6\webapps\WebTest\WebContent\" 
          debug="0" privileged="true" reloadable="true">
    </Context>

    tomcat의 conf/Catalina/localhost 에 자신이 원하는 폴더 이름을 적고
    예) text.xml
    xml파일을 생성해서 집어 넣어준다.

    그러면 tomcat/work/Catalina/localhost 에 폴더가 자동 생성 되면
    문제없이 웹이 실행될것이다.


    댓글

Designed by Tistory.