cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject RE: Pipeline Matching Problems
Date Wed, 20 Mar 2002 07:48:15 GMT
Vadim

The pipeline is invoked via a 'normal' type of call, e.g.
docs/samples/forms/form_chemicals?id=123

(similar to the forms/employee sample)

The actions are the same as those in the existing (sample) sitemap:
  <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"/>
  </mapaction>

and actionset

 <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>

As you can see, I have not written any new code here... how/
where do I put the debug code in or check the result of the action
as nothing seems to be happening?

Sorry for seeming obtuseness... this looks like it should be a 
simple task to carry out but I still confused as to why the basics
are not working.

Thansk for the patience

Derek


>>> vadim.gritsenko@verizon.net 19/03/2002 10:31:32 >>>
I don't know how you are invoking this pipeline (what URL looks like),
and what actions are in the set, but is should choose an action based
on
the (IIRC, never used this ;) cocoon-action request parameter - its
value should match action name. Then chosen action is being executed.
Put some debug output into your action to see that it is being
executed.
Check the result of the action also - it should not be null.

Vadim

> -----Original Message-----
> From: Derek Hohls [mailto:dhohls@csir.co.za] 
> Sent: Tuesday, March 19, 2002 1:54 PM
> To: cocoon-users@xml.apache.org 
> Subject: RE: Pipeline Matching Problems
> 
> Vadim
> 
> I apreciate the reply. Now I can see that at least my grammar is OK.
:-)
> 
> However, I am no nearer to finding out *why* the code does not work
at
> all i.e. why the XSP page is not even compiled?
> 
> I *have* tried to model my code on the forms/employee sample; apart
from
> some differences in the display (eg. no JavaScript) they are very
> similar.  How do I go about finding why no action can be / is
processed?
> 
> Thanks
> Derek
> 
> D Hohls
> CSIR Environmentek
> PO Box 17001
> Kwa-Zulu Natal
> South Africa
> 4013
> 
> 
> >>> vadim.gritsenko@verizon.net 03/19/02 16:53 PM >>>
> Your action set do not succeed, so pipeline is not being executed.
> 
> IIRC, action set will succeed when it is possible to choose at least
one
> action from the set and that action returns not null Map (it could
be
> empty, but not null).
> 
> See also forms/employee in the sample sitemap.
> 
> Vadim
> 
> > From: Derek Hohls [mailto:DHohls@csir.co.za] 
> >
> > Running C2.0 under Windows 2000, JDK 1.3, Apache/Tomcat
> >
> > I am trying to get a small database working.  After failing to
> > get it working in a submap, I have tried moving all the relevant
> > files over to the Cocoon samples directory.
> >
> > When I have:
> >
> >    <map:match pattern="docs/samples/forms/form_chemicals">
> >        <map:generate type="serverpages"
> > src="docs/samples/forms/form_chemicals.xsp"/>
> >        <map:transform src="docs/samples/styles/dbform.xsl"/>
> >        <map:serialize />
> >    </map:match>
> >
> > all is well, and the output from the database output displays as
> > expected.
> >
> > But when I try and use actions:
> >
> >    <map:match pattern="docs/samples/forms/form_chemicals">
> >      <map:act set="dbentry">
> >        <map:parameter name="descriptor"
> > value="context://docs/samples/forms/desc_chemicals.xml" />
> >        <map:generate  type="serverpages"
> > src="docs/samples/forms/form_chemicals.xsp"/>
> >        <map:transform src="docs/samples/styles/dbform.xsl"/>
> >        <map:serialize />
> >      </map:act>
> >    </map:match>
> >
> > I get the error message in the root log:
> >
> > WARN    (2002-03-19) 15:03.20:994   [root    ]
> > (/cocoon/docs/samples/forms/form_chemicals)
> >  HttpProcessor[8080][4]/CocoonServlet: The resource was not found
> > org.apache.cocoon.ResourceNotFoundException:
> > No pipeline matched request: /docs/samples/forms/form_chemicals
> >
> > The action set and descriptor all exist in the relevant
directories,
> > and the action set is also
> > defined in the relevant sitemap entry.  The Tomcat work directory
was
> > clean.
> >
> > Any clues as to why pattern is not matched?
> >
> > Thanks
> > Derek
> >
> > PS I have tried changing:
> > <map:parameter name="descriptor"  value="contex
> > to
> > <map:parameter name="descriptor"  value="file
> > on other advice, but without succcess.
> >
> >
---------------------------------------------------------------------
> > 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: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
<cocoon-users-help@xml.apache.org>
> 
> 
> 
>
---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> 
> 
>
---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message