JavaMail through the exchange server

Posted on 2004-11-01
Last Modified: 2013-11-24
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(
      at javax.mail.Session.loadAllResources(
      at javax.mail.Session.loadProviders(
      at javax.mail.Session.<init>(
      at javax.mail.Session.getInstance(
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 ...


Question by:samers
    LVL 13

    Accepted Solution

    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
    LVL 1

    Author Comment

    The JDK version is 1.3.1_01 which I think is supporting JAVA Mail API's.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Prepare to Pass the CompTIA A+ 900 Series Exam

    CompTIA aims to adapt its A+ Certification to reflect the most current knowledge and skills needed by today's IT professionals--and this year's 2016 exam is harder than ever. This certification is one of the most highly-respected and sought after in IT.

    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

    857 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now