File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Interview question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Interview question" Watch "Interview question" New topic
Author

Interview question

Saurabh Saha
Ranch Hand

Joined: Dec 08, 2004
Posts: 52
Hi All,
Interviewer asked me a question that can we put a class file outside the WEB-INF folder in the tomcat. Please tell me is it possible or not

Thanks
Vivek
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
will tell you all about classloading in Tomcat.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Ben,

Care to expand a bit on this point?

Thanks in advance...

Cheers,
Swamy
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
you can place class files that are used in one or more applications in either: CATALINA_HOME/common/classes, or CATALINA_HOME/shared/classes
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Ramaswamy Srinivasan:
Hi Ben,
Care to expand a bit on this point?
Thanks in advance...
Cheers,
Swamy


Yes.
In order to obtain a full working knowledge of classloading issues in Tomcat which is apparently what this employer was looking for in prospective employees, one should read all the documentation provided with Tomcat pertaining to classloading.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interview question