11 Replies Latest reply on Oct 20, 2012 7:41 AM by vivek rai

    Failed instantiate InitialContextFactory

    Sam W Expert

      Hi,

       

      I created a simple Calculator EAR project (with EAR/EJB/WAS) for Jboss AS7.1 Snapshot. I am trying to remotely invoke a EJB bean from the WAS module. The EJB bean is in EJB module which is within the same EAR project.

      During the deployment, Jboss throws the following exception:

       

       

      00:49:04,816 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "category-ws-0.0.1-SNAPSHOT.war"

      00:49:29,845 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "EARCalculator-ear.ear"

      00:49:30,157 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "EARCalculator-web.war"

      00:49:30,157 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "EARCalculator-ejb.jar"

      00:49:32,088 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) added javax.persistence.api dependency to EARCalculator-ear.ear

      00:49:32,089 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) added javax.persistence.api dependency to EARCalculator-ejb.jar

      00:49:32,089 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api dependency to EARCalculator-web.war

      00:49:32,104 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named CalculatorBean in deployment unit subdeployment "EARCalculator-ejb.jar" of deployment "EARCalculator-ear.ear" are as follows:

       

       

              java:global/EARCalculator-ear/EARCalculator-ejb/CalculatorBean!ix.calculator.CalculatorLocal

              java:app/EARCalculator-ejb/CalculatorBean!ix.calculator.CalculatorLocal

              java:module/CalculatorBean!ix.calculator.CalculatorLocal

              java:global/EARCalculator-ear/EARCalculator-ejb/CalculatorBean

              java:app/EARCalculator-ejb/CalculatorBean

              java:module/CalculatorBean

       

       

      00:49:32,104 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named CallerBean in deployment unit subdeployment "EARCalculator-ejb.jar" of deployment "EARCalculator-ear.ear" are as follows:

       

       

              java:global/EARCalculator-ear/EARCalculator-ejb/CallerBean!ix.caller.CallerRemote

              java:app/EARCalculator-ejb/CallerBean!ix.caller.CallerRemote

              java:module/CallerBean!ix.caller.CallerRemote

              java:global/EARCalculator-ear/EARCalculator-ejb/CallerBean

              java:app/EARCalculator-ejb/CallerBean

              java:module/CallerBean

       

       

      00:49:32,104 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named CallerName in deployment unit subdeployment "EARCalculator-ejb.jar" of deployment "EARCalculator-ear.ear" are as follows:

       

       

              java:global/EARCalculator-ear/EARCalculator-ejb/CallerName!ix.caller.CallerRemote

              java:app/EARCalculator-ejb/CallerName!ix.caller.CallerRemote

              java:module/CallerName!ix.caller.CallerRemote

              java:global/EARCalculator-ear/EARCalculator-ejb/CallerName

              java:app/EARCalculator-ejb/CallerName

              java:module/CallerName

       

       

      00:49:32,338 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/EARCalculator-web]] (MSC service thread 1-1) Initializing Spring root WebApplicationContext

      00:49:32,522 INFO  [stdout] (MSC service thread 1-1)

      00:49:32,522 INFO  [stdout] (MSC service thread 1-1)

      00:49:32,522 INFO  [stdout] (MSC service thread 1-1)     Hello ...

      00:49:32,523 ERROR [stderr] (MSC service thread 1-1) javax.naming.NamingException: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.EARCalculator-ear.ear.EARCalculator-web.war:main" from Service Module Loader

      00:49:32,523 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:58)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:664)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.InitialContext.init(InitialContext.java:223)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.InitialContext.<init>(InitialContext.java:197)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at ix.calculator.web.CalculatorFinderController.<init>(CalculatorFinderController.java:67)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      00:49:32,524 ERROR [stderr] (MSC service thread 1-1)    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

      00:49:32,525 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368)

      00:49:32,526 ERROR [stderr] (MSC service thread 1-1)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821)

      00:49:32,527 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)

      00:49:32,527 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

      00:49:32,527 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

      00:49:32,527 ERROR [stderr] (MSC service thread 1-1)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

      00:49:32,527 ERROR [stderr] (MSC service thread 1-1)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

      00:49:32,527 ERROR [stderr] (MSC service thread 1-1)    at java.lang.Thread.run(Thread.java:619)

      00:49:32,527 INFO  [stdout] (MSC service thread 1-1) ONE----result = xx

      00:49:32,556 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/EARCalculator-web]] (MSC service thread 1-1) Initializing Spring FrameworkServlet 'mvc-dispatcher'

      00:49:32,584 INFO  [stdout] (MSC service thread 1-1)

      00:49:32,584 INFO  [stdout] (MSC service thread 1-1)

      00:49:32,585 INFO  [stdout] (MSC service thread 1-1)     Hello ...

      00:49:32,585 ERROR [stderr] (MSC service thread 1-1) javax.naming.NamingException: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.EARCalculator-ear.ear.EARCalculator-web.war:main" from Service Module Loader

      00:49:32,585 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:58)

      00:49:32,585 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:664)

      00:49:32,585 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

      00:49:32,585 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.InitialContext.init(InitialContext.java:223)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at javax.naming.InitialContext.<init>(InitialContext.java:197)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at ix.calculator.web.CalculatorFinderController.<init>(CalculatorFinderController.java:67)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)

      00:49:32,586 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

       

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

      00:49:32,587 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:467)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:483)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:358)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:325)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at javax.servlet.GenericServlet.init(GenericServlet.java:242)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

      00:49:32,588 ERROR [stderr] (MSC service thread 1-1)    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

      00:49:32,589 ERROR [stderr] (MSC service thread 1-1)    at java.lang.Thread.run(Thread.java:619)

      00:49:32,589 INFO  [stdout] (MSC service thread 1-1) ONE----result = xx

      00:49:32,666 INFO  [org.jboss.web] (MSC service thread 1-1) registering web context: /EARCalculator-web

      00:49:32,676 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "EARCalculator-ear.ear"

       

       

      Controller in WAS module:

       

      @Controller

      //@SessionAttributes("categoryFinder")

      @RequestMapping("/category")

      @Transactional

      public class CalculatorFinderController {

       

       

          private static final Logger logger = Logger.getLogger(CalculatorFinderController.class);

       

       

      //      @Autowired

      //      private ProductFinderBeanValidator productFinderBeanValidator;

       

       

          public CalculatorFinderController() {

              System.out.println("\n\n\t Hello ...");

              logger.info("calling CalculatorFinderController");

              try {

                  Properties pr = new Properties();

                  pr.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");

                  pr.setProperty(Context.PROVIDER_URL, "jnp://localhost:1090");

       

       

                  InitialContext ic = new InitialContext(pr);

                  CallerRemote remote = (CallerRemote) ic.lookup("CallerMappedName#ix.caller.CallerRemote");

              } catch (Exception e) {

                  e.printStackTrace();

              }

              System.out.println("ONE----result = xx");

          }

       

       

       

      I also have attached my sample project here for reference.

      I am not sure what is wrong with remote invokcation with EJB bean.

       

      Any suggestion is very appreciated.

      Sam

        • 1. Re: Failed instantiate InitialContextFactory
          jaikiran pai Master

          The jnp intialcontext factory is no longer available in AS7. Try changing:

           

          Properties pr = new Properties();

          pr.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");

          pr.setProperty(Context.PROVIDER_URL, "jnp://localhost:1090");

          InitialContext ic = new InitialContext(pr);

          to just :

           

          InitialContext ic = new InitialContext();

          • 2. Re: Failed instantiate InitialContextFactory
            Sam W Expert

            Hi, Thank you for the suggestion. I have changed  it, but it still throwing the following exception:

             

             

            17:44:41,688 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "EARCalculator-ear.ear"

            17:44:43,714 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "EARCalculator-web.war"

            17:44:43,714 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) Starting deployment of "EARCalculator-ejb.jar"

            17:44:45,475 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) added javax.persistence.api dependency to EARCalculator-ear.ear

            17:44:45,476 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persistence.api dependency to EARCalculator-web.war

            17:44:45,476 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api dependency to EARCalculator-ejb.jar

            17:44:45,488 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CalculatorBean in deployment unit subdeployment "EARCalculator-ejb.jar" of deployment "EARCalculator-ear.ear" are as follows:

             

             

                    java:global/EARCalculator-ear/EARCalculator-ejb/CalculatorBean!ix.calculator.CalculatorLocal

                    java:app/EARCalculator-ejb/CalculatorBean!ix.calculator.CalculatorLocal

                    java:module/CalculatorBean!ix.calculator.CalculatorLocal

                    java:global/EARCalculator-ear/EARCalculator-ejb/CalculatorBean

                    java:app/EARCalculator-ejb/CalculatorBean

                    java:module/CalculatorBean

             

             

            17:44:45,488 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CallerBean in deployment unit subdeployment "EARCalculator-ejb.jar" of deployment "EARCalculator-ear.ear" are as follows:

             

             

                    java:global/EARCalculator-ear/EARCalculator-ejb/CallerBean!ix.caller.CallerRemote

                    java:app/EARCalculator-ejb/CallerBean!ix.caller.CallerRemote

                    java:module/CallerBean!ix.caller.CallerRemote

                    java:global/EARCalculator-ear/EARCalculator-ejb/CallerBean

                    java:app/EARCalculator-ejb/CallerBean

                    java:module/CallerBean

             

             

            17:44:45,488 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named CallerName in deployment unit subdeployment "EARCalculator-ejb.jar" of deployment "EARCalculator-ear.ear" are as follows:

             

             

                    java:global/EARCalculator-ear/EARCalculator-ejb/CallerName!ix.caller.CallerRemote

                    java:app/EARCalculator-ejb/CallerName!ix.caller.CallerRemote

                    java:module/CallerName!ix.caller.CallerRemote

                    java:global/EARCalculator-ear/EARCalculator-ejb/CallerName

                    java:app/EARCalculator-ejb/CallerName

                    java:module/CallerName

             

             

            17:44:45,655 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/EARCalculator-web]] (MSC service thread 1-8) Initializing Spring root WebApplicationContext

            17:44:45,840 INFO  [stdout] (MSC service thread 1-8)

            17:44:45,840 INFO  [stdout] (MSC service thread 1-8)

            17:44:45,840 INFO  [stdout] (MSC service thread 1-8)     Hello ...

            17:44:45,841 ERROR [stderr] (MSC service thread 1-8) javax.naming.NamingException: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.EARCalculator-ear.ear.EARCalculator-web.war:main" from Service Module Loader

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:58)

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:664)

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.InitialContext.init(InitialContext.java:223)

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.InitialContext.<init>(InitialContext.java:197)

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at ix.calculator.web.CalculatorFinderController.<init>(CalculatorFinderController.java:67)

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            17:44:45,842 ERROR [stderr] (MSC service thread 1-8)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

            17:44:45,843 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)

            17:44:45,844 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

            17:44:45,845 ERROR [stderr] (MSC service thread 1-8)    at java.lang.Thread.run(Thread.java:619)

            17:44:45,845 INFO  [stdout] (MSC service thread 1-8) ONE----result = xx

            17:44:45,875 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/EARCalculator-web]] (MSC service thread 1-8) Initializing Spring FrameworkServlet 'mvc-dispatcher'

            17:44:45,905 INFO  [stdout] (MSC service thread 1-8)

            17:44:45,905 INFO  [stdout] (MSC service thread 1-8)

            17:44:45,906 INFO  [stdout] (MSC service thread 1-8)     Hello ...

            17:44:45,906 ERROR [stderr] (MSC service thread 1-8) javax.naming.NamingException: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.EARCalculator-ear.ear.EARCalculator-web.war:main" from Service Module Loader

            17:44:45,906 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:58)

            17:44:45,906 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:664)

            17:44:45,906 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

            17:44:45,906 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.InitialContext.init(InitialContext.java:223)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at javax.naming.InitialContext.<init>(InitialContext.java:197)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at ix.calculator.web.CalculatorFinderController.<init>(CalculatorFinderController.java:67)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)

            17:44:45,907 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

            17:44:45,908 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:467)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:483)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:358)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:325)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at javax.servlet.GenericServlet.init(GenericServlet.java:242)

            17:44:45,909 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

            17:44:45,910 ERROR [stderr] (MSC service thread 1-8)    at java.lang.Thread.run(Thread.java:619)

            17:44:45,910 INFO  [stdout] (MSC service thread 1-8) ONE----result = xx

            17:44:45,992 INFO  [org.jboss.web] (MSC service thread 1-8) registering web context: /EARCalculator-web

            17:44:46,003 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployed "EARCalculator-ear.ear"

             

             

            Thanks

            Sam

            • 3. Re: Failed instantiate InitialContextFactory
              jaikiran pai Master

              Do you have any jndi.properties file in your application? What do they look like?

              • 4. Re: Failed instantiate InitialContextFactory
                Sam W Expert

                sorry, for changed the wrong file.

                After changed to the code that  you have suggested, it throws the following error:

                 

                 

                javax.naming.NameNotFoundException: CallerMappedName#ix.caller.CallerRemote -- service jboss.naming.context.java."CallerMappedName#ix.caller.CallerRemote"

                there is no *.properties files in my project.

                 

                Thanks

                Sam

                • 5. Re: Failed instantiate InitialContextFactory
                  Sam W Expert

                  Hi,

                   

                  I have changged code like this:

                   

                   

                  InitialContext ic = new InitialContext();

                  // Obtain the application component's ENC 

                  Context envCtx = (Context) ic.lookup("java:comp/env");

                  CallerRemote remote = (CallerRemote) envCtx.lookup("CallerRemote");

                   

                   

                  jboss throws the following error:

                   

                   

                  avax.naming.NameNotFoundException: env -- service jboss.naming.context.java.module.EARCalculator-ear.EARCalculator-web.env

                  • 6. Re: Failed instantiate InitialContextFactory
                    Sam W Expert

                    I think my ejb-jar.xml file is not correct, but I am not sure where it goes wrong.

                    file path: src/main/resources/META-INF/ejb-jar.xml

                    It is shown as below:

                     

                     

                    <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">

                     

                     

                    <enterprise-beans>

                            <session>

                                    <ejb-name>CallerBean</ejb-name>

                                    <business-remote>ix.caller.CallerRemote</business-remote>

                                    <ejb-class>ix.caller.CallerBean</ejb-class>

                                    <session-type>Stateless</session-type>

                                    <ejb-local-ref>

                                            <ejb-ref-name>ejb/CalculatorLocal</ejb-ref-name>

                                            <local>ix.calculator.CalculatorLocal</local>

                                    </ejb-local-ref>

                            </session>

                    </enterprise-beans>

                    </ejb-jar>

                     

                     

                    Thanks

                    Sam

                    • 7. Re: Failed instantiate InitialContextFactory
                      Sam W Expert

                      Is there any tutorial about developing multi-layers application using JBOSS AS7? I have searched google for EJB3+ WAR+Jboss tutorial, but I could not found one, or the example I followed does not work in JBOSS like this one.

                       

                      Thanks

                      Sam

                      • 8. Re: Failed instantiate InitialContextFactory
                        Sam W Expert

                        I really don't know what have changed for ejb-jar.xml for JBOSS AS7.

                        Any more suggestion is very appreciated.

                        My simple project is also attached to this discussion for interest. Please scoll up to the first post for the attachment.

                         

                        Sincerely

                        Sam

                        • 9. Re: Failed instantiate InitialContextFactory
                          Daniel Bevenius Master

                          Hi,

                           

                          Accourding to the section "Modify your application code to follow the new JNDI namespace rules" here, you could use the new portable 'java:app' namespace. For example :

                           

                           InitialContext ic = new InitialContext();
                           CallerRemote remote = (CallerRemote) ic.lookup("java:app/EARCalculator-ejb/CallerName!ix.caller.CallerRemote");
                          

                           

                          With this change I was able to deploy the ear you attached.

                           

                          Regards,

                           

                          /Daniel

                          • 10. Re: Failed instantiate InitialContextFactory
                            Sam W Expert

                            I will try this out on tomorrow.

                             

                            Thank you very much for the new solution.

                             

                            Sam

                            • 11. Re: Failed instantiate InitialContextFactory
                              vivek rai Newbie

                              Hi Sam i am facing same problem can you please help me

                               

                              I am using Jboss-7.1.1.

                               

                              My Jndi.properties is:-

                               

                              java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory

                              java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming.remote.client

                              java.naming.provider.url=remote://localhost:4447

                               

                               

                              My code is:-

                              Context ctx = new InitialContext();

                                      System.out.println("Got Initial Context");

                                      SPResponseEJBHome home = (SPResponseEJBHome) PortableRemoteObject.narrow(ctx.lookup             ("SPConnectorResponseComponent"),SPResponseEJBHome.class);

                               

                               

                              Error log is:-

                              17:06:40,033 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/content/responsecomponent.ear/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.

                              17:06:40,050 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xpp3.jar in "/content/responsecomponent.ear/lib/jibx-run-1.2.1.jar"  does not point to a valid jar for a Class-Path reference.

                              17:06:40,058 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry stax-api.jar in "/content/responsecomponent.ear/lib/jibx-run-1.2.1.jar"  does not point to a valid jar for a Class-Path reference.

                              17:06:40,060 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry wstx-asl.jar in "/content/responsecomponent.ear/lib/jibx-run-1.2.1.jar"  does not point to a valid jar for a Class-Path reference.

                              17:06:40,082 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "response.war"

                              17:06:40,085 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "AsyncResponseComponentVer2.jar"

                              17:06:41,716 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named SPConnectorResponseComponent in deployment unit subdeployment "AsyncResponseComponentVer2.jar" of deployment "responsecomponent.ear" are as follows:

                               

                                  java:global/responsecomponent/AsyncResponseComponentVer2/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBHome

                                  java:app/AsyncResponseComponentVer2/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBHome

                                  java:module/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBHome

                                  java:jboss/exported/responsecomponent/AsyncResponseComponentVer2/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBHome

                                  java:global/responsecomponent/AsyncResponseComponentVer2/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBRemote

                                  java:app/AsyncResponseComponentVer2/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBRemote

                                  java:module/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBRemote

                                  java:jboss/exported/responsecomponent/AsyncResponseComponentVer2/SPConnectorResponseComponent!com.cdac.AsyncSPResponse.SPResponseEJBRemote

                               

                              17:06:42,716 WARNING [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.responsecomponent.ear.response.war:main" from Service Module Loader: javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.responsecomponent.ear.response.war:main" from Service Module Loader

                                  at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)

                                  at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:664) [rt.jar:1.6.0_30]

                                  at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) [rt.jar:1.6.0_30]

                                  at javax.naming.InitialContext.init(InitialContext.java:223) [rt.jar:1.6.0_30]

                                  at javax.naming.InitialContext.<init>(InitialContext.java:175) [rt.jar:1.6.0_30]

                                  at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:687) [jsf-impl-2.1.7-jbossorg-2.jar:]

                                  at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:134) [jsf-impl-2.1.7-jbossorg-2.jar:]

                                  at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:194) [jsf-impl-2.1.7-jbossorg-2.jar:]

                                  at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:163) [jsf-impl-2.1.7-jbossorg-2.jar:]

                                  at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                                  at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

                               

                              17:06:43,000 INFO  [org.jboss.web] (MSC service thread 1-3) JBAS018210: Registering web context: /response

                              17:06:43,003 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990

                              17:06:43,005 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 19948ms - Started 222 of 303 services (80 services are passive or on-demand)

                              17:06:43,252 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "responsecomponent.ear"

                               

                               

                               

                              Thanks

                              vivek