3 Replies Latest reply on Apr 4, 2007 7:14 AM by jefec

    Tomcat Custom Resource

    jefec

      Hello, I have defined custom resource in my context.xml, but jboss doesn't deploy it (it is not visible in jmx console) and there are no errors in the log file.
      In standalone tomcat all works correctly.
      What is wrong?
      Thanks

      My context.xml:

      <context ... >
       <Resource auth="Container" factory="my.test.MyProvider" name="bean/MyProvider" type="my.test.ObjectFactoryConfiguration"/>
      </context>
      


        • 1. Re: Tomcat Custom Resource
          genman

          Not sure context.xml is supported in JBoss ... You may need to create a jboss.xml or jboss-web.xml instead.

          • 2. Re: Tomcat Custom Resource
            jefec

            I have created jboss-web.xml and it contains referece (<resource-ref>) to my resource. But it doesn't work.

            • 3. Re: Tomcat Custom Resource
              jefec

              Problem is with the useNaming attribute in context.xml. It is set to true value by default, enabling the JNDI InitialContext for web applications.
              In JBoss source codes is this attribute set to "false" and the resource isn't deployed during the deployment process.