struts 启动问题:java.lang.IllegalArgumentException: Can't convert argument: null
启动服务器时,报错如下:
严重: End event threw exception
java.lang.IllegalArgumentException: Can't convert argument: null
at org.apache.tomcat.util.IntrospectionUtils.convert(IntrospectionUtils.java:975)
at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:522)
at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
严重: Parse error in application web.xml file at jndi:/localhost/FirstStruts/WEB-INF/web.xml
java.lang.IllegalArgumentException: Can't convert argument: null
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725)
严重: Occurred at line 31 column 11
2008-5-3 19:22:46 org.apache.catalina.startup.ContextConfig start
严重: Marking this application unavailable due to previous error(s)
2008-5-3 19:22:46 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2008-5-3 19:22:46 org.apache.catalina.core.StandardContext start
严重: Context [/FirstStruts] startup failed due to previous errors
我的代码:
struts-config.xml部分代码:
<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>
<!-- =========================================== Action Mapping Definitions -->
<action-mappings>
<!-- Default "Welcome" action -->
<!-- Forwards to Welcome.jsp -->
<action
path="/Welcome"
forward="/pages/Welcome.jsp"/>
index.jsp部分代码:
b uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<logic:redirect forward="welcome"/>
web.jsp的部分代码;
<taglib>
<taglib-url>strutx-html</taglib-url>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-url>strutx-bean</taglib-url>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-url>strutx-logic</taglib-url>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-url>strutx-nested</taglib-url>
<taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-url>strutx-tiles</taglib-url>
<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
</taglib>