Title: Send Mail Problem

Folks,
I am using the latest sendmal.xsl which was updated by Christian Haul yesterday. Still I am getting the error

Cocoon 2 - Internal server error
type fatal
message Could not access component for hint: org\apache\cocoon\www\mjsilvy\mail\mail_xsp
description org.apache.cocoon.ProcessingException:
Could not access component for hint: org\apache\cocoon\www\mjsilvy\mail\mail_xsp:
org.apache.avalon.framework.component.ComponentException:
Could not access component for hint: org\apache\cocoon\www\mjsilvy\mail\mail_xsp
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/mymail
path-info
mymail

My configurations are as follows:
cocoon.xconf
*************
 <builtin-logicsheet>
            <parameter name="prefix" value="sendmail"/>
            <parameter name="uri" value="http://apache.org/cocoon/sendmail/1.0"/>
            <parameter name="href" value="resource://silvy/logicsheet/sendmail.xsl"/>
</builtin-logicsheet>

sitemap.xmap
***********
  <map:pipeline>
        <map:match pattern="mymail">
               <map:generate type="serverpages"  src=""mjsilvy/mail/mail.xsp"/>
               <map:serialize/>
      </map:match> 
 </map:pipeline>


mail.xsp
**********
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java"
        xmlns:xsp="http://apache.org/xsp"
        xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0"
        >
<page>
<xsp:logic>
   String text ="Hi,\n"+"this mail has been send through a web form ...\n";
</xsp:logic>
</page>
 <sendmail:send-mail>
 <sendmail:from>myemailaddress</sendmail:from>
 <sendmail:to>myemailaddress</sendmail:to>
 <sendmail:subject>subject</sendmail:subject>
 <sendmail:smtphost>my smtp host</sendmail:smtphost>
 <sendmail:body><xsp:expr>text</xsp:expr></sendmail:body>
</sendmail:send-mail>
</xsp:page>


Also the activation.jar and mail.jar are put in web-inf\lib directory.
Server: Resin.
I had downloaded the example for logic sheet at
http://www.cocooncenter.de/cc/documents/resources/logicsheet/index.html
It works perfectly. So there is no problems with my confoguration.


I do not know what kind of xsl file if at all is required.
I would like to ask for help in this regard ASAP.

Silvy Mathews

Reply via email to