当前位置:编程学习 > 网站相关 >>

ant部署 taskdef class weblogic.ant.taskdefs.management.WLDeploy cannot be found


<!-- 部署 -->
<target name="deploy"> 
<copy todir="${WL_HOME}/user_projects/domains/base_domain/servers/AdminServer/upload" overwrite="true">
<fileset dir="${war.dest}"> 
    <include name="**/*.war"/> 
</fileset> 
</copy> 
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"/>
<wldeploy action="deploy" 
          source="${WL_HOME}/user_projects/domains/base_domain/servers/AdminServer/upload/${project}.war"
          name="${project}" 
          verbose="true" 
  adminurl="${adminurl}" 
  user="${username}" 
  password="${password}" 
  targets="${server}" 
  debug="true"/> 
</target>


报错:

Buildfile: E:\work\test\Test\build.xml

deploy:
        [copy] Copying 1 file to E:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\AdminServer\upload

BUILD FAILED
E:\work\test\Test\build.xml:76: taskdef class weblogic.ant.taskdefs.management.WLDeploy cannot be found
 using the classloader AntClassLoader[]

Total time: 190 milliseconds
--------------------编程问答-------------------- 不懂,帮顶
补充:企业软件 ,  中间件
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,