R
rjweytens
Hello,
I am getting a parse error when I start Tomcat. It happens when I add
a session-timeout parameter to my web.xml. I have copied the syntax
from working examples and I still get the error. My web.xml file is
below.
Thanks,
Randy
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>RFC</display-name>
<description>
Request for Change
</description>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<!--log4j servlet -->
<servlet>
<servlet-name>log4Jinit</servlet-name>
<servlet-class>rfc.Log4jInitServlet</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>WEB-INF/classes/log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<security-constraint>
<display-name>RFC Security Constraint - New</display-name>
<web-resource-collection>
<web-resource-name>New</web-resource-name>
<url-pattern>/New.do</url-pattern>
<!--
<url-pattern>/new.do</url-pattern>
-->
</web-resource-collection>
<auth-constraint>
<role-name>rfc_app</role-name>
<role-name>rfc_dir</role-name>
<role-name>rfc_coord</role-name>
</auth-constraint>
</security-constraint>
<!-- Login configuration uses form-based authentication -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>RFC Configuration Form-Based Authentication
Area</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/notAuthenticated.jsp</form-error-page>
</form-login-config>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
RFC Change Management Approver Role
</description>
<role-name>rfc_app</role-name>
</security-role>
<security-role>
<description>
RFC Change Management Coordinator Role
</description>
<role-name>rfc_coord</role-name>
</security-role>
<security-role>
<description>
RFC Change Management Director Role
</description>
<role-name>rfc_dir</role-name>
</security-role>
</web-app>
I am getting a parse error when I start Tomcat. It happens when I add
a session-timeout parameter to my web.xml. I have copied the syntax
from working examples and I still get the error. My web.xml file is
below.
Thanks,
Randy
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>RFC</display-name>
<description>
Request for Change
</description>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<!--log4j servlet -->
<servlet>
<servlet-name>log4Jinit</servlet-name>
<servlet-class>rfc.Log4jInitServlet</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>WEB-INF/classes/log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<security-constraint>
<display-name>RFC Security Constraint - New</display-name>
<web-resource-collection>
<web-resource-name>New</web-resource-name>
<url-pattern>/New.do</url-pattern>
<!--
<url-pattern>/new.do</url-pattern>
-->
</web-resource-collection>
<auth-constraint>
<role-name>rfc_app</role-name>
<role-name>rfc_dir</role-name>
<role-name>rfc_coord</role-name>
</auth-constraint>
</security-constraint>
<!-- Login configuration uses form-based authentication -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>RFC Configuration Form-Based Authentication
Area</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/notAuthenticated.jsp</form-error-page>
</form-login-config>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
RFC Change Management Approver Role
</description>
<role-name>rfc_app</role-name>
</security-role>
<security-role>
<description>
RFC Change Management Coordinator Role
</description>
<role-name>rfc_coord</role-name>
</security-role>
<security-role>
<description>
RFC Change Management Director Role
</description>
<role-name>rfc_dir</role-name>
</security-role>
</web-app>