5 Replies Latest reply on Sep 25, 2009 12:13 PM by noushad siddiqui

    2.1.0.CR1 : java.lang.RuntimeException: Error loading element EjbTransaction with component name null and component class null

    Yan L Newbie

      Hi,


      I have this error with JBoss seam 2.1.0.CR1 at startup :


      17:03:47,618 INFO  [Initialization] reading /WEB-INF/components.xml
      17:03:47,665 ERROR [[/Zeppelin]] Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: error while reading /WEB-INF/components.xml
           at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:166)
           at org.jboss.seam.init.Initialization.create(Initialization.java:116)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
           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:597)
           at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
           at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
           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:597)
           at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
           at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
           at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
           at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
           at org.jboss.web.WebModule.startModule(WebModule.java:83)
           at org.jboss.web.WebModule.startService(WebModule.java:61)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
           at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:417)
           at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy44.start(Unknown Source)
           at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
           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:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
           at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
           at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
           at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
           at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
           at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy45.start(Unknown Source)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy9.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.RuntimeException: Error loading element EjbTransaction with component name null and component class null
           at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:283)
           at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:162)
           ... 92 more
      17:03:47,665 ERROR [StandardContext] Error listenerStart
      




      My components.xml file is :



      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
           xmlns:core="http://jboss.com/products/seam/core"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:transaction="http://jboss.com/products/seam/transaction"
           xmlns:bpm="http://jboss.com/products/seam/bpm"
           xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
                                    http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd
                                    http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd
                                    http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd">
                       
           <core:init jndi-pattern="@jndiPattern@" />
           
           <transaction:ejb-transaction />
           
      </components>



      It looks like transaction:ejb-transaction needs a name attribute or the component is not kwnown.
      My package is a ear file with a ejb.jar file and a war file. Am i doing something wrong ? By the way the release 2.0.2.GA works fine with the same configuration. But I need the last release for excel export.


      Does someone have an idea ?

        • 3. Re: 2.1.0.CR1 : java.lang.RuntimeException: Error loading element EjbTransaction with component name null and component class null
          Yan L Newbie

          Here is the structure of my ear :


               0 Thu Oct 16 21:01:18 GMT+01:00 2008 META-INF/
             122 Thu Oct 16 21:01:16 GMT+01:00 2008 META-INF/MANIFEST.MF
            1542 Thu Oct 16 21:01:16 GMT+01:00 2008 primary-source-1.0.jar          --> one of my librairies
             481 Thu Oct 16 21:01:16 GMT+01:00 2008 META-INF/application.xml
          134342 Thu Oct 16 21:01:16 GMT+01:00 2008 jboss-el-1.0_02.CR2.jar
          10399866 Thu Oct 16 21:01:16 GMT+01:00 2008 servlet-1.0.war
          309636 Thu Oct 16 21:01:16 GMT+01:00 2008 dom4j-1.6.1-brew.jar
            7215 Thu Oct 16 21:01:16 GMT+01:00 2008 ejbs-1.0.jar                    --> one of my ejb
          1059110 Thu Oct 16 21:01:16 GMT+01:00 2008 jboss-seam-2.1.0.CR1.jar
           60992 Thu Oct 16 21:01:16 GMT+01:00 2008 hibernate-validator-3.0.0.ga.jar
            1378 Thu Oct 16 21:01:16 GMT+01:00 2008 logging-1.0.jar                 --> one of my librairies
          593959 Thu Oct 16 21:01:16 GMT+01:00 2008 javassist-3.8.0.GA.jar




          Here is the structure of my war :



               0 Thu Oct 16 21:01:14 GMT+01:00 2008 META-INF/
             122 Thu Oct 16 21:01:12 GMT+01:00 2008 META-INF/MANIFEST.MF
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/org/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/org/seam/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/org/seam/example/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/org/seam/example/web/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/org/seam/example/web/backingbean/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/lib/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 display/
               0 Thu Oct 16 21:01:12 GMT+01:00 2008 css/
            2753 Mon Oct 13 20:17:50 GMT+01:00 2008 WEB-INF/web.xml
            1227 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/org/seam/example/web/backingbean/UserListBean.class
             875 Thu Oct 16 21:01:12 GMT+01:00 2008 WEB-INF/classes/org/seam/example/web/backingbean/RegisterAction.class
             743 Fri Aug 01 16:58:20 GMT+01:00 2008 WEB-INF/components.xml
             476 Mon Oct 13 20:18:34 GMT+01:00 2008 WEB-INF/faces-config.xml
          1424568 Fri Aug 01 22:17:20 GMT+01:00 2008 WEB-INF/lib/richfaces-impl-3.2.1.GA.jar
           38015 Thu Jan 24 21:53:30 GMT+01:00 2008 WEB-INF/lib/commons-logging-1.0.4.jar
          116987 Thu Oct 16 20:44:04 GMT+01:00 2008 WEB-INF/lib/jboss-seam-excel-2.1.0.CR1.jar
           80265 Thu Oct 16 20:53:54 GMT+01:00 2008 WEB-INF/lib/jboss-seam-pdf-2.1.0.CR1.jar
          1061474 Thu Oct 16 20:54:00 GMT+01:00 2008 WEB-INF/lib/itext-2.1.2.jar
            2511 Thu Oct 16 20:53:52 GMT+01:00 2008 WEB-INF/lib/jboss-seam-jul-2.1.0.CR1.jar
          2286001 Fri Aug 01 22:17:14 GMT+01:00 2008 WEB-INF/lib/richfaces-ui-3.2.1.GA.jar
          134342 Thu Oct 16 20:54:24 GMT+01:00 2008 WEB-INF/lib/jboss-el-1.0_02.CR2.jar
          291366 Fri Aug 01 22:17:40 GMT+01:00 2008 WEB-INF/lib/jsf-facelets-1.1.11.jar
          143602 Wed May 14 10:18:02 GMT+01:00 2008 WEB-INF/lib/commons-digester-1.8.jar
          148921 Thu Oct 16 20:54:02 GMT+01:00 2008 WEB-INF/lib/itext-rtf-2.1.2.jar
          309636 Thu Oct 16 20:54:22 GMT+01:00 2008 WEB-INF/lib/dom4j-1.6.1-brew.jar
          309245 Thu Oct 09 21:29:28 GMT+01:00 2008 WEB-INF/lib/jcommon-1.0.12.jar
          772495 Thu Oct 16 20:44:22 GMT+01:00 2008 WEB-INF/lib/jxl-2.6.8-seam.jar
          155415 Fri Aug 01 22:17:36 GMT+01:00 2008 WEB-INF/lib/richfaces-api-3.2.1.GA.jar
          1059110 Thu Oct 16 20:44:38 GMT+01:00 2008 WEB-INF/lib/jboss-seam-2.1.0.CR1.jar
          249859 Thu Oct 16 20:53:50 GMT+01:00 2008 WEB-INF/lib/jboss-seam-ui-2.1.0.CR1.jar
          1289842 Thu Oct 16 20:57:02 GMT+01:00 2008 WEB-INF/lib/jfreechart-1.0.8a.jar
          188671 Mon Apr 07 20:21:00 GMT+01:00 2008 WEB-INF/lib/commons-beanutils-1.7.0.jar
          571259 Thu Mar 13 21:25:56 GMT+01:00 2008 WEB-INF/lib/commons-collections-3.2.jar
          593959 Sun Aug 03 13:55:46 GMT+01:00 2008 WEB-INF/lib/javassist-3.8.0.GA.jar
              76 Mon Oct 13 20:18:34 GMT+01:00 2008 WEB-INF/.faces-config.xml.jsfdia
              52 Wed Jul 30 17:37:58 GMT+01:00 2008 index.jsp
             850 Thu Jul 31 15:07:36 GMT+01:00 2008 userList.xhtml
             889 Sun Aug 03 13:16:30 GMT+01:00 2008 register.xhtml
            1375 Thu Oct 16 20:47:22 GMT+01:00 2008 home.xhtml
            1547 Thu Jul 31 13:54:36 GMT+01:00 2008 display/template.xhtml
              90 Fri Aug 01 15:08:40 GMT+01:00 2008 index.html
            9341 Wed Jul 30 17:53:14 GMT+01:00 2008 css/screen.css
             939 Mon Oct 13 20:23:54 GMT+01:00 2008 chart.xhtml





          • 4. Re: 2.1.0.CR1 : java.lang.RuntimeException: Error loading element EjbTransaction with component name null and component class null
            Clint Popetz Apprentice

            You have jboss-seam-2.1.0.CR1.jar in both WEB-INF/lib and in the ear.  It should only be in the ear.


            (I realize you've probably already figured this out, but for future readers.)

            • 5. Re: 2.1.0.CR1 : java.lang.RuntimeException: Error loading element EjbTransaction with component name null and component class null
              noushad siddiqui Newbie

              Hey, i have similar type of problem, but it is because of Error loading element HotDeployFilter with component name null and component class null


              I am using seam 2.1.0SP1, jboss-4.2.3.GA and jboss-seam.jar is only in ear


              stacktrace is



              15:05:01,352 INFO  [Initialization] reading /WEB-INF/components.xml
              15:05:01,381 ERROR [[/imsupport]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
              java.lang.RuntimeException: error while reading /WEB-INF/components.xml
                      at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:221)
                      at org.jboss.seam.init.Initialization.create(Initialization.java:124)
                      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
              .
              .
              .
              
              Caused by: java.lang.RuntimeException: Error loading element HotDeployFilter with component name null and component class null
                      at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:342)
                      at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:217)
                      ... 138 more
              
              



              My component.xml is




              <?xml version="1.0" encoding="UTF-8"?>
              <components xmlns="http://jboss.com/products/seam/components"
                          xmlns:core="http://jboss.com/products/seam/core"
                          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:web="http://jboss.com/products/seam/web"
                          xmlns:async="http://jboss.com/products/seam/async"
                          xmlns:jms="http://jboss.com/products/seam/jms"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          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/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/web http://jboss.com/products/seam/web-2.1.xsd
                               http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
              
                 <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
              
                 <core:manager concurrent-request-timeout="500"
                               conversation-timeout="120000"
                               conversation-id-parameter="cid"
                               parent-conversation-id-parameter="pid"/>
              
                 <!-- Make sure this URL pattern is the same as that used by the Faces Servlet -->
                 <web:hot-deploy-filter url-pattern="*.seam"/>
                 <web:rewrite-filter view-mapping="*.seam"/>
              
                 <persistence:managed-persistence-context name="entityManager" auto-create="true"
                                    persistence-unit-jndi-name="@puJndiName@"/>
              
                 <drools:rule-base name="securityRules">
                    <drools:rule-files>
                       <value>/security.drl</value>
                    </drools:rule-files>
                 </drools:rule-base>
              
                 <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
              
                 <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
              
                 <event type="org.jboss.seam.security.notLoggedIn">
                    <action execute="#{redirect.captureCurrentView}"/>
                 </event>
                 <event type="org.jboss.seam.security.loginSuccessful">
                    <action execute="#{redirect.returnToCapturedView}"/>
                 </event>
              
                 <mail:mail-session session-jndi-name="java:/Mail"/>
                 
                 <component name="gatewayMessageProcessor" auto-create="true"
                    class="org.jboss.seam.jms.ManagedQueueSender">
                    <property name="queueJndiName">queue/gatewayMessageQueue</property>
                 </component>
                 
                 <async:quartz-dispatcher />
              
                   <jms:managed-topic-publisher name="chatMessagePublisher"
                        auto-create="true" topic-jndi-name="topic/agentChatMessages" />
              
                  <component class="org.jboss.seam.remoting.messaging.SubscriptionRegistry" installed="true">
                      <property name="allowedTopics">agentChatMessages</property>
                  </component>
              
                  <component name="org.jboss.seam.core.manager">
                      <property name="conversationTimeout">120000</property>
                  </component>
                  
                  <component name="org.jboss.seam.remoting.remoting">
                    <property name="debug">false</property>
                    <property name="pollTimeout">2</property>
                    <property name="pollInterval">1</property>
                  </component>
                                 
              </components>





              Is there anything wrong with my component.xml ??