Tu as raison, c'est pas sorcier C'est peut être autre chose qui me torture tant...
Voici le fragment de ma dernière erreur et tu constateras que la première erreur concerne la connection pour l'envoi du mail !!chouette hein ?? INFO (2007-02-01) 16:21.43:879 [access] (/cocoon/institute/) http-8080-Processor24/CocoonServlet: 'institute/' Processed by Apache Cocoon 2.1.9 in 1.892 seconds. INFO (2007-02-01) 16:21.45:742 [core.manager] (/cocoon/institute/presentation/contact.html) http-8080-Processor24/CacheImpl: Removing cached response for PK_G-<aggregator>-CA(:presentation<>)P=false:file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/xml/page-compositions.xml;P=false:file:/C:/Prog ram Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/xml/content.xml;_T-xslt-file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/templates/docbookContent2html.xslt;contentId=co ntact;root=/cocoon/institute_T-xinclude-XInclude INFO (2007-02-01) 16:21.45:812 [core.manager] (/cocoon/institute/presentation/contact.html) http-8080-Processor24/CacheImpl: Removing cached response for PK_G-<aggregator>-CA(:page<>)P=false:cocoon://institute/menus/presentation/c ontact.xml?pipelinehash=-5926677525758768942;P=:content-html<>:false:cocoon: //institute/page/contact.xml?pipelinehash=8459514086873715178; INFO (2007-02-01) 16:21.45:832 [core.manager] (/cocoon/institute/presentation/contact.html) http-8080-Processor24/CacheImpl: Removing cached response for PK_G-file-cocoon://institute/i/presentation/contact.html?pipelinehash=882720 4450501854349_T-xslt-file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/templates/assembleHtml.xslt;serverName=localhos t_S-xhtml-;doctype-public=-//W3C//DTD XHTML 1.0 Strict//EN;doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; encoding=UTF-8;omit-xml-declaration=yes INFO (2007-02-01) 16:22.14:373 [core.manager] (/cocoon/institute/presentation/contact.html) http-8080-Processor24/CacheImpl: Caching new response for PK_G-<aggregator>-CA(:presentation<>)P=false:file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/xml/page-compositions.xml;P=false:file:/C:/Prog ram Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/xml/content.xml;_T-xslt-file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/templates/docbookContent2html.xslt;contentId=co ntact;root=/cocoon/institute_T-xinclude-XInclude INFO (2007-02-01) 16:22.14:423 [core.manager] (/cocoon/institute/presentation/contact.html) http-8080-Processor24/CacheImpl: Caching new response for PK_G-<aggregator>-CA(:page<>)P=false:cocoon://institute/menus/presentation/c ontact.xml?pipelinehash=-5926677525758768942;P=:content-html<>:false:cocoon: //institute/page/contact.xml?pipelinehash=8459514086873715178; INFO (2007-02-01) 16:22.14:423 [core.manager] (/cocoon/institute/presentation/contact.html) http-8080-Processor24/CacheImpl: Caching new response for PK_G-file-cocoon://institute/i/presentation/contact.html?pipelinehash=882720 4450501854349_T-xslt-file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/cocoon/institute/templates/assembleHtml.xslt;serverName=localhos t_S-xhtml-;doctype-public=-//W3C//DTD XHTML 1.0 Strict//EN;doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; encoding=UTF-8;omit-xml-declaration=yes INFO (2007-02-01) 16:22.14:423 [access] (/cocoon/institute/presentation/contact.html) http-8080-Processor24/CocoonServlet: 'institute/presentation/contact.html' Processed by Apache Cocoon 2.1.9 in 28.801 seconds. WARN (2007-02-01) 16:22.37:426 [sitemap.action.sendmail] (/cocoon/mail/) http-8080-Processor25/Sendmail: MessagingException: An error occured while sending email. javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25 at org.apache.cocoon.mail.MailMessageSender.doSend(MailMessageSender.java:448) at org.apache.cocoon.mail.MailMessageSender.send(MailMessageSender.java:271) at org.apache.cocoon.acting.Sendmail.act(Sendmail.java:247) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:119) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:46) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:130) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:92) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Con creteTreeProcessor.java:234) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Con creteTreeProcessor.java:176) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:252) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:46) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:130) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:92) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Con creteTreeProcessor.java:234) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Con creteTreeProcessor.java:176) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:252) at org.apache.cocoon.Cocoon.process(Cocoon.java:686) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Unknown Source) ERROR (2007-02-01) 16:22.37:437 [sitemap.handled-errors] (/cocoon/mail/) http-8080-Processor25/ErrorHandlerHelper: No pipeline matched request: mail/ at <map:mount> - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps /cocoon/sitemap.xmap:951:66 INFO (2007-02-01) 16:22.37:457 [sitemap] (/cocoon/mail/) http-8080-Processor25/HandleErrorsNode: Processing handle-errors at <map:handle-errors> - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps /cocoon/sitemap.xmap:966:24 INFO (2007-02-01) 16:22.37:677 [access] (/cocoon/mail/) http-8080-Processor25/CocoonServlet: 'mail/' Processed by Apache Cocoon 2.1.9 in 1.532 seconds. Donc, je devrais peut être corriger cela pour voir si ca marcherais pas A tout de suite -----Original Message----- From: Marc Salvetti [mailto:[EMAIL PROTECTED] Sent: jeudi 1 février 2007 16:12 To: [email protected] Subject: Re: Envoi de mail dans une application Non, le pb vient pas de la, la requete est interprete par le match et match="*" doit marcher pour n'importe quoi (qui ne contient pas de /) sinon c'est ** . essaye de voir ds le log (dans WEB-INF/log) tu devrais retrouver le cheminement de ta requete dans les sitemaps et comprendre ce qui va pas. pour moi, c'est des pb de chemins absolu ou relatif, avec prefix /cocoon/mail, /mail ou rien ca devrait pas etre si sorcier ;) 2007/2/1, Jean-Philippe Lesire <[EMAIL PROTECTED]>: > > En fait j'ai suivi ton conseil et suis allé compulser la doc sur les > sitemap > > Il apparait donc que j'ai mis le components en 1er et suivent les > pipelines. > Logiquement, pas de prob > > Mais il me donnais le message suivant : send-a-mail n'existe pas !! > D'accord, j'ai bien compris ce que tu m'a dis avec la requête, mais > send-a-mail dois bien correspondre à quelque chose et c'est bien la > question > que je me pose. > > Alors, j'ai modifié le nom de mon actin dans le form de > cocoon/mail/send-a-mail à cocoon/mail/sendmail.. > > A mourir de rire, meme de ca il n'en veut pas, c'est le meme nom partout, > A > part que, je te promet que je ne vais que là où me dis de faire > > Ca ne marche pas(de ma faute je le sais bien) : > > org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: > mail/sendmail > <map:mount> - > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > /cocoon/sitemap.xmap - 951:66 > > > snifff > -----Original Message----- > From: Marc Salvetti [mailto:[EMAIL PROTECTED] > Sent: jeudi 1 février 2007 15:52 > To: [email protected] > Subject: Re: Envoi de mail dans une application > > et ca marche ? > > 2007/2/1, Jean-Philippe Lesire <[EMAIL PROTECTED]>: > > > > Donc, a ton sens, il est imperatif que le component se trouve dans la > > sitemap du dossier mail. > > Dans un de tes messages, tu m'a dis que si il se trouve dans le sitemap > de > > cocoon ce n'est pas grave si ce n'est qu'il ne dois pas se trouver dans > > une > > nouvelle balise component car il ne peut y en avoir 2 sur le meme > > document.(ok pour ca) > > Logique meme. > > Mais je l'ai viré du sitemap de cocoon pour l'avoir alors dans le > sitemap > > de > > mail pour me donner cela : > > > > > > <?xml version="1.0"?> > > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> > > > > <map:components> > > <map:actions> > > <map:action name="sendmail" logger="sitemap.action.sendmail" > > src="org.apache.cocoon.acting.Sendmail > "/> > > </map:actions> > > </map:components> > > > > <map:pipelines> > > <map:pipeline> > > <map:match pattern="send-a-mail"> > > <map:act type="sendmail"> > > <!-- To override defaults > > specified > > in cocoon.xconf: > > <map:parameter > > name="smtp-host" value="localhost"/> > > <map:parameter > > name="smtp-user" value="john"/> > > <map:parameter > > name="smtp-password" value="john"/> > > --> > > <map:parameter name="from" > > value="[EMAIL PROTECTED]"/> > > <map:parameter name="to" > > value="[EMAIL PROTECTED]"/> > > <!--map:parameter > > name="subject" > > value="{request-param:objet}"/--> > > <!--map:parameter > name="body" > > value="{request-param:body}"/--> > > <!--map:parameter name="cc" > > value="{request-param:cc}"/--> > > <map:parameter name="bcc" > > value="[EMAIL PROTECTED]"/> > > <!--map:parameter > > name="attachments" > > > > value="uploaded_file1 context://welcome.xml"/--> > > <map:generate > > src="mail/{status}.xml"/> > > <map:serialize type="xml"/> > > </map:act> > > </map:match> > > </map:pipeline> > > </map:pipelines> > > </map:sitemap> > > > > Au fait, si un jour je peux te remercier, je le ferai. > > > > phil > > -----Original Message----- > > From: Marc Salvetti [mailto:[EMAIL PROTECTED] > > Sent: jeudi 1 février 2007 15:23 > > To: [email protected] > > Subject: Re: Envoi de mail dans une application > > > > Oui, ca a un rapport, l'action de ton formulaire correspond a l'url que > > recoit cocoon : > > > > quand tu affiche ton form, tu es sur l'url > > http://localhost:8080/cocoon/mail/quelquechose (ou tu devrais) > > quand ton form est envoyé, il resoud l'url d'action par rapport a la ou > tu > > te trouve. > > dans ton cas c'est une ref absolue '/cocoon....' donc pas de pb par > > rapport > > a ca > > > > par rapport au pb que tu avais ds le mail d'avant, visiblement, tu n'as > > pas > > collé la section components au bon endroit. > > tu devrais regarder un peu la doc sur la sitemap avant de continuer... > > > > http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html > > > > > > > > > > 2007/2/1, Jean-Philippe Lesire <[EMAIL PROTECTED]>: > > > > > > Et maintenant, je reviens au point d'avant : > > > > > > org.apache.cocoon.ResourceNotFoundException: No pipeline matched > > request: > > > mail/send-a-mail > > > <map:mount> - > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > /cocoon/sitemap.xmap - 951:66 > > > > > > L'action de mon formulaire s'appelle : /cocoon/mail/send-a-mail > > > > > > Est-ce que ca a un rapport? > > > Dois je modifier quelque part? > > > Ou modifier send-a-mail par sendmail? > > > > > > Note que j'ai essayé et j'ai quand meme une erreur > > > > > > > > > -----Original Message----- > > > From: Marc Salvetti [mailto:[EMAIL PROTECTED] > > > Sent: jeudi 1 février 2007 14:41 > > > To: [email protected] > > > Subject: Re: Envoi de mail dans une application > > > > > > Effectivement, ton erreur vient du fait qu'il ne trouve pas l'action > > > sendmail. > > > Normalement, la section components est herité par les sous sitemaps, > dc > > si > > > ce code se trouve ds la sitemap principale, ta sitemap devrait y > > acceder. > > > Par contre, tu ne doit avoir qu'une seule section <map:components> par > > > sitemap, donc si tu as collé ca a la suite ds la sitemap principale ca > > ne > > > peut pas marcher > > > essaye soit de coller ca ds mail/sitemap.xmap ou verifie que tu n'a > pas > > 2 > > > sections components ds la sitemap principale > > > > > > 2007/2/1, Jean-Philippe Lesire <[EMAIL PROTECTED]>: > > > > > > > > Hahhaaa... > > > > Et ben non... mais c'est un autre message a l'horizon. > > > > > > > > org.apache.avalon.framework.configuration.ConfigurationException: > Type > > > > 'sendmail' is not defined for 'act' at > > > > > > > > > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > > /cocoon/mail/sitemap.xmap:7:30 > > > > > > > > > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > > /cocoon/mail/sitemap.xmap - 7:30 > > > > > > > > Type 'sendmail' is not defined for 'act' at > > > > > > > > > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > > /cocoon/mail/sitemap.xmap:7:30 > > > > > > > > > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > > /cocoon/mail/sitemap.xmap - 7:30 > > > > > > > > Failed to load sitemap from file:/C:/Program Files/Apache Software > > > > Foundation/Tomcat 5.5/webapps/cocoon/mail/sitemap.xmap > > > > > > > > > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > > /cocoon/mail/sitemap.xmap - 7:30 [ConfigurationException] > > > > > > > > > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > > /cocoon/sitemap.xmap - 951:66 <map:mount> > > > > > > > > AU FAIT : ce code ci doit normalement se trouver où si ce n'est pas > > dans > > > > le > > > > sitemap de cocoon? > > > > > > > > <map:components> > > > > > <map:actions> > > > > > <map:action name="sendmail" logger="sitemap.action.sendmail" > > > > > src="org.apache.cocoon.acting.Sendmail"/> > > > > > </map:actions> > > > > > </map:components> > > > > > > > > Car je pense vraiment que l'erreur vient de là vu qu'il n'est plas > > nulle > > > > part > > > > > > > > phil > > > > > > > > -----Original Message----- > > > > From: Marc Salvetti [mailto:[EMAIL PROTECTED] > > > > Sent: jeudi 1 février 2007 14:11 > > > > To: [email protected] > > > > Subject: Re: Envoi de mail dans une application > > > > > > > > normalement ds le sitemap.xmap, tu as ceci > > > > <!--+ > > > > | Mount everything else by calling the sitemap.xmap file > > located > > > > | in the requested folder. > > > > +--> > > > > <map:match pattern="*/**"> > > > > <map:mount src="{1}/" uri-prefix="{1}"/> > > > > </map:match> > > > > > > > > ca sert a monter les sitemaps ds les sous repertoires > > > > > > > > ton matcher est ok pour "mail/*" mais a priori, la config par defaut > > > > retire > > > > le prefixe mail/ avant de passer la requete a la sous-sitemap (c'est > > le > > > > uri-prefix="{1}") > > > > donc essaye match="*" ou plutot match="send-a-mail", ca pourrait > > > marcher > > > > ;) > > > > > > > > > > > > > > > > 2007/2/1, Jean-Philippe Lesire <[EMAIL PROTECTED]>: > > > > > > > > > > Oui, je vais te montrer le code (sorry pour l'indentation) : > > > > > > > > > > <?xml version="1.0"?> > > > > > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> > > > > > > > > > > <map:pipelines> > > > > > <map:pipeline> > > > > > <map:match pattern="mail/*"> > > > > > <map:act type="sendmail"> > > > > > <!-- To override defaults specified in > > > > > cocoon.xconf: > > > > > <map:parameter name="smtp-host" > > > > > value="localhost"/> > > > > > <map:parameter name="smtp-user" > > value="john"/> > > > > > <map:parameter name="smtp-password" > > > > value="john"/> > > > > > --> > > > > > <map:parameter name="from" > > > > > value="[EMAIL PROTECTED]"/> > > > > > <map:parameter name="to" > > > > > value="[EMAIL PROTECTED]"/> > > > > > <!--map:parameter name="subject" > > > > > value="{request-param:objet}"/--> > > > > > <!--map:parameter name="body" > > > > > value="{request-param:body}"/--> > > > > > <!--map:parameter name="cc" > > > > > value="{request-param:cc}"/--> > > > > > <map:parameter name="bcc" > > > > > value="[EMAIL PROTECTED]"/> > > > > > <!--map:parameter name="attachments" > > > > > > > > > > value="uploaded_file1 context://welcome.xml"/--> > > > > > <map:generate src="mail/{status}.xml"/> > > > > > <map:serialize type="xml"/> > > > > > </map:act> > > > > > </map:match> > > > > > </map:pipeline> > > > > > </map:pipelines> > > > > > </map:sitemap> > > > > > > > > > > Le fichier est bien nommé sitemap.xmap et est placé dans > cocoon/mail > > > > > > > > > > -----Original Message----- > > > > > From: Marc Salvetti [mailto:[EMAIL PROTECTED] > > > > > Sent: jeudi 1 février 2007 13:48 > > > > > To: [email protected] > > > > > Subject: Re: Envoi de mail dans une application > > > > > > > > > > > > > > > > > org.apache.cocoon.ResourceNotFoundException: No pipeline matched > > > > > request: > > > > > > mail/send-a-mail > > > > > > <map:mount> - > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps > > > > > > /cocoon/sitemap.xmap - 951:66 > > > > > > > > > > > > > > > apparement il cherche ton pipe dans la sitemap principale, alors > > qu'il > > > > > devrait chercher dans /mail/sitemap.xmap > > > > > tu as bien créé un dossier mail avec un sitemap dedans ? > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ > > > > > Pour vous desinscrire : mailto: > > [EMAIL PROTECTED] > > > > > Autres commandes : mailto:[EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ > > > > Pour vous desinscrire : mailto: > [EMAIL PROTECTED] > > > > Autres commandes : mailto:[EMAIL PROTECTED] > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ > > > Pour vous desinscrire : mailto:[EMAIL PROTECTED] > > > Autres commandes : mailto:[EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ > > Pour vous desinscrire : mailto:[EMAIL PROTECTED] > > Autres commandes : mailto:[EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ > Pour vous desinscrire : mailto:[EMAIL PROTECTED] > Autres commandes : mailto:[EMAIL PROTECTED] > > --------------------------------------------------------------------- Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
