This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 8904

Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1844
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
Similar Threads
Weblogic 9.2 and custom JAAS config
Mysterious Spring Configuration Errors
How to deploy WAR file in weblogic 5.1
EJB and logging
Problem In Deploying servlets in JBoss4.2.2GA