Note that there are some explanatory texts on larger screens.

plurals
  1. POIBM Worklight 6.0 - Unable to deploy adapter and app with ant task
    primarykey
    data
    text
    <p>I am attempting to do a simple build and deploy of a worklight adapter using an Ant Task.</p> <p>Here is the task: <code></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project name="Project" default="buildAndDeployAdapters" basedir="."&gt; &lt;taskdef resource="com/worklight/ant/defaults.properties"&gt; &lt;classpath&gt; &lt;pathelement location="C:\Users\IBM_ADMIN\DownloadDirector\CIN0VEN\worklight-ant.jar"/&gt; &lt;/classpath&gt; &lt;/taskdef&gt; &lt;target name="buildAndDeployAdapters"&gt; &lt;adapter-builder folder="adapters\ProjectAdapter" destinationfolder="bin"/&gt; &lt;adapter-deployer worklightserverhost="http://localhost:10080" deployable="bin\ProjectAdapter.adapter" /&gt; &lt;/target&gt; &lt;/project&gt; </code></pre> <p></code> </p> <p>The build succeeds, but when the deploy occurs I get the error message:</p> <p><code> build.xml:11: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 </code></p> <p>If I go to http:// localhost:10080 on my browser, I successfully hit the Web Sphere page. I have verified that the path to the ProjectAdapter.adapter is correct as well. I have tried deploying my application the same way and it also gets the same error. I can deploy in eclipse just fine by right clicking the adapter or application and deploy.</p> <p>I'm using the worklight Eclipse plugin, version 6.0.0.20130701-1413. I recently upgraded from the worklight free developer editon to the Enterprise Edition in order to do these build tasks. What could be the problem? Perhaps I did not upgrade properly? My goal is to run some other tasks before I build and deploy, but first I need to get build and deploy working.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload