我正在尝试使用wsadmin在Websphere上安装应用程序:
AdminApp.install('D:\work\my.ear',['-cluster', 'Vivaldi', '-MapWebModToVH', [['.*', '.*', 'default_host']]])
并收到错误消息:ADMA0043E: /ibm/WebSphere/AppServer/profiles/AppSrv02/config/temp/upload/my5776587604736184411.ear does not exist for installation
Websphere以user1的身份运行,来自user2的wsadmin脚本 是否可以从其他用户通过wsadmin安装该应用程序? 谢谢!
答案 0 :(得分:0)
如果您运行WebSphere并安装该应用程序,那么AdminApp.install comman是否起作用?
答案 1 :(得分:0)
User2没有对/ ibm / WebSphere / AppServer / profiles / AppSrv02 / config / wstemp的写许可权。
您需要允许user2写入此目录和子目录。
此外,该脚本可能会失败,因为user2没有OSGI配置的权限。如果是这样,则需要为wsadmin设置系统属性:
/ibm/WebSphere/AppServer/profiles/AppSrv02/bin/wsadmin.sh -lang jython -javaoption "-Dosgi.configuration.area=/home/user2/.eclipse" ...
应该注意,IBM假定wsadmin.sh将始终以安装用户(在本例中为user1)运行。官方上受支持的方法来执行您想要的操作,即在另一台服务器上的此服务器上以user2身份安装“管理客户端”。 (然后指定主机和肥皂端口),这将避免权限问题。