wldeploy 问题 - 远程部署不起作用

发布于 2024-09-06 15:03:26 字数 640 浏览 3 评论 0原文

我有以下用于远程部署到 weblogic 的 ant 配置。

<target name="deploy">
    <wldeploy name="${ant.project.name}.ear" user="${wls.username}" password="${wls.password}" adminurl="t3://${wls.hostname}:${wls.port}" action="deploy" source="myApp.ear" targets="${wls.server.name}" stage="true" verbose="true" upload="true" remote="true" debug="true"/>
</target>

当我运行此目标的构建文件时,我遇到以下错误: 构建失败 weblogic.management.ManagementException:[部署者:149003]无法访问应用程序源信息 '/app/myApp.ear' 对于应用程序 'myApp.ear'。

我相信我无法控制暂存用于部署的 EAR 文件的服务器位置。但为什么? 当目标是我的对等计算机(Windows)时,脚本似乎工作正常。本地部署也有效。与unix环境有关吗?或任何 weblogic 服务器设置?

I have the following ant configuration for remote deployment to weblogic.

<target name="deploy">
    <wldeploy name="${ant.project.name}.ear" user="${wls.username}" password="${wls.password}" adminurl="t3://${wls.hostname}:${wls.port}" action="deploy" source="myApp.ear" targets="${wls.server.name}" stage="true" verbose="true" upload="true" remote="true" debug="true"/>
</target>

I am facing the following error when I run the build file for this target:
BUILD FAILED
weblogic.management.ManagementException: [Deployer:149003]Unable to access application source information in
'<!DOCTYPE HTML PUBLIC "-/W3C/DTD HTML 4.0 Draft/EN">/app/myApp.ear' for application 'myApp.ear'.

I believe I am not able to control the server location where the EAR files for deployment are staged. But why?
The scripts seem to be working fine when the target is my peer machine(windows). Local deployments work as well. Is it reladted to unix env. or any weblogic server settings?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缱绻入梦 2024-09-13 15:03:26

我遇到了同样的问题,但是使用了 weblogic.Deployer 命令。
我用 -name 参数解决了它。

在您的情况下,尝试将您的名称属性替换为以下内容:

name="${ant.project.name}.ear"

为:

name="${ant.project.name}"

最后一个应该可以使您的部署工作。告诉我们您是否可以使用 Deploy 标签解决您的问题。

I had the same problem, but using the weblogic.Deployer command.
I solved it with the -name argument.

In your case, try replacing your name atribute as following:

name="${ant.project.name}.ear"

with:

name="${ant.project.name}"

The last should make work your deploy. Tell us if you could fix your problem with the Deploy tag.

握住我的手 2024-09-13 15:03:26

对于那些仍在为此苦苦挣扎的人,请确保在 wldeploy 操作中包含 upload="true"。经过几个小时的努力,这为我解决了这个问题。对我来说,我能够手动安装到 weblogic 中,但部署不断给出错误:

[部署者:149003]无法访问应用程序源信息...
具体错误为:不存在应用程序文件

下面是包含此设置的 wldeploy 操作示例。

<wldeploy action="deploy" name="${name}" source="${deployDirEar}"   
  upload="true" user="${wl.user}" nostage="false" password="${wl.password}"     
  verbose="true" targets="${wl.adminserver.name}" adminurl="t3://${wl.host}:${wl.port}" />

For those still struggling with this, make sure you include upload="true" in your wldeploy action. This resolved the issue for me after many hours of struggling. For me, I was able to manually install into weblogic, yet the deployment kept giving the error:

[Deployer:149003]Unable to access application source information...
The specific error is: No application files exist

Below is an example wldeploy action with this setting included.

<wldeploy action="deploy" name="${name}" source="${deployDirEar}"   
  upload="true" user="${wl.user}" nostage="false" password="${wl.password}"     
  verbose="true" targets="${wl.adminserver.name}" adminurl="t3://${wl.host}:${wl.port}" />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文