Simple Database Problem

Having struggled to get my own database working, I thought I would go
back to basics; 
unfortunately I cannot those to work either!

I am unable to get the Employee example, that works in the Cocoon
samples, working in a sub sitemap.

I have copied over all the relevant XML/XSL files to a directory called
'test', under my
sitemap directory called 'biotox', and renamed the files to 'employ'
(rather than 'employee')
When I try and call the employ.xsp page, with the following sitemap
settings:

  <map:actions>
   <map:action name="add-dbentry"
src="org.apache.cocoon.acting.DatabaseAddAction"/>
   <map:action name="del-dbentry"
src="org.apache.cocoon.acting.DatabaseDeleteAction"/>
   <map:action name="upd-dbentry"
src="org.apache.cocoon.acting.DatabaseUpdateAction"/>
   <map:action name="request"
src="org.apache.cocoon.acting.RequestParamAction"/>
   <map:action name="form-validator"
src="org.apache.cocoon.acting.FormValidatorAction"/>
  </map:actions>
        
 <map:action-sets>
  <map:action-set name="dbentry">
   <map:act type="add-dbentry" action="Add"/>
   <map:act type="del-dbentry" action="Delete"/>
   <map:act type="upd-dbentry" action="Update"/>
  </map:action-set>
 </map:action-sets>

   <map:match pattern="test/employ">
     <map:act set="dbentry">
       <map:parameter name="descriptor"
value="context://biotox/test/employ.xml"/>
       <map:generate type="serverpages" src="test/employ.xsp"/>
       <map:transform src="styles/dynamic-page2html.xsl">
          <map:parameter name="view-source" value="test/employ.xsp"/>
       </map:transform>
       <map:serialize/>
     </map:act>     
   </map:match>    
   
Then I get the following error in the root.log:

WARN    (2002-03-07) 08:07.43:832   [root    ] 
(/cocoon/biotox/test/employ) HttpProcessor[8080][3]/CocoonServlet: 
The resource was not found
org.apache.cocoon.ResourceNotFoundException: 
No pipeline matched request: biotox//test/employ

When I run a similar match, but omitting the action set part (ie.
simply running the
XSP and displaying the page), then it works fine, but obviously does
not support
the add/delete/update actions.

I assume the probelm is with the descriptor part, but cannot figure out
what to do?

Please help !

Thanks
Derek



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to