Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3801

"Deploy war/ear to a container" on a slave build fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • deploy-plugin
    • None
    • Platform: All, OS: All

      SETUP - Windows Hudson Master 1.308, Windows Hudson Slave running as a service
      utilized through the JNLP agent. Maven Build, running a 'verify' task. Using
      the 'Configure M2 Extra Build Steps' plugin to run the 'deploy' task.
      Attempting to deploy to Tomcat 6 Container. Attempting to tag in SVN.

      ISSUE - I am running a maven2 build on a windows Hudson Slave. The verify and
      deploy tasks execute. When it gets to trying to deploy, the following error is
      dumped into the Hudson 'console output' view. I am unable to deploy a build
      that is created on my slave.

      FATAL: String index out of range: -1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(Unknown Source)
      at org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:122)
      at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
      at org.apache.tools.ant.Project.setAntLib(Project.java:313)
      at org.apache.tools.ant.Project.initProperties(Project.java:309)
      at org.apache.tools.ant.Project.init(Project.java:295)
      at org.codehaus.cargo.util.AntUtils.createProject(AntUtils.java:149)
      at org.codehaus.cargo.util.AntUtils.<init>(AntUtils.java:55)
      at org.codehaus.cargo.util.DefaultFileHandler.<init>(DefaultFileHandler.java:75)
      at
      org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory.<init>(DefaultConfigurationFactory.java:47)
      at
      hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:52)
      at
      hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:46)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1694)
      at hudson.remoting.UserRequest.perform(UserRequest.java:103)
      at hudson.remoting.UserRequest.perform(UserRequest.java:47)
      at hudson.remoting.Request$2.run(Request.java:236)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:54)
      at java.lang.Thread.run(Unknown Source)

            Unassigned Unassigned
            robertmdineen robertmdineen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: