cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Help! Where to put Action classes? Again!
Date Tue, 15 Jan 2002 18:59:41 GMT
> From: Mike Ahlers [mailto:mike@ambrea.com]
> 
> Hi,
> 
> I found a few replies on this mail I included here... BUT...
> I have exactly the same problem. Cocoon DOES pick up a simple (no
package)
> action.class file in the WEB-INF/classes directory and the action
performs
> just as fine.
> 
> However, when I create a package of it, cocoon has problems with it.
Even
> when I jar it and place it in the lib dir, forcing it. Placing the
class
> file in the proper tree from classes.... like
> com/mysite/packagegroup/myaction.class gives the same problem.
> 
> From the errors I am getting (no page is properly send due the action
> definition is faulting in sitemap.xmap -> cannot find the class) I
have the
> impression cocoon only looks at the class file only? And forgets about
the
> prefix path and or location? This sounds stupid and probably isn't the
case.
> I fail to find an answer in the documentation, and according to
'normal'
> deployment of classes I am doing the right thing?

Yes.

> So, what do I wrong?
> Or is there a small bug somewhere?

No.

 
> Suggestions are welcome, thanks in advance,

Send your action - will take a look.

Vadim

> Mike Ahlers
> 
> PS> I use Tomcat 4 and Cocoon 2
> 
> ----- Original Message -----
> From: "Miller, Grant" <Grant.Miller@COGNOS.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Friday, January 11, 2002 5:58 AM
> Subject: Help! Where to put Action classes?
> 
> 
> > Hi,
> > I am using tomcat 4 and cocoon2. I have written an action class
(almost
> > exactly the same as the Hello World example) and added it to my
sitemap.
> > However I get a sitemap error as the class cannot be found. I cannot
find
> > anything in the documentation to say where the class should be.
> > The action is to add the current date as a string to the parameters
map so
> > that it can be accessed via xsp-request.
> > My package is called 'com.mycompany.app' and my action is defined
as:
> >
> > <map:actions>
> >    <map:action name="get_date"
class="com.mycompany.app.DateAction"/>
> > </map:actions>
> >
> > Reading other postings I get the impression that my class should be
> > automatically be picked up if I put the DateAction.class file in:
> >
> > web-inf\classes\com\mycompany\app
> >
> > but this doesn't work.
> > Please help!
> >
> > Cheers,
> >
> > Grant


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