gro
Aug 26th, 2005, 02:37 AM
Hi, I've been very pleased to work with spring javaMail classes and I got those working for simple non-secure smtp server quite easily. Finally when I started to move the component to production I just tought I'ld add some extra lines to applicationContext and it would work with TSL or SSL enabled server.
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderIm pl">
<property name="host"><value>mail.server.address</value></property>
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">true</prop>
</props>
</property>
<property name="username"><value>username</value></property>
<property name="password"><value>password</value></property>
<property name="port"><value>465</value></property>
<property name="protocol"><value>SSL</value></property>
</bean>
Unfortunately with this configuration it seems to lock when normal mail client is asked to verify server (accept the mac-address as a key). Is there something wrong with my configuration and is there any way to set timeout? At least I get no error messages in any logs.
I also made the MailSender-bean MBean, I connected the bean with Jconsole and tried to form a connection to server. This way I got an error message, unfortunately, the almost nothing of the stacktrace fits into the error box of the Jconsole, but here is what it says:
Problem Invoking dolt: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: org.springframework.mail.MailSendException (no security manager: RMI class loader disabled)
I'd be very happy if you could offer me some insight.
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderIm pl">
<property name="host"><value>mail.server.address</value></property>
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">true</prop>
</props>
</property>
<property name="username"><value>username</value></property>
<property name="password"><value>password</value></property>
<property name="port"><value>465</value></property>
<property name="protocol"><value>SSL</value></property>
</bean>
Unfortunately with this configuration it seems to lock when normal mail client is asked to verify server (accept the mac-address as a key). Is there something wrong with my configuration and is there any way to set timeout? At least I get no error messages in any logs.
I also made the MailSender-bean MBean, I connected the bean with Jconsole and tried to form a connection to server. This way I got an error message, unfortunately, the almost nothing of the stacktrace fits into the error box of the Jconsole, but here is what it says:
Problem Invoking dolt: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: org.springframework.mail.MailSendException (no security manager: RMI class loader disabled)
I'd be very happy if you could offer me some insight.