2 Replies Latest reply on Jul 16, 2009 11:39 AM by Peter Johnson

    ResourceEnvRef JNDI

    ads asd Newbie

      i trying to deploy an application (war) on JBoss but i get this error on JBoss start

      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-env-ref: XXXXX/YYYYYYY has no valid JNDI binding. Check the jboss-web/resource-env-ref.)

      This is the part of web.xml

      <resource-env-ref id="ResourceEnvRef_1114085340580">
      Valuemation session configuration
      <resource-env-ref-name> XXXXX/YYYYYYY </resource-env-ref-name>

      This application work fine on Tomcat with these server.xml parameters:


      I'm looking for a similar configuration on JBoss, someone can help me?

      I cannot find nothing on google...

      Thanks in advance

        • 1. Re: ResourceEnvRef JNDI
          ads asd Newbie

          This is the server.xml of the working Tomcat AS


          • 2. Re: ResourceEnvRef JNDI
            Peter Johnson Master

            Please use the 'code' tags when posting XML text (that will prevent the browser from mistaking the XML entities as HTML).

            I have not worked with resource-env-ref, but it should be similar to how resource-ref is handled. You need a WEB-INF/jboss-web.xml file that contains:


            where ZZZZZ is the full JNDI name (including the 'java:' prefix if necessary).

            By the way, the DTD for jboss-web.xml is located at docs/dtd/jboss-web_*.dtd