On 14/09/2011 13:58, Andre Juffer wrote:
On 14/09/11 14:35, Javier Puerto wrote:
[...]
AFAIK, Resource protocol is not yet implemented in Cocoon 3.

There may be another way. It is possibly called differently? I tried "classpath://...", but didn't work either. E.g. Spring uses this protocol as well to load configuration located in jars. Very convenient.

I did this in another (Cocoon3-based) project: It should be enough to add a class like [1], then add a bean like as

<!-- Using classpath: resources -->
<bean class="org.onehippo.forge.hct.cocoon.internal.ClasspathURLStreamHandlerFactory"/>

in one of spring's XMLs.

Regards.

[1] https://forge.onehippo.org/svn/hct/trunk/core/src/main/java/org/onehippo/forge/hct/cocoon/internal/ClasspathURLStreamHandlerFactory.java

--
Francesco Chicchiriccò

Apache Cocoon Committer and PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to