aspose file tools*
The moose likes Servlets and the fly likes mapping libraries in web.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "mapping libraries in web.xml?" Watch "mapping libraries in web.xml?" New topic

mapping libraries in web.xml?

emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

hi everyone,
i build a servlet which is supposed to send mail through javamail, the servlet itself is well mapped in the web.xml file,
but i cant find anywhere in the net about how to tell tomcat which libraries the servlet needs (mail.jar ; activation.jar in my case).
i guess they have to be mapped in the web.xml file but dont know how, any help??
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39578
No. Just put them into the WEB-INF/lib folder of the web app.

Ping & DNS - updated with new look and Ping home screen widget
emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

the first time one thing is easier than i thought it
I agree. Here's the link:
subject: mapping libraries in web.xml?
Similar Threads
unable to run servlets
does WIcketFilter process subclasses of HttpServlet ?
The requested resource is not available.
is web.xml compulsory
dispatcher.forward(req, res): not able to invoke the jsp page