4 Replies Latest reply on Feb 22, 2008 7:05 PM by System Administrator

    problem with async tags in components.xml

    System Administrator Expert

      Getting the following error when I deploy my 2.0.0.GA Seam app.  Following instructions in 18.1. Asynchronicity of Seam doc.  When I remove the async tags the exception goes away.  Happens to both async (quartz or ejb3 timer) tags.  Any hints?  thx.


      10:43:27,649 INFO  [ServletContextListener] Welcome to Seam 2.0.0.GA
      
      10:43:27,930 ERROR [[/SecurityAuditPOC]] 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:136)
      
           at org.jboss.seam.init.Initialization.create(Initialization.java:86)
      
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
      
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
      
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
      
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      
           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:5310)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      
           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.GeneratedMethodAccessor17.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           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(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           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 $Proxy45.start(Unknown Source)
      
           at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           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.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
      
           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 $Proxy46.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.GeneratedMethodAccessor18.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           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:634)
      
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      
           at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           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(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           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 $Proxy4.start(Unknown Source)
      
           at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           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 $Proxy5.deploy(Unknown Source)
      
           at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      
           at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      
           at org.jboss.Main.boot(Main.java:200)
      
           at org.jboss.Main$1.run(Main.java:508)
      
           at java.lang.Thread.run(Unknown Source)
      
      Caused by: org.dom4j.DocumentException: Error on line 60 of document  : The prefix "async" for element "async:quartz-dispatcher" is not bound. Nested exception: The prefix "async" for element "async:quartz-dispatcher" is not bound.
      
           at org.dom4j.io.SAXReader.read(SAXReader.java:482)
      
           at org.dom4j.io.SAXReader.read(SAXReader.java:343)
      
           at org.jboss.seam.util.XML.getRootElement(XML.java:21)
      
           at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:132)
      
           ... 138 more




      components.xml:





      <?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:xsi="http://www.w3.org/2001/XMLSchema-instance"
      
                  xsi:schemaLocation=
      
                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd 
      
                       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd 
      
                       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
      
                       http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
      
                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
      
                       http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
      
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
      
      
         <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
      
           
      
         <core:manager concurrent-request-timeout="500" 
      
                       conversation-timeout="120000" 
      
                       conversation-id-parameter="cid"/>
      
          
      
          
      
          <factory name="hibernateSession" 
      
               scope="STATELESS" 
      
               auto-create="true" 
      
               value="#{entityManager.delegate}"/>
      
               
      
         <persistence:managed-persistence-context name="entityManager"
      
                                           auto-create="true"
      
                            persistence-unit-jndi-name="java:/SecurityAuditPOCEntityManagerFactory"/>
      
      
         <drools:rule-base name="securityRules">
      
             <drools:rule-files>
      
                 <value>/security.drl</value>
      
             </drools:rule-files>
      
         </drools:rule-base>
      
      
         <security:identity authenticate-method="#{authenticator.authenticate}"
      
                                 security-rules="#{securityRules}"/>
      
         
      
         <event type="org.jboss.seam.notLoggedIn">
      
             <action execute="#{authenticator.autoLogin}"/>
      
             <action execute="#{redirect.captureCurrentView}"/>
      
         </event>
      
         
      
         <event type="org.jboss.seam.postAuthenticate">
      
             <action execute="#{redirect.returnToCapturedView}"/>
      
         </event>
      
         
      
           <event type="refresh">
      
                <action execute="#{customerAction.findAuditList}"/>          
      
           </event>
      
      
         
      
         <mail:mail-session host="localhost" port="2525" username="test" password="test" />
      
         
      
         <async:quartz-dispatcher/>
      
         
      
          <!-- <async:timer-service-dispatcher/>  -->
      
              
      
         <!-- For use with jBPM pageflow or process management -->
      
         <!--  
      
         <bpm:jbpm>
      
            <bpm:process-definitions></bpm:process-definitions>
      
            <bpm:pageflow-definitions></bpm:pageflow-definitions>
      
         </bpm:jbpm>
      
         -->
      
         
      
        
      
            
      
      </components>