File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 agree. Here's the link:
subject: WEB-INF/classes contents be JAR?
It's not a secret anymore!