嚴重: Parse error in application file at jndi:/localhost/beyond/WEB-INF/web.xml

簡介java

      有時在修改項目名稱時會報錯:web

      緣由是web.xml中標籤前綴在項目轉換中被修改爲<javaee:param-name>,替換掉javaee:就能夠了!apache

 

java.lang.IllegalArgumentException: Can't convert argument: null
at org.apache.tomcat.util.IntrospectionUtils.convert(IntrospectionUtils.java:1005)
at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:523)
at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1138)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)tomcat

2013-10-10 16:44:43 org.apache.catalina.startup.ContextConfig applicationWebConfigapp

嚴重: Parse error in application web.xml file at jndi:/localhost/beyond/WEB-INF/web.xmlspa

java.lang.IllegalArgumentException: Can't convert argument: nullcode

at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806)orm

 

 緣由是javaee:,只要替換掉這個前綴就能夠了。xml

web.xml:
<context-param>
    <javaee:param-name>contextConfigLocation</javaee:param-name>
    <javaee:param-value>
			/WEB-INF/conf/*/*.xml 
		</javaee:param-value>
  </context-param>
相關文章
相關標籤/搜索