Ahh its working now  :-)

Bart Molenkamp schrieb:

This works for me:
<map:match pattern="test/**">
 <map:mount check-reload="yes" src="resource://test/"
uri-prefix="test"/>
</map:match>

with a file called sitemap.xmap in a package "test".

-----Original Message-----
From: Claudius Spellmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 12:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Mounting sitemaps located in jar files


It's working file with *.js files but not with sitemaps.
The question now is: is it because cocoon doesn't support loading sitemaps from jar files or
is a fault in my configuration .



Bart Molenkamp schrieb:



"resources" uri scheme does not exist (AFAICS). E.g. to load a .js file


from a jar, I use the URI:


resource://org/apache/cocoon/forms/flow/javascript/Form.js

so maybe resource:// works (instead of resource:/, my fault :)

-----Original Message-----
From: Claudius Spellmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Mounting sitemaps located in jar files


That won't work and I'll get an MalformedURLException exception.
and I'm getting null pointer exceptions when using resources://my/package/name/sitemap.xmap


Bart Molenkamp schrieb:





Try using resource:/my/package/name/sitemap.xmap

-----Original Message-----
From: Claudius Spellmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 11:27 AM
To: [EMAIL PROTECTED]
Subject: Mounting sitemaps located in jar files


Hi,

Is it actually possible to mount a sitemap that is located in a jar




file




in the WEB-INF/lib/ directory.
I'd like to form commonly used code (forms, flowscript) into one reusable library that could be used for many projects
without having to many entries in my base directory.


Claudius

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


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







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


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







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


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





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



Reply via email to