[JBoss Seam] - Email does not reach recipient and no debug messages appears
by dkane
Hello
In mail-service.xml I only changed debug="false" to "true" , and did not touch server addresses, etc.
In components.xml, I added the line :
<mail:mail-session host="mail.mydomain.com" port="25" username="myname" password="mypassword" debug="true"/>
|
The first question : does components.xml settings override mail-service.xml settings ?
Then, I have a page
<m:message xmlns="http://www.w3.org/1999/xhtml"
| xmlns:m="http://jboss.com/products/seam/mail"
| xmlns:h="http://java.sun.com/jsf/html">
|
| <m:from name="Sales" address="sales(a)mydomain.com" />
| <m:to name="#{user.name}">#{user.email}</m:to>
| <m:subject>Your registration info</m:subject>
| <m:body>
| <p><h:outputText value="Dear #{user.name}" />,</p>
| <p>Login : #{user.login}</p>
| <p>Password : #{user.password}</p>
|
| <p>Sincerely, </p>
| <p>Mydomain.com team</p>
| </m:body>
| </m:message>
|
And the sending code itself is like in Seam "mail" example :
| try
| {
| renderer.render("/mail/sendmail.xhtml");
| facesMessages.add("Email with your registration data was sent to #{user.email}");
| em.persist(user);
| registered = true;
| }
| catch(Exception ex)
| {
| facesMessages.add(FacesMessage.SEVERITY_INFO, "Registration error : " + ex.getMessage());
| registered = false;
| }
The result :
- I am getting message "Email with your registration data was sent to #{user.email}" , saying that no Exception occured.
- I don't see any debug messages in JBoss log regarding email
- Email does not reach the inbox (spam was checked as well).
The rendering is being performed, I checked that by doing the intensional error in sendmail.xml , and exception was thrown on render method.
However, when I changed host="mail.mydomain.com" in components.xml to non-existing domain, no exception was thrown.
Any ideas how to trace the execution ?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063027#4063027
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063027
18Â years, 11Â months
[Messaging, JMS & JBossMQ] - Too many MDB's
by lfhaddix
I am trying to set up mdb's to integrate 5 applications. I am trying to set up an WSMQ queue/mdb for each function. I can define 4 mdbs in ejb-jar.xml and jboss.xml with no problems but once I define 5, I start getting an error (see below) on the last ones defined in ejb-jar.xml. I assume there is a "maximum" setting somewhere but I cannot find it in MQSeries or jboss doc.
Will someone point me in the right direction on this?
10:25:14,937 ERROR [JMSContainerInvoker] Reconnect failed: JMS provider failure
detected for ERPMDB
org.jboss.deployment.DeploymentException: Error during queue setup; - nested thr
owable: (javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for
'localhost:QM_ftvint001')
at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException
(DeploymentException.java:53)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSC
ontainerInvoker.java:811)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$E
xceptionListenerRunnable.run(JMSContainerInvoker.java:1428)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager fo
r 'localhost:QM_ftvint001'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
ent.java:586)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2301)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1703)
at com.ibm.mq.jms.MQQueueConnection.createQueueSession(MQQueueConnection
.java:405)
at com.ibm.mq.jms.MQQueueConnection.createQueueSession(MQQueueConnection
.java:242)
at org.jboss.jms.asf.StdServerSessionPool.create(StdServerSessionPool.ja
va:341)
at org.jboss.jms.asf.StdServerSessionPool.(StdServerSessionPool.ja
va:160)
at org.jboss.jms.asf.StdServerSessionPoolFactory.getServerSessionPool(St
dServerSessionPoolFactory.java:91)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.createSessionPool(JMSCo
ntainerInvoker.java:1171)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSC
ontainerInvoker.java:783)
... 2 more
10:25:14,968 INFO [JMSContainerInvoker] Waiting for reconnect internal 20000ms
for ERPMDB
<container-configuration>
<container-name>Standard Message Driven Bean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>message-driven-bean</invoker-proxy-binding-name>
<container-interceptors>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
org.jboss.ejb.plugins.LogInterceptor
org.jboss.ejb.plugins.RunAsSecurityInterceptor
<!-- CMT -->
org.jboss.ejb.plugins.TxInterceptorCMT
org.jboss.ejb.plugins.CallValidationInterceptor
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
<!-- BMT -->
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
org.jboss.ejb.plugins.CallValidationInterceptor
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
</container-interceptors>
<instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
<instance-cache></instance-cache>
<persistence-manager></persistence-manager>
<container-pool-conf>
100
</container-pool-conf>
</container-configuration>
<container-configuration extends="Standard Message Driven Bean">
<container-name>WSMQ Message Driven Bean</container-name>
<invoker-proxy-binding-name>wsmq-message-driven-bean</invoker-proxy-binding-name>
</container-configuration>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063021#4063021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063021
18Â years, 11Â months
[EJB/JBoss] - NoRouteToHostException on local lookup
by kanth_seenu
I have read and understood that if I specify
kind="physical" in my tag in build script, even my local lookup's will use JNDI.
I found some exceptions in my server log, when it was trying to do some local lookups and when my server had actually lost its network connectivity(I unplugged the cable myself).
I got the below exception
javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 192.168.27.126; nested exception is:
java.net.NoRouteToHostException: No route to host: connect]
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
ERROR [STDERR] at com.common.license.interfaces.LicenseVerifierUtil.lookupHome(LicenseVerifierUtil.java:20)
ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
ERROR [STDERR] Caused by: java.rmi.ConnectIOException: Exception creating connection to: 192.168.27.126; nested exception is:
java.net.NoRouteToHostException: No route to host: connect
ERROR [STDERR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:587)
ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
ERROR [STDERR] ... 6 more
ERROR [STDERR] Caused by: java.net.NoRouteToHostException: No route to host: connect
ERROR [STDERR] at java.net.PlainSocketImpl.socketConnect(Native Method)
ERROR [STDERR] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
ERROR [STDERR] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
ERROR [STDERR] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
ERROR [STDERR] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
ERROR [STDERR] at java.net.Socket.connect(Socket.java:519)
ERROR [STDERR] at java.net.Socket.connect(Socket.java:469)
ERROR [STDERR] at java.net.Socket.(Socket.java:366)
ERROR [STDERR] at java.net.Socket.(Socket.java:179)
ERROR [STDERR] at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
ERROR [STDERR] at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
ERROR [STDERR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
192.168.27.126 is my machine ip
Can anyone please help me to understand how to do a safe lookup even when the server has lost its network connectivity. I read about component based lookups and ended with naming exceptions....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063014#4063014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063014
18Â years, 11Â months