1 Reply Latest reply on Dec 21, 2011 5:51 PM by Sandeep Dixit

    Neither any mapped-name/lookup/jndi-name specified nor any ResourceProvider could process resource-ref named env/EJBTimerService of type javax.ejb.TimerService

    Sandeep Dixit Newbie

      Hi All,

       

      I am getting the following exception while upgrading from JBoss 5 to JBoss 6:

       

      ****

      Caused by: java.lang.RuntimeException: Neither any mapped-name/lookup/jndi-name specified nor any ResourceProvider could process resource-ref named env/EJBTimerService of type javax.ejb.TimerService

                at org.jboss.switchboard.mc.resource.provider.ResourceRefResourceProviderDelegator.provide(ResourceRefResourceProviderDelegator.java:125) [:1.0.0-alpha-15]

                at org.jboss.switchboard.mc.resource.provider.ResourceRefResourceProviderDelegator.provide(ResourceRefResourceProviderDelegator.java:44) [:1.0.0-alpha-15]

                at org.jboss.switchboard.mc.JndiEnvironmentProcessor.process(JndiEnvironmentProcessor.java:68) [:1.0.0-alpha-15]

                at org.jboss.switchboard.mc.deployer.AbstractSwitchBoardDeployer.process(AbstractSwitchBoardDeployer.java:119) [:1.0.0-alpha-15]

                at org.jboss.switchboard.mc.deployer.EJBEnvironmentSwitchBoardDeployer.internalDeploy(EJBEnvironmentSwitchBoardDeployer.java:87) [:1.0.0-alpha-15]

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.2.GA]

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.2.GA]

                ... 45 more

      ******

       

      My ejb-jar.xml / SessionBean has:

       

        <resource-ref>

        <res-ref-name>EJBTimerService</res-ref-name>

                                              <res-type>javax.ejb.TimerService</res-type>

        <res-auth>Container</res-auth>

        <res-sharing-scope>Shareable</res-sharing-scope>

        <!--   mapped-name>EJBTimerService</mapped-name -->

        <injection-target>

        <injection-target-class>

                                                                  com.ohioedge.j2ee.api.org.proc.ejb.WorkflowActivatorEJB</injection-target-class>

        <injection-target-name>timerService</injection-target-name>

        </injection-target>

        </resource-ref>

       

      In jmx-console/jndiView I see:

      +- internal (class: org.jnp.interfaces.NamingContext)

        |   +- EJBContext (class: javax.ejb.EJBContext)

        |   +- TimerService (class: javax.ejb.TimerService)

       

      How do I fix this error? Please advise.

       

      Thanks,
      Sandeep