so I change <tlib-version>2.2.3</tlib-version> to <tlib-version>2.2</tlib-version> in struts-tags.tld
but now another question has come on:
the server.log:
DEPLOYMENTS IN ERROR:
Deployment "vfs:///D:/npico/jboss-6.0.0.Final/server/default/deploy/yk_bw_finance.war" is in error due to the following reason(s): org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"http://java.sun.com/xml/ns/j2ee":validator, "http://java.sun.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":tag, "http://java.sun.com/xml/ns/j2ee":tag-file, "http://java.sun.com/xml/ns/j2ee":function, "http://java.sun.com/xml/ns/j2ee":taglib-extension}' is expected. @ vfs:///D:/npico/jboss-6.0.0.Final/server/default/deploy/yk_bw_finance.war/WEB-INF/lib/struts2-core-2.1.2.jar/META-INF/struts-tags.tld[6,17]
the head of struts-tags.tld:
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
<tlib-version>2.2</tlib-version>
The error message stated that the error occurred on line 6, position 17, of the tld file and you posted only the first 4 lines...
But the error message should be self-explanatory: the <display-name> element is out of place. JBoss AS, starting with the 5.0 release, is very strict about verifying XML file content.
Peter Johnson wrote:The error message stated that the error occurred on line 6, position 17, of the tld file and you posted only the first 4 lines...
But the error message should be self-explanatory: the <display-name> element is out of place. JBoss AS, starting with the 5.0 release, is very strict about verifying XML file content.
hi.thank you for you replied my question,and I cannot find anything error in the struts-tags.tld file ,could you help me ?
the head for struts-tags.tld below:
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
<tlib-version>2.2</tlib-version>
<short-name>s</short-name>
<uri>/struts-tags</uri>
<display-name>"Struts Tags"</display-name>
<description><![CDATA["To make it easier to access dynamic data;
the Apache Struts framework includes a library of custom tags.
The tags interact with the framework's validation and internationalization features;
to ensure that input is correct and output is localized.
The Struts Tags can be used with JSP FreeMarker or Velocity."]]></description>
<tag>
<name>action</name>
<tag-class>org.apache.struts2.views.jsp.ActionTag</tag-class>
<body-content>JSP</body-content>
<description><![CDATA[Execute an action from within a view]]></description>
<attribute>
<name>executeResult</name>
<required>false</required>