2 Replies Latest reply on Feb 20, 2004 1:41 PM by mjremijan

    Autodeployer only gets *.jar file

    mjremijan

      Hello,

      inside of /WEB-INF/lib I have an XML configuration file. When JBoss deploys the ear it only un-jars the *.jar files. Anyone know how I can get it to extract my XML file as well?

        • 1. Re: Autodeployer only gets *.jar file
          mikefinn

          What kind of XML configuration file? And what do you expect the deployer to do with it? For anything out of the ordinary (web.xml, struts-config.xml, jboss-web.xml, etc), you will need to write a custom deployer. If it's just something you need access to programmatically at runtime, use getResourceAsStream() to load it off the classpath (which should include web-inf/lib IIRC).

          • 2. Re: Autodeployer only gets *.jar file
            mjremijan

            Actually it's not a concern now because the latest release of JBoss with Tomcat5 does unjar the XML file for me. The XML file is nothing special, just configuration info for my application. I do not want to use getResourceAsStream() because I want to be able to change the XML file and have the application hot-reconfigure itself without having to restart jboss. This is a simple thing to do but getResourceAsStream() does not allow for it.