• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 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-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!!



 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
hong join
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd be happy to help, but you need to correct the problem that Bear mentioned in his private message first...
 
hong join
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic