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: Cocoon problems
Date Wed, 05 Jun 2002 12:44:02 GMT
> From: Spectron International, Inc. [mailto:spectron@coqui.net]
> 
> 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.

It may be class loading. Make sure your classes are under
WEB-INF/classes and not in any other place.

Vadim


> 
> Faw
> 
> ----- Original Message -----
> From: "Peter Royal" <proyal@apache.org>
> To: <cocoon-users@xml.apache.org>
> 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(Defa
ult
> > >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 -> proyal@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