On 10/25/07, marco bellacosa <[EMAIL PROTECTED]> wrote:
> Joerg Heinicke wrote:
> > On 10.10.2007 6:03 Uhr, marco bellacosa wrote:
> >> I have also put the Sun mail.jar and activation.jar in my WEB-INF/lib,
> >> but I
> >> get the error:
> >> ------------------------------------------------------------
> >>  org.apache.avalon.framework.component.ComponentException: Could not find
> >> component (key [[JavaPackage org.apache.cocoon.mail.MailSender.ROLE]])
> >
> > Hmm, this looks suspicious. The ComponentManager should never get this
> > string but only the actual constant ROLE, which is
> > MailSender.class.getName(), so "org.apache.cocoon.mail.MailSender". Also
> > the Cocoon sample at http://localhost:8888/samples/blocks/mail/sendmail/
> > works for me out of the box (without placing the "real" jars into the
> > lib dir only the actual sending failed).
> >
> > But I could reproduce your behavior by modifying the flowscript used for
> > this example (note the wrong class name):
> >
> > Could not find component (key [[JavaPackage
> > org.apache.cocoon.mail.Mailender.ROLE]])
> >
> > So obviously you seem to lack the MailSender class. Did you build your
> > Cocoon with the mail block included?
> > Joerg
> Hi Joerg,
>
> sorry for the late answer, I had worst problems on my system (raid crash and
> data lost) so I forgot to reply (not lucky weeks).
> Yes, Cocoon was built with the mail block. I simply put again by hand the
> files mail.jar and activation.jar into WEB-INF/lib as I got the error above.
> Anyway, the error persists.
>
> Thank you,
> marco

I tested the offensive line with two Cocoon-2.1.10 instances.  The
code works if the "mail" and "asciiart" are included.  This error
appears when those blocks are excluded:

org.apache.avalon.framework.component.ComponentException: Could not
find component (key [[JavaPackage
org.apache.cocoon.mail.MailSender.ROLE]])

Does that look familiar?

If you really cannot rebuild Cocoon with those blocks, JS Flow code to
email by accessing the Sun mail classes directly is at:
  http://solprovider.com/lenya/flowemail

solprovider

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

Reply via email to