Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using JAVA Mail

 
Ali Haider
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • 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
  • 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
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • 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.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • 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
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also --- check out the Other Java API's forum a lot of JavaMail discussions go on there.
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic