tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Whitmore" <thom...@connectorsystems.co.nz>
Subject Re: Creating a context and deploying a new application on the fly.
Date Fri, 19 May 2006 01:22:19 GMT
Hi David,

Looks like there may be a problem with your Context Resource code.
>From your programmatic configuration:

>            ContextResource resource = new ContextResource();
>            resource.setName("jdbc/reference");

>From your commented 'origin' example:

>            <Resource name="jdbc/unikommerce" auth="Container" 
>                             type="javax.sql.DataSource" 

Try setting the ContextResource.Name as per your original; assuming the 'origin' example is
what your app was coded to work with and that you are re-implementing this from XML to a programmatic
config,  the mis-matched name would be erroneous.

Hi Yoav.


Cheers,
Thomas

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message