facebook

Tomcat 5.5 & J2EE Library Deployment

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #267161 Reply

    Stuart McGrigor
    Participant

    The J2EE 1.4 Library Container includes (amongst others) mail.jar. Tomcat 5.5 doesn’t include it in any of it’s lib directories. So when I deploy my web project, I endup with a class not found exception when looking for javax.mail.MessagingException.

    So, as a work around, I have to create a UserLibrary consisting of the mail.jar file, and include it in my project to get it included in the deployment.

    How is it supposed to work?
    Regards,
    Stuart McGrigor

    #267207 Reply

    Riyad Kalla
    Member

    Stuart,
    I think the confusion is stemming from the issue that Tomcat is not a full J2EE or JEE container, it’s a Servlet container only. So if you are developing full J2EE/JEE applications you need to use a full EE server lik JBoss, Sun App Server, Glassfish, etc. otherwise you will need to deploy mail.jar and activation.jar (used by mail) to Tomcat’s common/lib directory yourself.

    Using a UserLibrary with the two JARs in it is actually a great workaround idea, just go to your project properties then MyEclipse > Web > Deployment and make sure you setup the deployment rules to deploy that User Library for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Tomcat 5.5 & J2EE Library Deployment

You must be logged in to post in the forum log in