This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 42959
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
It is sorta covered in the JavaRanch Style Guide.
subject: mapping libraries in web.xml?
It's not a secret anymore!