5 Replies Latest reply on Apr 26, 2004 8:25 AM by Sumedh

    [MainDeployer] Could not make local copy for file...

    Sumedh Newbie

      Hi all,

      I'm deploying (trying to!) a WAR as follows:

      public void deploy(String url)
      Class mainDeployer=Class.forName("org.jboss.deployment.MainDeployer");
      Method deploy=mainDeployer.getMethod("deploy",new Class[]{String.class});
      deploy.invoke(mainDeployer.newInstance(),new Object[]{url});

      In what format should the URL be passed to it?

      This is how I'm doing it...


      But that doesn't seem to work...can anyone tell me exactly what String should be pased?