Kevin,

A number of java application/web servers have issues with files outside of
the web application directories.  For example Tomcat has a policy file that
often requires tweaking to open files in other places for reading.  What is
your application server?   Perhaps someone here has experience with it.

Regards,
David

-----Original Message-----
From: Kevin Maeer [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 1:34 AM
To: 'Struts Users Mailing List'
Subject: Splitting validation.xml

I want to split the validation.xml file into multiple files so some pages
can be
more easily reused. If I save the new file under /WEB-INF/ and add it to the
ValidatorPlugIn "pathnames" in struts-config.xml everything works fine.

If I move the new file out into the class hierarchy and change the
ValidatorPlugIn entry to point to the new location, it all turns to custard
and
I get the following in the logs:

Loading validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-valida
tion
.xml'
Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-valida
tion
.xml'.  No stream could be opened.
javax.servlet.ServletException: Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-valida
tion
.xml'.  No stream could be opened.
        at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.ja
va:2
26)
        at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:162)

Is it possible to specify a location that isn't under web-inf for the
validation
file and if so how is it specified? All the examples I've googled, that have
the
file not under web-inf, use the old style "pathname" property to specify the
location.

Thanks,
Kevin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to