简体   繁体   English

Weblogic 10.3域解包问题

[英]Weblogic 10.3 domain unpacking problem

I'm trying to unpack a Weblogic 10.3 domain on one of our production servers (SunOS 5.10), but get the following error: 我正在尝试在我们的一个生产服务器(SunOS 5.10)上解压缩Weblogic 10.3域,但是出现以下错误:

 $ /opt/bea10/wlserver_10.3/common/bin/unpack.sh -template=/tmp/CM.jar -domain=/opt/bea10/user_projects/CM
 Error: failed to create the temporary script file

Assuming that this is a priviledge problem: where actually the unpack utility tries to create its temporary script files? 假设这是一个特权问题:实际上unpack实用程序试图创建其临时脚本文件? The unpack script calls a Java class com.bea.plateng.domain.script.Unpacker, so reading the script itself does not reveal the location. unpack脚本调用Java类com.bea.plateng.domain.script.Unpacker,因此读取脚本本身并不会显示该位置。 I need to ask the sysadmin for the priviledges, so an exact directory location is needed. 我需要向系统管理员询问权限,因此需要一个确切的目录位置。

Of course, the error message is so vague that this might also be some other issue. 当然,错误信息是如此模糊,这可能也是一些其他问题。 Any ideas? 有任何想法吗?

BR, BR,

Marko 马尔科

PS Sorry for cross-posting. PS对不起,希望发布交叉发布。 I tried this question also on Serverfault but got no replies. 我在Serverfault上也尝试过这个问题,但没有回复。 Perhaps programmers (like myself) do this kind of stuff anyway. 也许程序员(像我一样)无论如何都会做这种事情。

Please try to execute your command using the -log=log_file and -log_priority=debug optional parameters (see http://download.oracle.com/docs/cd/E12840_01/common/docs103/pack/commands.html for the details) and update your question with the results. 请尝试使用-log=log_file-log_priority=debug可选参数执行命令(有关详细信息,请参阅http://download.oracle.com/docs/cd/E12840_01/common/docs103/pack/commands.html )并用结果更新您的问题。

EDIT (answering a comment from the OP): That's weird... My next suggestion would be to try to use the WLST equivalent of the unpack utility. 编辑 (回答OP的评论):这很奇怪......我的下一个建议是尝试使用unpack实用程序的WLST等效项。 Have a look at How to create a distributed WebLogic domain ? 看看如何创建分布式WebLogic域? for the WLST script. 对于WLST脚本。 The idea is still to get a trace for the real problem. 这个想法仍然是为了解决真正的问题。

And if this doesn't work, then I'd just create a good old tar.gz of the domain (removing manually the log file) and contact the support to find out what happens exactly. 如果这不起作用,那么我只是创建一个很好的旧域tar.gz (手动删除日志文件)并联系支持人员以找出确切的结果。

PS: It is possible that com.bea.plateng.domain.script.Unpacker uses the temporary directory returned by java.io.tmpdir which, on Solaris, is /var/tmp/ . PS: com.bea.plateng.domain.script.Unpacker可能使用java.io.tmpdir返回的临时目录,在Solaris上,它是/var/tmp/ Check that you can write there. 检查你是否可以在那里写。 But this is just a bet. 但这只是一个赌注。

with unpack the problem is there because unpack needs write permission on one folder and the file domain-registry.xml. 解压问题是因为解压缩需要对一个文件夹和文件domain-registry.xml的写权限。

This problem occurs because you have installed the Weblogic installation with one user and you want to execute unpack with a different user. 出现此问题的原因是您已经安装了一个用户的Weblogic安装,并且您希望使用其他用户执行解压缩。

The user starting the unpack.sh needs write access to the folder $BEA_HOME/wlserver_10.3/common/lib. 启动unpack.sh的用户需要对$ BEA_HOME / wlserver_10.3 / common / lib文件夹的写访问权。 A temporary file is written here by the user executing the unpack command. 执行unpack命令的用户在此写入临时文件。 This file is removed by unpack after the unpack command has terminated. 解压缩命令终止后,通过解压缩删除此文件。

Beside of this directory the file $BEA_HOME/domain-registry.xml is updated by the unpack command. 在此目录旁边,文件$ BEA_HOME / domain-registry.xml由unpack命令更新。 Use chmod as the install user to give write access for the time you need to unpack the domain on the folder and the file with the command below: 使用chmod作为安装用户,以便在需要使用以下命令解压缩文件夹和文件中的域时提供写访问权限:

chmod a+rwx $BEA_HOME/wlserver_10.3/common/lib $BEA_HOME/domain-registry.xml chmod a + rwx $ BEA_HOME / wlserver_10.3 / common / lib $ BEA_HOME / domain-registry.xml

After the creation of the domain change the permission to a safe value. 创建域后,将权限更改为安全值。

Regards 问候

     Hemant
-app_dir=application_directory

I used this option apart from setting those permissions, and it worked. 我使用此选项除了设置这些权限,它工作。

Replace application_directory with an empty directory. 将application_directory替换为空目录。

create /home/<user>/unpacktmp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM