0 Replies Latest reply on May 23, 2003 4:26 PM by Scott Walters

    loading custom ant.jar in servlet webapp

    Scott Walters Newbie

      I'm trying to run a servlet app under jboss 3.2.1/jetty that I developed using tomcat. The servlet executes ant scripts using a modified version of ant that resides in a jar file in the WEB-INF/lib directory of the app. It all runs ok with tomcat since it appears to use the classes from the ant.jar in WEB-INF/lib instead of the classes from the ant.jar in it's common/lib directory, but with jboss, it appears to be using the standard ant jar classes.

      I've attempted to solve this by trying to control the ant.jar file that jboss loads. First, I tried removing the ant.jar from the server/default/lib directory. Then I replaced the ant.jar in that directory with the custom ant.jar. Neither of these made any difference. Then, I renamed the ANT_HOME environment variable and this worked but it's not really a viable long term solution. Does anyone have any suggestions ?

      Thanks,
      Scott