• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Struts 2.1.8.1 and JBoss 6.0.0 M3] cvc-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'deci

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I already had this error in the past (with Struts 2.1.8 and Jboss 6.0.0 M1).
And I know there is a JIRA issue about it :
https://issues.apache.org/jira/browse/WW-3299

And I already asked about this error in the past. I fixed it by extracting the struts-tag.tld file from the library struts2-core-2.1.8.1.jar and modifying the tlib version by shortening it like this :
<tlib-version>2.2.3</tlib-version>
==>
<tlib-version>2.2</tlib-version>

I then reconstructed the library struts2-core-2.1.8.1.jar with the modified struts-tag.tld file.

But i also get tons of errors regarding the <display-name> and <description> tags.
For instance :
<display-name>"Struts Tags"</display-name> <description><![CDATA[Execute an action from within a view]]></description> It seems i now also need to remove these 2 tags (hundreds of lines in the TLD file).

Isn't there a quick fix for it ? I always waste a lot of time fixing this versioning problem when i set up a new environment with Jboss and Struts 2.

Thanks for helping.

Here is a part of the stacktrace when i try to deploy the webapp:


 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you mean, you get the "decimal" format error even after fixing the tld?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:So you mean, you get the "decimal" format error even after fixing the tld?


Yes.
I did not have that problem with JBoss 6.0.0 M1 (and M2 i think). I mean fixing the decimal value in the TLD was sufficient.
Now I also need to fix the errors on the <display-name> and <description> tags, which I have not done yet.


Also, in my previous "working" configuration i was using Struts 2.1.8.0 ...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic