I have used jdbc/DefaultDS. Added ResourceLink to
Catalina/localhost/webapp.xml.

<Context path="/partnerapp"
docBase="/usr2/tomcat/sso/apache-tomcat-6.0.18-sso/webapps/partnerapp"
         debug="99" reloadable="true" antiJARLocking="true"
antiResourceLocking="false" crossContext="true">
<ResourceLink global="jdbc/DefaultDS" name="jdbc/DefaultDS"
type="javax.sql.DataSource"/>
</Context>

And also added resource-ref to WEB-INF/web.xml.
---------------------------------------------------------------------


Mikolaj Rydzewski-2 wrote:
> 
> vramanaj wrote:
>> 1. Defined DataSource within GlobalNamingResources
>>            <Resource name="/DefaultDS"
>>   
> As already mentioned here, you should rather use jdbc/DefaultDS.
>>>     * add JNDI support to josso webapp (e.g. and ResourceLink to
>>>       META-INF/context.xml and resource-ref to WEB-INF/web.xml)
>>>     
> Did you miss this step? Since /josso webapp performs all magick with 
> usernames/passwords you need to allow it to access JNDI related
> information.
> 
> -- 
> Mikolaj Rydzewski <m...@ceti.pl>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-access-JNDI-resources-on-Tomcat-level-tp19672443p26590277.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to