使用WLST远程上传 [英] Remote upload using WLST

查看:289
本文介绍了使用WLST远程上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过WLST远程上传和部署。
我成功部署已经存在于WebLogic服务器路径中的应用程序。

I'm trying to perform remote uploading and deploying via WLST. I succeed to deploy applications already present in the path of the WebLogic server. But now, I would like to deploy one remotely available.

有没有可以通过WLST 在WebLogic服务器上上传WAR / EAR 部署它?

Is there any possibility to upload WAR/EAR on the WebLogic server via WLST before deploying it?

我正在运行weblogic 12C。

I'm running weblogic 12C.

我尝试过:

java -cp wlserver/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://WeblogicServer:7001 -user weblogic -password weblogic -deploy /tmp/HelloWorld.war -remote -upload

给我作为回报:

weblogic.Deployer invoked with options:  -adminurl t3://WeblogicServer:7001 -user weblogic -deploy /tmp/HelloWorld.war -remote -upload
<6 juil. 2012 17 h 58 CEST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, HelloWorld [archive: /tmp/HelloWorld.war], to configured targets.> 
[J2EE Deployment SPI:260080]Unable to define the application install directory at "/tmp/helloworld.war". Directory could not be created or is a file.

当我检查服务器时,没有任何部署。

And when i check on the server, nothing is deployed.

推荐答案

我找到解决方案:
我们不能使用/ tmp目录作为源,因为weblogic.Deployer使用目录。

I found the solution: We must not use the /tmp directory as source, because the weblogic.Deployer use this directory.

所以命令是:

java -cp wlserver/server/lib/weblogic.jar weblogic.Deployer -adminurl t3://WeblogicServer:7001 -user weblogic -password weblogic -deploy /home/admin/HelloWorld.war -remote -upload

这篇关于使用WLST远程上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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