I'm on a Solaris 9 SPARC.

Downloaded cocoon-2.1_20040207231301.tar.gz -- ./build.sh war

cp cocoon.war jakarta-tomcat-5.0.18/webapps -- start tomcat -- navigate to:

http://metaphor:8080/cocoon/samples/xmldb/populate

(This is the second time so db create fails - but everything else except
insert samples.xml fails every time.)

<p>Create collection should succeed on the first run, but will fail on subsequent runs</p>
<textarea cols="75" rows="3">
<x:query oid="cocoon/" type="create" result="failure" xmlns:x="http://apache.org/cocoon/xmldb/1.0";>Failed to create collection cocoon/: 201</x:query>
</textarea>


<h3>Import sitemap.xmap ...</h3>
<textarea cols="75" rows="3">
<x:query oid="sitemap.xmap" type="create" result="failure" xmlns:x="http://apache.org/cocoon/xmldb/1.0";>Failed to create resource sitemap.xmap: 1</x:query>
</textarea>
<h3>Import xmldb2samples.xsl ...</h3>
<textarea cols="75" rows="3">
<x:query oid="xmldb2samples.xsl" type="create" result="failure" xmlns:x="http://apache.org/cocoon/xmldb/1.0";>Failed to create resource xmldb2samples.xsl: 1</x:query>
</textarea>
<h3>Import samples.xml ...</h3>
<textarea cols="75" rows="3">
<x:query oid="samples.xml" type="create" result="success" xmlns:x="http://apache.org/cocoon/xmldb/1.0"/>
</textarea>


<h3>Perform XUpdate on samples.xml ...</h3>

<textarea cols="75" rows="3">
<x:query oid="samples.xml" type="update" result="failure" xmlns:x="http://apache.org/cocoon/xmldb/1.0";>Failed to update resource samples.xml: 1</x:query>
</textarea>
<h3>Import samples.xml as xsamples.xml ...</h3>
<textarea cols="75" rows="3">
<x:query oid="xsamples.xml" type="create" result="success" xmlns:x="http://apache.org/cocoon/xmldb/1.0"/>
</textarea>


<h3>Perform XUpdate on xsamples.xml ...</h3>
<textarea cols="75" rows="3">
<x:query oid="xsamples.xml" type="update" result="failure" xmlns:x="http://apache.org/cocoon/xmldb/1.0";>Failed to update resource xsamples.xml: 1</x:query>
</textarea>
--
I discovered that any file with xx:yyy namespace declarations will not load.


I found some mail implicating xerces 2.6, so I tried removing it.  No change.
I removed the lib/endorsed xerces from tomcat, but then tomcat won't run. ;)

I remembered that this works with jetty, so:

jetty:

http://metaphor:8888/samples/xmldb/populate
-- all successful  !  Looks like they all were inserted into the db:

http://metaphor:8888/samples/xmldb/db/cocoon/

-<xmldb:collections resources="4" collections="0" base="xmldb:xindice-embed:///db/cocoon/">
<xmldb:resource name="samples.xml"/>
<xmldb:resource name="sitemap.xmap"/>
<xmldb:resource name="xmldb2samples.xsl"/>
<xmldb:resource name="xsamples.xml"/>
</xmldb:collections>


But sitemap.xmap can not be retrieved. The others can, but:

http://metaphor:8888/samples/xmldb/db/cocoon/sitemap.xml

Resource not found

Document xmldb:xindice-embed:///db/cocoon/sitemap.xml not found

org.apache.cocoon.ResourceNotFoundException: Document xmldb:xindice-embed:///db/cocoon/sitemap.xml not found
--
It looks like jetty uses xerces.2.6 -- I don't understand what's going on. :-(


I removed map: from (a copy of) sitemap.xmap on the tomcat system and it loaded and displayed just fine.

Any clues will be greatly appreciated.

Ray Allis


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



Reply via email to