You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Yan, Charlene" <Ch...@thomsonlearning.com> on 2003/06/23 23:28:08 UTC
sendMail sample not working for Cocoon2.1M2...
I'm using Cocoon2.1M2. I tried to run sample at http://localhost:8080/cocoon/samples/mail/sendmail/new.html. It failed. I didn't get any emails sent. The mailing archive indicated to me that mail.jar and activation.jar should be in $tomcat/Webapps/WEB-INF/lib. So I copied those two jars to the dir. I also tested my local SMTP server using another java web appication which has mailhost as localhost and the email was sent successfully. I restarted tomcat and the mail sample still didn't work. I tried all three: sendMail, sendMailAction and logicsheet. I also set the log-level to debug for sitemap in logkit.xconf file (see below)
<category log-level="DEBUG" name="sitemap">
<log-target id-ref="sitemap"/>
<log-target id-ref="error"/>
</category>
It did not give me much useful info (see below).
Do I have to rebuild Cocoon if I want to run sendMail sample? Are there any ways to detect why it is not working?
Thanks in advance for any ideas!
Charlene
Current Sitemap Parameters:
LEVEL 2
PARAM: 'target' VALUE: 'form.xml'
PARAM: 'remove' VALUE: 'new.html'
LEVEL 1
PARAM: '../1' VALUE: 'new.html'
PARAM: '../0' VALUE: 'new.html'
DEBUG (2003-06-23) 17:07.18:169 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Got a org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from the pool.
DEBUG (2003-06-23) 17:07.18:179 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could not find the component for hint [serverpages]
DEBUG (2003-06-23) 17:07.18:179 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could not find the component for hint [serverpages]
DEBUG (2003-06-23) 17:07.18:179 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could not find the component for hint [serverpages]
DEBUG (2003-06-23) 17:07.18:179 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Got a org.apache.cocoon.generation.ServerPagesGenerator from the pool.
DEBUG (2003-06-23) 17:07.18:189 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector could not find the component for hint [xslt]
DEBUG (2003-06-23) 17:07.18:189 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector could not find the component for hint [xslt]
DEBUG (2003-06-23) 17:07.18:199 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector could not find the component for hint [xslt]
DEBUG (2003-06-23) 17:07.18:199 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Got a org.apache.cocoon.transformation.TraxTransformer from the pool.
DEBUG (2003-06-23) 17:07.18:199 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Got a org.apache.cocoon.transformation.SimpleFormTransformer from the pool.
DEBUG (2003-06-23) 17:07.18:199 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector could not find the component for hint [html]
DEBUG (2003-06-23) 17:07.18:199 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector could not find the component for hint [html]
DEBUG (2003-06-23) 17:07.18:199 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector could not find the component for hint [html]
DEBUG (2003-06-23) 17:07.18:199 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Got a org.apache.cocoon.serialization.HTMLSerializer from the pool.
DEBUG (2003-06-23) 17:07.18:209 [sitemap.transformer.xslt] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/TraxTransformer: Using stylesheet: 'file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/common/style/xsl/html/simple-page2html.xsl' in org.apache.cocoon.transformation.TraxTransformer@533eef
DEBUG (2003-06-23) 17:07.18:359 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/AbstractCachingProcessingPipeline: Cached response not found for 'new.html' using key: PK_G-serverpages-file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/mail/sendmail/form.xml_T-xslt-file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/common/style/xsl/html/simple-page2html.xsl;remove=new.html;contextPath=/cocoon;file=form.xml;servletPath=/samples/mail/sendmail/new.html;sitemapURI=new.html
DEBUG (2003-06-23) 17:07.18:359 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/AbstractCachingProcessingPipeline: getValidityForInternalPipeline(0): generator: using getValidity, validity==null
DEBUG (2003-06-23) 17:07.18:379 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='text' @name='smtphost' @value='localhost' ]
DEBUG (2003-06-23) 17:07.18:379 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:379 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute smtphost returns null
DEBUG (2003-06-23) 17:07.18:379 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='text' @name='smtphost' @value='localhost' ]
DEBUG (2003-06-23) 17:07.18:389 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='text' @name='from' @value='cocoon@localhost' ]
DEBUG (2003-06-23) 17:07.18:389 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:389 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute from returns null
DEBUG (2003-06-23) 17:07.18:389 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='text' @name='from' @value='cocoon@localhost' ]
DEBUG (2003-06-23) 17:07.18:389 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='text' @name='to' @value='@localhost' ]
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute to returns null
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='text' @name='to' @value='@localhost' ]
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='text' @name='cc' ]
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute cc returns null
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='text' @name='cc' ]
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='text' @name='bcc' ]
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:399 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute bcc returns null
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='text' @name='bcc' ]
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='text' @name='subject' ]
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute subject returns null
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='text' @name='subject' ]
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startTextareaElement textarea attributes [@name='body' @rows='10' @cols='72' ]
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute body returns null
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='file' @name='attachment' ]
DEBUG (2003-06-23) 17:07.18:410 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute attachment returns null
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='file' @name='attachment' ]
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='submit' @name='use-action' @value='action' ]
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute use-action returns null
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='submit' @name='use-action' @value='action' ]
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='submit' @name='use-oldaction' @value='old action' ]
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute use-oldaction returns null
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='submit' @name='use-oldaction' @value='old action' ]
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startInputElement input attributes [@type='submit' @name='use-logicsheet' @value='logicsheet' ]
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: replacing
DEBUG (2003-06-23) 17:07.18:420 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: cached module org.apache.cocoon.components.modules.input.RequestParameterModule@21d92a attribute use-logicsheet returns null
DEBUG (2003-06-23) 17:07.18:430 [sitemap.transformer.simpleform] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/SimpleFormTransformer: startNonCheckableElement input attributes [@type='submit' @name='use-logicsheet' @value='logicsheet' ]
DEBUG (2003-06-23) 17:07.18:430 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Put a org.apache.cocoon.generation.ServerPagesGenerator back into the pool.
DEBUG (2003-06-23) 17:07.18:430 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Put a org.apache.cocoon.transformation.TraxTransformer back into the pool.
DEBUG (2003-06-23) 17:07.18:430 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Put a org.apache.cocoon.transformation.SimpleFormTransformer back into the pool.
DEBUG (2003-06-23) 17:07.18:430 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Put a org.apache.cocoon.serialization.HTMLSerializer back into the pool.
DEBUG (2003-06-23) 17:07.18:430 [sitemap] (/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/ResourceLimitingPool: Put a org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline back into the pool.
DEBUG (2003-06-23) 17:07.18:470 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/PreparableMatchNode: Matcher 'wildcard' matched prepared pattern 'styles/*.css' at file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/sitemap.xmap:605:39
DEBUG (2003-06-23) 17:07.18:470 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/InvokeContext:
Current Sitemap Parameters:
LEVEL 1
PARAM: '1' VALUE: 'main'
PARAM: '0' VALUE: 'styles/main.css'
DEBUG (2003-06-23) 17:07.18:470 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/ResourceLimitingPool: Got a org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from the pool.
DEBUG (2003-06-23) 17:07.18:470 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/ResourceLimitingPool: Got a org.apache.cocoon.reading.ResourceReader from the pool.
DEBUG (2003-06-23) 17:07.18:470 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/AbstractCachingProcessingPipeline: Found cached response for 'styles/main.css' using key: PK_R-resource-file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/resources/styles/main.css
DEBUG (2003-06-23) 17:07.18:470 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/AbstractCachingProcessingPipeline: processReader: using valid cached content for 'styles/main.css'.
DEBUG (2003-06-23) 17:07.18:480 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/ResourceLimitingPool: Put a org.apache.cocoon.reading.ResourceReader back into the pool.
DEBUG (2003-06-23) 17:07.18:480 [sitemap] (/cocoon/styles/main.css) HttpProcessor[8080][3]/ResourceLimitingPool: Put a org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline back into the pool.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: sendMail sample not working for Cocoon2.1M2...
Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 23.Jun.2003 -- 05:28 PM, Yan, Charlene wrote:
>
> I'm using Cocoon2.1M2. I tried to run sample at
> http://localhost:8080/cocoon/samples/mail/sendmail/new.html. It
> failed. I didn't get any emails sent. The mailing archive indicated
> to me that mail.jar and activation.jar should be in
> $tomcat/Webapps/WEB-INF/lib. So I copied those two jars to the dir.
Correct.
> I also tested my local SMTP server using another java web appication
> which has mailhost as localhost and the email was sent successfully.
Good.
> I restarted tomcat and the mail sample still didn't work. I tried all
> three: sendMail, sendMailAction and logicsheet. I also set the
> log-level to debug for sitemap in logkit.xconf file (see below)
Good.
> <category log-level="DEBUG" name="sitemap">
> <log-target id-ref="sitemap"/>
> <log-target id-ref="error"/>
> </category>
> It did not give me much useful info (see below).
Actually, the crucial part would be before the snippet you provided.
> Do I have to rebuild Cocoon if I want to run sendMail sample? Are there any ways to detect why it is not working?
No, no need to rebuild Cocoon.
Which page is shown as result?
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org