File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Problem accessing classes from /WEB-INF/classes directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem accessing classes from /WEB-INF/classes directory" Watch "Problem accessing classes from /WEB-INF/classes directory" New topic

Problem accessing classes from /WEB-INF/classes directory

bksella sella
Ranch Hand

Joined: Jul 31, 2003
Posts: 32
I have packaged my struts program into a .war file format and have deployed teh same in weblogic 7.0. But when i try to access any of the classes in the directory /WEB-INF/classes, i get this exception : ClassNotFoundException. But when i package the classes directory in a separate jar file and add it to weblogic classpath, it works fine. I am not able to understand, why my application is not able to read the class files from the directory /WEB-INF/classes in my web archive ( .war file ) ?
Thanks in advance.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1868
Try unzipping the war file and check out the name for the WEB-INF folder.
Is it WEB-INF or web-inf. This problem happens expecially with the windows platform
I agree. Here's the link:
subject: Problem accessing classes from /WEB-INF/classes directory
jQuery in Action, 3rd edition