File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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?
-thembile
Steve Granton
Ranch Hand

Joined: Jan 13, 2002
Posts: 200
Hi,
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.
Cheers,
Steve
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.
-thembile.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WEB-INF/classes contents be JAR?
 
Similar Threads
Deploy EJB fails in WebLogic
WAR file search order: classes, lib, root?
Unable to find the class in EAR file
Using CachedRowSet
Declaring library dependency in war