Whats wrong with this web.xml?


Joined
May 28, 2012
Messages
1
Reaction score
0
Hi all
Need your help.

I am a complete newbie

I am trying to use a tomcat 6 server with eclipse Indigo version for my application.

but my eclipse is throwing the error for web.xml:
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".


The order of the tags seems to be OK to me.

This is my web.xml:


<?xml version="1.0" encoding="UTF-8"?>
<!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>
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4jMRD.properties</param-value>
<description></description>
</context-param>
<context-param>
<param-name>log4jExposeWebAppRoot</param-name>
<param-value>false</param-value>
<description></description>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/MRDSpringSchedular.xml,/WEB-INF/spring/MRDSpringDataSource.xml</param-value>
<description></description>
</context-param>
<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.doext</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<servlet>
<servlet-name>MRDLoadServlet</servlet-name>
<servlet-class>com.bt.mrd.controller.MRDLoadServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet>
<servlet-name>MRDUploadFileServlet</servlet-name>
<servlet-class>com.bt.mrd.controller.MRDUploadFileServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>MRDDownloadFileServlet</servlet-name>
<servlet-class>com.bt.mrd.controller.MRDDownloadFileServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>checkFileServlet</servlet-name>
<servlet-class>com.bt.mrd.controller.CheckFileServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>MRDController</servlet-name>
<servlet-class>com.bt.mrd.controller.MRDControllerServlet</servlet-class>
</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>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>chainConfig</param-name>
<param-value>
org/apache/struts/tiles/chain-config.xml
</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.doext</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>MRDControllerServlet</servlet-name>
<servlet-class>com.bt.mrd.controller.MRDControllerServlet</servlet-class>
<init-param>
<param-name>Login</param-name>
<param-value>com.bt.mrd.action.MRDLoginAction</param-value>
</init-param>
<init-param>
<param-name>LoginFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>LoginSuccess</param-name>
<param-value>ForwardHome.jsp</param-value>
</init-param>
<init-param>
<param-name>CreateRole</param-name>
<param-value>com.bt.mrd.action.MRDAccessPrivilegeAction</param-value>
</init-param>
<init-param>
<param-name>CreateRoleSuccess</param-name>
<param-value>MRDCreateRole.jsp</param-value>
</init-param>
<init-param>
<param-name>CreateRoleFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>AssignUser</param-name>
<param-value>com.bt.mrd.action.MRDAccessPrivilegeAction</param-value>
</init-param>
<init-param>
<param-name>AssignUserSuccess</param-name>
<param-value>MRDAssignUserRole.jsp</param-value>
</init-param>
<init-param>
<param-name>AssignUserFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>DeleteUser</param-name>
<param-value>com.bt.mrd.action.MRDAccessPrivilegeAction</param-value>
</init-param>
<init-param>
<param-name>DeleteUserSuccess</param-name>
<param-value>MRDUnassignUserRole.jsp</param-value>
</init-param>
<init-param>
<param-name>DeleteUserFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>DeleteAllUser</param-name>
<param-value>com.bt.mrd.action.MRDAccessPrivilegeAction</param-value>
</init-param>
<init-param>
<param-name>DeleteAllUserFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>DeleteAllUserSuccess</param-name>
<param-value>MRDUnassignUserRole.jsp</param-value>
</init-param>
<init-param>
<param-name>SearchTableForUser</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>SearchTableForUserSuccess</param-name>
<param-value>MRDUserTableResult.jsp</param-value>
</init-param>
<init-param>
<param-name>SearchTableForUserFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>SearchUser</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>SearchUserSuccess</param-name>
<param-value>MRDUserTableSearch.jsp</param-value>
</init-param>
<init-param>
<param-name>SearchUserFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>AssignTableToUser</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>AssignTableToUserSuccess</param-name>
<param-value>MRDAssignUserToTable.jsp</param-value>
</init-param>
<init-param>
<param-name>AssignTableToUserFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>newTable</param-name>
<param-value>com.bt.mrd.action.MRDDefineTableAction</param-value>
</init-param>
<init-param>
<param-name>newTableSuccess</param-name>
<param-value>MRDDefineTable.jsp</param-value>
</init-param>
<init-param>
<param-name>newTableFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>

