The my generator ancestor is ServletGenerator, I don't see any reason why it
shouldn't work. Anyone have any ideas? I recompiled all my generators and
actions with the new classes so I don't know why it isn't working.

Faw

----- Original Message -----
From: "Peter Royal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 04, 2002 3:01 PM
Subject: Re: Cocoon problems


> On Tuesday 04 June 2002 02:59 pm, Spectron International, Inc. wrote:
> > ComposerAction->MyAction->MyLocale. Why is it giving me a
> > ClassCastException? Has anything changed in the way generators and
actions
> > are made?
> >
> > Faw
> >
> > PS: The error is the following:
> >
> > DEBUG (2002-06-04) 14:39.23:601 [sitemap](/cocoon/msim/BatchSummary)
> > SocketListener-2/ExcaliburComponentSelector: generators:
ComponentSelector
> > could not access the Component for hint: batch
> > java.lang.ClassCastException: com.spectron.msim.generators.BatchSummary
> > at
> >
org.apache.avalon.excalibur.component.DefaultComponentHandler.doGet(Default
> >C omponentHandler.java:116)
>
> Does your generator implement the Generator interface
> (org.apache.cocoon.generation.Generator)? That line in
> DefaultComponentHandler is attempting to cast your Generator as a
Component,
> which will succeed if you extend the cocoon Generator interface (which has
> Component at the base of its supertype heirarchy.
> -pete
>
> --
> peter royal -> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> 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]>
>
>


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