0 Replies Latest reply on Feb 26, 2010 12:21 PM by mahaasri

    Javax.mail.MessageException:Exception reading response

      HI,

       

       

          Availlable reset password  fucntionality in jboss portal  is- when we  enter the username then  password will be generated automatically and same will be sent  to  registered mail id.   so that user will be able to see the generated password  sent to his mail id and  he can resuse it .

       

      i have been trying to use  same fucntionality  for this , i made changes in following  files.

       

      1)  jboss- service .xml

       

      <mbean
            code="org.jboss.portal.core.impl.mail.MailModuleImpl"
            name="portal:service=Module,type=Mail"
            xmbean-dd=""
            xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
            <xmbean/>
            <depends>jboss:service=Mail</depends>
            <depends>portal:service=Module,type=IdentityServiceController</depends>
            <attribute name="QueueCapacity">-1</attribute>
            <attribute name="Gateway">smtp.gmail.com:465</attribute>
            <attribute name="SmtpUser">jackrose@gmail.com </attribute>
            <attribute name="SmtpPassword">xyzqw</attribute>
            <attribute name="JavaMailDebugEnabled">true</attribute>
            <attribute name="SMTPConnectionTimeout">100000</attribute>
            <attribute name="SMTPTimeout">10000</attribute>
            <attribute name="JNDIName">java:portal/MailModule</attribute>
         </mbean>

       

      2)  identity-ui-confoguration.xml

       

      <

       

      subscription-mode>automatic</subscription-mode>

       

      <!--

      overwrite-workflow: overwrites existing process definitions

      -->

       

      <overwrite-workflow>false</overwrite-workflow>

       

      <!--

      email-domain: used in the email template sent for email verification

      -->

       

      <email-domain>jboss.org</email-domain>

       

      <!--

      email-from: sender address

      -->

       

      <email-from>do-no-reply@jboss.com</email-from>

       

       

      <!--

      password-generation-characters: characters used for generating a random password

      -->

       

      <password-generation-characters>0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWyYzZ*#!+-/"</password-generation-characters>

       

      <!--

      default-roles: roles set on user registration

      -->

       

      i have started the server and accessed the portal UI and clicked the Lost Password tab and i  entered the username  and then i clicked the sumbit .

      i have received the message " You will receive an e-mail with your new password." but in the  console   i have received the following errors.

       

       

      i have attached the error screen shot for the reference . please do let me know if you have any soltion on this .