Jetspeed 2
  1. Jetspeed 2
  2. JS2-1256

ForgottenPasswordPortlet fails due to classloader issues

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2
    • Component/s: None
    • Labels:
      None

      Description

      Excerpt from user mailinglist:

      "I'm trying to use the forgotten password portlet. and I have the following
      exception:
      Failed to send forgotten password email to user with email address because
      Mail server connection failed; nested exception is
      javax.mail.NoSuchProviderException: Unable to locate provider for protocol:
      smtp]"

      I think that should be fixed in PortalAdministrationImpl.java.
      As the Session implementation of geronimo-javamail prefers thread context classloader, that provider loading problem occurs when j2-admin portlet invokes the service.
      Someone already provided a reasonable solution for multiple applications environment by setting thread context classloader to null temporarily. [1]
      We can do the same technique in PortalAdministrationImpl.java.

      [1] http://apache-geronimo.328035.n3.nabble.com/Trouble-with-Geronimo-s-javax-mail-under-OSGi-td858884.html

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Woonsan Ko
            Reporter:
            Woonsan Ko
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development