[JBoss jBPM] - Announcing jBPM BPEL 1.1.Beta3
by alex.guizarï¼ jboss.com
A new version of the BPEL Runtime has been unleashed, more powerful than ever! It enhances the jBPM platform with comprehensive coverage of BPEL4WS 1.1 and early access coverage of WS-BPEL 2.0.
I've made the product available from our download page for your convenience. Grab it and give it a go :-) If you need guidance or encounter a problem, come back to this fine forum.
The latest features include:
Logical work units
Fault detection and recovery
Compensation, revert completed activities
Termination, cancel ongoing activities
With these new additions to functionality delivered in earlier releases (see below), our coverage of the specification comes full circle.
Web services
Partner links
Message properties
Correlations
Providing web services
Message events
Invoking web services
Data handling
Variables
Expressions/Queries
Assignment
Alarms
Waiting
Alarm events
Control flow
Structured flow
Event based flow
Parallel flow
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010550#4010550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010550
19Â years, 2Â months
[JBoss Seam] - Re: Seam mail - How to use the default
by rmemoria
Hi Peter...
This is my components.xml
<?xml version="1.0" encoding="UTF-8"?>
| <components xmlns="http://jboss.com/products/seam/components"
| xmlns:core="http://jboss.com/products/seam/core"
| xmlns:mail="http://jboss.com/products/seam/mail"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
| http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">
|
| <core:init jndi-pattern="mdrtb-moldova/#{ejbName}/local" debug="true"/>
|
| <core:manager conversation-timeout="120000"
| concurrent-request-timeout="500"
| conversation-id-parameter="cid"
| conversation-is-long-running-parameter="clr"/>
|
| <core:transactionListener/>
|
| <core:ejb installed="@embeddedEjb@"/>
|
| <core:managed-persistence-context
| name="entityManager"
| auto-create="true"
| persistence-unit-jndi-name="java:/mdrEntityManagerFactory"/>
|
| <mail:mailSession sessionJndiName="java:/Mail" /></components>
And this is the stack trace
20:40:16,609 ERROR [STDERR] javax.faces.FacesException: 550 Administrative prohibition
| 20:40:16,609 ERROR [STDERR] at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:107)
| 20:40:16,609 ERROR [STDERR] at org.jboss.seam.ui.JSF.renderChild(JSF.java:179)
| 20:40:16,609 ERROR [STDERR] at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
| 20:40:16,609 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:105)
| 20:40:16,609 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:53)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:38)
| 20:40:16,984 ERROR [STDERR] at com.rmemoria.mdrtb.seam.UsersBean.sendMail(UsersBean.java:136)
| 20:40:16,984 ERROR [STDERR] at com.rmemoria.mdrtb.seam.UsersBean.save(UsersBean.java:126)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:16,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:16,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:36)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:16,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:16,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:16,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:16,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| 20:40:16,984 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:40:16,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:16,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:71)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:16,984 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| 20:40:16,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:17,000 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 20:40:17,000 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:40:17,000 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| 20:40:17,000 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| 20:40:17,000 ERROR [STDERR] at $Proxy187.save(Unknown Source)
| 20:40:17,000 ERROR [STDERR] at com.rmemoria.mdrtb.seam.UsersLocal$$FastClassByCGLIB$$6569facb.invoke(<generated>)
| 20:40:17,000 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:17,000 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:39)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:17,000 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:83)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$1b1db64.save(<generated>)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:40:17,000 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:40:17,000 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:40:17,000 ERROR [STDERR] at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
| 20:40:17,000 ERROR [STDERR] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
| 20:40:17,000 ERROR [STDERR] at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| 20:40:17,000 ERROR [STDERR] at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| 20:40:17,000 ERROR [STDERR] at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| 20:40:17,000 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| 20:40:17,000 ERROR [STDERR] at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
| 20:40:17,000 ERROR [STDERR] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
| 20:40:17,000 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| 20:40:17,000 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| 20:40:17,000 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:40:17,000 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 20:40:17,000 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 20:40:17,000 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 20:40:17,000 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 20:40:17,000 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 20:40:17,000 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
|
| 20:40:17,000 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 20:40:17,000 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 20:40:17,000 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 20:40:17,000 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 20:40:17,000 ERROR [STDERR] Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 Administrative prohibition
| 20:40:17,000 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
| 20:40:17,000 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1215)
| 20:40:17,000 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:586)
| 20:40:17,000 ERROR [STDERR] at javax.mail.Transport.send0(Transport.java:169)
| 20:40:17,000 ERROR [STDERR] at javax.mail.Transport.send(Transport.java:98)
| 20:40:17,000 ERROR [STDERR] at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:103)
| 20:40:17,000 ERROR [STDERR] ... 152 more
Thanks,
Ricardo Memória
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010544#4010544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010544
19Â years, 2Â months
[JBoss Seam] - Seam Mail -Error trying to send multiple mails
by rmemoria
Hi all,
I have an app where it sends new passworda for the users selected. Since each user has it's own password, I have to send one message for eachone selected.
The code is quite simple. The page action is the method sendNewPassword()
@Stateful
| @Scope(ScopeType.CONVERSATION)
| @Name("users")
| public class UsersBean implements com.rmemoria.mdrtb.seam.UsersLocal {
|
| @DataModel
| private List<ItemSelect> userList;
|
| @In(create=true) @Out
| private User user;
|
| private String password;
|
| @DataModelSelection
| @Out(required=false)
| private ItemSelect itemSelect;
|
| @In
| private Context conversationContext;
|
| @PersistenceContext(type=PersistenceContextType.EXTENDED)
| private EntityManager em;
|
| @EJB
| private UsersSrvLocal usersSrv;
|
| @In
| private FacesMessages facesMessages;
|
| public void sendMail(String mailPage) {
| try
| {
| renderer.render(mailPage);
| facesMessages.add("Email enviado com sucesso");
| } catch (Exception e) {
| e.printStackTrace();
| facesMessages.add("Erro ao enviar e-mail ");
| }
| }
|
| public void sendNewPassword() {
| List<User> lst = ItemSelectHelper.createItemsList(userList, true);
|
| for (int i = 0; i < lst.size(); i++) {
| User usu = lst.get(i);
| password = usersSrv.generatePassword();
| usu.setPassword( usersSrv.hashPassword(password) );
| em.persist(usu);
|
| conversationContext.set("user", usu);
| sendMail("/mail/newpassword.xhtml");
| }
|
| facesMessages.add(new FacesMessage("passwords were sent successfully"));
| }
And the mail page is
<!-- <?xml version="1.0" encoding="UTF-8"?> -->
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| template="usertemplate.xhtml">
|
| <ui:param name="subject" value="New password" />
|
| <ui:define name="body">
|
| <h3>New Password</h3><p/>
| Hi #{user.full_name}<p/>
|
| <table border="0" cellpadding="4" style="font-size:10px;font-name:Courier New;">
| <tr><td>User account:</td><td>#{user.login}</td></tr>
| <tr><td>Password:</td><td>#{users.password}</td></tr>
| </table>
|
| </ui:define>
|
| </ui:composition>
and usertemplate.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:m="http://jboss.com/products/seam/mail"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core">
|
| <m:message>
| <m:from address="suporte(a)rmemoria.com.br" />
| <m:to name="#{user.full_name}">#{user.email}</m:to>
| <m:subject>MDR-TB System - #{subject}</m:subject>
|
| <m:body>
| <html>
| <body>
| <span style="font-family:Verdana,Arial,Sans Serif;font-size:10px;">
| <b>MDR-TB System</b>
| <br/>
| <ui:insert name="body">
| This is the default body, specified by the template.
| </ui:insert>
| <p/>
| To login just access
| <a href="http://www.tbmr.rmemoria.com.br">http://www.tbmr.rmemoria.com.br</a>.<p/>
| <p/>
| Regards,<br/>
| MDR-TB System Administrator
| </span>
| <p/>
| </body>
| </html>
| <f:facet name="alternative">
| <ui:insert name="alternative">
| <h:outputText>Sorry, your mail reader doesn't support html.</h:outputText>
| </ui:insert>
| </f:facet>
| </m:body>
| </m:message>
| </ui:composition>
If I select 1 user the system sends the message.
If I select more than 1 user the system sends the first message but the second it raises the following exception:
20:28:35,906 ERROR [STDERR] javax.faces.FacesException: Email cannot have more than one from address(suporte(a)rmemoria.com.br)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.mail.ui.UIFrom.encodeBegin(UIFrom.java:31)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.ui.JSF.renderChild(JSF.java:177)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:105)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:53)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:38)
| 20:28:35,906 ERROR [STDERR] at com.rmemoria.mdrtb.seam.UsersBean.sendMail(UsersBean.java:136)
| 20:28:35,906 ERROR [STDERR] at com.rmemoria.mdrtb.seam.UsersBean.sendNewPassword(UsersBean.java:178)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:35,906 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:35,906 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| 20:28:35,906 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:35,906 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:36)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:35,906 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:35,906 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:35,906 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:35,906 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:35,906 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:28:35,906 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| 20:28:35,953 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| 20:28:35,953 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| 20:28:35,953 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| 20:28:35,953 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:35,953 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:36,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:36,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:36,453 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| 20:28:36,453 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 20:28:36,453 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:36,953 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:71)
| 20:28:36,953 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:36,953 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 20:28:36,953 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:37,453 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| 20:28:37,453 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:37,453 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| 20:28:37,453 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 20:28:37,453 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:37,953 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 20:28:37,953 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:37,953 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| 20:28:37,953 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:37,953 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| 20:28:38,453 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| 20:28:38,453 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:38,453 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| 20:28:38,453 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:38,453 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 20:28:38,453 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 20:28:38,453 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| 20:28:38,453 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| 20:28:38,453 ERROR [STDERR] at $Proxy140.sendNewPassword(Unknown Source)
| 20:28:38,453 ERROR [STDERR] at com.rmemoria.mdrtb.seam.UsersLocal$$FastClassByCGLIB$$6569facb.invoke(<generated>)
| 20:28:38,453 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:39)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:83)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$1b1db64.sendNewPassword(<generated>)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:28:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:28:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:28:38,453 ERROR [STDERR] at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
| 20:28:38,453 ERROR [STDERR] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
| 20:28:38,453 ERROR [STDERR] at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| 20:28:38,453 ERROR [STDERR] at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| 20:28:38,453 ERROR [STDERR] at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| 20:28:38,453 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| 20:28:38,453 ERROR [STDERR] at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
| 20:28:38,453 ERROR [STDERR] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
| 20:28:38,453 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| 20:28:38,453 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| 20:28:38,453 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:28:38,453 ERROR [STDERR] at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:28:38,453 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 20:28:38,453 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 20:28:38,453 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 20:28:38,453 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 20:28:38,453 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 20:28:38,453 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 20:28:38,453 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 20:28:38,453 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 20:28:38,453 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 20:28:38,453 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 20:28:38,453 ERROR [STDERR] Caused by: javax.mail.internet.AddressException: Email cannot have more than one from address in string ``suporte(a)rmemoria.com.br''
| 20:28:38,484 ERROR [STDERR] at org.jboss.seam.mail.ui.UIFrom.encodeBegin(UIFrom.java:25)
| 20:28:38,484 ERROR [STDERR] ... 159 more
Is this my mistake or a bug?
Ricardo Memória
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010542#4010542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010542
19Â years, 2Â months
[JBoss Seam] - Re: Seam mail - How to use the default
by rmemoria
Ok...
... I'll try to explain in a different way. I'm trying to avoid recompiling the application if I deploy it with a different mail configuration...
In mail-service.xml I defined the whole mail configuration, including the property mail.from:
<mbean code="org.jboss.mail.MailService"
| name="jboss:service=Mail">
| <attribute name="JNDIName">java:/Mail</attribute>
| <attribute name="User">mailuser</attribute>
| <attribute name="Password">pass</attribute>
|
| <attribute name="Configuration">
| <!-- Test -->
| <configuration>
| <property name="mail.transport.protocol" value="smtp"/>
| <property name="mail.smtp.host" value="mail.rmemoria.com.br"/>
| <property name="mail.from" value="system(a)rmemoria.com.br"/>
| <property name="mail.debug" value="false"/>
| <property name="mail.smtp.auth" value="true"/>
| </configuration>
| <depends>jboss:service=Naming</depends>
| </attribute>
| </mbean>
If I define the property mail.from, I don't have to set the "From" if I send mails using JNDI to bind a javax.mail.Session, cause it's going to use the default specified in my mail-service.xml.
On the other hand, using the SEAM mail, I ought to inform the clause <m:from> in my .xhtml page. Obviously it's amazingly simpler and more powerful send e-mails using the SEAM mail, but unfortunately I have this restriction.
So my suggestion is: What about catching the mail.from property defined in mail-service.xml if the clause <m:from> is missing?
Best,
Ricardo Memória
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010534#4010534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010534
19Â years, 2Â months
[JBoss Seam] - Exception for authorization attempt
by henrik.lindberg
Hi, I get an exception when restricting access to a pages called "settings.xhtml" - this is the output:
22:52:01,046 ERROR [AbstractSeamPhaseListener] Swallowing exception thrown by page action
org.jboss.seam.security.AuthorizationException: Authorization check failed for expression [#{s:hasPermission('/settings.xhtml', 'ren
der', null)}]
at org.jboss.seam.security.Identity.checkRestriction(Identity.java:165)
at org.jboss.seam.pages.Page.enter(Page.java:185)
at org.jboss.seam.core.Pages.enterPage(Pages.java:239)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:241)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:192)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:53)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
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.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:619)
And, the settings.xhtml page is rendered (as expected)
What does this mean? Do I have to have specific access rules for every page that is configured with in pages.xml?
What I would have expected would have been that access was denied since it could not find a rule that explicitly granted access.
Or maybe, I am doing something else wrong here...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010533#4010533
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010533
19Â years, 2Â months