Limitations of running Java applications that connect to WebSphere servers
WebSphere Application Server has a restriction that all Java applications that use the WebSphere client to connect to enterprise beans running on a WebSphere server must use the same level of the IBM Java ORB that was used to build the WebSphere client.
If you do not use the same ORB level, you may receive an error like the following when running the client application:
java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/GIOPVersionExceptionTo ensure that the correct ORB level is used, you can do one of the following:
- Run the client application using the WebSphere JRE:
- Open the Launch Configurations dialog box using the Run > Run or Run > Debug menu items in the Debug perspective.
- Select the Java Application Launch Configuration that you want to edit.
- Go to the JRE page and select the appropriate WebSphere JRE .
- Apply the changes.
- Run the client application with any JRE as long as you ensure that the matching ORB level is used:
- Open the Launch Configurations dialog box using the Run > Run or Run > Debug menu items in the Debug perspective.
- Select the Java Application Launch Configuration that you want to edit.
- Go to the Arguments page and add the following to the VM Arguments field: -Xbootclasspath/p:runtime_installdir\java\jre\lib\ext\ibmorb.jar where runtime_installdir is the directory containing the runtime, e.g., x:\runtimes\base_v5, where x is the installation directory where this product is installed.
- Apply the changes.