This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to alter Classpath in the WebSphere Admin Console..

 
Micky Morgan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic