1 Reply Latest reply on Apr 18, 2002 1:39 PM by adrian.brock

    Sar files and relative URLs

    darrrint

      I'm tring to create a sar file I can deploy. The Sar file will provide a Castor Database object. I'm using Jboss 3 + Tomcat 4 - RC1

      I got the neccessary classes from CVS etc. Now I get a FileNotFoundException when I deploy the sar. I'll spare you all the stack trace. Basically JBoss is looking for my jdo-config.xml file in SERVER_HOME/bin.

      I want to keep the file right in the sar. I can't figure out a way to make the deployer look for the file in the sar archive.

      Here is a snip from my jboss-service.xml file:


      jdo-config.xml


      Thanks in advance.

        • 1. Re: Sar files and relative URLs

          Try this

          ClassLoader loader = Thread.currentThread().getContextClassLoader();
          URL configUrl = loader.getResource(configuration);

          With this code, you could also put the xml in
          server/default/conf.

          Regards,
          Adrian