cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudius Spellmann <claudius.spellm...@juwimm.com>
Subject Re: [SOLVED] Re: Mounting sitemaps located in jar files
Date Tue, 07 Sep 2004 12:41:11 GMT
I used:

<map:match pattern="test/**">
  <map:mount check-reload="yes" src="resource://my/package/name"
uri-prefix="test"/>
</map:match>

But I had a resource in the sitemap that was not fully resolved.
instead of:

a) <map:flow language="javascript">
	<map:script src="flow/common.js"/>
   </map:flow>

I had to use:

b) <map:flow language="javascript">
	<map:script src="resource://my/package/flow/common.js"/>
   </map:flow>

The errormessage you'll get if you do reference resources incorretly is very confusing/misleading
and I don't understand why way (a) didn't work the resources are all in the same jar file.


Derek Hohls schrieb:

>Just curious - did you use:
>
><map:match pattern="test/**">
>  <map:mount check-reload="yes"
>src="resource://my/package/name/sitemap.xmap" uri-prefix="test"/>
></map:match>
>
>or
>
><map:match pattern="test/**">
>  <map:mount check-reload="yes" src="resource://my/package/name"
>uri-prefix="test"/>
></map:match>
>
>
>  
>
>>>>claudius.spellmann@juwimm.com 2004/09/07 02:17:14 PM >>>
>>>>        
>>>>
>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:claudius.spellmann@juwimm.com] 
>>Sent: Tuesday, September 07, 2004 12:04 PM
>>To: users@cocoon.apache.org 
>>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:claudius.spellmann@juwimm.com] 
>>>Sent: Tuesday, September 07, 2004 11:47 AM
>>>To: users@cocoon.apache.org 
>>>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:claudius.spellmann@juwimm.com] 
>>>>Sent: Tuesday, September 07, 2004 11:27 AM
>>>>To: users@cocoon.apache.org 
>>>>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: users-unsubscribe@cocoon.apache.org 
>>>>For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>>>>For additional commands, e-mail: users-help@cocoon.apache.org 
>>>>
>>>>
>>>>
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>>>For additional commands, e-mail: users-help@cocoon.apache.org 
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>>>For additional commands, e-mail: users-help@cocoon.apache.org 
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>>For additional commands, e-mail: users-help@cocoon.apache.org 
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>>For additional commands, e-mail: users-help@cocoon.apache.org 
>>
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>For additional commands, e-mail: users-help@cocoon.apache.org 
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message