• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem using JAVA Mail

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I was using JAVA Mail component using Jrun. It was working fine. Now I deployed the project on tomcat and using JAVA Mail there. Its not working. Its giving a datasource activation error. Jrun was running on windows platfrom whereas, tomcat is running on a unix machine. reply soon.
Thanks
Ali
 
Author
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ali Haider:
Hi all,
I was using JAVA Mail component using Jrun. It was working fine. Now I deployed the project on tomcat and using JAVA Mail there. Its not working. Its giving a datasource activation error. Jrun was running on windows platfrom whereas, tomcat is running on a unix machine. reply soon.
Thanks
Ali


I'd need more information to debug the problem fully, but perhaps the problem is just that you need to add activation.jar, the JAR for the JavaBeans Activation Framework, to your application's classpath (e.g., to the WEB-INF/lib directory). The activation.jar will be necessary to use JAF... and perhaps it was already available in your first container. You can get activation.jar from the JavaSoft web site -- specifically,
http://java.sun.com/products/javabeans/glasgow/jaf.html
 
Ali Haider
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you shawn. I'll try to include the file in the web-inf/lib directory. I just need to ask one more question that do I have to copy the file in the tomcat/lib directory or do I have to copy the file in mysite/web-inf/lib directory. One more thing, will it work without even adding the jar file in the classpath variable? i don't have access to classpath variable. Version of tomcat I'm using is 3.2.4
Thanks again shawn
bye
Ali
 
Shawn Bayern
Author
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ali Haider:
Thank you shawn. I'll try to include the file in the web-inf/lib directory. I just need to ask one more question that do I have to copy the file in the tomcat/lib directory or do I have to copy the file in mysite/web-inf/lib directory. One more thing, will it work without even adding the jar file in the classpath variable? i don't have access to classpath variable. Version of tomcat I'm using is 3.2.4


Hi again. While keeping in mind that I'm just guessing based on the info you gave, the solution I'm proposing would involve simply dropping the 'activation.jar' file into your web application's WEB-INF/lib directory.
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shawn.
Can you explain to me what the "activation.jar" file does... I have no clue and I probably need it.
thanks
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also --- check out the Other Java API's forum a lot of JavaMail discussions go on there.
 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat is just a servlet container, so EJBs would not work, but I use JavaMail under Tomcat for quite a few applications. If you are asking if it will work, then yes, but I couldn't say if tomcat "supports" JavaMail.
[ August 02, 2002: Message edited by: Nate Johnson ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic