You can configure a Java™ EE application that uses WebSphere® eXtreme Scale Client to run in an application server other than WebSphere Application Server in Eclipse.
About this task
The following procedure was tested with Apache Tomcat and
JBoss Application Server. The instructions also apply to other application
servers.
Procedure
- Add WebSphere eXtreme Scale runtime
library to your Java EE build
path.
- . Click New.
- Enter a User library name of eXtremeScaleClient, and click OK.
- Click Add Jars..., and select
the wxs_home/lib/ogclient.jar file. Click Open.
- Optional: To add Javadoc, select Javadoc location and click Edit.... Enter your
local download location.
- Click OK.
- Click OK to close out the User
Libraries dialog.
- Click .
- Click Java Build Path.
- Click Add Library.
- Select User Library. Click Next.
- Check the eXtremeScaleClient library
and click Finish.
- Click OK to close the Project Properties dialog.
- Add Java EE application
projects to the server.
- Ensure that you are in the Java EE perspective and click the Servers tab in
the bottom pane. You can also click .
- Right-click in the Servers pane, and choose .
- Choose
your application server. Click Next.
- Click Browse... Select the root
directory of your application server. Click OK.
- Click Next.
- Select your Java EE application project in the left Available pane and click Add > to move it to the right Configured pane on the server, and click Finish.
- Resolve any remaining errors for the Project. Use the following steps to eliminate errors in the Problems pane:
- Click . Click OK. Build
the project.
- Right-click on the Java EE project, and choose .
- Click the Libraries tab. Ensure that Apache Tomcat or your other application server,
eXtremeScaleClient, and JRE are on the path.
- Create a run configuration to run your application.
- From the Run menu, select Run Configurations.
- Right-click the Java Application category and select New.
- Select the new run configuration, named New_Configuration.
- Configure the profile.
- Project (on main tabbed page): your_project_name
- Main Class (on main tabbed page): your_main_class
- VM arguments (on arguments tabbed page): -Djava.endorsed.dirs=wxs_home/lib/endorsed
Problems with the VM arguments often
occur because the path to the java.endorsed.dirs directory must be an absolute path with no variables or shortcuts.
- Click Apply and close the window,
or click Run.
Results
You can now run your Java EE application that uses
WebSphere eXtreme Scale Client in Eclipse.