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

    ResourceEnvRef JNDI

    jbosspdio

      Goodmoring,
      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:


      <ResourceEnvRef


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

      I cannot find nothing on google...

      Thanks in advance
      Antonello

        • 1. Re: ResourceEnvRef JNDI
          jbosspdio

          This is the server.xml of the working Tomcat AS

          ResourceEnvRef
          name="XXXXX/XXXXXXX"
          type="de.gebit.trend.bo.persistence.SessionConfiguration"/>
          ResourceEnvRef

          • 2. Re: ResourceEnvRef JNDI
            peterj

            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:

            <jboss-web>
             <resource-env-ref>
             <resource-env-ref-name>XXXXX/YYYYYY</resource-env-ref-name>
             <jndi-name>ZZZZZ</jndi-name>
             </resource-env-ref>
            </jboss-web>


            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