Sorry for the late response.  I’m so busy with my work during weekdays that I only have much time to check the discussion forum and continue studying JAVA (with Passion of course!) during weekends. Now, the solution to my problem. Since I had a hard time enabling GLASSFISH2 in NETBEANS 6.5 and I encountered errors using GLASSFISH V3 Prelude. I upgraded my IDE to NETBEANS 6.7. I also changed the CLASSPATH so that JAVA MAIL jars will be in front of J2EE jar. Based on my research in the internet, there's already SMTPTransport class in J2EE.jar. If the path for J2EE.jar is in front of JAVA MAIL jars, errors would occur during runtime.  My solution is just as simple as that!  I'm now able to use JAVA MAIL in NETBEANS without any problem. In my experience as a systems analyst/programmer, the quickest solution is always second to the best solution.  My solution may not be the best but the bottom line is that it served my purpose.

 

Ray

Below were the errors I encountered during runtime when I was using GLASSFISH V3 Prelude.

SEVERE: javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
        java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
SEVERE:         at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1339)
SEVERE:         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:420)
SEVERE:         at javax.mail.Service.connect(Service.java:310)
SEVERE:         at javax.mail.Service.connect(Service.java:169)
SEVERE:         at javax.mail.Service.connect(Service.java:118)

Jun 30, 2009 10:48:06 PM, [email protected] wrote:
Hi ALL,
 
  I think we are all in learning phase so it will be better if we will post the solution too....
 
 
Thanks
Java GURU'S

On Tue, Jun 30, 2009 at 2:15 PM, <[email protected]> wrote:

Hi Everyone,

Please disregard my previous email regarding GlasshFish. I already found a solution to my problem.

Sorry for the bother.

Thanks.

Ray




Jun 28, 2009 02:25:52 PM, [email protected] wrote:

Once GLASSFISH V3 Prelude is installed in NETBEANS 6.5, is it possible to also install the lower version that is GLASSFISH V2 ? I tried to do it but I have a problem registering a domain in the lower version.  The PLATFORM FOLDER LOCATION COULD NOT BE FOUND and the button to register the local default domain is not selectable.  I also uninstall GLASSFISH VERSION 3 and then install VERSION 2 under PLUGINS. The installation was successfull but I still experienced the same problem. I noticed that the button for registering a domain is only active/selectable for Version 3 that was in the first installation. I spent hours solving this problem but was not successfull.  Any ideas?

My main intention is to use GLASSFISH V2 instead of V3.

Thanks in advance.

Ray


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to