jQuery in Action, 2nd edition*
The moose likes JBoss/WildFly and the fly likes [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 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "[Struts 2.1.8.1 and JBoss 6.0.0 M3] cvc-datatype-valid.1.2.1: Watch "[Struts 2.1.8.1 and JBoss 6.0.0 M3] cvc-datatype-valid.1.2.1: New topic
Author

[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

Joined: Jun 28, 2003
Posts: 547

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:



SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

So you mean, you get the "decimal" format error even after fixing the tld?

[My Blog] [JavaRanch Journal]
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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 ...

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: [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