Worklight ant task app-deployer - Unauthorized error while actively protecting the WL console
I am trying to deploy an app to WL Server v5.0.5 using the provided ant app-app-app.
Here's a simple build file I'm using:
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="deployWL">
<target name="deploy_application">
<taskdef resource="com/worklight/ant/defaults.properties">
<classpath>
<pathelement location="C:/Worklight50/WorklightServer/worklight-ant.jar"/>
</classpath>
</taskdef>
<app-deployer worklightServerHost="http://localhost:9087/worklight" deployable="C:/temp/UnisTestAdapters-common.wlapp"/>
</target>
</project>
Access to the WL server console was secured using the documented procedure "WAS security 1" (ie modified web.xml in worklight.war).
When I start the ant process, I get the following error:
C:\temp>C:\apache-ant-1.8.4-bin\bin\ant -buildfile test.xml deploy_application
Buildfile: C:\temp\test.xml
deploy_application:
[app-deployer] Feb 18, 2013 1:39:23 PM com.worklight.ant.deployers.AbstractDeployerTask logDeployResponse
[app-deployer] SEVERE: Unauthorized;
BUILD SUCCESSFUL
Total time: 1 second
If I run the same ant script with an unsecured WL console everything works fine.
Can ant scripts be used in a secure WL server script?
How can I propagate valid credentials during application deployment?
+3
source to share