This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Interview question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Interview question
 
Similar Threads
3 sec response time!, a question for the architects
errata on page 447
regarding exception and the overriding
Client side design
Need Book Info