So, this is my layout..

I've got a servlet which handles the requests. 

The servlet than instantiates another class. This class called JibxManager
(using jibx), then handles the requests and Marshals the xml request. The
JibxManager also handles xsd verification, so it has to load the xsd. This
xsd is one of the files i need to be loaded properly. 

the xsd is accessed as follows:


this.requestSchema = schemaFactory.newSchema(new
File(requestSchemaLocation));

where requestSchemaLocation = "resources/jibx/schema/myschema.xsd"

Thanks again



Peter Crowther wrote:
> 
>> From: nformosa [mailto:[EMAIL PROTECTED] 
>> I'm accesing these files using relative paths ie: 
>> /resources/config.xml
> 
> What code are you using to locate these files?  Hopefully something to
> do with the servlet spec?  See, for example,
> ServletContext.getResource(String).
> 
>               - Peter
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat---WAR-File--Classpath-not-recognised-for-properties-file-tf3940737.html#a11178377
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to