工作灯Ant任务的应用程序 - 部署 - 未授权错误,当WL控制台安全有效 [英] worklight ant task app-deployer - Unauthorized error when WL console security is active

查看:203
本文介绍了工作灯Ant任务的应用程序 - 部署 - 未授权错误,当WL控制台安全有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用所提供的ant任务的应用程序,部署将应用程序部署到服务器WL v5.0.5。

I'm trying to deploy an application to a WL Server v5.0.5 using the provided ant task app-deployer.

下面简单的构建文件我使用:

Here the simple buildfile I use:

<?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>

访问WL Server控制台一直使用保护文档在安全选项1的程序(即worklight.war修改web.xml中)。

Access to the WL Server console has been protected using the documented "WAS security option 1 procedure" (ie, modified web.xml in worklight.war).

当我运行蚂蚁过程中我收到以下错误:

When I run the ant process I receive 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

如果我运行控制台WL未受保护的相同ant脚本,一切工作正常。

If I run the same ant script with WL console unprotected, everything works fine.

是否有可能在一个安全的WL服务器方案使用ant脚本?

Is it possible to use the ant scripts in a secured WL Server scenario ?

如何能应用在部署过程中传播的有效凭据?

How can I propagate valid credential during apps deployment ?

推荐答案

有没有办法做到这一点在IBM工作灯(它是积压)的当前版本。
您可以手动部署应用程序或适配器或部署与ANT应用程序或适配器时,可以删除保护。

There is no way to do it in the current version of IBM Worklight (it is in the backlog). You can deploy an application or adapter manually or you can remove the protection when deploying an application or adapter with ANT.

这篇关于工作灯Ant任务的应用程序 - 部署 - 未授权错误,当WL控制台安全有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