aspose file tools*
The moose likes Websphere and the fly likes How to alter Classpath in the WebSphere Admin Console.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "How to alter Classpath in the WebSphere Admin Console.." Watch "How to alter Classpath in the WebSphere Admin Console.." New topic
Author

How to alter Classpath in the WebSphere Admin Console..

Micky Morgan
Greenhorn

Joined: Sep 20, 2006
Posts: 19
I have deployed a web application on WebSphere 6.0.2.
There is a jar file in our webapp which conflicts with WebSphere's jar file of _same_ name. Meaning, if we replace WebSphere's jar file with our jar file, the application works OK.

If I do that, it affects every other web application which I want to avoid by any means.

Is there anyway to set it using WebSphere' Admin Console or whereever...so that my webapp uses my jar file for my web application?

Any help is appreciated...
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

What you want to do is to repackage your application, and place the new war file in one of a few places:

1. in the war/ear itself (best option)
2. in the websphere\lib\app folder
3. in the websphere\lib folder

Give this article on configuring classloaders with WebSphere a read. It will explain the PARENT_FIRST and PARENT_LAST configurations, and how you can get WebSphere to read from your jar files, and not WebSphere's.

J2EE & WebSphere Classloaders Demystified: How to Configure and Package your J2EE Applications

Good luck!

-Cameron McKenzie
 
jQuery in Action, 2nd edition
 
subject: How to alter Classpath in the WebSphere Admin Console..