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.
I am facing a strange problem in tomcat web server. I am using custom beans for storing information obtained from users while registering with my site. When I save the bean class file in Web-inf\classes directory, the server cannot access the bean but when the same bean is saved in a JAR file in package hierarchy in Web-inf\lib, the same is easily accessed by server. Why does this happen ?
Hi vishwas, believe me it is happening because you must have complied the bean use that package. Bobby ;-}
Author and all-around good cowpoke
Joined: Mar 22, 2000
"But it is still not detected if I put it in classes directory without a package. Why does this happen." Thats just the way the class loader works, if it sees a plain Thingee.class reference it looks in the "current" directory, which for Tomcat is certainly not the WEB-INF/classes directory Bill