10 Replies Latest reply on Mar 20, 2007 12:55 AM by paata lominadze

    java.lang.RuntimeException: Could not create Component: auth

    paata lominadze Master

      hi all,
      i got this error :

      23:18:43,533 ERROR [[/MagticomBilling]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: Could not create Component: authenticator
       at org.jboss.seam.init.Initialization.addComponent(Initialization.java:833)
       at org.jboss.seam.init.Initialization.addComponents(Initialization.java:715)
       at org.jboss.seam.init.Initialization.init(Initialization.java:478)
       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
      


      could anybody help me what happened ?

      my component.xml looks like :
      <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
      

      and AuthenticatorAction class
      @Stateless
      @Name("authenticator")
      public class AuthenticatorAction implements Authenticator{
      
      @PersistenceContext
       EntityManager em;
      
       @Out(scope=SESSION,required=false)
       private Users user;
      
      
       @In Identity identity;
      
       @In Actor actor;
      
       public boolean authenticate() {
       try{
       String userName = identity.getUsername();
       String userpasswd = identity.getPassword();
      
       List<Users> list = (List<Users>)em.createNamedQuery("Users.findByUserName").setParameter("userName",userName).getResultList();
       if (list==null || (list!=null && list.size()!=1)) {
       return false;
       } else {
       user = list.get(0);
       byte [] dbpasword = user.getUserPwd();
      
      
       MessageDigest md5 = MessageDigest.getInstance("MD5");
       md5.reset();
       md5.update(userpasswd.getBytes());
       byte[] usrpwd = md5.digest();
      
       boolean result = MessageDigest.isEqual(usrpwd, dbpasword);
      
       if (!result) {
       return false;
       }
       }
       return true;
       } catch(Exception e) {
       e.printStackTrace();
       return false;
       }
       }
      }
      
      


        • 1. Re: java.lang.RuntimeException: Could not create Component:
          Arjan van Bentem Novice


          No nested exceptions that tell you a bit more?

          Not the cause of your problem, but just for your information:

          > if (list==null || (list!=null && list.size()!=1))

          The Java || is an Exclusive OR: if the first expression evaluates to true then the second is not evaluated at all. So there's no need for the "list!=null" part.

          • 2. Re: java.lang.RuntimeException: Could not create Component:
            paata lominadze Master

            this is not cause of this problem.

            i'll tryed this :

            @Stateless
            @Name("authenticator")
            public class AuthenticatorAction implements Authenticator{
            
            @PersistenceContext
             EntityManager em;
            
             @Out(scope=SESSION,required=false)
             private Users user;
            
            
             @In Identity identity;
            
             @In Actor actor;
            
             public boolean authenticate() {
             return true;
             }
            }
            
            



            but it does not work,
            can anybody help me ?

            • 3. Re: java.lang.RuntimeException: Could not create Component:
              Arjan van Bentem Novice

               

              "grdzeli_kaci" wrote:
              this is not cause of this problem.

              If "this" refers to explanation of the Java OR then: no, just like I wrote, that was just for your information...

              "grdzeli_kaci" wrote:
              public boolean authenticate() {
              return true;
              }
              but it does not work

              ...well, does this give you the very same error? If so, then again: aren't there some nested exceptions that tell you a bit more? In your first post you only showed the "Could not create Component: authenticator" but often the rest of the error message gives some more clues about what's causing the error?

              • 4. Re: java.lang.RuntimeException: Could not create Component:
                Arjan van Bentem Novice

                ...and while stripping your code to pin down the problem: why not remove the EntityManager, Identity and Actor as well? And if that helps: are you sure you're using EJB3 in your components.xml, and if not sure: what if just using

                @In
                private EntityManager entityManager;

                to use a "Seam-managed persistence context", instead of your
                @PersistenceContext
                EntityManager em;

                By the way: do the examples run fine in your JBoss installation (like: is JBoss installed with the ejb3 profile)?

                • 5. Re: java.lang.RuntimeException: Could not create Component:
                  paata lominadze Master

                  i left this but it does not working yet :(


                  @Stateless
                  @Name("authenticator")
                  public class AuthenticatorAction implements Authenticator{
                  
                   public boolean authenticate() {
                   return true;
                   }
                  }
                  


                  • 6. Re: java.lang.RuntimeException: Could not create Component:
                    Arjan van Bentem Novice

                     

                    "grdzeli_kaci" wrote:
                    it does not working yet :(

                    ...errr, well, then I'd think it's about time you finally respond to

                    > No nested exceptions that tell you a bit more?

                    or

                    > again: aren't there some nested exceptions that tell you a bit more?

                    In other words: more details needed, for example starting with the whole error message, which (for example) might indicate there's multiple components with the same name and precedence. Your "Could not create Component" is not helping a lot.

                    (and what is the "implements Authenticator" referring to?)

                    • 7. Re: java.lang.RuntimeException: Could not create Component:
                      paata lominadze Master

                      here is my complate component.xml file. is tehre anything wrong ?

                      <?xml version="1.0" encoding="UTF-8"?>
                      <components xmlns="http://jboss.com/products/seam/components"
                       xmlns:core="http://jboss.com/products/seam/core"
                       xmlns:drools="http://jboss.com/products/seam/drools"
                       xmlns:framework="http://jboss.com/products/seam/framework"
                       xmlns:security="http://jboss.com/products/seam/security"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xmlns:selectitems="http://jboss.com/products/seam/selectitems"
                       xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd
                       http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.1.xsd
                       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.1.xsd
                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.1.xsd
                      http://jboss.com/products/seam/selectitems http://wiki.jboss.org/wiki/attach?page=SeamSelectItemsNewDesign%2Fselectitems-1.1.xsd">
                      
                       <core:init jndi-name="myEarName/#{ejbName}/local" debug="true"/>
                      
                       <core:manager concurrent-request-timeout="500"
                       conversation-timeout="120000"
                       conversation-id-parameter="cid"
                       conversation-is-long-running-parameter="clr"/>
                      
                       <core:managed-persistence-context name="entityManager" persistence-unit-jndi-name="java:/MagticomBillingEntityManagerFactory"/>
                      
                       <component name="org.jboss.seam.core.resourceBundle">
                       <property name="bundleNames">
                       <value>messages</value>
                       </property>
                       </component>
                      
                      
                       <core:ejb installed="@embeddedEjb@"/>
                      
                       <drools:rule-base name="securityRules">
                       <drools:rule-files>
                       <value>/security.drl</value>
                       </drools:rule-files>
                       </drools:rule-base>
                      
                      
                      
                       <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
                      
                       <event type="org.jboss.seam.notLoggedIn">
                       <action expression="#{redirect.captureCurrentView}"/>
                       </event>
                       <event type="org.jboss.seam.postAuthenticate">
                       <action expression="#{redirect.returnToCapturedView}"/>
                       </event>
                      
                      
                       <framework:entity-query name="languages" ejbql="select l from Language l"/>
                       <framework:entity-query name="applications" ejbql="select a from Application a" />
                      
                       <framework:entity-home name="languageHome" entity-class="com.magticom.billing.businesslayer.entitybeans.billAdmin.Language"/>
                       <factory name="language" value="#{languageHome.instance}" />
                      
                      
                       <framework:entity-home name="applicationHome" entity-class="com.magticom.billing.businesslayer.entitybeans.billAdmin.Application"/>
                       <factory name="application" value="#{applicationHome.instance}" />
                      
                      </components>
                      
                      


                      • 8. Re: java.lang.RuntimeException: Could not create Component:
                        paata lominadze Master

                        hi avbentem,
                        i con't find any nesten exception.

                        here is complate stack trace :

                        05:54:38,369 ERROR [[/MagticomBilling]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                        java.lang.RuntimeException: Could not create Component: authenticator
                         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:833)
                         at org.jboss.seam.init.Initialization.addComponents(Initialization.java:715)
                         at org.jboss.seam.init.Initialization.init(Initialization.java:478)
                         at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
                         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
                         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
                         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
                         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
                         at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
                         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:5052)
                         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 org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
                         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.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
                         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
                         at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
                         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.GeneratedMethodAccessor163.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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:585)
                         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 $Proxy49.start(Unknown Source)
                         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                         at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
                         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 $Proxy50.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.GeneratedMethodAccessor24.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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 $Proxy8.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.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: authenticator
                         at org.jboss.seam.Component.getJndiName(Component.java:340)
                         at org.jboss.seam.Component.<init>(Component.java:216)
                         at org.jboss.seam.Component.<init>(Component.java:200)
                         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:823)
                         ... 91 more
                        05:54:38,393 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
                        05:54:38,469 INFO [FacesConfigurator] Reading config jar:file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/tmp/deploy/tmp43530MagticomBilling.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
                        05:54:38,483 INFO [FacesConfigurator] Reading config jar:file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/lib/selectitems-ui.jar!/META-INF/faces-config.xml
                        05:54:38,496 INFO [FacesConfigurator] Reading config jar:file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/tmp/deploy/tmp43452tomahawk-1.1.3.jar!/META-INF/faces-config.xml
                        05:54:38,587 INFO [FacesConfigurator] Reading config jar:file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp43530MagticomBilling.ear-contents/MagticomBilling-exp.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
                        05:54:38,598 INFO [FacesConfigurator] Reading config jar:file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp43530MagticomBilling.ear-contents/MagticomBilling-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
                        05:54:38,633 INFO [FacesConfigurator] Reading config jar:file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp43530MagticomBilling.ear-contents/MagticomBilling-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
                        05:54:38,648 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
                        05:54:38,696 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
                        05:54:39,004 INFO [StartupServletContextListener] ServletContext '/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp43530MagticomBilling.ear-contents/MagticomBilling-exp.war/' initialized.
                        05:54:39,004 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
                        05:54:39,005 ERROR [StandardContext] Error listenerStart
                        05:54:39,005 ERROR [StandardContext] Context [/MagticomBilling] startup failed due to previous errors
                        05:54:39,086 WARN [ServiceController] Problem starting service jboss.web.deployment:war=MagticomBilling.war,id=-396834368
                        org.jboss.deployment.DeploymentException: URL file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/tmp/deploy/tmp43530MagticomBilling.ear-contents/MagticomBilling-exp.war/ deployment failed
                         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
                         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
                         at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
                         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.GeneratedMethodAccessor163.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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:585)
                         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 $Proxy49.start(Unknown Source)
                         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                         at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
                         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 $Proxy50.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.GeneratedMethodAccessor24.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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 $Proxy8.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)
                        05:54:39,092 ERROR [MainDeployer] Could not start deployment: file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/tmp/deploy/tmp43530MagticomBilling.ear-contents/MagticomBilling.war
                        org.jboss.deployment.DeploymentException: URL file:/home/paatal/InstalledPrograms/jboss-4.0.5.GA/server/default/tmp/deploy/tmp43530MagticomBilling.ear-contents/MagticomBilling-exp.war/ deployment failed
                         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
                         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
                         at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
                         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.GeneratedMethodAccessor163.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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:585)
                         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 $Proxy49.start(Unknown Source)
                         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                         at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
                         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 $Proxy50.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.GeneratedMethodAccessor24.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         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 $Proxy8.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)
                        
                        


                        • 9. Re: java.lang.RuntimeException: Could not create Component:
                          Arjan van Bentem Novice

                           

                          "grdzeli_kaci" wrote:
                          i con't find any nesten exception.


                          Well, it's surely there in the log you posted:

                          "grdzeli_kaci" wrote:
                          Caused by: java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: authenticator
                          at org.jboss.seam.Component.getJndiName(Component.java:340)
                          at org.jboss.seam.Component.<init>(Component.java:216)
                          at org.jboss.seam.Component.<init>(Component.java:200)
                          at org.jboss.seam.init.Initialization.addComponent(Initialization.java:823)
                          ... 91 more


                          Hopefully using the above a search in these forums will give you some solution.

                          And if you want to know if your JBoss installation is allright then at least try to run one of the examples.


                          • 10. Re: java.lang.RuntimeException: Could not create Component:
                            paata lominadze Master

                            Great Theanks avbentem for your helpfull post,

                            i can't find any discussion about this problem on this forum,
                            i think that that to use jndi patern means add this into my component xml file :

                            <core:init debug="true" jndi-pattern="@jndiPattern@"/>
                            


                            but after this i got another exception:
                            java.lang.RuntimeException: error while reading /WEB-INF/components.xml
                             at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:130
                            

                            nested exception :

                            Caused by: java.lang.IllegalArgumentException
                             at org.jboss.seam.util.Conversions$FlatPropertyValue.<init>(Conversions.java:275)
                             at org.jboss.seam.init.Initialization.getPropertyValue(Initialization.java:406)
                             at org.jboss.seam.init.Initialization.installComponentFromXmlElement(Initialization.java:380)
                             at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:234)
                             at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:126)
                             ... 91 more
                            
                            



                            can you help me ?