Hi!

It took a while before i found a way to put the ResourceLink in a context
where I felt it would be appropiate (using autoinstall so i don't have them
in my conf-files). In server.xml I created a default-context and viola! It
worked! :-)

Thanks for your help!

Regards
Roland


Den 04-10-26 13.39, skrev "David Smith" <[EMAIL PROTECTED]>:

> Any place within the <Context>...</Context> tags for your webapp is
> fine.  I don't believe these are validated against a DTD, so order isn't
> an issue.  The rest of your config looks good and should work.  Oh yeah
> -- and name your resources consistently.  If your name attribute in
> <Resource> is jdbc/loginDb, then it should be the same (case as well as
> spelling) in <Resource-Params>, <ResourceLink>, and <resource-ref>.
> 
> --David
> 
> Roland Carlsson wrote:
> 
>> Hello!
>> 
>> Thanks for your answer. I have no ResourceLink in my configuration. I
>> understand that I should put it a <Context>-tag but not where.
>> 
>> How does this affect the configuration I already have done? Is the use of
>> resource-ref and Resource correct?
>> 
>> Thanks in advance
>> Roland Carlsson
>> 
>> 
>> Den 04-10-26 11.25, skrev "Shinobu Kawai" <[EMAIL PROTECTED]>:
>> 
>>  
>> 
>>> Hi Roland,
>>> 
>>>    
>>> 
>>>> I'm trying to use the JNDI DataSource to administer my
>>>> database-connections.
>>>> But it seems like the DataSource doesn't get the properties I set. I get
>>>> the
>>>> following error:
>>>> 
>>>> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
>>>> class '' for connect URL 'null' (Full stacktrace below)
>>>> 
>>>> I have checked that the driver is there and I have re-read the
>>>> configuration
>>>> and documentation many times now but doesn't find anything wrong. What am I
>>>> missing?
>>>>      
>>>> 
>>>> ---- from GlobalNamingResources element in server.xml --------------------
>>>>      
>>>> 
>>> <snip />
>>> 
>>>    
>>> 
>>>> --------- from web-app element in web.xml --------------------
>>>>      
>>>> 
>>> <snip />
>>> 
>>>    
>>> 
>>>> ------ Full stacktrace of the exception -------------
>>>>      
>>>> 
>>> <snip />
>>> 
>>> Have you set the <ResourceLink>?
>>>    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html
>>>    
>>> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html
>>>    
>>> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Resource
>>> %2
>>> 0Links
>>> 
>>> Best regards,
>>> -- Shinobu Kawai
>>> 
>>> --
>>> Shinobu Kawai <[EMAIL PROTECTED]>
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>>    
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>>  
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to