<init-param>
<param-name>TabRequest</param-name>
<param-value>com.bt.mrd.action.MRDDefineTableAction</param-value>
</init-param>
<init-param>
<param-name>TabRequestSuccess</param-name>
<param-value>MRDTableRequest.jsp</param-value>
</init-param>
<init-param>
<param-name>TabRequestFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>Logout</param-name>
<param-value>com.bt.mrd.action.MRDLoginAction</param-value>
</init-param>
<init-param>
<param-name>LogoutSuccess</param-name>
<param-value>MRDLogout.jsp</param-value>
</init-param>
<init-param>
<param-name>catalogue</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>catalogueSuccess</param-name>
<param-value>MRDTableList.jsp</param-value>
</init-param>
<init-param>
<param-name>catalogueFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>

<init-param>
<param-name>TableCreationRequestSearch</param-name>
<param-value>com.bt.mrd.action.MRDTableCreationRequestAction</param-value>
</init-param>
<init-param>
<param-name>TableCreationRequestSearchSuccess</param-name>
<param-value>MRDRequestList.jsp</param-value>
</init-param>
<init-param>
<param-name>TableCreationRequestSearchFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>

<init-param>
<param-name>tableDescription</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>tableDescriptionSuccess</param-name>
<param-value>MRDUploadData.jsp</param-value>
</init-param>
<init-param>
<param-name>tableDescriptionFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>getTableCount</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>getTableCountSuccess</param-name>
<param-value>MRDCatalogueResult.jsp</param-value>
</init-param>
<init-param>
<param-name>getTableCountFailure</param-name>
<param-value>MRDCatalogueResult.jsp</param-value>
</init-param>
<init-param>
<param-name>downloadcatalogue</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>downloadcatalogueSuccess</param-name>
<param-value>MRDTableListDownload.jsp</param-value>
</init-param>
<init-param>
<param-name>downloadcatalogueFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>catalogueData</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>catalogueDataSuccess</param-name>
<param-value>MRDTableView.jsp</param-value>
</init-param>
<init-param>
<param-name>catalogueDataFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>catalogueSearch</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>catalogueSearchSuccess</param-name>
<param-value>MRDCatalogueSearch.jsp</param-value>
</init-param>
<init-param>
<param-name>catalogueSearchFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>searchAdvanced</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedSuccess</param-name>
<param-value>MRDCatalogueResult.jsp</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>searchTables</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>searchTablesSuccess</param-name>
<param-value>MRDUserTableResult.jsp</param-value>
</init-param>
<init-param>
<param-name>searchTablesFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedtoDelete</param-name>
<param-value>com.bt.mrd.action.MRDDeleteCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedtoDeleteSuccess</param-name>
<param-value>MRDDeleteCatalogueResult.jsp</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedtoDeleteFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedtoDeleteFromTest</param-name>
<param-value>com.bt.mrd.action.MRDDeleteCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedtoDeleteFromTestSuccess</param-name>
<param-value>MRDDeleteCatalogueResult.jsp</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedtoDeleteFromMRDDataOwner</param-name>
<param-value>com.bt.mrd.action.MRDDeleteCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>searchAdvancedtoDeleteFromMRDDataOwnerSuccess</param-name>
<param-value>MRDDeleteCatalogueResult.jsp</param-value>
</init-param>
<init-param>
<param-name>DeleteTable</param-name>
<param-value>com.bt.mrd.action.MRDDeleteTableAction</param-value>
</init-param>
<init-param>
<param-name>DeleteTableFromTest</param-name>
<param-value>com.bt.mrd.action.MRDDeleteTableAction</param-value>
</init-param>
<init-param>
<param-name>DeleteTableSuccess</param-name>
<param-value>MRDDeleteCatalogueResult.jsp</param-value>
</init-param>
<init-param>
<param-name>DeleteTableFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>MRDHomeFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>MRDHomeSuccess</param-name>
<param-value>MRDFront.jsp</param-value>
</init-param>
<init-param>
<param-name>MRDHome</param-name>
<param-value>com.bt.mrd.action.MRDLoginAction</param-value>
</init-param>
<init-param>
<param-name>registerTableDetails</param-name>
<param-value>com.bt.mrd.action.MRDRegisterTableAction</param-value>
</init-param>
<init-param>
<param-name>registerTableDetailsSuccess</param-name>
<param-value>MRDRegistrationDetails.jsp</param-value>
</init-param>
<init-param>
<param-name>registerTableDetailsFailure</param-name>
<param-value>MRDRegistrationDetails.jsp</param-value>
</init-param>

<init-param>
<param-name>registerTable</param-name>
<param-value>com.bt.mrd.action.MRDRegisterTableAction</param-value>
</init-param>
<init-param>
<param-name>registerTableSuccess</param-name>
<param-value>MRDRegisterTable.jsp</param-value>
</init-param>
<init-param>
<param-name>registerTableFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>sendMail</param-name>
<param-value>com.bt.mrd.action.MRDSendMailAction</param-value>
</init-param>
<init-param>
<param-name>sendMailSuccess</param-name>
<param-value>MRDSendMail.jsp</param-value>
</init-param>
<init-param>
<param-name>sendMailFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>PrepareObjectList</param-name>
<param-value>com.bt.mrd.action.MRDObjectListAction</param-value>
</init-param>
<init-param>
<param-name>PrepareObjectListSuccess</param-name>
<param-value>MRDObjectList.jsp</param-value>
</init-param>
<init-param>
<param-name>PrepareObjectListFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>GetRoleUserList</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>GetRoleUserListSuccess</param-name>
<param-value>MRDAssignUserToTable.jsp</param-value>
</init-param>
<init-param>
<param-name>GetRoleUserListFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>GetUsersForTable</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>GetUsersForTableSuccess</param-name>
<param-value>MRDUnassignUserFromTable.jsp</param-value>
</init-param>
<init-param>
<param-name>GetUsersForTableFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>userAssign</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>userAssignSuccess</param-name>
<param-value>MRDUserTableResult.jsp</param-value>
</init-param>
<init-param>
<param-name>userAssignFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>userUnassignTable</param-name>
<param-value>com.bt.mrd.action.MRDUserTableListAction</param-value>
</init-param>
<init-param>
<param-name>userUnassignTableSuccess</param-name>
<param-value>MRDUserTableResult.jsp</param-value>
</init-param>
<init-param>
<param-name>userUnassignTableFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>validateSession</param-name>
<param-value>com.bt.mrd.action.MRDDefineTableAction</param-value>
</init-param>
<init-param>
<param-name>validateSessionSuccess</param-name>
<param-value>MRDDefineTable.jsp</param-value>
</init-param>
<init-param>
<param-name>validateSessionFailure</param-name>
<param-value>MRDDefineTable.jsp</param-value>
</init-param>
<init-param>
<param-name>AlterTable</param-name>
<param-value>com.bt.mrd.action.MRDAlterTableAction</param-value>
</init-param>
<init-param>
<param-name>AlterTableSuccess</param-name>
<param-value>MRDAlterTable.jsp</param-value>
</init-param>
<init-param>
<param-name>AlterTableFailure</param-name>
<param-value>MRDAlterTable.jsp</param-value>
</init-param>
<init-param>
<param-name>ValidateAlterTable</param-name>
<param-value>com.bt.mrd.action.MRDValidateAlterTableAction</param-value>
</init-param>
<init-param>
<param-name>ValidateAlterTableSuccess</param-name>
<param-value>MRDValidateAlterTable.jsp</param-value>
</init-param>
<init-param>
<param-name>ValidateAlterTableFailure</param-name>
<param-value>MRDValidateAlterTable.jsp</param-value>
</init-param>
<init-param>
<param-name>ViewDetail</param-name>
<param-value>com.bt.mrd.action.MRDLoginAction</param-value>
</init-param>
<init-param>
<param-name>ViewDetailFailure</param-name>
<param-value>MRDTitlePage.jsp</param-value>
</init-param>
<init-param>
<param-name>ViewDetailSuccess</param-name>
<param-value>MRDAuditDetail.jsp</param-value>
</init-param>
<init-param>
<param-name>fetchReqDetails</param-name>
<param-value>com.bt.mrd.action.MRDTableCreationRequestAction</param-value>
</init-param>
<init-param>
<param-name>fetchReqDetailsFailure</param-name>
<param-value>MRDTableRequest.jsp</param-value>
</init-param>
<init-param>
<param-name>fetchReqDetailsSuccess</param-name>
<param-value>MRDTableRequest.jsp</param-value>
</init-param>

