6 Replies Latest reply on Sep 18, 2008 9:35 PM by Cody Lerum

    Fatal Issues with 2.1.0.BETA1 and components.xml

    Patrick Madden Newbie

      Hi, I've been having issues with the new 2.1.0 Beta code related to components.xml.


      Using the console output I tracked it down to be in org.jboss.seam.util.Reflections.java related to the following method that I have modified to help me understand things a bit more:



         public static Class classForName(String name) throws ClassNotFoundException
         {
            try 
            {
               return Thread.currentThread().getContextClassLoader().loadClass(name);
            }
            catch (Exception e)
            {
                 try
                 {
                      return Class.forName(name);
                 }
                 catch (Throwable th)
                 {
                      System.out.println("****************  Error trying to load class named " + name + " *******************");
                      
                      throw new ClassNotFoundException(name);
                 }
            }
         }



      I am not sure why this is happening but it might also snag others so please help me if you have any ideas.


      Here is my components.xml with removed passwords. Following that is my modified version of the code's stack trace. Towards the end of the trace you'll see where my logging additions show up stating the errors I am getting.



      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
                     xmlns:pdf="http://jboss.com/products/seam/pdf"
                  xmlns:core="http://jboss.com/products/seam/core"
                  xmlns:framework="http://jboss.com/products/seam/framework"            
                  xmlns:persistence="http://jboss.com/products/seam/persistence"
                  xmlns:drools="http://jboss.com/products/seam/drools"
                  xmlns:bpm="http://jboss.com/products/seam/bpm"
                  xmlns:security="http://jboss.com/products/seam/security"
                  xmlns:mail="http://jboss.com/products/seam/mail"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xmlns:async="http://jboss.com/products/seam/async"
                  xmlns:navigation="http://jboss.com/products/seam/navigation"
                  xmlns:transaction="http://jboss.com/products/seam/transaction"
                  xsi:schemaLocation=
                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
                       http://jboss.com/products/seam/pdf http://jboss.com/products/seam/pdf-2.1.xsd 
                       http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.1.xsd
                       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd 
                       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
                       http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                       http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd
                       http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.1.xsd
                       http://jboss.com/products/seam/navigation http://jboss.com/products/seam/navigation-2.1.xsd
                       http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd"> 
      
         <core:init debug="false" jndi-pattern="@jndiPattern@"/>
           
         <core:manager concurrent-request-timeout="500" 
                       conversation-timeout="120000" 
                       conversation-id-parameter="cid"/>
                       
         <transaction:ejb-transaction />
       
         <persistence:managed-persistence-context name="entityManager"
                                           auto-create="true"
                            persistence-unit-jndi-name="java:/CloosterEntityManagerFactory"/>
      
         <drools:rule-base name="securityRules">
             <drools:rule-files>
                 <value>/security.drl</value>
             </drools:rule-files>
         </drools:rule-base>
      
         <security:identity authenticate-method="#{identityToClUserBridge.bridge}" 
             jaas-config-name="ActiveDirectory"/>
               
         <event type="org.jboss.seam.notLoggedIn">
             <action execute="#{redirect.captureCurrentView}"/>
         </event>
         <event type="org.jboss.seam.postAuthenticate">
             <action execute="#{redirect.returnToCapturedView}"/>
         </event>
         
         <!-- Generation of PDF view support (pvm) -->
         <pdf:document-store use-extensions="true" error-page="/missingPDF.seam"/>
         
         <!-- Seam Email Support -->
         <mail:mail-session host="10.10.1.2" port="25" username="webmaster" password="foobar" />
         
         <!-- Seam Redirection from http to https for pages that require it -->
         <navigation:pages http-port="8080" https-port="8443"/>     
                
      </components>





      jvm 1    | Welcome to Seam 2.1.0.BETA1
      jvm 1    | 00:36:25,301 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/async, package: org.jboss.seam.async, prefix: org.jboss.seam.async
      jvm 1    | 00:36:25,316 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security.management, prefix: org.jboss.seam.security
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/pdf, package: org.jboss.seam.pdf, prefix:
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/cache, package: org.jboss.seam.cache, prefix: org.jboss.seam.cache
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/ui, package: org.jboss.seam.ui, prefix: org.jboss.seam.ui
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/transaction, package: org.jboss.seam.transaction, prefix: org.jboss.seam.transaction
      jvm 1    | 00:36:25,317 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security.permission, prefix: org.jboss.seam.security
      jvm 1    | 00:36:25,318 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
      jvm 1    | 00:36:25,318 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
      jvm 1    | 00:36:25,318 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
      jvm 1    | 00:36:25,318 INFO  [Initialization]
      jvm 1    | Namespace: http://jboss.com/products/seam/document, package: org.jboss.seam.document, prefix: org.jboss.seam.document
      jvm 1    | 00:36:25,321 INFO  [Initialization]
      jvm 1    | reading /WEB-INF/components.xml
      jvm 1    | 00:36:25,435 INFO  [STDOUT]
      jvm 1    | ****************  Error trying to load class named org.jboss.seam.security.management.Identity *******************
      jvm 1    | 00:36:25,441 INFO  [STDOUT]
      jvm 1    | ****************  Error trying to load class named org.jboss.seam.pdf.DocumentStore *******************
      jvm 1    | 00:36:25,441 INFO  [STDOUT]
      jvm 1    | ****************  Error trying to load class named null *******************
      jvm 1    | 00:36:25,447 INFO  [Initialization]
      jvm 1    | reading jar:file:/C:/apps/JBoss/jboss-4.2.2.GA/server/default/tmp/deploy/tmp35819jboss-seam.jar!/META-INF/components.xml
      jvm 1    | 00:36:25,452 INFO  [Initialization]
      jvm 1    | reading jar:file:/C:/apps/JBoss/jboss-4.2.2.GA/server/default/deploy/CloosterRichWeb2.ear/CloosterRichWeb2.war/WEB-INF/lib/jboss-seam-ioc.jar!/META-INF/components.xml
      jvm 1    | 00:36:25,455 INFO  [Initialization]
      jvm 1    | reading jar:file:/C:/apps/JBoss/jboss-4.2.2.GA/server/default/deploy/CloosterRichWeb2.ear/CloosterRichWeb2.war/WEB-INF/lib/jboss-seam-remoting.jar!/META-INF/components.xml
      jvm 1    | 00:36:25,460 INFO  [Initialization]
      jvm 1    | reading jar:file:/C:/apps/JBoss/jboss-4.2.2.GA/server/default/deploy/CloosterRichWeb2.ear/CloosterRichWeb2.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/components.xml


        • 1. Re: Fatal Issues with 2.1.0.BETA1 and components.xml
          Patrick Madden Newbie

          I cleaned up my components.xml file a bit and now I'm able to get passed the original error but I still have serious isssues I don't understand. Now JBoss AS 4.2.2.GA boots without warning. However, when I go to my home page I get an endless loop.


          Here is my new components.xml followed by my new error stack trace.


          <?xml version="1.0" encoding="UTF-8"?>
          <components xmlns="http://jboss.com/products/seam/components"               
                      xmlns:core="http://jboss.com/products/seam/core"
                      xmlns:framework="http://jboss.com/products/seam/framework"            
                      xmlns:persistence="http://jboss.com/products/seam/persistence" 
                      xmlns:security="http://jboss.com/products/seam/security"
                      xmlns:mail="http://jboss.com/products/seam/mail"            
                      xmlns:navigation="http://jboss.com/products/seam/navigation"
                      xmlns:transaction="http://jboss.com/products/seam/transaction"
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:schemaLocation=
                          "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
                           http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.1.xsd
                           http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd 
                           http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                           http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd
                           http://jboss.com/products/seam/navigation http://jboss.com/products/seam/navigation-2.1.xsd
                           http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd
                           http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd"> 
          
             <core:init debug="false" jndi-pattern="\#{ejbName}/local"/>
               
             <core:manager concurrent-request-timeout="500" 
                           conversation-timeout="120000" 
                           conversation-id-parameter="cid"/>
                           
             <transaction:ejb-transaction />
           
             <persistence:managed-persistence-context name="entityManager"
                                               auto-create="true"
                                persistence-unit-jndi-name="java:/CloosterEntityManagerFactory"/>
          
             <security:identity authenticate-method="#{identityToClUserBridge.bridge}" 
                 jaas-config-name="ActiveDirectory"/>
                   
             <event type="org.jboss.seam.notLoggedIn">
                 <action execute="#{redirect.captureCurrentView}"/>
             </event>
             <event type="org.jboss.seam.postAuthenticate">
                 <action execute="#{redirect.returnToCapturedView}"/>
             </event>
             
             <!-- Generation of PDF view support (pvm) 
             <pdf:document-store use-extensions="true" error-page="/missingPDF.seam"/>
               -->   
             
             <!-- Seam Email Support -->
             <mail:mail-session host="10.10.1.2" port="25" username="webmaster" password="#JBossClooster#123" />
             
             <!-- Seam Redirection from http to https for pages that require it -->
             <navigation:pages http-port="8080" https-port="8443"/>                
          </components>





          jvm 1    | Session Created = 5DFDFCCCC90DDE7FDE6B68A154D3D2CD
          jvm 1    | 01:52:23,037 ERROR [SeamPhaseListener]
          jvm 1    | swallowing exception
          jvm 1    | java.lang.IllegalStateException: Could not start transaction
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:594)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:325)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:142)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
          jvm 1    |      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
          jvm 1    |      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
          jvm 1    |      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at com.clooster.web.filter.JarFilter.doFilter(JarFilter.java:87)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
          jvm 1    |      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:150)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:379)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:506)
          jvm 1    |      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          jvm 1    |      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          jvm 1    |      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          jvm 1    |      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
          jvm 1    |      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          jvm 1    |      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          jvm 1    |      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          jvm 1    |      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          jvm 1    |      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          jvm 1    |      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          jvm 1    |      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          jvm 1    |      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
          jvm 1    |      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
          jvm 1    |      at java.lang.Thread.run(Unknown Source)
          jvm 1    | Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.transaction.synchronizations
          jvm 1    |      at org.jboss.seam.Component.newInstance(Component.java:2041)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1923)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1902)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1896)
          jvm 1    |      at org.jboss.seam.transaction.AbstractUserTransaction.getSynchronizations(AbstractUserTransaction.java:79)
          jvm 1    |      at org.jboss.seam.transaction.UTTransaction.begin(UTTransaction.java:40)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:589)
          jvm 1    |      ... 48 more
          jvm 1    | Caused by: javax.naming.NameNotFoundException: \EjbSynchronizations not bound
          jvm 1    |      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
          jvm 1    |      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
          jvm 1    |      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
          jvm 1    |      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
          jvm 1    |      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
          jvm 1    |      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
          jvm 1    |      at javax.naming.InitialContext.lookup(Unknown Source)
          jvm 1    |      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1312)
          jvm 1    |      at org.jboss.seam.Component.instantiate(Component.java:1276)
          jvm 1    |      at org.jboss.seam.Component.newInstance(Component.java:2019)
          jvm 1    |      ... 54 more
          jvm 1    | 01:52:23,266 WARN  [SeamPhaseListener]
          jvm 1    | uncaught exception, passing to exception handler
          jvm 1    | java.lang.IllegalStateException: Could not commit transaction
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:616)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:343)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:243)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:194)
          jvm 1    |      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
          jvm 1    |      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
          jvm 1    |      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at com.clooster.web.filter.JarFilter.doFilter(JarFilter.java:87)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
          jvm 1    |      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:150)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:379)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:506)
          jvm 1    |      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          jvm 1    |      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          jvm 1    |      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          jvm 1    |      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
          jvm 1    |      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          jvm 1    |      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          jvm 1    |      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          jvm 1    |      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          jvm 1    |      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          jvm 1    |      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          jvm 1    |      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          jvm 1    |      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
          jvm 1    |      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
          jvm 1    |      at java.lang.Thread.run(Unknown Source)
          jvm 1    | Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.transaction.synchronizations
          jvm 1    |      at org.jboss.seam.Component.newInstance(Component.java:2041)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1923)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1902)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1896)
          jvm 1    |      at org.jboss.seam.transaction.AbstractUserTransaction.getSynchronizations(AbstractUserTransaction.java:79)
          jvm 1    |      at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:48)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:604)
          jvm 1    |      ... 48 more
          jvm 1    | Caused by: javax.naming.NameNotFoundException: \EjbSynchronizations not bound
          jvm 1    |      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
          jvm 1    |      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
          jvm 1    |      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
          jvm 1    |      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
          jvm 1    |      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
          jvm 1    |      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
          jvm 1    |      at javax.naming.InitialContext.lookup(Unknown Source)
          jvm 1    |      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1312)
          jvm 1    |      at org.jboss.seam.Component.instantiate(Component.java:1276)
          jvm 1    |      at org.jboss.seam.Component.newInstance(Component.java:2019)
          jvm 1    |      ... 54 more
          jvm 1    | 01:52:23,341 ERROR [CachedConnectionValve]
          jvm 1    | Application error: Faces Servlet did not complete its transaction
          jvm 1    | 01:52:23,349 ERROR [SeamPhaseListener]
          jvm 1    | swallowing exception
          jvm 1    | java.lang.IllegalStateException: Could not start transaction
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:594)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:325)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:142)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
          jvm 1    |      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
          jvm 1    |      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
          jvm 1    |      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at com.clooster.web.filter.JarFilter.doFilter(JarFilter.java:87)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
          jvm 1    |      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:150)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:379)
          jvm 1    |      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:506)
          jvm 1    |      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
          jvm 1    |      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          jvm 1    |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          jvm 1    |      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          jvm 1    |      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          jvm 1    |      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          jvm 1    |      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
          jvm 1    |      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          jvm 1    |      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          jvm 1    |      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          jvm 1    |      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          jvm 1    |      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          jvm 1    |      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          jvm 1    |      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          jvm 1    |      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
          jvm 1    |      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
          jvm 1    |      at java.lang.Thread.run(Unknown Source)
          jvm 1    | Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.transaction.synchronizations
          jvm 1    |      at org.jboss.seam.Component.newInstance(Component.java:2041)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1923)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1902)
          jvm 1    |      at org.jboss.seam.Component.getInstance(Component.java:1896)
          jvm 1    |      at org.jboss.seam.transaction.AbstractUserTransaction.getSynchronizations(AbstractUserTransaction.java:79)
          jvm 1    |      at org.jboss.seam.transaction.UTTransaction.begin(UTTransaction.java:40)
          jvm 1    |      at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:589)
          jvm 1    |      ... 48 more
          jvm 1    | Caused by: javax.naming.NameNotFoundException: \EjbSynchronizations not bound
          jvm 1    |      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
          jvm 1    |      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
          jvm 1    |      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
          jvm 1    |      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
          jvm 1    |      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
          jvm 1    |      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
          jvm 1    |      at javax.naming.InitialContext.lookup(Unknown Source)
          jvm 1    |      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1312)
          jvm 1    |      at org.jboss.seam.Component.instantiate(Component.java:1276)
          jvm 1    |      at org.jboss.seam.Component.newInstance(Component.java:2019)
          jvm 1    |      ... 54 more





          • 2. Re: Fatal Issues with 2.1.0.BETA1 and components.xml
            blabno Master

            How about this ?


            <core:init debug="false" jndi-pattern="yourEarProjectName/#{ejbName}/local"/>



            Change yourEarProjectName with your real project name.

            • 3. Re: Fatal Issues with 2.1.0.BETA1 and components.xml
              Patrick Madden Newbie

              Thank you for your time Bernard. I cannot even begin to tell you the hours I've put into this since the release. I was beginning to say it didn't work until I pasted something in the email. Then I notice one thing - a backward slash VS. a forward slash.


              This works:


                 <core:init debug="false" jndi-pattern="MyProjectName/#{ejbName}/local"/>
              



              while this does not.



                 <core:init debug="false" jndi-pattern="MyProjectName\#{ejbName}/local"/>



              I've never ever had to do this before so I hope the docs are updated to indicate why this is required.


              I did a grep in the examples directory and came up with various different settings. I've been writing code for 20 years but don't necessarily understand every single thing in J2EE. Hopefully someone can shed some light. But until then you are my savior. Thanks my friend.




              C:\opendev\jboss\seam\jboss-seam-2.1.0.BETA1\examples>find . -name 'components.xml' -exec grep "jndi-pattern" {} ;
                  <core:init jndi-pattern="@jndiPattern@" debug="true"/>
                  <core:init jndi-pattern="@jndiPattern@"/>
                  <core:init debug="true" jndi-pattern="@jndiPattern@"/>
                  <core:init debug="true" jndi-pattern="@jndiPattern@" />
                  <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
                  <core:init jndi-pattern="@jndiPattern@" debug="true"/>
                  <core:init debug="true" jndi-pattern="@jndiPattern@" />
                  <core:init jndi-pattern="java:comp/env/jboss-seam-jee5/#{ejbName}/local" debug="true"/>
                  <core:init jndi-pattern="java:comp/env/jboss-seam-remoting/#{ejbName}/local" debug="true"/>
                  <core:init debug="true" jndi-pattern="@jndiPattern@" />
                  <core:init jndi-pattern="@jndiPattern@" debug="true"/>
                  <core:init debug="true" jndi-pattern="@jndiPattern@" />
                  <core:init jndi-pattern="@jndiPattern@"/>
                  <core:init jndi-pattern="@jndiPattern@" debug="true"/>
                  <core:init jndi-pattern="@jndiPattern@" debug="true"/>
                  <core:init debug="false" jndi-pattern="@jndiPattern@" />
                  <core:init debug="true" jndi-pattern="@jndiPattern@" />
                  <core:init jndi-pattern="@jndiPattern@" debug="false"/>
                  <core:init jndi-pattern="jboss-seam-ui-example/#{ejbName}/local" debug="true"/>
                  <core:init jndi-pattern="@jndiPattern@" debug="true"/>



              • 4. Re: Fatal Issues with 2.1.0.BETA1 and components.xml
                Patrick Madden Newbie

                Once again. Thank you. I can now run my ear in 4.2.3.GA built with jdk 6 using Seam 2.1.0.BETA1. I have a delivery to make in 2 weeks and I'm much happier delivering 2008 code vs 2007.


                PVM

                • 5. Re: Fatal Issues with 2.1.0.BETA1 and components.xml
                  Pete Muir Master

                  \# escape's the # whilst / is the separator path for JNDI. This hasn't changed AFAIK, but if it has, it's nothing to do with Seam.

                  • 6. Re: Fatal Issues with 2.1.0.BETA1 and components.xml
                    Cody Lerum Apprentice

                    Got the same issue with a new seam-gen project off the 9/18 nightly of 2.1beta and 5.0 CR2.


                    Fixed by changing to
                    <core:init debug="true" jndi-pattern="projectName/#{ejbName}/local"/>