  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | -none- | -none- 2007-09-01 - By martin.krajci
Back Hi all,
I'm trying to send an email using seam, but with exception.
Seam version: 1.2.1GA Jboss AS version: 4.2.1.GA JSF version 1.2 SUN RI
I have: 1) created mail-service.xml
<mbean code="org.jboss.mail.MailService" | name="jboss:service=CechieMailservice"> | <attribute name="JNDIName">java:/CechieMailService</attribute> | <attribute name="User">martin.krajci</attribute> | <attribute name="Password">mypwd</attribute> | <attribute name="Configuration"> | <configuration> | <property name="mail.store.protocol" value="pop3"/> | <property name="mail.transport.protocol" value="smtp"/> | <property name="mail.user" value="martin.krajci"/> | <property name="mail.pop3.host" value="pop.gmail.com"/> | <property name="mail.smtp.host" value="smtp.gmail.com"/> | <property name="mail.smtp.port" value="465"/> | <property name="mail.from" value="martin.krajci@(protected)"/> | <property name="mail.smtps.auth" value="true"/> | <property name="mail.smtps.quitwait" value="false"/> | <property name="mail.debug" value="true"/> | </configuration> | </attribute> | <depends>jboss:service=Naming</depends> | </mbean>
2) edited components.xml
<mail:mail-session session-jndi-name="java:/CechieMailService"/>
or <mail:mail-session host="localhost" port="2525" username="test" password= "test" />
+ namespaces in tag are the same as in seam mail example
3) included jboss-seam-mail.jar in ear/war/WEB-INF/lib
4) used seam mail example in my project
But I got exception when sending email:
13:17:33,448 INFO [MailSession] Creating JavaMail Session (localhost:null) 13:17:33,458 INFO [MailSession] connected to mail server 13:17:34,510 ERROR [ReservationComponent] Error sending mail javax.faces.FacesException: Exception reading response at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:142) at org.jboss.seam.ui.JSF.renderChild(JSF.java:180) at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162) at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRend erer.java:150) at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja va:112) at cz.krajci.cechie.business.logic.ReservationComponent.finishBooking(Re servationComponent.java:154)
The strange thing is the (localhost:null) host and port.
What else I'm missing?
Thanx for any reply.
Martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4080215#4080215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4080215 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |