Skip to main content

How to run a Web project that depends on a Java utility


Technote (FAQ)


Question

How do you run a Web project in IBM WebSphere Application Developer that depends on a Java utility?

Cause

A Web application contains JSPs and Servlets that depend on some Java utility classes. You put the approriate utility JAR into the Web project's Java build path; however, when you run the JSPs or Servlets in the WebSphere test environment, you receive a "class not found" error.

Answer

Steps to run a Web project that depend on a Java utility:

  1. Force the the WebSphere Test Environment to pick up the required utility classes during runtime by adding the appropriate utility JAR to the Enterprise Application project.
  2. Then, for each module, edit the Java JAR Dependencies from the properties page, and select the required JAR file to be available as a dependent JAR.

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

WebSphere Studio Application Developer

Web Development and design


Software version:
5.0


Operating system(s):
Linux, Windows


Reference #:
1106086


Modified date:
2012-01-27

Translate my page

Content navigation