tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Vasquez" <i...@itos.uga.edu>
Subject Mail connections in Tomcat 5.0.25
Date Thu, 07 Oct 2004 21:05:32 GMT
I'm having problems setting a mail resource in Tomcat 5.0.25. The
problem can be reproduced as follows:

Install a new copy of 5.0.25
Place activation.jar and mail.jar (reference implementation) in
common/lib
Configure server.xml with a global resource just like the JNDI howto
describes.

    <Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
    <ResourceParams name="mail/Session">
      <parameter>
        <name>mail.smtp.host</name>
        <value>test.domain.edu</value>
      </parameter>
    </ResourceParams>

At startup, an attempt to create a resource instance will fail.

If the same steps are followed in 5.0.28, no problems occur.



javax.naming.NamingException: Cannot create resource instance
        at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact
ory.java:132)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
        at
org.apache.naming.NamingContext.lookup(NamingContext.java:791)
        at
org.apache.naming.NamingContext.lookup(NamingContext.java:151)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:155)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:160)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:125)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:97)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2291)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message