aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes servlet in both WEB-INF/lib and WEB-INF/classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlet in both WEB-INF/lib and WEB-INF/classes" Watch "servlet in both WEB-INF/lib and WEB-INF/classes" New topic
Author

servlet in both WEB-INF/lib and WEB-INF/classes

Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
if a servlet exist in both WEB-INF/classes and WEB-INF/lib/servlets.jar,which one is given preference i.e which servlet will handle the request
[ April 02, 2008: Message edited by: Joshua Antony ]

SCJP,SCWCD, Into ATG now!
Karthigeyan Kannabiran
Greenhorn

Joined: Sep 08, 2006
Posts: 5
The servlet from WEB-INF/classes.


Thanks & Regards<br />Karthik
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39542
    
  27
Needless to say, it is not a good idea to keep multiple versions of a class in your classpath.


Ping & DNS - updated with new look and Ping home screen widget
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: servlet in both WEB-INF/lib and WEB-INF/classes
 
Similar Threads
JSP as webservice client
tld
tld
What are required in a WAR file
ejb