태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

tomcat 6.x - servlet 설정하기

ⓟ Software 2008.09.13 14:47

1. context.xml 수정 privileged="true" 로 해줘야 한다.

C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\context.xml

<!-- The contents of this file will be loaded for each web application -->

<Context reloadable="true" privileged="true">

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--

1. context.xml 수정 privileged="true" 로 해줘야 한다.

C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\context.xml

<!-- The contents of this file will be loaded for each web application -->

<Context reloadable="true" privileged="true">

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->

</Context>


2. web.xml 수정 : <servlet><servlet-name>invoker</servlet-name>과 <servlet-mapping><servlet-name>invoker</servlet-name> 에 주석처리되어 있는 걸 삭제해준다.

C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\web.xml

<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
</servlet>


<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>


출처 : http://cafe.naver.com/jsp2007

tags :
Trackbacks 0 : Comments 0

Write a comment