Hello,

Could someone help me, please.I tryed to upgrade the Cocoon I've been
using (2.0.3) up to 2.1.5 and faced with the fact that
ResourceExistsAction doesn't fails as it was before when resource
doesn't exists  - it now gives the following message in the response:

W:\jakarta-tomcat-5.0.25\webapps\cocoon\..\..\..\..\db/prs/company/presses 
is not a directory.
org.apache.cocoon.ResourceNotFoundException:
W:\jakarta-tomcat-5.0.25\webapps\cocoon\..\..\..\..\db/prs/company/presses
is not a
directory.
cause: org.apache.cocoon.ResourceNotFoundException:
W:\jakarta-tomcat-5.0.25\webapps\cocoon\..\..\..\..\db/prs/company/presses
is not a
directory.
...

when I try to request
http://localhost:8080/cocoon/mount/myapp/db/prse_company_dir/company?locale=fr
using the following sitemap snippets:

. . .
<map:action name="resource-exists"
logger="sitemap.action.resource-exists"
            src="org.apache.cocoon.acting.ResourceExistsAction"/>
. . .
<map:match pattern="prse_data/**">
  <map:act type="set-env">
    <map:generate src="{work-area-dir}/db/prs/{../1}"/>
    <map:serialize type="xml"/>
  </map:act>
</map:match>

<map:match pattern="prse_company_dir/*">
  <map:act type="resource-exists">
    <map:parameter name="url"
value="cocoon:/prse_data/{1}/presses/?company={1}"/>
    <map:generate
src="cocoon:/prse_data/{../1}/presses/?company={../1}"/>
    <map:serialize type="xml"/>
  </map:act>
  <map:generate src="data/null.xml"/>
  <map:serialize type="xml"/>
</map:match>
. . .

Could you please help me to understand what is wrong here?

Thank you in advance,
Roman

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

Reply via email to