[Beginners Corner] - Re: A new understanding of ClassLoaders...
by mbabauer
Your right! Guess I should read better. Earlier I had it complaining about the componentContext.xml when I had it sitting in the EAR. I think I know whats happening, at least with the applicationContext.xml...
Even though the ContextLoaderListener is started from the web.xml, it seems that the "ClassLoader" it runs with does not have visibility to the WAR deploy. This I can understand, and makes sense now.
What I am still having a hard time understanding is why everything at the WAR level can't see whats in the EAR level. When I place the HG-DataAccess.jar in the EAR (this has the componentContext.xml), it blows up with the same error as above, but indicating it can't find the componentContext.xml instead. This seems to indicate that the WAR can't see into the EAR. Furthermore, when I have Spring jar in the EAR, it complains upon deployment of the web.xml that it can't find the ContextLoaderListener class. Finally, everything works fine if I take the EAR out of the equation, and put the HG-DataSource.jar in the Server /lib and the HG-Service.WAR (which contains the HG-Service.jar) in the Server /deploy.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020817#4020817
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020817
19Â years, 2Â months
[JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
by bsmithjj
I'm back with my Seam email issue - the saga gets weirder cuz in one case, the seam email component works, in a different case (should be identical execution context....), the seam email component does not work.
In this first case, the seam email component is not working - Facelets complains about not finding the tag libraries:
| 15:57:29,343 INFO [WorkFlowManagerBean] Notifying manual provisioner
| 15:57:29,796 INFO [MailSenderBean] sending email: mail/access-request-assign-to-dsa-for-provision.xhtml
| 15:57:29,796 INFO [MailSenderBean] ClassLoader -> org.jboss.mx.loading.UnifiedClassLoader3@1907d1{ url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0
| .ear ,addedOrder=45}
| 15:57:29,796 INFO [MailSenderBean] renderer -> org.jboss.seam.ui.facelet.FaceletsRenderer@e09b95
| 15:57:30,125 ERROR [STDERR] Feb 22, 2007 3:57:30 PM com.sun.facelets.compiler.Compiler initialize
| SEVERE: Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar
| 15:57:30,140 INFO [MailSenderBean] ...mail sent(?)
|
A few clicks later, the email goes out just fine...
| 15:58:48,921 INFO [WorkItemManagerBean] accessRequestUser reported email address -> BSmith(a)EvergreenInvestments.com
| 15:58:48,921 INFO [WorkItemManagerBean] Notifying requested
| 15:58:48,921 INFO [WorkItemManagerBean] dsaProvision() - about to send email...
| 15:58:48,921 INFO [MailSenderBean] sending email: mail/access-request-complete-user.xhtml
| 15:58:48,921 INFO [MailSenderBean] ClassLoader -> org.jboss.mx.loading.UnifiedClassLoader3@1907d1{ url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0
| .ear ,addedOrder=45}
| 15:58:48,921 INFO [MailSenderBean] renderer -> org.jboss.seam.ui.facelet.FaceletsRenderer@12eba22
| 15:58:49,359 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
| .1.12.jar!/META-INF/jsf-core.taglib.xml
| 15:58:49,375 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jboss-seam-mai
| l-1.1.6.jar!/META-INF/seam-mail.taglib.xml
| 15:58:49,375 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
| .1.12.jar!/META-INF/jsf-ui.taglib.xml
| 15:58:49,390 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jboss-seam-ui-
| 1.1.6.jar!/META-INF/seam-ui.taglib.xml
| 15:58:49,390 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
| .1.12.jar!/META-INF/jsf-html.taglib.xml
| 15:58:49,406 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
| .1.12.jar!/META-INF/jstl-core.taglib.xml
| 15:58:49,406 ERROR [STDERR] Feb 22, 2007 3:58:49 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp56448access-control-1.0.ear-contents/access-control-webapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1
| .1.12.jar!/META-INF/jstl-fn.taglib.xml
| 15:58:49,484 INFO [MailConfigurationEditorBean] @Factory("mailConfiguration") method invoked...
| 15:58:51,265 INFO [MailSenderBean] ...mail sent(?)
|
notice - same class loader, but this time the email works. The execution 'context' is identical - MailSenderBean is invoked by another SLSB .
?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020805#4020805
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020805
19Â years, 2Â months