Hi all,

As cocoon offers support for Dojo, I have been trying to use some of the Dojo widgets (see http://dojotoolkit.org/book/dojo-book-1-0). I am encountering an exception of the form:

org.apache.excalibur.source.SourceNotFoundException: resource://org/apache/cocoon/dojo/resources/__package__.js

This is employed by a sitemap.xmap that is apparently generated on the fly (when running 'mvn jetty:run') and placed in ../target/work/blocks/cocoon-ajax-impl/sitemap.xmap. This sitemap has a pipeline for the resource __package__.js that is requested for when the browser loads HTML containing

<script src="/cocoon-ajax-impl/resource/external/dojo/dojo.js" type="text/javascript"></script>

In the my own sitemap, I have somewhere

<map:match pattern="**dojo.js">
<map:read mime-type="text/javascript" src="servlet:ajax:/resource/external/dojo/dojo.js" />
</map:match>

If I load dojo.js directly from "http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.xd.js";, the form works exactly right and there are no further problems. It is probably better you rely on the cocoon ajax/dojo framework, as I was trying.

Can somebody point out whether or not I need another jar (extra dependency in pom.xml). I was looking for something like cocoon-dojo-impl but could not immediately find it on http://repo1.maven.org/maven2/org/apache/cocoon/

Thanks,
Andre

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

Reply via email to