File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 42965
No. Just put them into the WEB-INF/lib folder of the web app.
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?
jQuery in Action, 3rd edition