JavaMail through the exchange server

I'm using these :

OS Win2k prof.
DB : Oracle (Oracle Workflow DataBase)
My mail Server : Exchange server

i create a main class using the javaMail for sending email, this class is mainly located in jar file to be used by the ORacle Workflow listner for the external java.

when i test the class on my machine the class goes fine and sending the email, but when i put it in the jar file and let all the jar files that related to this class able to see by this class. the class throw an error as the following:

"the Following Exception has been thrown: java.lang.UnsatisfiedLinkError: doPrivileged
java.lang.UnsatisfiedLinkError: doPrivileged
      at javax.mail.SecuritySupport12.getContextClassLoader(SecuritySupport12.java:24)
      at javax.mail.Session.loadAllResources(Session.java:1061)
      at javax.mail.Session.loadProviders(Session.java:864)
      at javax.mail.Session.<init>(Session.java:188)
      at javax.mail.Session.getInstance(Session.java:210)
      at ae.mil.eforces.hr.workflow.ext.Notify.execute(Notify.java:100)
      at oracle.apps.fnd.wf.WFStandardQueue.executeFunction(WFStandardQueue.java)
      at oracle.apps.fnd.wf.WFFALsnr.listen(WFFALsnr.java)
      at oracle.apps.fnd.wf.WFFALsnr.main(WFFALsnr.java)
return false"

When i tried to see which line is the error i found that the error is throw on this stmt:

" Session session = Session.getInstance(properties,null);   "

Plz if any one can help me in this issue asap ...

Regards




LVL 1
samersAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

petmagdyCommented:
it seems that Oracle Workflow engine has an Older JDK that dosn'y support Java mail libraries, what is Oracle workflow JDK version?

if it is old their is a work arround to solve this problem
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
samersAuthor Commented:
The JDK version is 1.3.1_01 which I think is supporting JAVA Mail API's.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.