[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - JBoss 5 RC1 and Struts 2 : Simple validation error (URI sche
longbeach
do-not-reply at jboss.com
Sun Sep 7 00:00:48 EDT 2008
Hi,
I am using JBoss RC 1 and Struts 2 and I am facing a problem when trying to use an XML validation file.
The error message i get is :
[CODE]
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
[/CODE]
It looks like it is not happy with the XML validation file.
Here is the content of that file :
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE validators PUBLIC
| "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
| "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
|
| <validators>
| <field name="name">
| <field-validator type="requiredstring">
| <message>You must enter a name</message>
| </field-validator>
| </field>
| </validators>
|
|
I made some research and found out that someone already had the same error :
http://www.nabble.com/Simple-validation-does-not-work-td18894126.html
My code looks almost exactly like his.
He "solved" the problem by switching back to JBoss 4.0.5 which is not a convenient solution for me
since i want to stick with JBoss 5.
Can anyone help me here ? Is there a problem with Struts 2 for JBoss 5 ?
I would appreciate any help you can provide.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174792#4174792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174792
More information about the jboss-user
mailing list