我正在尝试通过以下方式部署耳文件weblogic.Deployer
:
java -cp "$WLS_JAR" weblogic.Deployer \
-adminurl -adminurl http://localhost:7001 \
-user weblogic \
-password $PASSWORD\
-deploy \
-name myApp \
-source /path/to/myapp.ear \
-plan /path/to/myplan.xml \
-verbose -debug
部署工具告诉我以下内容:
weblogic.Deployer invoked with options: -adminurl -adminurl http://localhost:7001 -user weblogic -deploy -name myApp -source /path/to/myapp.ear -plan /path/to/myplan.xml -verbose -debug
java.lang.IllegalArgumentException: The file list is not allowed for this operation if source is specified.
at weblogic.deploy.api.tools.deployer.Jsr88Operation.validateDelta(Jsr88Operation.java:218)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.validate(Jsr88Operation.java:98)
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:87)
at weblogic.utils.compiler.Tool.run(Tool.java:159)
at weblogic.utils.compiler.Tool.run(Tool.java:116)
at weblogic.Deployer.run(Deployer.java:74)
at weblogic.Deployer.main(Deployer.java:55)
我遵循了 Oracle 的此文档:https ://docs.oracle.com/cd/E13222_01/wls/docs90/deployment/wldeployer.html#1005385
我尝试添加或删除一些 CL 选项,例如添加-stage
或/和-upload
或-targets
选项,但响应保持不变。我只是找不到我的错误,并且在搜索此错误消息时找不到任何东西......
为什么部署不起作用,该工具的“文件列表”是什么意思,这是不允许的?