2016-04-18 3 views
0

私はwlappファイルをAntタスクを使ってMFP Liberty Serverにデプロイしようとしています。 私はbuild.xmlを作成した後、cmdで "ant"を実行します。wlappファイルをMFP Libertyにantを使ってデプロイ

C:\IBM\MobileFirst_Platform_Server\shortcuts>ant 
Unable to locate tools.jar. Expected to find it in C:\IBM\Installation Manager\e 
clipse\jre_7.0.9030.20160210_1426\lib\tools.jar 
Buildfile: C:\IBM\MobileFirst_Platform_Server\shortcuts\build.xml 

install: 
    [wladm] The REST service URL http://IP:9080/worklightconsol 
e cannot be accessed in a secure way. You may want to use a https URL instead, o 
r retry with the 'secure' option set to 'false'. 

BUILD FAILED 
C:\IBM\MobileFirst_Platform_Server\shortcuts\build.xml:9: com.ibm.worklight.admi 
n.restclient.RESTException: The REST service URL http://IP:9080 
/worklightconsole cannot be accessed in a secure way. You may want to use a http 
s URL instead, or retry with the 'secure' option set to 'false'. 
     at com.ibm.worklight.admin.restclient.RESTClient.checkURI(RESTClient.jav 
a:1001) 
     at com.ibm.worklight.admin.restclient.RESTClient.getPOSTResponse(RESTCli 
ent.java:1433) 
     at com.ibm.worklight.admin.restclient.RESTClient.getPOSTFileResponse(RES 
TClient.java:1464) 
     at com.ibm.worklight.admin.commands.DeployApp.getResponse(DeployApp.java 
:41) 
     at com.ibm.worklight.admin.restclient.ActionClient.execute(ActionClient. 
java:84) 
     at com.ibm.worklight.admin.ant.types.AbstractActionElement.executeComman 
d(AbstractActionElement.java:76) 
     at com.ibm.worklight.admin.ant.types.ActionElement.executeCommands(Actio 
nElement.java:43) 
     at com.ibm.worklight.admin.ant.WladmTask.executeCommands(WladmTask.java: 
705) 
     at com.ibm.worklight.admin.ant.WladmTask.execute(WladmTask.java:459) 
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. 
java:95) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces 
sorImpl.java:56) 
     at java.lang.reflect.Method.invoke(Method.java:620) 
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav 
a:106) 
     at org.apache.tools.ant.Task.perform(Task.java:348) 
     at org.apache.tools.ant.Target.execute(Target.java:392) 
     at org.apache.tools.ant.Target.performTasks(Target.java:413) 
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) 
     at org.apache.tools.ant.Project.executeTarget(Project.java:1368) 
     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe 
cutor.java:41) 
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251) 
     at org.apache.tools.ant.Main.runBuild(Main.java:811) 
     at org.apache.tools.ant.Main.startAnt(Main.java:217) 
     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) 
     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) 

Total time: 1 second 

私はここで、 "falseに確保" を設定して知らないが、私はこの1つ試してみました:それは言う

wladm --url= --user= ... [--passwordfile=...] [--secure=false] 

を:

Secure mode is enabled, but an option '--passwordfile' is missing. 

誰もが場所を変更する方法を知っていますURLはHTTPだけで、httpsではないので、falseにする?

答えて

1

詳細については、wladmの使用方法のドキュメントhttp://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.appadmin.doc/admin/r_invoking_the_wladm_program.htmlを参照してください。

+0

私はいくつかのコマンドを入力しようとしましたが、 "パスワードは必須ですが、オプション '--passwordfile'がありません。 私が試したものの例 > wladm --url = http:// IP:PORT --user = demo --secure = falseバージョン表示 – black1011

+0

コマンドに--passwordfile = PATH/wladm.configを追加しようとしましたhttp:// IP:PORT/userAndConfigInfo?locale = en_US:HTTP/1.1 404が見つかりません – black1011

2

私はあなたがコマンドに大括弧をつけているとは思わないと思います。
しないでください。単に--secure=falseです。

+0

このようなsometing? wladm --url = http:// IP:PORT --user = demo --secure = false – black1011

+0

はい、そのようなものです。 –

+0

これをcmdに入力すると、別の行に移動します。 wlcmd>別のコマンドを入力する必要があります。 – black1011