开发者

wldeploy problem - remote deploy not working

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 w开发者_JS百科here 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?


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.


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}" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