This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Websphere and the fly likes WEB-INF/classes contents be JAR? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Websphere
Bookmark "WEB-INF/classes contents be JAR?" Watch "WEB-INF/classes contents be JAR?" New topic

WEB-INF/classes contents be JAR?

Thembile Mzantsi
Ranch Hand

Joined: Aug 06, 2002
Posts: 58
Hi All,
Can the contents of the WAR file WEB-INF/classes directory contain jars? It seems that if I try to override a class in the lib folder by placing a jar in this this folder it does not quite work.
In 4.0.3 ibm added a new version of ActionServlet in the WEB-INF/classes folder however they did not modify the manifest file in WEB-INF/lib/seadmin_code.jar to include this new path. How do I do this? adding a .class class path in the manifest file? I am getting VerifyErrors as a result, I think?
Steve Granton
Ranch Hand

Joined: Jan 13, 2002
Posts: 200
In my experience any JAR file even if it is part of your application should go in the lib folder. The classes folder is just for unjarred classes.
Theoretically, you could unjar all the jars in the lib in to the classes folder and the application would work fine. It would be a fairly pointless exercise though.
Thembile Mzantsi
Ranch Hand

Joined: Aug 06, 2002
Posts: 58
thanks for the responses,
I upgraded to WAS 5.0 pre-release and I no longer had to deal with this problem.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: WEB-INF/classes contents be JAR?
It's not a secret anymore!