aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss Mail Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss Mail Server" Watch "JBoss Mail Server" New topic
Author

JBoss Mail Server

Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
I have downloaded and configured JBoss Mail server.From java mail API I am sending a mail and didn't get any exception or error.However on JBoss side,I didn't receive error but message is not delivered.
{
15:23:44,480 ERROR [SMTPSender] Cannot send mailjavax.mail.MessagingException: C
ould not connect to SMTP host: mx2.mail.yahoo.com., port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
javax.mail.MessagingException: Could not connect to SMTP host: mx2.mail.yahoo.com., port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1008)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:19
7)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:104)
at org.jboss.mail.smtp.sender.SMTPSender.sendForDomain(SMTPSender.java:3
18)
at org.jboss.mail.smtp.sender.SMTPSender.send(SMTPSender.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvoc
ationHandler.java:201)
at $Proxy97.send(Unknown Source)
at org.jboss.mail.mailhandler.remote.RemoteDeliveryMessageDrivenBean.del
iver(RemoteDeliveryMessageDrivenBean.java:248)
at org.jboss.mail.mailhandler.remote.RemoteDeliveryMessageDrivenBean.onM
essage(RemoteDeliveryMessageDrivenBean.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(Mess
ageDrivenContainer.java:475)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
ke(CachedConnectionInterceptor.java:149)
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(Message
DrivenInstanceInterceptor.java:101)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
66)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityIn
terceptor.java:94)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
ryFinderInterceptor.java:122)
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenCont
ainer.java:389)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvo
ker.java:1077)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onM
essage(JMSContainerInvoker.java:1379)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:25
6)
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMess
ageConsumer.java:904)
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:16
0)
at org.jboss.mq.SpySession.run(SpySession.java:333)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
utor.java:743)
at java.lang.Thread.run(Thread.java:595)
15:23:44,510 INFO [JMSMailListener] PUT MESSAGE ON QUEUE rg.jboss.mail.message
}
jboss has recommended one patch,I tried it but does not work.


Namma Suvarna Karnataka
Heonkoo Lee
Ranch Hand

Joined: Feb 10, 2005
Posts: 85
Originally posted by Arjunkumar Shastry:
I have downloaded and configured JBoss Mail server.From java mail API I am sending a mail and didn't get any exception or error.However on JBoss side,I didn't receive error but message is not delivered.
{
15:23:44,480 ERROR [SMTPSender] Cannot send mailjavax.mail.MessagingException: C
ould not connect to SMTP host: mx2.mail.yahoo.com., port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
javax.mail.MessagingException: Could not connect to SMTP host: mx2.mail.yahoo.com., port: 25;


mx2.mail.yahoo.com is not SMTP server. It's using POP3. If you have Microsoft IIS SMTP installed on your machine, you can use it. Also, you can try any open source mail server like JAMES (james.apache.org).

If you want to use your POP3 account, I guess you can find a howto or wiki on that in jboss.org.
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
Initially I started with James but didn't work out hence going now using JBoss Email Server.I am not using POP3.I just want to send email message to my Yahoo! account from my java program.My java program appears to be correct.When I use JBoss,it adds the message in the queue and gives the above error on its console.
 
jQuery in Action, 2nd edition
 
subject: JBoss Mail Server