<init-param>
<param-name>TableCreationRequestList</param-name>
<param-value>com.bt.mrd.action.MRDTableCreationRequestAction</param-value>
</init-param>
<init-param>
<param-name>TableCreationRequestListSuccess</param-name>
<param-value>MRDAdminRequestList.jsp</param-value>
</init-param>
<init-param>
<param-name>TableCreationRequestListFailure</param-name>
<param-value>MRDAdminRequestList.jsp</param-value>
</init-param>

<init-param>
<param-name>updateStatus</param-name>
<param-value>com.bt.mrd.action.MRDTableCreationRequestAction</param-value>
</init-param>
<init-param>
<param-name>updateStatusFailure</param-name>
<param-value>MRDTableRequest.jsp</param-value>
</init-param>
<init-param>
<param-name>updateStatusSuccess</param-name>
<param-value>MRDTableRequest.jsp</param-value>
</init-param>

<init-param>
<param-name>searchToProtectUnprotect</param-name>
<param-value>com.bt.mrd.action.MRDCatalogueAction</param-value>
</init-param>
<init-param>
<param-name>searchToProtectUnprotectSuccess</param-name>
<param-value>MRDProtectTable.jsp</param-value>
</init-param>
<init-param>
<param-name>searchToProtectUnprotectFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>setTableProtectionStatus</param-name>
<param-value>com.bt.mrd.action.MRDSetTableProtectionAction</param-value>
</init-param>
<init-param>
<param-name>setTableProtectionStatusSuccess</param-name>
<param-value>MRDTableView.jsp</param-value>
</init-param>
<init-param>
<param-name>setTableProtectionStatusFailure</param-name>
<param-value>LoginMRD.jsp</param-value>
</init-param>
<init-param>
<param-name>checkAvailability</param-name>
<param-value>com.bt.mrd.action.MRDDefineTableAction</param-value>
</init-param>
<init-param>
<param-name>checkAvailabilitySuccess</param-name>
<param-value>MRDDefineTable.jsp</param-value>
</init-param>
<init-param>
<param-name>checkAvailabilityFailure</param-name>
<param-value>MRDDefineTable.jsp</param-value>
</init-param>
<init-param>
<param-name>RoleSearch</param-name>
<param-value>com.bt.mrd.action.MRDTableCreationRequestAction</param-value>
</init-param>
<init-param>
<param-name>RoleSearchSuccess</param-name>
<param-value>MRDRoleList.jsp</param-value>
</init-param>
<init-param>
<param-name>RoleSearchFailure</param-name>
<param-value>MRDRoleList.jsp</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>MRDControllerServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MRDUploadFileServlet</servlet-name>
<url-pattern>/jsp/mrduploadfileservlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MRDDownloadFileServlet</servlet-name>
<url-pattern>/jsp/mrddownloadfileservlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>checkFileServlet</servlet-name>
<url-pattern>/jsp/checkfileservlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>180</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>/jsp/MRDLogin.jsp</welcome-file>
</welcome-file-list>
</web-app>



Do I need to configure something elsewhere as well?
Please help
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top