aspose file tools*
The moose likes JBoss/WildFly and the fly likes org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element ' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element Watch "org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element New topic
Author

org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element '

hong join
Greenhorn

Joined: Oct 22, 2011
Posts: 3
hi everone
I hava some question about jboss and struts2-core-2.1.2.jar

firstly,I deploy my project in jboss 6 final
the server.log:
EPLOYMENTS IN ERROReployment "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-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'decimal'. @ 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

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>


how can I do?
help me!!



Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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.


JBoss In Action
hong join
Greenhorn

Joined: Oct 22, 2011
Posts: 3
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>
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I'd be happy to help, but you need to correct the problem that Bear mentioned in his private message first...
hong join
Greenhorn

Joined: Oct 22, 2011
Posts: 3
Peter Johnson wrote:I'd be happy to help, but you need to correct the problem that Bear mentioned in his private message first...


I had change my name, but it hasn`t take effect.

I really need your help!
 
Don't get me started about those stupid light bulbs.
 
subject: org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element '