[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
What environment are you in? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016521#4016521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016521 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
jboss 4.0.4 EJBRC8 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016522#4016522 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
myfaces or ri? portal or normal? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016549#4016549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Sorry I was too brief in my earlier reply. Here is some info about the server: | bash-2.05b$ pwd | /c/jboss-4.0.4.EJB.3RC8/server/default/deploy/jbossweb-tomcat55.sar | bash-2.05b$ ls -l jsf-libs/ | total 1249 | -rwxrwxrwx 1 Administrators 118669 May 15 2006 commons-beanutils.jar | -rwxrwxrwx 1 Administrators 29226 May 15 2006 commons-codec-1.2.jar | -rwxrwxrwx 1 Administrators 165304 May 15 2006 commons-collections.jar | -rwxrwxrwx 1 Administrators 168664 May 15 2006 commons-digester-1.6.jar | -rwxrwxrwx 1 Administrators 20682 Apr 10 2006 jstl-1.1.2.jar | -rwxrwxrwx 1 Administrators 249563 Oct 13 08:24 myfaces-api-1.1.4.jar.off | -rwxrwxrwx 1 Administrators 524089 Oct 13 08:24 myfaces-impl-1.1.4.jar.off | no portal involved (who needs it with seam ;-) ? ). in addition to the ear dump above, here is a dump of the war libs in the ear: | bash-2.05b$ jar tvf access-control-webapp-1.0.war | grep lib | 0 Wed Feb 14 13:38:02 EST 2007 WEB-INF/lib/ | 188671 Mon Apr 10 15:38:52 EDT 2006 WEB-INF/lib/commons-beanutils-1.7.0.jar | 175426 Thu Apr 20 14:09:46 EDT 2006 WEB-INF/lib/commons-collections-2.1.1.jar | 559366 Wed Apr 19 09:54:16 EDT 2006 WEB-INF/lib/commons-collections-3.1.jar | 139966 Mon Apr 10 15:38:34 EDT 2006 WEB-INF/lib/commons-digester-1.7.jar | 31909 Mon Oct 02 11:11:54 EDT 2006 WEB-INF/lib/commons-fileupload-1.1.1.jar | 207723 Wed May 31 14:36:38 EDT 2006 WEB-INF/lib/commons-lang-2.1.jar | 72770 Tue Jul 18 15:40:52 EDT 2006 WEB-INF/lib/evg-sso-client-adapter-0.6.jar | 5091 Thu Feb 08 06:45:46 EST 2007 WEB-INF/lib/jboss-seam-debug-1.1.6.jar | 1281201 Fri Oct 13 08:24:08 EDT 2006 WEB-INF/lib/tomahawk-1.1.3.jar | 109318 Mon Apr 10 14:45:26 EDT 2006 WEB-INF/lib/xml-apis-1.0.b2.jar | 15656 Mon Oct 02 08:28:36 EDT 2006 WEB-INF/tomahawk-taglib.xml | This layout and the deployment of myfaces with the ear, with myfaces commented out in in the server (see .off files) is a holdover from older problems we had from the Seam-annotated EJB's in the earliest days of our project. I've recently moved the Seam-UI, and facelets jars to the ear level for the Seam email functionality. Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016566#4016566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016566 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Hello, i get the same exception: | 16:40:42,818 ERROR [STDERR] java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! | If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. | A typical config looks like this; | | org.apache.myfaces.webapp.StartupServletContextListener | | 16:40:42,818 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90) | 16:40:42,818 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.(MockFacesContext.java:62) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:59) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:110) | 16:40:42,819 ERROR [STDERR] at kk.rentform.session.mailprocessor.AsynchronousMailProcessor.scheduleSend(AsynchronousMailProcessor.java:20) | 16:40:42,819 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 16:40:42,819 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 16:40:42,819 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 16:40:42,819 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:20) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.interceptors.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:37) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) | 16:40:42,819 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151) | 16:40:42,820 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87) | 16:40:42,820 ERROR [STDERR] at kk.rentform.session.mailprocessor.AsynchronousMailProcessor_$$_javassist_89.scheduleSend(AsynchronousMailProcessor_$$_javassist_89.java)16:40:42,820 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 16:40:42,820 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 16:40:42,820 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 16:40:42,820 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 16:40:42,820 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:20) | 16:40:42,820 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123) | I use jboss 4.0.5GA + Jboss Seam build tonight. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037578#4037578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Is this using the mail example? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037580#4037580 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
No, code: Session: import kk.rentform.session.mailprocessor.AsynchronousMailProcessor; | | @Name("regist") | @Scope(ScopeType.CONVERSATION) | @Stateless | public class Regist implements RegistInterface{ | @In | private Usr usr; | | @PersistenceContext | private EntityManager em; | | @In | private FacesMessages facesMessages; | | @Logger | private Log log; | | @In | private AsynchronousMailProcessor asynchronousMailProcessor; | | @In |private Crypt crypt; | | public String regist(){ | if ( ! usr.getPasswort().equals(usr.getPasswort1()) ){ | facesMessages.add("Passwörter sind nicht gleich!"); | return null; | } | | | | List ls = em.createQuery("select u.email from Usr u where u.email = :email") | .setParameter("email",usr.getEmail()) | .getResultList(); | | if ( !ls.isEmpty() ){ | facesMessages.add("Email Adresse existiert bereits!"); | return null; | } | | List lsb = em.createQuery("select u.bname from Usr u where u.bname = :bname") | .setParameter("bname",usr.getBname()) | .getResultList(); | if ( !lsb.isEmpty() ){ | facesMessages.add("Benutzername existiert bereits!"); | return null; | } | usr.setActive(false); | usr.setSperr(false); | String zf = crypt.generate(); | usr.setGennumber(zf); | usr.setRoles("user"); | try{ | em.persist(usr); | asynchronousMailProcessor.scheduleSend(3000, usr); | return "/registok.xhtml"; | | }catch(Exception e){ | log.error(" Error : " + e.getMessage()); | log.error(e.getStackTrace()); | facesMessages.add("Registrierung fehlgeschlagen, versuchen es später nochmal."); | return null; | } | | | } | | } | I use this a class from example: | import kk.rentform.entity.Usr; | import org.jboss.seam.annotations.Asynchronous; | import org.jboss.seam.annotations.AutoCreate; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.timer.Duration; | import org.jboss.seam.contexts.Contexts; | import org.jboss.seam.core.Events; | import org.jboss.seam.core.Renderer; | | @Name("asynchronousMailProcessor") | @AutoCreate | public class AsynchronousMailProcessor | { |@Asynchronous |public void scheduleSend(@Duration long delay,Usr usr) { | try { | Contexts.getEventContext().set("usr", usr); | Renderer.instance().render("/emailtemplates/registmsg.xhtml"); | } catch (Exception e) { | e.printStackTrace(); | } |} | } | | | http://www.w3.org/1999/xhtml"; |xmlns:m="http://jboss.com/products/seam/mail"; |xmlns:h="http://java.sun.com/jsf/html";> | | |#{usr.email} | Registrierung | | Sehr geehrte Damen und Herren, | | Um Ihre Registrierung bei rentform.de vervollständigen zu können, ist es notwendig Ihren Account freizuschalten. | Klicken Sie auf den folgenden Link: | | Klicken Sie auf den folgenden Link: | | Peter | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037584#4037584 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037584 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I can't reproduce this problem. I'll need you to create a test case to show this. Make it run against Seam 1.2.1.GA and a clean install of AS 4.0.5 via JEMS View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037593#4037593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Can i mail the tired project to you, without libs? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037598#4037598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Just put it up for download somewhere (e.g. the wiki) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037600#4037600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037600 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Thanks a lot! I load straight up, it will take one hour approximately. I will send a link per email with description, it is okay? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037608#4037608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037608 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I send you a mail to the address, that is given in your profile. Are you finished with download? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037639#4037639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Hmm. I have to say I haven't seen this before. Can you get the mail example working? I would suggest following it's layout - jboss-seam-mail.jar and jboss-seam-ui.jar, jsf-facelets.jar in WEB-INF/lib rather than the ear (and really myfaces-api/impl as well) Otherwise, I would suggest wrapping the EL in the body inside h:outputText to see if that makes any difference. Otherwise, can I'll need you to submit a testcase to JIRA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016726#4016726 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
continued email problems | 16:07:56,796 ERROR [STDERR] Feb 15, 2007 4:07:56 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 | I made sure my jars (Seam-mail, seam-ui, facelets, etc... are in the correct artifacts in my .ear (like your example)). Also, I looked at the MANIFEST.MF file the version of facelets you're using - it's 1.1.12. Have you tested the Seam email with 1.1.11 (the stable release of Facelets)? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017226#4017226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
No, I've only tested with the version that Seam is currently including (1.1.12). If you've worked through my above suggestions, please put a simple example that shows the problem in JIRA and I'll work through it. Btw, sorry about being terse yesterday ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017283#4017283 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017283 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I've tried two variants 1.) put the seam-mail.jar and dependencies in the .war as you have done in the example. 2.) put the same set of jars in the .ear I'm convinced that the issue I'm running into is related to class loading. Reviewing the .ear created by your seam-email example, I'm guessing you have myfaces in the tomcat jsf-libs dir on your test environment - in my case, the myfaces jars are in the .ear due to some class loading issues we had earlier in the project around DataModel and friends. That's the remaining difference between our two .ear projects. I can try putting the myfaces jars back in tomcat and out of the ear - dang this class loading stuff is a PITA! ;-) I was really looking forward to using the Seam email stuff in this project - we have a lot of dynamic email to generate. If I could make one request to the Seam project now, it would be to review the whole JSF, Myfaces, Facelets, EAR layout, WAR layout, etc... and come up with explicit instructions for how to package a project based on desired functionality. Things like - "should Myfaces be in tomcat, or in your .ear?" etc... right now the answers to these things involves a lot of trial and error and forum digging (not necessarily a bad thing). Anyways, thanks for the help with this. Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017599#4017599 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017599 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I agree its classloading related. As I said, I can take a look, but i'm not convinced I would have any more luck than you! So, this is how I lay it out: 1) Use the default JBoss (4.0.5.GA) install (so myfaces in jsf-libs) 2) Put everything I can, especially the jars that provide UI (so jsf-facelets, trinidad, seam-ui, seam-mail, seam-pdf - specifically anything with a faces-config.xml in it I suppose) in the war/WEB-INF/lib 3) Put all the rest in the ear and reference from application.xml (so now I have drools, jbpm, el, jboss-seam.jar and then internal shared stuff there) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017642#4017642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Also, specifically, I would make sure you have facelets and myfaces-impl not in the ear root but either in jsf-libs or WEB-INF/lib View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017643#4017643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017643 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
If I move myfaces to jsf-lib or the .war, then an old problem reemerges in the UI: | java.lang.ClassNotFoundException: No ClassLoaders found for: com.evergreen.accesscontrol.RealmManager | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) | at java.lang.Class.forName0(Native Method) | at java.lang.Class.forName(Class.java:242) | at java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:657) | at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1500) | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) | at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908) | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) | at java.util.HashMap.readObject(HashMap.java:1067) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946) | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) | at java.util.HashMap.readObject(HashMap.java:1067) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946) | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) | at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) | at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) | at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) | at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:305) | at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:241) | at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getComponentStateToRestore(HtmlResponseStateManager.java:221) | at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:186) | at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:287) | at org.jboss.seam.jsf.SeamStateManager.restoreView(SeamStateManager.java:49) | at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255) | at org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:64) | at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:310) | at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) | at org.apache.catalina.core.ApplicationFilterCh
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
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 -> [EMAIL PROTECTED] 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 -> [EMAIL PROTECTED] | 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 -> [EMAIL PROTECTED] | 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 -> [EMAIL PROTECTED] 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 -> [EMAIL PROTECTED] | 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 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
As I've said before, this problem is subtle and so to be able to help any further I need a simple example (ideally built on seam-gen) showing the problem. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020812#4020812 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I'm not sure how to give you a simple example of this. I'm definitely not going to mess with seam-gen (don't see how it's relevant to this). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020815#4020815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
The only reason I ask for a seam-gen based project is that it comes with a build.xml/structure I'm familiar with hence reducing the complexity for me. I'm not going to ask you to send your whole project through as it would takes days to understand it. I'm pretty sure (as are you I think) the problem is to do with your project structure so you could (a) strip a copy of your project removing everything that is irrelevant or (b) try to replicate in another project (e.g. a seam-gen one or the mail example). Sorry, I'm not telepathic (I wish I was ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020823#4020823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Also, I'll see if I can replicate the problem by restructuring the mail example along the ear layout you've described above. If you could post your application.xml that would help with this :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021054#4021054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021054 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I'll try to find some time this weekend to create something similar - it isn't going to be easy. In each method call, there is typically some persistence work, some jBPM work, followed by an attempt to send the email. It will be tricky to provide a sample that does all that Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021083#4021083 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Just to check, you're calling Renderer.instance().render(template) from a method that has been called "directly" from JSF not via a JBPM action (or some other indirect method e.g. Events) - i.e. the render is by the method called from JSF or by a method it calls etc. I know there are issues calling Renderer.render() from JBPM (which I need to work through) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021092#4021092 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021092 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
sample Render calls... This method is in a SFSB - user clicks a link in UI: (this one works!) | public String dsaProvision() { | | TaskInstance task = jbpmContext.getTaskInstance(taskId.longValue()); | | // Update the decision | Contexts.getEventContext().set("accessRequest", accessRequest); | String result = accessRequestProvisioner.applyAccessRequestToUser(); | if (!"success".equals(result)) { | log.warn("There was a problem provisioning the user from the access request."); | return null; | } | | EvergreenUser accessRequestUser = QueryEPeopleUtil.findUserByUid(accessRequest.getUserId()); | Contexts.getEventContext().set( | "accessRequestUser", | accessRequestUser | ); | | // Send an email to the user and requester of the access request to let them know the request is done | | if (TerminationRequestManager.TerminationId.equals(accessRequest.getRequesterUserId())) { | // termination request - only notify UserManager... | // TODO - implement this | } else { | if (!accessRequest.getRequesterUserId().equals(accessRequest.getUserId())) { | Contexts.getEventContext().set( | "accessRequestRequestor", | QueryEPeopleUtil.findUserByUid(accessRequest.getRequesterUserId()) | ); | //mailSenderBean.sendEmailMessage(EmailTemplateType.AccessRequestCompleteRequestor.getTemplateFilePath()); | } | // always notify user for whom request has been provisioned | mailSenderBean.sendEmailMessage(EmailTemplateType.AccessRequestCompleteUser.getTemplateFilePath()); | } | | // Signal the task to move to next process in the work flow | task.end("provision application"); | | // Force a reload of the work queue | EventType.AccessRequestSaved.name()); Events.instance().raiseEvent(EventType.AccessRequestSaved.name()); | return "success"; | } | | MailSenderBean is a SLSB | @Stateless | @Name("mailSenderBean") | public class MailSenderBean implements MailSender { | | private Log log = LogFactory.getLog(MailSenderBean.class); | | @In(required=false) | private EmailMessage emailMessage; | | //@Resource(mappedName = "java:/Mail") | @In(create = true) | private Session mailSession; | | @PersistenceContext(unitName = "accessControlDatabase") | private EntityManager em; | | @In(create = true) | private Renderer renderer; | | | | public String sendEmailMessage(String templateFile) { | try { | log.info("sending email: "+templateFile); | renderer.render(templateFile); | log.info("...mailt sent(?)"); | return "success"; | | } catch (Exception e) { | log.error(e,e); | } | return null; | } | | } | The SFSB call above is succeeding; what's really confusing is that another method in the same SFSB (shown below) is failing using an almost identical execution path and context (user clicks a link in a UI, etc...) This method is in a SFSB - user clicks a link in UI: (this one fails!) | public String userManagerApproveAccessRequest() { | TaskInstance task = jbpmContext.getTaskInstance(taskId.longValue()); | //Long accessRequestId = (Long) task.getContextInstance().getVariable("accessRequestId"); | | // Update the status to user manager approved accessRequest.setRequestStatus(AccessRequestStatus.UserManagerApproved); | | // Update the decision | AccessRequestDecision decision = accessRequest.getUserManagerDecision(); | decision.setDecision(AccessRequestStatus.UserManagerApproved); | em.merge(decision); | em.merge(accessRequest); | | // contextual email data | Contexts.getEventContext().set( | "accessRequest", | accessRequest | ); | Contexts.getEventContext().set( | "accessRequestUser", | QueryEPeopleUtil.findUserByUid(accessRequest.getUserId()) | ); | mailSender.sendEmailMessage( | EmailTemplateType.AccessRequestCompleteUser.getTemplateFilePath() | ); | // NOTE - I'm using the same mail template for troubleshooting... | // Signal the task to move to next process in the work flow | task.end("approve"); | // This event forces a reload of the work queue (in what component?) | Events.instance().raiseEvent(EventType.AccessRequestSaved.name()); | return "approve_success
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I have more data - I hacked Facelets 1.1.2 to spit out some ClassLoader info. What I found is that in one case, when calling Renderer.render(myTemplate), the Classloader is the EAR's classloader. In the other case, the classloader is the war's classloader. not working - ear's classloader | 11:42:20,157 INFO com.evergreen.accesscontrol.impl.MailSenderBean - | Classloader funtime:Me: [EMAIL PROTECTED] | My Classloader: [EMAIL PROTECTED] url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear ,addedOrder=49} | My Classloader's parent: [EMAIL PROTECTED] | My Classloader's parent's parent: [EMAIL PROTECTED] | | 11:42:20,157 INFO com.sun.facelets.compiler.Compiler - Initializing | 11:42:20,157 INFO com.sun.facelets.compiler.TagLibraryConfig - I am using a classloader obtained from 'Thread.currentThread().getContextClassLoader()'. | 11:42:20,157 INFO com.sun.facelets.compiler.TagLibraryConfig - Classloader -> [EMAIL PROTECTED] url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859acc | ess-control-1.0.ear ,addedOrder=49} | 11:42:20,157 INFO com.sun.facelets.compiler.TagLibraryConfig - Classloader.parent -> [EMAIL PROTECTED] | 11:42:21,017 INFO com.sun.facelets.compiler.Compiler - UILibrary.Namespace ->http://java.sun.com/jsf/facelets | 11:42:21,017 WARN com.sun.facelets.compiler.Compiler - Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar | 11:42:21,017 INFO com.sun.facelets.compiler.Compiler - Initialization Successful | | working - war's classloader | 11:45:35,928 INFO com.evergreen.accesscontrol.impl.MailSenderBean - sending email: mail/access-request-complete-user.xhtml | 11:45:35,928 INFO com.evergreen.accesscontrol.impl.MailSenderBean - | Classloader funtime:Me: [EMAIL PROTECTED] | My Classloader: [EMAIL PROTECTED] url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear ,addedOrder=49} | My Classloader's parent: [EMAIL PROTECTED] | My Classloader's parent's parent: [EMAIL PROTECTED] | | 11:45:35,928 INFO com.sun.facelets.compiler.Compiler - Initializing | 11:45:35,928 INFO com.sun.facelets.compiler.TagLibraryConfig - I am using a classloader obtained from 'Thread.currentThread().getContextClassLoader()'. | 11:45:35,928 INFO com.sun.facelets.compiler.TagLibraryConfig - Classloader -> WebappClassLoader | delegate: false | repositories: | /WEB-INF/classes/ | --> Parent Classloader: | [EMAIL PROTECTED] | | 11:45:35,928 INFO com.sun.facelets.compiler.TagLibraryConfig - Classloader.parent -> [EMAIL PROTECTED] | 11:45:36,819 INFO com.sun.facelets.compiler.TagLibraryConfig - Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear-contents/access-control-w | ebapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1.1.12E.jar!/META-INF/jsf-ui.taglib.xml | 11:45:36,819 INFO com.sun.facelets.compiler.TagLibraryConfig - Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear-contents/access-control-w | ebapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1.1.12E.jar!/META-INF/jstl-fn.taglib.xml | 11:45:36,834 INFO com.sun.facelets.compiler.TagLibraryConfig - Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear-contents/access-control-w | ebapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1.1.12E.jar!/META-INF/jstl-core.taglib.xml | 11:45:36,834 INFO com.sun.facelets.compiler.TagLibraryConfig - Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear-contents/access-control-w | ebapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1.1.12E.jar!/META-INF/jsf-html.taglib.xml | 11:45:36,850 INFO com.sun.facelets.compiler.TagLibraryConfig - Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear-contents/access-control-w | ebapp-1.0-exp.war/WEB-INF/lib/jboss-seam-ui-1.1.6.jar!/META-INF/seam-ui.taglib.xml | 11:45:36,850 INFO com.sun.facelets.compiler.TagLibraryConfig - Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear-contents/access-control-w | ebapp-1.0-exp.war/WEB-INF/lib/jboss-seam-mail-1.1.6.jar!/META-INF/seam-mail.taglib.xml | 11:45:36,866 INFO com.sun.facelets.compiler.TagLibraryConfig - Added Library from: jar:file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp44859access-control-1.0.ear-contents/access-control-w | ebapp-1.0-exp.war/WEB-INF/lib/jsf-facelets-1.1.12E.jar!/META-INF/jsf-core.taglib.xml | 11:45:36,866 INFO com.sun.facelets.compiler.Compiler - Initialization Successful | So how is it that in one case, the ear classloader is used, in another, nearly iidentical case, the webapp'
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
This is very useful information :) I'm hoping to work on this at some point this weekend. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021208#4021208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021208 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
One last bit of info... A colleague of mine suggested putting the taglibs (seam-email, seam-ui, facelets, etc...) in both the ear and the war - a hack he had to do with weblogic in the past. I tried this, now email is working! Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021258#4021258 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021258 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
So, to sumamrise the problem as I understand it: * the FaceletsRenderer calls out to facelets to render the page (making no alteration to the classloader used) * Normally the classloader used is the WebappClassLoader (it is in the examples always afaics) HOWEVER sometimes it ends up being the JBoss UCL * In the example the Seam component (mailExample) is using the WebAppClassLoader (is this to do with using session beans vs java beans?) * If its using the WebappClassLoader it works. If its not it doesn't * The placement of jars in the ear is possibly related (but IMO probably not) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021593#4021593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
And * If you place everything in the ear myfaces blows up when rendering email * Placing the relevant taglibs where both classloaders can get them is a workaround I *think* that the FaceletsRenderer needs to make sure its using the correct classloader? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021595#4021595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
anonymous wrote : I *think* that the FaceletsRenderer needs to make sure its using the correct classloader? -- yes - that's what it seems like to me, I was thinking of putting another hack into Facelets to try and force it to use the classloader obtained from the ServletContext Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021615#4021615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021615 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Brad, I've managed to replicate your problem doing this: Thread.currentThread().setContextClassLoader(facesContext.getClass().getClassLoader()); inside FaceletsRenderer.render() (in the mail example facesContext is using the UCL). I'm not sure under what circumstances the context's classloader wouldn't be WebAppClassLoader, so can you print out the classloader on entry to both the working and not-working methods (i.e. before you do anything else) and post it - I'm wondering if something is altering the classloader in your code?! Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021703#4021703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Pete, Here is a report on the classloader situation just before I invoke my SLSB that sends email: | 15:15:36,972 INFO [WorkItemManagerBean] | Just before asking my SLSB to send email using Seam Renderer... | 15:15:36,972 INFO [WorkItemManagerBean] me -> com.evergreen.accesscontrol.impl.WorkItemManagerBean | 15:15:36,987 INFO [WorkItemManagerBean] my classloader -> [EMAIL PROTECTED] url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp20053access-co | ntrol-1.0.ear ,addedOrder=44} | 15:15:36,987 INFO [WorkItemManagerBean] my classloader's parent -> [EMAIL PROTECTED] | | 15:15:37,534 INFO [MailSenderBean] sending email: mail/access-request-user-manager-rejected.xhtml | In this first case above, the mail typically fails because Facelets is trying to load taglibs via the EAR's class loader - facelets is (was) packaged in the war - the ear classloader can't see down into the war so the attempt to find the taglibs fails. For now, I've put the facelets (and other) jars in both the ear and the war - the emails are going out, but there are still some issues with some of the libraries. In this next case, the emails were going out, in one of my previous posts, this is the case where I discovered that when facelets gets invoked, it is correctly(?) using the webapp classloader to hunt for taglibs. Here is the classloader report for the bean that calls my SLSB mailsender: | Just before asking my SLSB to send email using Seam Renderer... | 15:20:35,206 INFO [WorkItemManagerBean] me -> com.evergreen.accesscontrol.impl.WorkItemManagerBean | 15:20:35,206 INFO [WorkItemManagerBean] my classloader -> [EMAIL PROTECTED] url=file:/C:/jboss-4.0.4.EJB.3RC8/server/default/tmp/deploy/tmp20053access-co | ntrol-1.0.ear ,addedOrder=44} | 15:20:35,206 INFO [WorkItemManagerBean] my classloader's parent -> [EMAIL PROTECTED] | | 15:20:35,206 INFO [WorkItemManagerBean] Notifying requested | 15:20:35,206 INFO [WorkItemManagerBean] dsaProvision() - about to send email... | 15:20:35,206 INFO [MailSenderBean] sending email: mail/access-request-complete-user.xhtml | this data may not be too helpful as to me, it looks like that at the starting point, both method calls occur within the scope the same classloader looking at your classloader code in the previous post, I would thing you'ld want to do something like: | facesContext.getExternalContext().getClass().getClassLoader() | instead because, for example, in my case, the myfaces jars are packaged in the ear. However the external context is supposed to return a ServletContext or PortletContext - I assume that the Servlet/Portlet contexts use the webapp classloader...? I appreciate your looking into this! Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021730#4021730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
"bsmithjj" wrote : Pete, | | Here is a report on the classloader situation just before I invoke my SLSB that sends email: Sorry, I meant on entry to the method called by JSF (i.e. is something changing your classloader between JSF calling the action method and you calling the MailSenderBean) or is the action method being called with the UCL as the class loader? Something like: public String dsaProvision() { |System.out.println(this.getClass().getClassLoader()); |// rest of the method public String userManagerApproveAccessRequest() { |System.out.println(this.getClass().getClassLoader()); |// rest of the method For me (at least in the mail example where I'm working on this) at the entry to a send method (called directly by JSF) the classloader is WebAppClassLoader, whether it's a Seam managed JavaBean or a SLSB. anonymous wrote : For now, I've put the facelets (and other) jars in both the ear and the war - the emails are going out, but there are still some issues with some of the libraries. Sure, but this strikes me as a hack that could come back and bite you later on... anonymous wrote : I assume that the Servlet/Portlet contexts use the webapp classloader...? On testing this I found that facesContext, externalContext and externalContext.response all were using the UCL not the WebAppClassLoader (which was unexpected). Perhaps the UCL is getting used because myfaces is in the ear, not in a jsf-libs/the war? Lets see which classloader is getting for calling your methods, and I'll check some more examples/projects and see whether its always the WebAppClassLoader or whether it can be the UCL. I suspect we need someone who actually knows about JBoss and it's classloaders at this point though (I *certainly* don't :( ). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021773#4021773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
These methods are not called by JSF - rather, they are the points at which I invoke my MailSenderBean.sendEmailMessage() method. In both (all) cases, I put some objects in event scope (for rendering) and invoke sendEmailMessage(). Here's the code for one invokation: | // contextual email data | Contexts.getEventContext().set( | "accessRequest", | accessRequest | ); | Contexts.getEventContext().set( | "accessRequestUser", | QueryEPeopleUtil.findUserByUid(accessRequest.getUserId()) | ); | mailSender.sendEmailMessage( | EmailTemplateType.UserManagerRejectedRequest.getTemplateFilePath() | ); | Here is the relevant portions of MailSenderBean: | @Stateless | @Name("mailSenderBean") | public class MailSenderBean implements MailSender { | | private Log log = LogFactory.getLog(MailSenderBean.class); | | @In(required=false) | private EmailMessage emailMessage; | | @In(create = true) | private Session mailSession; | | @PersistenceContext(unitName = "accessControlDatabase") | private EntityManager em; | | @In(create = true) | private Renderer renderer; | | | | public String sendEmailMessage(String templateFile) { | try { | log.info("sending email: "+templateFile); | renderer.render(templateFile); | log.info("...mailt sent(?)"); | return "success"; | | } catch (Exception e) { | log.error(e,e); | } | return null; | } | | } | The only other thing I could do is dump the classloaders from a factory method that supplieds a 'mailConfiguration' object during rendering of the email - I tried this, but since the factory method is an SLSB method, both calls show the same classloader - the EAR classloader. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021950#4021950 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021950 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
So, I've run into this (in anger) as well now. 1) Facelets scans the classpath for .taglib.xml files inside of META-INF, and loads them if it finds them (thats what all the load implicit stuff you see is). 2) The UCL doesn't scan WEB-INF/lib (as this is a special war thing). So, if you get the UCL instead of the WebAppClassLoader then it don't work. And, I found that even if the classloader inside FaceletsRenderer is the WACL then the UCL may be used to initialise facelets. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022160#4022160 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
anonymous wrote : And, I found that even if the classloader inside FaceletsRenderer is the WACL then the UCL may be used to initialise facelets. Oops, no, thats not right... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022164#4022164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022164 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
anonymous wrote : So, I've run into this (in anger) as well now. | | 1) Facelets scans the classpath for .taglib.xml files inside of META-INF, and loads them if it finds them (thats what all the load implicit stuff you see is). | | 2) The UCL doesn't scan WEB-INF/lib (as this is a special war thing). | | So, if you get the UCL instead of the WebAppClassLoader then it don't work. And, I found that even if the classloader inside FaceletsRenderer is the WACL then the UCL may be used to initialise facelets. | Yeah - I looked at the facelets source code - by hacking it to show the classloader, that's where I ultimately discovered that two different classloaders are being used (but I still don't know why this occurs - I could understand if the UCL is always being used and thus usage always fails - but not why sometimes the WACL is being used???). Anyway, now we come to why I suggested maybe putting a hack on facelets to try and force it to use the WACL only by using the ServletContext's classloader any thoughts? Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022418#4022418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022418 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
The WACL should *always* be used as jsf-facelets.jar is in WEB-INF/lib. We don't think its facelets that is the problem, but probably JBoss AS. Anyway, I now have a reasonably simple working testcase of this going wrong (I just need to tidy it up a bit and make it easier to run) - hopefully i'll get there tonight with that. Then we'll get some AS guys involved to try and sort out what is going wrong. I'll post a link to JIRA once I put an issue in here :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022421#4022421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
have you managed to gain any new insight into this? Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023068#4023068 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023068 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Sorry, I got quite a long way last night sorting out the example (which shows it) but didn't quite get there, hopefully tonight or if not, sometime on Thursday I'll have a testcase. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023077#4023077 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023077 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Brad, just to keep you updated: I'm still working on the testcase - I should manage to get it all finished tomorrow, so the next time my laptop meets the internet after that there should be a testcase at least :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023408#4023408 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023408 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
In fact http://jira.jboss.com/jira/browse/JBSEAM-950 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023413#4023413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Brad, is this working for you now? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025934#4025934 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Pete, Sorry about the late response - anyway, so far, so good - your change to the classloader appears to have solved the problem. I haven't hit all my use cases yet, but the ones I have (about 50%) are working now. If you recall our discussion about where the jars go, I've now successfully removed the jars that I were both in the ear and war - only the war has things like facelets, seam-mail, etc. Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027145#4027145 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
i also get same error when using jsf with jboss | 2007-03-21 17:42:50,281 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PowerPortlet].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception | java.lang.NullPointerException | at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:524) | at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:136) | at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:129) | at com.sun.rave.web.ui.component.TableRowGroup.getProperties(TableRowGroup.java:1804) | at com.sun.rave.web.ui.component.TableRowGroup.restoreState(TableRowGroup.java:1490) | at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:511) | at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502) | at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502) | at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502) | at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502) | at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502) | at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502) | at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:129) | at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:185) | at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255) | at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:310) | at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:124) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198) | 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.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.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:595) | i can show table from database HOWEVER when i refresh table i got that error whats wrong with faces ? it is similar to http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces but i already attempt all of the clue in there and still get the same error help me thanks ganda:) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030177#4030177 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030177 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
AFAICS this has nothing to do with Seam email support. so please start a new topic View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030507#4030507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
We've ran into this problem as well. Setting UseJBossWebLoader=false won't completely fix the problem either, you'll need to make sure you're not specifying the a loader repository in jboss-web.xml either. We ran into this problem with Seam+Trinidad, and what happens is that Seam's FaceletsRenderer is setting the context class loader to a UCL. We were able to workaround it by re-implement the FaceletsRenderer with one that doesn't set the context class loader. Pete: is there any documentation describing the reasoning as to why Seam isn't supporting UseJBossWebLoader=true? I'd like to be more aware of the consequences if we do decide to continue on with that configuration. Thanks! Calvin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110365#4110365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
useJBossWebLoader is a "hack" to force everything onto the same classloader. Why do you need it? The main reason was RichFaces but that now has split out an API. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110572#4110572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110572 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Hi Pete, As this may be true, I'm still having troubles with UseJBossWebLoader=false and JSF, eg when using RichFaces' Tree and adviseNodeOpened, throwing this exception: | 06:11:09,568 ERROR [STDERR] Dec 10, 2007 6:11:09 AM com.sun.facelets.FaceletViewHandler handleRenderException | SEVERE: Error Rendering View[/app/tumbolia/pages/home.xhtml] | javax.faces.el.MethodNotFoundException: /app/tumbolia/panels/main/space/showSpace.xhtml @197,65 adviseNodeOpened="#{fileSystemManager.adviseFileSystemTreeNodeOpened}": Method not found: FileSystemManagerImpl:3j011-viq6zi-fa0jfyhc-1-fa0jr7br-1c.adviseFileSystemTreeNodeOpened(org.richfaces.component.UITree) | at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71) | at org.richfaces.renderkit.TreeRendererBase$DataVisitorWithLastElement$1.adviseNodeOpened(TreeRendererBase.java:312) | at org.richfaces.renderkit.TreeRendererBase$DataVisitorWithLastElement.processAdvisors(TreeRendererBase.java:329) | at org.richfaces.renderkit.TreeRendererBase$DataVisitorWithLastElement.process(TreeRendererBase.java:241) | at org.richfaces.model.AbstractTreeDataModel.processElement(AbstractTreeDataModel.java:132) | at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:280) | at org.richfaces.model.StackingTreeModel$Visitor1.process(StackingTreeModel.java:393) | at org.richfaces.model.StackingTreeModel$ShiftingDataVisitor.process(StackingTreeModel.java:428) | at org.richfaces.model.StackingTreeModel$1.process(StackingTreeModel.java:318) | at org.richfaces.model.SequenceDataModel.walk(SequenceDataModel.java:59) | at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:302) | at org.richfaces.model.StackingTreeModel.walk(StackingTreeModel.java:365) | at org.richfaces.component.UITree.walk(UITree.java:323) | at org.richfaces.renderkit.TreeRendererBase.writeContent(TreeRendererBase.java:682) | at org.richfaces.renderkit.TreeRendererBase.encodeChildren(TreeRendererBase.java:625) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:276) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:276) | at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) | at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) | at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4js
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Its hard to know what causes that. What is #{fileSystemManager}? where is it in your deployed archive? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111888#4111888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111888 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I confirm it is the UseJBossWebLoader set to true that make the email fails. I have to set to true coz I'm using rich faces drag and drop and it needs to import the DropEvent class (org.ajax4jsf.dnd.event.DropEvent). You suggested to put anything in the WAR, but how can I do with my case? Is there a solution or I have to wait until the next version of Rich Faces? Thanks! Demetrio View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057158#4057158 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057158 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
We aren't planning to spend time making this work with UseJBossWebLoader=true. What is your case? Let us know what jars you have where, and post relevant code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057160#4057160 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Hi, I didn't noticed this topic and I started a new one (sorry). I used seam-gen and the developer guide informations and it give me the same error! I'm using the latest version of Seam and JBoss AS. here my topic: http://jboss.org/index.html?module=bb&op=viewtopic&t=108791 Demetrio View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046985#4046985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046985 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
The JIRA entry is closed - but this problem persists. Is anyone making any progress? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049924#4049924 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049924 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I have additional information (for my particular case): Our web application uses the Richfaces tree widget http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/index.html In implementing the necessary data structure support, I encountered a class loading problem, and a posted solution: http://jboss.com/index.html?module=bb&op=viewtopic&t=107687 The solution involves setting | true | in server\default\deploy\jboss-web.deployer\META-INF\jboss-service.xml and indeed, this does solve the Tree/TreeNode class not found error. Unfortunately, it also breaks SEAM email. Further investigation pending... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050176#4050176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050176 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
I've opened a JIRA issue for this problem: http://jira.jboss.org/jira/browse/RF-264 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053272#4053272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
do you know if there is solution in the mean time? [ i hope to combine richfaces tree and drag and drop with seam mail ] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056490#4056490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056490 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
do you know if there is solution in the mean time? [ i hope to combine richfaces tree and drag and drop with seam mail ] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056492#4056492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Yes. Be more careful about how you package your classes and don't put anything which has dependencies in your EAR class loader, but instead on the web classloader. Facelets functions can help a lot here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056499#4056499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu
Sorry, dependencies on RichFaces I meant to say. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056501#4056501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user