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

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

问题描述

我正在使用 Ant wldeploy 任务来部署一个 war 文件.它工作正常,但部署服务器中的战争文件路径设置为类似

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

相反,我想自己在 Ant 构建文件中设置此路径.

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

有人可以帮我吗?

我为此使用的任务是:

<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

从路径:domain/servers/myadminservername/upload/mywarfilename/app"您可以更改此的第一部分(您可以编辑servers/myadminservername/upload")以转到与 WLS 相关的任何目录域.

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.

转到管理员控制台(使用:serverIP:serverPort/console)并在左侧跟随树:环境 -> 服务器 -> (AdminServerName) -> 配置 -> 部署 -> 上传目录名称

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.

所以至少domain/servers/myadminservername/upload/mywarfilename/app"可以变成domain/path_of_your_choice/mywarfilename/app"

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

希望这对某人有帮助

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

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