NameNotFoundException for Mail when migrating Seam app from EAP 5 to 6
Issue
- Migrating Seam 2 application from EAP 5 to 6. We're using the Mail component of Seam, and we're getting this error:
Caused by: javax.naming.NameNotFoundException: Mail -- service jboss.naming.context.java.Mail
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:241)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_40]
at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_40]
at org.jboss.seam.mail.MailSession.getSession(MailSession.java:64) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_40]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_40]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
... 58 more
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
