1 Reply Latest reply on Sep 16, 2008 8:17 AM by Gg La'mayer

    Application name not bound?

    Gg La'mayer Newbie

      Hello everybody,

      i've got a problem i don't really understand. The applications name is xyz. While deploying the EJBs the following is logged:


      13:48:38,333 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=ConfigurationManagerBean,service=EJB3
      13:48:38,334 INFO [JBossASKernel] with dependencies:
      13:48:38,353 INFO [JBossASKernel] and demands:
      13:48:38,353 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      13:48:38,354 INFO [JBossASKernel] and supplies:
      13:48:38,354 INFO [JBossASKernel] jndi:xyz/ConfigurationManagerBean/local
      13:48:38,354 INFO [JBossASKernel] Class:com.dept101.server.configurationMgr.interfaces.ConfigurationManagerRemote
      13:48:38,354 INFO [JBossASKernel] jndi:xyz/ConfigurationManagerBean/local-com.dept101.server.configurationMgr.interfaces.ConfigurationManagerLocal
      13:48:38,354 INFO [JBossASKernel] jndi:ConfigurationManagerBean
      13:48:38,354 INFO [JBossASKernel] Class:com.dept101.server.configurationMgr.interfaces.ConfigurationManagerLocal
      13:48:38,354 INFO [JBossASKernel] jndi:xyz/ConfigurationManagerBean/remote
      13:48:38,354 INFO [JBossASKernel] jndi:xyz/ConfigurationManagerBean/remote-com.dept101.server.configurationMgr.interfaces.ConfigurationManagerRemote
      13:48:38,354 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=xyz.ear,jar=xyz-ejb-beans.jar,name=ConfigurationManagerBean,service=EJB3) to KernelDeployment of: xyz-ejb-beans.jar


      A client class looks up like this:

      ConfigurationManagerRemote configurationManagerRemote = (ConfigurationManagerRemote) ctx.lookup("xyz/ConfigurationManagerBean/remote");
      


      When the client class is deployed, the following exception is thrown:


      javax.naming.NameNotFoundException: xyz not bound
      at mypackage.GlobalDataEJB.getCO(GlobalDataEJB.java:189)
      at mypackage.SupressClientsideCachingFilter.init(SupressClientsideCachingFilter.java:74)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3735)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4376)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:346)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:112)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:90)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      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:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy35.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:271)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:442)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:88)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:46)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:544)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: javax.naming.NameNotFoundException: ringfoto not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
      at javax.naming.InitialContext.lookup(InitialContext.java:409)
      at mypackage.GlobalDataEJB.getCO(GlobalDataEJB.java:185)
      ... 58 more



      The funny thing is, that the application is deployed in jboss 5.0.0.Beta4, but in jboss 5.0.0.CR1 it doesn't work! Could anybody help?

      Thanks!

      GLA

        • 1. Re: Application name not bound?
          Gg La'mayer Newbie

          In the global Namespace in the JNDI-View there is the following shown:


          +- xyz (class: org.jnp.interfaces.NamingContext)
          | +- AbstractSessionBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy109 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.base.AbstractSessionDefinition)
          | +- SearchManagerBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy109 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.base.AbstractSessionDefinition)
          | +- OrderManagerBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy109 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.base.AbstractSessionDefinition)
          | +- OISManagerBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy109 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.base.AbstractSessionDefinition)
          | +- UserManagerBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy109 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.base.AbstractSessionDefinition)
          | +- WebObjManagerBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy109 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.base.AbstractSessionDefinition)
          | +- ConfigurationManagerBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy105 implements interface com.dept101.server.configurationMgr.interfaces.ConfigurationManagerLocal,interface org.jboss.ejb3.proxy.JBossProxy)
          | | +- remote (proxy: $Proxy104 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.configurationMgr.interfaces.ConfigurationManagerRemote)

          | +- AssistManagerBean (class: org.jnp.interfaces.NamingContext)
          | | +- local (proxy: $Proxy109 implements interface org.jboss.ejb3.proxy.JBossProxy,interface com.dept101.server.base.AbstractSessionDefinition)