tomcat7 - got error in Tomcat server log Parse Error at line 164 column 11: The content of element type "web-app" must match -
i getting error in tomcat server log can on this.and please tell me action need taken.
2016-01-21 01:46:37,370 info - applicationmanager.loadapplicationfactory: com.gft.rpdb.service.webflow.webflowappfactoryimpl 2016-01-21 01:46:42,958 info - rpdbimportprovider init on port ... 1099 2016-01-21 01:46:43,178 info - rpdbimportprovider ready. 2016-01-21 01:46:43,211 info - controllerfilterservlet.init: proxy batch services disabled.','false 2016-01-21 01:46:43,212 info - controllerfilterservlet.init: initfinished ,'framework started' 2016-01-21 01:46:55,259 error - parse error @ line 164 column 11: 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*)". org.xml.sax.saxparseexception: content of element type "web-app" must match .... @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) .... @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.dtdconfiguration.parse(unknown source) @ org.apache.xerces.parsers.xmlparser.parse(unknown source) ....
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> <filter> <filter-name>controllerfilter</filter-name> <display-name>controllerfilterservlet</display-name> <description>this mvc controller site.</description> <filter-class>com.gft.rpdb.web.controllerfilterservlet</filter-class> <init-param> <param-name>configfile</param-name> <param-value>web-inf/fwk/framework-config.xml</param-value> </init-param> <init-param> <param-name>urlbase</param-name> <param-value>http://repackp1.uk.db.com:9670/rpdb/</param-value> </init-param> <init-param> <param-name>proxy-enabled</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>proxy-host-address</param-name> <param-value>_proxy_host_address_</param-value> </init-param> <init-param> <param-name>proxy-host-port</param-name> <param-value>_proxy_host_port_</param-value> </init-param> </filter> <filter> <filter-name>uploadfilter</filter-name> <display-name>uploadfilterservlet</display-name> <description>filterservlet responsible of performing file uploads.</description> <filter-class>com.gft.rpdb.web.uploadfilterservlet</filter-class> <init-param> <param-name>maxrequestsize</param-name> <param-value>10000000</param-value> </init-param> <init-param> <param-name>tempdirectory</param-name> <param-value>web-inf/fwk/tmp</param-value> </init-param> <init-param> <param-name>maxmemorysize</param-name> <param-value>0</param-value> </init-param> </filter> <filter> <filter-name>webservicefilter</filter-name> <display-name>webservicefilter</display-name> <description>filterservlet responsible of webservices.</description> <filter-class>com.gft.rpdb.web.webservicefilterservlet</filter-class> <init-param> <param-name>dirfile</param-name> <param-value>web-inf/fwk/config/webservice/</param-value> </init-param> <init-param> <param-name>propertiesfile</param-name> <param-value>webservices.properties</param-value> </init-param> </filter> <filter-mapping> <filter-name>uploadfilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>controllerfilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>webservicefilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- servlet> <servlet-name>restcommander</servlet-name> <servlet-class>com.gft.rpdb.app.batch.restcommander</servlet-class> </servlet> <servlet-mapping> <servlet-name>restcommander</servlet-name> <url-pattern>/restcommander</url-pattern> </servlet-mapping --> <session-config> <session-timeout>15</session-timeout> </session-config> <servlet> <servlet-name>axisservlet</servlet-name> <display-name>apache-axis servlet</display-name> <servlet-class>org.apache.axis2.transport.http.axisservlet</servlet-class> <init-param> <param-name>axis2.xml.path</param-name> <param-value>/apps/repack/rpdb-conf/axis2.xml</param-value> </init-param> <!-- init-param> <param-name>axis2.repository.path</param-name> <param-value>web-inf/repository</param-value> </init-param--> <!--<param-name>axis2.repository.url</param-name>--> <!--<param-value>http://localhot/myrepo</param-value>--> <!--<param-name>axis2.xml.url</param-name>--> <!--<param-value>http://localhot/myrepo/axis2.xml</param-value>--> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>axisservlet</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>welcome.html</welcome-file> </welcome-file-list> <!-- security constraints --> <security-constraint> <display-name>tomcat server configuration security constraint</display-name> <web-resource-collection> <web-resource-name>protected area</web-resource-name> <url-pattern>*.jsp</url-pattern> <url-pattern>*.html</url-pattern> <url-pattern>*.do</url-pattern> <url-pattern>*.*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repack_sales_user_group</role-name> <role-name>repack_london_trade_support</role-name> <role-name>repack_bac</role-name> <role-name>repack_superusers</role-name> <role-name>repack_new_york_trade_support</role-name> <role-name>repack_tokyo_trade_support</role-name> <role-name>repack_singapore_trade_support</role-name> <role-name>repack_sydney_trade_support</role-name> <role-name>repack_london_middle_office</role-name> <role-name>repack_new_york_middle_office</role-name> <role-name>repack_tokyo_middle_office</role-name> <role-name>repack_singapore_middle_office</role-name> <role-name>repack_sydney_middle_office</role-name> <role-name>repack_london_traders</role-name> <role-name>repack_new_york_traders</role-name> <role-name>repack_tokyo_traders</role-name> <role-name>repack_singapore_traders</role-name> <role-name>repack_sydney_traders</role-name> <role-name>repack_london_business_manager</role-name> <role-name>repack_legal_support</role-name> <role-name>repack_legal</role-name> <role-name>repack_credit</role-name> <role-name>repack_trade_support_manager</role-name> <role-name>repack_gbs</role-name> <role-name>repack_bangalore_support</role-name> </auth-constraint> </security-constraint> <!--change pop dialog box input form--> <login-config> <auth-method>form</auth-method> <realm-name>repackaging database - authentication</realm-name> <form-login-config> <form-login-page>/logon.do</form-login-page> <form-error-page>/logon.do?failed=true</form-error-page> </form-login-config> </login-config> <security-role><role-name>repack_sales_user_group</role-name> </security-role> <security-role><role-name>repack_london_trade_support</role-name> </security-role> <security-role><role-name>repack_superusers</role-name> </security-role> <security-role><role-name>repack_bac</role-name> </security-role> <security-role><role-name>repack_credit</role-name> </security-role> <security-role><role-name>repack_new_york_trade_support</role-name> </security-role> <security-role><role-name>repack_tokyo_trade_support</role-name> </security-role> <security-role><role-name>repack_singapore_trade_support</role-name> </security-role> <security-role><role-name>repack_sydney_trade_support</role-name> </security-role> <security-role><role-name>repack_london_middle_office</role-name> </security-role> <security-role><role-name>repack_new_york_middle_office</role-name> </security-role> <security-role><role-name>repack_tokyo_middle_office</role-name> </security-role> <security-role><role-name>repack_singapore_middle_office</role-name> </security-role> <security-role><role-name>repack_sydney_middle_office</role-name> </security-role> <security-role><role-name>repack_london_traders</role-name> </security-role> <security-role><role-name>repack_new_york_traders</role-name> </security-role> <security-role><role-name>repack_tokyo_traders</role-name> </security-role> <security-role><role-name>repack_singapore_traders</role-name> </security-role> <security-role><role-name>repack_sydney_traders</role-name> </security-role> <security-role><role-name>repack_london_business_manager</role-name> </security-role> <security-role><role-name>repack_legal_support</role-name> </security-role> <security-role><role-name>repack_legal</role-name> </security-role> <security-role><role-name>repack_trade_support_manager</role-name> </security-role> <security-role><role-name>repack_gbs</role-name> </security-role> <security-role><role-name>repack_bangalore_support</role-name> </security-role> </web-app>
you have wrong order of elements in web.xml. error message gives exact order content of web.xml has match.
if check it, @ least <session-config>
element in wrong position (it before <servlet*>
elements, needs after). there might more tags in wrong position - validate if continue have problems.
Comments
Post a Comment