Topic
  • 2 replies
  • Latest Post - ‏2003-05-05T15:59:42Z by SystemAdmin
SystemAdmin
SystemAdmin
37421 Posts

Pinned topic Newbie: RMIC not found during app installation

‏2003-05-01T18:16:59Z |
Hello,

I'm trying to get a simple stateless session bean running on websphere
4.0.5 (default installation on Solaris 8). I have coded the ejb and
constructed the ejb-jar using the application assembler. When I attempt to
generate code for deployment in the app assembly tool or install from the
command-line using SEAppInstall, I get an error with RMIC as follows:

/opt/WebSphere/AppServer/bin/SEAppInstall.sh -install
fundstransfer-ejb.jar -interactive false > out.txt 2&>1

aIBM WebSphere Application Server Release 4, AEs
J2EE Application Installation Tool, Version 1.0
Copyright IBM Corp., 1997-2001

The -configFile option was not specified. Using /opt/WebSphere/AppServer/config/server-cfg.xml
Loading Server Configuration from /opt/WebSphere/AppServer/config/server-cfg.xml
Server Configuration Loaded Successfully
Loading /opt/WebSphere/FundsTransfer/fundstransfer-ejb.jar
No Display Name was specified. Using fundstransfer-ejb.jar as the default.
Created Wrapper EAR File named fundstransfer-ejb.ear for EJB Jar File /opt/WebSphere/FundsTransfer/fundstransfer-ejb.jar
Getting Expansion Directory for EAR File
Expanding EAR File to /opt/WebSphere/AppServer/installedApps/fundstransfer-ejb.ear

Deploying All EJBs in /opt/WebSphere/FundsTransfer/fundstransfer-ejb.ear to temporary directory.
EJBDeploy Cleanup the expanded directory /var/tmp/fundstransfer-ejb_ear
EJBDeploy Deploy module fundstransfer-ejb.jar
EJBDeploy Starting workbench.
EJBDeploy Creating the project.
EJBDeploy Creating EJB Project...
EJBDeploy Creating EJB Project... Opening: /fundstransfer-ejb.jar.
EJBDeploy Creating EJB Project...
EJBDeploy Creating EJB Project... Setting classpath...
EJBDeploy Creating EJB Project...
EJBDeploy Updating.
EJBDeploy Importing JAR..META-INF/ejb-jar.xml
EJBDeploy Importing JAR..META-INF/ibm-ejb-jar-bnd.xmi
EJBDeploy Importing JAR..META-INF/ibm-ejb-jar-ext.xmi
EJBDeploy Updating.
EJBDeploy Generating deployment code
EJBDeploy Processing session bean: FundsTransfer
EJBDeploy Building: /fundstransfer-ejb.jar.
EJBDeploy Invoking Java Builder on /fundstransfer-ejb.jar.
EJBDeploy Scrubbing output folder
EJBDeploy Analyzing packages
EJBDeploy Analyzing sources
EJBDeploy Compiling content of ejbModule/com/tf/olb
EJBDeploy Copying all resources on the classpath
EJBDeploy Build done.
EJBDeploy Java build completed
EJBDeploy Invoking RMIC.
EJBDeploy An unexpected exception was thrown. Halting execution. Severity 2
EJBDeploy Shutting down workbench.
EJBDeploy Error generating RMI code: Cannot run RMIC because it is not installed. Expected location of RMIC is the following: On the system PATH..
EJBDeploy RMIC command was:
EJBDeploy rmic -keep -iiop -nowrite -d /var/tmp/_.fundstransfer-ejb.jar./fundstransfer-ejb.jar/ejbModule -classpath /var/tmp/.fundstransfer-ejb.jar./fundstransfer-ejb.jar/bin:/var/tmp/.fundstransfer-ejb.jar._/fundstransfer-ejb.jar/ejbModule:/var/tmp/fundstransfer-ejb_ear/fundstransfer-ejb_source.jar:/opt/WebSphere/AppServer/java/jre/lib/rt.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/activation.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjcefw.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjc
EJBDeploy eprovider.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjsse.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmorb.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmpkcs.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/local_policy.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/mail.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/US_export_policy.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjlog.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjsse-debug.jar:/opt/WebSphere/AppServer/lib/csicpi.j
EJBDeploy ar:/opt/WebSphere/AppServer/lib/ejbcontainer.jar:/opt/WebSphere/AppServer/lib/ivjejb35.jar:/opt/WebSphere/AppServer/lib/j2ee.jar:/opt/WebSphere/AppServer/lib/ras.jar:/opt/WebSphere/AppServer/lib/utils.jar:/opt/WebSphere/AppServer/lib/vaprt.jar:/opt/WebSphere/AppServer/lib/cm.jar: -sourcepath /var/tmp/_.fundstransfer-ejb.jar._/fundstransfer-ejb.jar/bin com.tf.olb.EJSRemoteStatelessFundsTransferHome com.tf.olb.EJSRemoteStatelessFundsTransfer
java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
at com.ibm.websphere.install.se.SEApplicationInstaller.deployBeans(SEApplicationInstaller.java:798)
at com.ibm.websphere.install.se.SEApplicationInstaller.install(SEApplicationInstaller.java:711)
at com.ibm.websphere.install.se.SEApplicationInstaller.execute(SEApplicationInstaller.java:590)
at com.ibm.websphere.install.se.SEApplicationInstaller.main(SEApplicationInstaller.java:555)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)

However, echo $PATH from the shell where this was called from gives:
/opt/WebSphere/AppServer/java/ibm_bin:/opt/WebSphere/AppServer/java/bin/:/opt/WebSphere/AppServer/java/jre/bin:/usr/sbin:/usr/bin

Which clearly contains rmic. A 'which rmic' from the same shell results in
/opt/WebSphere/AppServer/java/ibm_bin/rmic.

Anybody got any idea what's going on here?
TIA,

charles

Updated on 2003-05-05T15:59:42Z at 2003-05-05T15:59:42Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Newbie: RMIC not found during app installation

    ‏2003-05-02T16:25:48Z  
    On Thu, 01 May 2003 14:16:59 +0000, cd wrote:

    > Hello,
    >
    > I'm trying to get a simple stateless session bean running on websphere
    > 4.0.5 (default installation on Solaris 8). I have coded the ejb and
    > constructed the ejb-jar using the application assembler. When I attempt to
    > generate code for deployment in the app assembly tool or install from the
    > command-line using SEAppInstall, I get an error with RMIC as follows:
    >
    > /opt/WebSphere/AppServer/bin/SEAppInstall.sh -install
    > fundstransfer-ejb.jar -interactive false > out.txt 2&>1
    >
    > aIBM WebSphere Application Server Release 4, AEs
    > J2EE Application Installation Tool, Version 1.0
    > Copyright IBM Corp., 1997-2001
    >
    > The -configFile option was not specified. Using /opt/WebSphere/AppServer/config/server-cfg.xml
    > Loading Server Configuration from /opt/WebSphere/AppServer/config/server-cfg.xml
    > Server Configuration Loaded Successfully
    > Loading /opt/WebSphere/FundsTransfer/fundstransfer-ejb.jar
    > No Display Name was specified. Using fundstransfer-ejb.jar as the default.
    > Created Wrapper EAR File named fundstransfer-ejb.ear for EJB Jar File /opt/WebSphere/FundsTransfer/fundstransfer-ejb.jar
    > Getting Expansion Directory for EAR File
    > Expanding EAR File to /opt/WebSphere/AppServer/installedApps/fundstransfer-ejb.ear
    >
    > Deploying All EJBs in /opt/WebSphere/FundsTransfer/fundstransfer-ejb.ear to temporary directory.
    > EJBDeploy Cleanup the expanded directory /var/tmp/fundstransfer-ejb_ear
    > EJBDeploy Deploy module fundstransfer-ejb.jar
    > EJBDeploy Starting workbench.
    > EJBDeploy Creating the project.
    > EJBDeploy Creating EJB Project...
    > EJBDeploy Creating EJB Project... Opening: /fundstransfer-ejb.jar.
    > EJBDeploy Creating EJB Project...
    > EJBDeploy Creating EJB Project... Setting classpath...
    > EJBDeploy Creating EJB Project...
    > EJBDeploy Updating.
    > EJBDeploy Importing JAR..META-INF/ejb-jar.xml
    > EJBDeploy Importing JAR..META-INF/ibm-ejb-jar-bnd.xmi
    > EJBDeploy Importing JAR..META-INF/ibm-ejb-jar-ext.xmi
    > EJBDeploy Updating.
    > EJBDeploy Generating deployment code
    > EJBDeploy Processing session bean: FundsTransfer
    > EJBDeploy Building: /fundstransfer-ejb.jar.
    > EJBDeploy Invoking Java Builder on /fundstransfer-ejb.jar.
    > EJBDeploy Scrubbing output folder
    > EJBDeploy Analyzing packages
    > EJBDeploy Analyzing sources
    > EJBDeploy Compiling content of ejbModule/com/tf/olb
    > EJBDeploy Copying all resources on the classpath
    > EJBDeploy Build done.
    > EJBDeploy Java build completed
    > EJBDeploy Invoking RMIC.
    > EJBDeploy An unexpected exception was thrown. Halting execution. Severity 2
    > EJBDeploy Shutting down workbench.
    > EJBDeploy Error generating RMI code: Cannot run RMIC because it is not installed. Expected location of RMIC is the following: On the system PATH..
    > EJBDeploy RMIC command was:
    > EJBDeploy rmic -keep -iiop -nowrite -d /var/tmp/_.fundstransfer-ejb.jar./fundstransfer-ejb.jar/ejbModule -classpath /var/tmp/.fundstransfer-ejb.jar./fundstransfer-ejb.jar/bin:/var/tmp/.fundstransfer-ejb.jar._/fundstransfer-ejb.jar/ejbModule:/var/tmp/fundstransfer-ejb_ear/fundstransfer-ejb_source.jar:/opt/WebSphere/AppServer/java/jre/lib/rt.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/activation.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjcefw.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjc
    > EJBDeploy eprovider.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjsse.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmorb.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmpkcs.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/local_policy.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/mail.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/US_export_policy.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjlog.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjsse-debug.jar:/opt/WebSphere/AppServer/lib/csicpi.j
    > EJBDeploy ar:/opt/WebSphere/AppServer/lib/ejbcontainer.jar:/opt/WebSphere/AppServer/lib/ivjejb35.jar:/opt/WebSphere/AppServer/lib/j2ee.jar:/opt/WebSphere/AppServer/lib/ras.jar:/opt/WebSphere/AppServer/lib/utils.jar:/opt/WebSphere/AppServer/lib/vaprt.jar:/opt/WebSphere/AppServer/lib/cm.jar: -sourcepath /var/tmp/_.fundstransfer-ejb.jar._/fundstransfer-ejb.jar/bin com.tf.olb.EJSRemoteStatelessFundsTransferHome com.tf.olb.EJSRemoteStatelessFundsTransfer
    > java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
    > at com.ibm.websphere.install.se.SEApplicationInstaller.deployBeans(SEApplicationInstaller.java:798)
    > at com.ibm.websphere.install.se.SEApplicationInstaller.install(SEApplicationInstaller.java:711)
    > at com.ibm.websphere.install.se.SEApplicationInstaller.execute(SEApplicationInstaller.java:590)
    > at com.ibm.websphere.install.se.SEApplicationInstaller.main(SEApplicationInstaller.java:555)
    > at java.lang.reflect.Method.invoke(Native Method)
    > at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
    >
    >
    >
    > However, echo $PATH from the shell where this was called from gives:
    > /opt/WebSphere/AppServer/java/ibm_bin:/opt/WebSphere/AppServer/java/bin/:/opt/WebSphere/AppServer/java/jre/bin:/usr/sbin:/usr/bin
    >
    > Which clearly contains rmic. A 'which rmic' from the same shell results in
    > /opt/WebSphere/AppServer/java/ibm_bin/rmic.
    >
    > Anybody got any idea what's going on here?
    >
    >
    > TIA,
    >
    > charles

    Anybody out there? Same results calling ejbdeploy directly from an ant
    script. I'm really at the end of my rope on this one... The
    WAS_HOME/bin/setupCmdLine.sh script appears to handle the path inclusion
    correctly, but I still get this message.

  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Newbie: RMIC not found during app installation

    ‏2003-05-05T15:59:42Z  
    On Thu, 01 May 2003 14:16:59 +0000, cd wrote:

    > Hello,
    >
    > I'm trying to get a simple stateless session bean running on websphere
    > 4.0.5 (default installation on Solaris 8). I have coded the ejb and
    > constructed the ejb-jar using the application assembler. When I attempt to
    > generate code for deployment in the app assembly tool or install from the
    > command-line using SEAppInstall, I get an error with RMIC as follows:
    >
    > /opt/WebSphere/AppServer/bin/SEAppInstall.sh -install
    > fundstransfer-ejb.jar -interactive false > out.txt 2&>1
    >
    > aIBM WebSphere Application Server Release 4, AEs
    > J2EE Application Installation Tool, Version 1.0
    > Copyright IBM Corp., 1997-2001
    >
    > The -configFile option was not specified. Using /opt/WebSphere/AppServer/config/server-cfg.xml
    > Loading Server Configuration from /opt/WebSphere/AppServer/config/server-cfg.xml
    > Server Configuration Loaded Successfully
    > Loading /opt/WebSphere/FundsTransfer/fundstransfer-ejb.jar
    > No Display Name was specified. Using fundstransfer-ejb.jar as the default.
    > Created Wrapper EAR File named fundstransfer-ejb.ear for EJB Jar File /opt/WebSphere/FundsTransfer/fundstransfer-ejb.jar
    > Getting Expansion Directory for EAR File
    > Expanding EAR File to /opt/WebSphere/AppServer/installedApps/fundstransfer-ejb.ear
    >
    > Deploying All EJBs in /opt/WebSphere/FundsTransfer/fundstransfer-ejb.ear to temporary directory.
    > EJBDeploy Cleanup the expanded directory /var/tmp/fundstransfer-ejb_ear
    > EJBDeploy Deploy module fundstransfer-ejb.jar
    > EJBDeploy Starting workbench.
    > EJBDeploy Creating the project.
    > EJBDeploy Creating EJB Project...
    > EJBDeploy Creating EJB Project... Opening: /fundstransfer-ejb.jar.
    > EJBDeploy Creating EJB Project...
    > EJBDeploy Creating EJB Project... Setting classpath...
    > EJBDeploy Creating EJB Project...
    > EJBDeploy Updating.
    > EJBDeploy Importing JAR..META-INF/ejb-jar.xml
    > EJBDeploy Importing JAR..META-INF/ibm-ejb-jar-bnd.xmi
    > EJBDeploy Importing JAR..META-INF/ibm-ejb-jar-ext.xmi
    > EJBDeploy Updating.
    > EJBDeploy Generating deployment code
    > EJBDeploy Processing session bean: FundsTransfer
    > EJBDeploy Building: /fundstransfer-ejb.jar.
    > EJBDeploy Invoking Java Builder on /fundstransfer-ejb.jar.
    > EJBDeploy Scrubbing output folder
    > EJBDeploy Analyzing packages
    > EJBDeploy Analyzing sources
    > EJBDeploy Compiling content of ejbModule/com/tf/olb
    > EJBDeploy Copying all resources on the classpath
    > EJBDeploy Build done.
    > EJBDeploy Java build completed
    > EJBDeploy Invoking RMIC.
    > EJBDeploy An unexpected exception was thrown. Halting execution. Severity 2
    > EJBDeploy Shutting down workbench.
    > EJBDeploy Error generating RMI code: Cannot run RMIC because it is not installed. Expected location of RMIC is the following: On the system PATH..
    > EJBDeploy RMIC command was:
    > EJBDeploy rmic -keep -iiop -nowrite -d /var/tmp/_.fundstransfer-ejb.jar./fundstransfer-ejb.jar/ejbModule -classpath /var/tmp/.fundstransfer-ejb.jar./fundstransfer-ejb.jar/bin:/var/tmp/.fundstransfer-ejb.jar._/fundstransfer-ejb.jar/ejbModule:/var/tmp/fundstransfer-ejb_ear/fundstransfer-ejb_source.jar:/opt/WebSphere/AppServer/java/jre/lib/rt.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/activation.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjcefw.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjc
    > EJBDeploy eprovider.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjsse.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmorb.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmpkcs.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/local_policy.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/mail.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/US_export_policy.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjlog.jar:/opt/WebSphere/AppServer/java/jre/lib/ext/ibmjsse-debug.jar:/opt/WebSphere/AppServer/lib/csicpi.j
    > EJBDeploy ar:/opt/WebSphere/AppServer/lib/ejbcontainer.jar:/opt/WebSphere/AppServer/lib/ivjejb35.jar:/opt/WebSphere/AppServer/lib/j2ee.jar:/opt/WebSphere/AppServer/lib/ras.jar:/opt/WebSphere/AppServer/lib/utils.jar:/opt/WebSphere/AppServer/lib/vaprt.jar:/opt/WebSphere/AppServer/lib/cm.jar: -sourcepath /var/tmp/_.fundstransfer-ejb.jar._/fundstransfer-ejb.jar/bin com.tf.olb.EJSRemoteStatelessFundsTransferHome com.tf.olb.EJSRemoteStatelessFundsTransfer
    > java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
    > at com.ibm.websphere.install.se.SEApplicationInstaller.deployBeans(SEApplicationInstaller.java:798)
    > at com.ibm.websphere.install.se.SEApplicationInstaller.install(SEApplicationInstaller.java:711)
    > at com.ibm.websphere.install.se.SEApplicationInstaller.execute(SEApplicationInstaller.java:590)
    > at com.ibm.websphere.install.se.SEApplicationInstaller.main(SEApplicationInstaller.java:555)
    > at java.lang.reflect.Method.invoke(Native Method)
    > at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
    >
    >
    >
    > However, echo $PATH from the shell where this was called from gives:
    > /opt/WebSphere/AppServer/java/ibm_bin:/opt/WebSphere/AppServer/java/bin/:/opt/WebSphere/AppServer/java/jre/bin:/usr/sbin:/usr/bin
    >
    > Which clearly contains rmic. A 'which rmic' from the same shell results in
    > /opt/WebSphere/AppServer/java/ibm_bin/rmic.
    >
    > Anybody got any idea what's going on here?
    >
    >
    > TIA,
    >
    > charles

    Anybody out there? Same results calling ejbdeploy directly from an ant
    script. I'm really at the end of my rope on this one... The
    WAS_HOME/bin/setupCmdLine.sh script appears to handle the path inclusion
    correctly, but I still get this message.

    "cd" <charlesNOSPAM_d@mail.com> writes:

    > > EJBDeploy Error generating RMI code: Cannot run RMIC because
    > > it is not installed. Expected location of RMIC is the
    > > following: On the system PATH..
    > >
    > > However, echo $PATH from the shell where this was called from gives:
    > > /opt/WebSphere/AppServer/java/ibm_bin:/opt/WebSphere/AppServer/java/bin/:/opt/WebSphere/AppServer/java/jre/bin:/usr/sbin:/usr/bin
    > >
    > > Which clearly contains rmic. A 'which rmic' from the same shell
    > > results in /opt/WebSphere/AppServer/java/ibm_bin/rmic.
    >
    > Anybody out there? Same results calling ejbdeploy directly from an
    > ant script. I'm really at the end of my rope on this one... The
    > WAS_HOME/bin/setupCmdLine.sh script appears to handle the path
    > inclusion correctly, but I still get this message.

    This kind of exception appears when running ejbdeploy with the wrong
    JVM. On my Linux, if I forget to switch my PATH and JAVA_HOME to the
    IBM jdk (so I remain with Sun's one), I get this error.

    So check your JAVA_HOME too (and export JAVA_HOME), and try a
    symbolic link of rmic from java/ibm_bin in java/bin.

    Good luck
    Yves Martin