部署war文件到托管WebLogic Server以给定的路径位置 [英] Deploying war file into managed weblogic server to the given path location

查看:307
本文介绍了部署war文件到托管WebLogic Server以给定的路径位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ant wldeploy 任务来部署war文件。
它工作正常,但在部署服务器war文件路径设置为类似

 服务器/ myadminservername /上传/ mywarfilename /应用

相反,我想自己设置这个路径在Ant构建。

任何一个可以请帮我吗?

我使用这个任务是:

 < wldeploy行动=部署详细=假调试=真
          NAME =ClientProfileSyncPortTypeImplV8
          来源=$ {} results.war.file.dir /ClientProfileSyncPortTypeImplV8.war
          上传=真adminurl =T3:// $ {} SERVERIP:$ {}端口
          用户=$ {admin_id}
          密码=$ {} admin_pw
          usenonexclusivelock =$ {}锁
          目标=$ {} target_managed1>
< / wldeploy>


解决方案

我知道这是一个老的文章,但我对任何人谁碰到这个问题绊倒部分解决

从路径:域/服务器/ myadminservername /上传/ mywarfilename /应用就可以改变这个第一部分(您可以编辑服务器/ myadminservername /上传)到任何相对于WLS目录域。

进入控制台(使用:服务器IP:serverPort /控制台)管理员,并在左侧按照树:
环境 - >服务器 - >(AdminServerName) - >配置 - >部署 - >上传目录名称

上传目录名称可以包含一个目录,它是相对于域的路径。

所以,至少是域/服务器/ myadminservername /上传/ mywarfilename /应用可以成为域名/ path_of_your_choice / mywarfilename /应用

希望这可以帮助别人

I am using the Ant wldeploy task to deploy a war file. It is working fine, but the war file path in the deployed server is set to something like

servers/myadminservername/upload/mywarfilename/app

Instead, I would like to set this path myself in the Ant buildfile.

Can any one please help me with that?

The task I am using for this is:

<wldeploy action="deploy" verbose="false" debug="true"
          name="ClientProfileSyncPortTypeImplV8"            
          source="${results.war.file.dir}/ClientProfileSyncPortTypeImplV8.war"
          upload="true" adminurl="t3://${serverip}:${port}"
          user="${admin_id}"
          password="${admin_pw}"
          usenonexclusivelock="${lock}"
          targets="${target_managed1}">
</wldeploy>

解决方案

I know this is an old post but I have a partial solution for anyone who stumbles across this question

From the path: "domain/servers/myadminservername/upload/mywarfilename/app" you can change the first part of this (You can edit the "servers/myadminservername/upload") to go to any directory relative to the WLS domain.

Go to the Administrator Console (using: serverIP:serverPort/console) and in the left hand side follow the tree: environment -> servers -> (AdminServerName) -> Configuration -> Deployment -> Upload Directory Name

The "Upload Directory Name" can contain a path to a directory that is relative to the domain.

So at least "domain/servers/myadminservername/upload/mywarfilename/app" can become "domain/path_of_your_choice/mywarfilename/app"

Hope this helps someone

这篇关于部署war文件到托管WebLogic Server以给定的路径位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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