aspose file tools*
The moose likes JSP and the fly likes Problem using JAVA Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem using JAVA Mail" Watch "Problem using JAVA Mail" New topic
Author

Problem using JAVA Mail

Ali Haider
Greenhorn

Joined: Feb 21, 2001
Posts: 25
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

Joined: May 06, 2002
Posts: 160
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


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
Ali Haider
Greenhorn

Joined: Feb 21, 2001
Posts: 25
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

Joined: May 06, 2002
Posts: 160
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

Joined: Nov 27, 2001
Posts: 1561
Hi Shawn.
Can you explain to me what the "activation.jar" file does... I have no clue and I probably need it.
thanks


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Also --- check out the Other Java API's forum a lot of JavaMail discussions go on there.


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
Nate Johnson
Ranch Hand

Joined: May 13, 2002
Posts: 301
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 ]

scwcd, scjd, scjp<br /><a href="http://natejohnson.us" target="_blank" rel="nofollow">http://natejohnson.us</a><br /><a href="http://rice.kuali.org" target="_blank" rel="nofollow">http://rice.kuali.org</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem using JAVA Mail