A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")
Joined: Jun 28, 2003
Sep 06, 2008 22:20:00
I am using
RC 1 and
2 and I am facing a problem when trying to use an XML validation file.
The error message i get is :
java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.<init>(Unknown Source) at com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
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 :
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.
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
I agree. Here's the link:
subject: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")
short-circuit attribute not working in validation file
Struts 2.1.8 validation.xml & internationalization
dtd not found
Struts 2 Validation
Struts 2 error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015