`

WAS UpdateInstaller安装报“A suitable JVM could not be found”问题解决

阅读更多

一、背景及现象:

在AIX V5.3下安装WAS6.0 ,将安装包及升级包上传到文件系统/software下。
IBM WebSphere Application Server V6.0 安装完成后,安装升级包需要安装安装工厂,这时提示如下错误:

InstallShield Wizard
Initializing InstallShield Wizard...
Searching for Java(tm) Virtual Machine...
..................................
A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>

二、问题处理:
1、
按提示输入
  #./install -is:javahome   /usr/java14
     错误现象依旧。
2、 设置JAVA环境变量
  #export   JAVA_HOME=/usr/java14
     错误现象依旧。
3、另类安装
  因为AIX下install不是安装脚本,但发现安装目录下有setup.jar,于是通过xmanager执行如下安装
     #/usr/java14/bin/java setup.jar
  竟然顺利启动安装界面,进行了安装工厂的安装。

三、问题原因:
  由于
担心是系统环境的问题, 事后去IBM网站上查了一下问题的原因,附IBM解释:
http://www-1.ibm.com/support/docview.wss?uid=swg21206469

Problem

The updateInstaller utility for releases of WebSphere® Application Server V6.0 reports "A suitable JVM could not be found" and will not start up. Most of the time, this indicates that the updateInstaller environment needs to be set up in a different manner.

Cause

The updateInstaller utility for WebSphere Application Server V6 product has specific requirements of where it is executed from. The updateInstaller must be placed in a directory which is literally named "updateinstaller", and that must be a subdirectory of the targeted product's installation root.
If the updateInstaller is not placed in the required directory, then it will throw errors and not properly start up. For example, the updateInstaller might throw the following error message when attempting to start up from an improper directory:

A suitable JVM could not be found.  Please run the installer again using the option -is:javahome <JAVA HOME>

It is not necessary to use the suggested "-is:javahome" parameter to run the updateInstaller. The preferred solution is to ensure that a Java™ SDK valid for use with the updateInstaller is copied into the "java" directory of the updateInstaller.

Solution

The recommendations described in the following technote will resolve this issue:
Extract the updateInstaller utility for WebSphere Application Server V6 products into a correct location
The technote discusses ways of extracting and verifying the updateInstaller and maintenance archives.

IBM问题的解决链接:
Extract the updateInstaller utility for WebSphere Application Server V6 products into a correct location

http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21205400

Solution

Recommended Solution
Part one: Extract the maintenance and verify placement 1. Obtain the archive file which contains the maintenance update. This may be a Refresh Pack or a Fix Pack, and this archive file is typically downloaded from the IBM WebSphere support site.
Note: For the discussion in this article, an "archive file" is typically a .zip, .tar, or .tar.gz file. If the maintenance update is an interim fix, it is most likely distributed in the form of a .pak file, which is different than a "maintenance archive". A .pak file is the actual maintenance file processed by the updateInstaller to deliver a product update.
2. Obtain the latest available WebSphere V6 updateInstaller utility. This can be downloaded from the WebSphere V6 updateInstaller support page .
3. If the maintenance obtained in step 1 was downloaded in the form of a .pak file, then review the information presented here, and proceed to step 4. If the maintenance was downloaded in the form of an archive (.zip, .tar, or .tar.gz file), then proceed with this step.
Extract the content from the maintenance archive into the targeted product's installation directory. It is very important to extract the updateInstaller properly. Improper extraction is the most common cause for problems. Be sure to extract the content of the archive directly into the targeted product's installation directory. For details, please see Extracting the updateInstaller or maintenance archive , below.
4. Extract the updateInstaller which was downloaded in step 2 into the targeted product's installation directory. The updateInstaller should be extracted into the same location as was chosen in step 3. Allow the extraction process to overwrite any existing files in the "updateinstaller" directory.
Be sure to review Extracting the updateInstaller or maintenance archive , below, for details which describe how and where to extract the updateInstaller archive.
5. If the maintenance obtained in step 1 was in the form of a .pak file, then move that file into the "maintenance" directory. The "maintenance" directory is a subdirectory of the updateInstaller. If the "updateinstaller/maintenance" directory does not exist, then create it.
6. If this installation will take place silently using the silent command-line options or a response file, then invoke the command which prepares the environment by cloning the Java SDK. For more details concerning this process, see the InfoCenter article for the update command . Specifically, refer to the "Automating maintenance operations" section. Here are examples of how to accomplish this:
Windows-based systems
cd install_root \bin
setupCmdLine.bat
cd ..\updateinstaller
update.exe -silent -W relaunchwizardexecInstallWizardBean.active=false
UNIX-based systems
cd install_root /bin
. ./setupCmdLine.sh
cd ../updateinstaller
./update -silent -W relaunchwizardexecInstallWizardBean.active=false
Note: The "dot-space" preceding the "dot-slash setupCmdLine.sh" is very important. The "dot-space" performs the "source" operation. Please be sure to type the command exactly as shown.
7. Verify that the updateInstaller, maintenance, and Java files appear in the correct locations. This can be accomplished by checking the locations of a subset of files. (These example lists are NOT complete lists of the required locations of updateInstaller files.) If the files do not show up in the proper locations as suggested in the examples below, then try this process again, starting with step 1.
For Windows-based systems:
updateinstaller\update.exe
updateinstaller\lib\updiplugins.jar
updateinstaller\maintenance\*.pak (at least one .pak file)
updateinstaller\java\bin\java.exe
Note: java.exe may not appear until after the first time the updateInstaller is run.
Also, the directories and files named above should show up within the product's installation root directory. For example:
C:\Program Files\IBM\WebSphere\AppServer\updateinstaller\update.exe
UNIX- or Linux-based systems
updateinstaller/update
updateinstaller/lib/updiplugins.jar
updateinstaller/maintenance/*.pak (at least one .pak file)
updateinstaller/java/bin/java
Note: java/bin/java may not appear until after the first time the updateInstaller is run.
Also, the directories and files named above should show up within the product's installation root directory. For example:
/opt/IBM/WebSphere/AppServer/updateinstaller/update
8. Start the updateInstaller using the following sequence of commands:
Windows-based systems
cd install_root \bin
setupCmdLine.bat
cd ..\updateinstaller
update.exe
UNIX- or Linux-based systems
cd install_root /bin
. ./setupCmdLine.sh
cd ../updateinstaller
./update
Note: The "dot-space" preceding the "dot-slash setupCmdLine.sh" is very important. The "dot-space" performs the "source" operation. Please be sure to type the command exactly as shown.
9. If the updateInstaller does not start, further action may be necessary. Refer to Part Two below for more details.
Part two: Manually clone the Java SDK (optional)
If the steps above did not resolve problems starting the updateInstaller, then it may be necessary to manually clone the Java SDK for use with the updateInstaller. Note that this should not be necessary under normal circumstances. Please verify that the steps in Part One were followed before resorting to this procedure.
If it is necessary to manually clone the Java SDK, please refer to technote 1214652 .
Extracting the updateInstaller or maintenance archive
The updateInstaller archive file and maintenance archives which contain the updateInstaller have been packed such that the updateInstaller files are archived in a subdirectory named "updateinstaller". This means that when the updateInstaller is extracted from an archive, the extraction process will automatically create the necessary "updateinstaller" directory. For example, when extracting the updateInstaller on a Windows-based system, the target extraction directory could be:
C:\Program Files\IBM\WebSphere\AppServer
Note that the targeted directory does NOT contain "updateinstaller" in the path. You must literally extract the archive into the product's main directory, and allow the extractor to automatically create the "updateinstaller" subdirectory.
The target installation directory varies depending on the product edition being updated:

  • If the product receiving the update is IBM HTTP Server V6 (IHS V6), then be sure to extract the content of the IBM HTTP Server maintenance into the installation directory for IBM HTTP Server V6. Do not extract the IBM HTTP Server maintenance into an application server installation directory! If you have accidentally extracted the IBM HTTP Server maintenance into an application server installation directory, please refer to technote 1214545 to correct this situation.
  • If the product receiving the update is the WebSphere Plugin Edition, then be sure to extract the content of the Plugin maintenance into the installation directory for the Plugin.
  • If the product receiving the update is WebSphere Application Server (Express, base, or Network Deployment), then extract the content of the application server maintenance into that product's installation directory.

Refer to the sections below for tips on extracting the updateInstaller on various platforms:
Tips for extracting on Windows-based systems
Extracting the updateInstaller or maintenance archive on Windows-based systems can be accomplished using third-party utilities such as WinZip. Here are some tips to keep in mind when extracting the zip contents:
  • When extracting the contents of the zip file, be sure to use the utility's "extract" function, specifying the installation directory of the targeted product.
  • Do NOT simply "drag and drop" the files from inside the zip into the destination directory, as this will not properly distribute the files from the zip into their proper destination subdirectories.
  • Do NOT create a subdirectory named "updateinstaller" then extract the files into that directory, as this may create an additional updateinstaller directory level. When the extraction process is handled properly, the extractor will automatically create the "updateinstaller" folder, so it is not necessary to create it beforehand.

Tips for extracting on UNIX- or Linux-based systems
The process of extracting on UNIX- or Linux-based systems varies depending on the operating system. This example procedure outlines the process for extracting the content of an updateInstaller .tar archive file:
  1. Download the updateInstaller .tar archive to a temporary directory. In this example, that temporary directory is called "/downloads", and the downloaded file is named "updateInstaller.tar"
  2. Change directory to the target directory for the WebSphere V6 product. In this example, that directory is called "/opt/IBM/WebSphere/AppServer"
    cd /opt/IBM/WebSphere/AppServer
  3. Execute the "tar" command to extract the content of the maintenance archive.
    tar xvf /downloads/updateInstaller.tar
  4. The updateInstaller is now extracted. Note that the updateInstaller content should show up in a subdirectory named "updateinstaller". The updateInstaller can be executed using a sequence of commands as shown below.
    cd /opt/IBM/WebSphere/AppServer/bin
    . ./setupCmdLine.sh
    cd /opt/IBM/WebSphere/AppServer/updateinstaller
    ./update
    Note: The "dot-space" preceding the "dot-slash setupCmdLine.sh" is very important. The "dot-space" performs the "source" operation. Please be sure to type the command exactly as shown.

四、总结:

  看了IBM的解释后就知道了,原来IBM把UpdateInstaller路径写死了,只要把压缩包解压到WAS安装路径下,通常是/usr/IBM/WebSphere/AppServer下就可以了。

分享到:
评论

相关推荐

    could not create the java virtual machine 解决办法

    根据题目提供的部分`eclipse.ini`文件内容,我们可以看到一些关键的JVM参数设置,这些设置对于解决“could not create the java virtual machine”问题至关重要。下面是具体的解决方案: 1. **调整内存参数**: - ...

    解决Nexus 3.XX Jdk版本问题

    No suitable Java Virtual Machine could be found on your system. The version of the JVM must be at least 1.8 and at most 1.8. Please define INSTALL4J_JAVA_HOME to point to a suitable JVM. 这里说的很...

    解决idea9 开机 jvm无法启动的错误

    总的来说,解决“开机jvm无法启动”的错误需要对问题进行定位,然后针对性地调整配置或更新相关组件。通过上述步骤,大多数情况下都能够成功修复这个问题,恢复正常的工作流程。记得在操作前备份重要数据,以免出现...

    Could not find agent

    标题 "Could not find agent" 提供的信息看似简短,但实际上是关于...通过以上步骤,你应该能够诊断并解决 "Could not find agent" 的问题。同时,温习相关的源码和工具使用知识,将有助于你更好地理解和应对这种问题。

    could not reserve enough space for object heap

    "could not reserve enough space for object heap" 是一个常见的Java虚拟机(JVM)启动时遇到的问题,这通常意味着JVM在尝试分配堆内存时遇到了不足的空间。这个问题涉及到Java内存管理和虚拟机配置,对于理解Java...

    could not find the main class,program will exit

    ### "Could Not Find the Main Class, Program Will Exit" 错误解析及解决方法 在Java编程过程中,我们经常会在开发环境中遇到各种各样的错误提示,其中“Could not find the main class, program will exit”是一...

    Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

    标题 "Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser" 提示了一个Java运行时错误,这通常意味着在尝试加载或初始化`JRStyledTextParser`类时遇到了问题。`JRStyledTextParser`是...

    environments was not found on the java.library.path: E:\\Program Files (x86)\\Java

    标题 "environments was not found on the java.library.path" 是一个典型的Java错误信息,它涉及到Java运行时环境中的库路径设置问题。这个错误通常出现在尝试加载本地系统库(.dll文件)时,而这些库没有在`java....

    WAS性能调优对jvm、线程数、ORB大小的配置

    在IT领域,特别是Java应用程序服务器管理中,WebSphere Application Server(WAS)是IBM提供的一款广泛应用的中间件。性能调优对于确保应用高效运行至关重要,尤其是对于处理高并发和大数据量的应用来说。本文将深入...

    JVM内存溢出问题解析

    JVM 内存溢出问题解析 JVM 内存溢出是指程序运行所需的内存大于虚拟机能提供的最大内存的情况。这种情况可能是由于数据量过大、死循环、静态变量和静态方法过多、递归、无法确定是否被引用的对象等原因引起的。同时...

    解决JVM中得PermGen spac问题

    解决 JVM 中的 PermGen space 问题 PermGen space(Permanent Generation space)是 JVM 中的一块永久保存区域,用于存放 Class 和 Meta 信息。当应用程序加载 Class 时,Class 就会被放入 PermGen space 区域中,...

    exe4j+Java版本32位和64位

    `exe4j`提供了选项来捆绑一个特定版本的JRE(例如,32位或64位),或者在没有合适JRE的情况下自动下载并安装。 3. **多平台支持** `exe4j`支持“胖”和“瘦”可执行文件模式。"胖"模式意味着`exe4j`会将整个JRE...

    Android Studio 报错failed to create jvm error code -4的解决方法

    安装完 Android Studio 后启动,却报错如下: 代码如下:failed to create jvm error code -4 这一般应是内存不够用所致,解决方法参考如下。 打开 Android Studio 安装目录下的bin目录,查找并打开文件 studio.exe....

    ecplise中启动Tomcat错误.not found on the java.library.path

    在使用Eclipse集成开发环境(IDE)启动Apache Tomcat服务器时,可能会遇到“not found on the java.library.path”这样的错误。这个错误通常涉及到Java的动态链接库(JNI)加载问题,与系统路径设置有关。本文将深入...

    监测JVM各项性能指标

    在Java开发领域,JVM(Java ...综上所述,理解和掌握JVM的监控技术,能够帮助开发者有效地诊断和解决性能问题,提高Java应用的稳定性和效率。通过持续监控和优化,我们可以确保JVM在各种工作负载下都能保持最佳状态。

    dbvisualizer

    mac破解版本,楼主自测可用上传。dbvisualizer9.5 mac破解版,任何问题可以楼下留言。

    关于tomcat乱码以及tomcat jvm 内存溢出问题的解决方案和理论

    标题中的“关于tomcat乱码以及tomcat jvm 内存溢出问题的解决方案和理论”涉及了两个关键的IT概念:Tomcat服务器的字符编码问题和Java虚拟机(JVM)内存管理的问题。让我们逐一深入探讨这两个主题。 首先,我们来...

    was使用及参数设置

    was使用及参数设置 was使用及参数设置 was使用及参数设置

    解决 Can not find the main class. Program will exit. 难题

    定期运行这些检查可以帮助提前发现并解决问题。 2. **遵循良好的编码习惯**:始终确保源文件名与公共类名一致,保持类路径清晰有序,避免不必要的混乱。 3. **持续更新开发环境**:随着技术的发展,新的JDK版本...

Global site tag (gtag.js) - Google Analytics