tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Fisher <dfis...@jmlafferty.com>
Subject Re: Tomcat migration from T5 to T5.5 mail
Date Tue, 30 Sep 2008 16:18:45 GMT
Hi,

Just a thought, but you might want to check the permissions on the jar  
files. I've gotten errors like that when I lacked permission to read.

Regards,
Dave

On Sep 30, 2008, at 6:54 AM, AlexM3 wrote:

>
> Hello,
>
> Firt of all thanks for your fast answer.
>
> - My Java versiĆ³n is jdk1.5.0_06, it's the same that is using the  
> old Tomcat
> 5 and it works. Anyway I've tried to remove aplication.jar and an  
> error asks
> for him.
>
> - I've tested my linux system "mail" function and it works, the  
> aplication
> deployed in Tomcat 5 works too.
>
> - My context.xml is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- The contents of this file will be loaded for each web  
> application -->
> <Context>
>        <Resource name="mail/Session" auth="Container"
>                    type="javax.mail.Session"
>                    mail.smtp.host="localhost"/>
>
> </Context>
>
> - What i've done to configure the mail is the same as your guide  
> Albretch
> says:
> 1. Copy mail.jar and activation.jar to $CATALINA_HOME/common/lib
> 2. Edit context.xml and add the ressource mail/Session:
>
> <Resource name="mail/Session" auth="Container"  
> type="javax.mail.Session"
> mail.smtp.host="localhost"/>
>
> 3. Edit web.xml and add the resource-ref:
>
> <resource-ref>
>  <description>
>    Resource reference to a factory for javax.mail.Session
>    instances that may be used for sending electronic mail
>    messages, preconfigured to connect to the appropriate
>    SMTP server.
>  </description>
>  <res-ref-name>
>    mail/Session
>  </res-ref-name>
>  <res-type>
>    javax.mail.Session
>  </res-type>
>  <res-auth>
>    Container
>  </res-auth>
> </resource-ref>
>
> 4. The code is written and tested.
>
> Any idea?
> -- 
> View this message in context: http://www.nabble.com/Tomcat-migration-from-T5-to-T5.5-mail-tp19739822p19740598.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message