tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peng Tuck Kwok <pengt...@makmal.net>
Subject Re: javax.naming.NameNotFoundException: Name admin is not bound in this Context
Date Mon, 13 Jan 2003 09:44:56 GMT
The server.xml looks right .
What about the web.xml in your webapp ?
How does it look like ?

David Durst wrote:
>>The name is not defined correctly in that context.
>>What kind of a resource is it  ?
>>
> 
>        <Context path="/admin" docBase="sfadmin" debug="1">
>           <Resource name="jdbc/larco" auth="Container"
> type="javax.sql.DataSource"/>
>           <ResourceParams name="jdbc/larco">
>             <parameter><name>factory</name><value>org.apache.commons.dbcp.BasicDataSourceFactory</value></parameter>
>             <parameter><name>driverClassName</name><value>org.postgresql.Driver</value></parameter>
>             <parameter><name>url</name><value>jdbc:postgresql://127.0.0.1:5432/larco</value></parameter>
>             <parameter><name>maxActive</name><value>60</value></parameter>
>             <parameter><name>maxIdle</name><value>20</value></parameter>
>             <parameter><name>username</name><value>*****</value></parameter>
>             <parameter><name>password</name><value>*****</value></parameter>
>           </ResourceParams>
>         </Context>
> 
>>David Durst wrote:
>>
>>>Does anyone know what this is caused by?????
>>>I have admin/larco defined as a resource in server.xml
>>>and I am using the resource under admin.
>>>
>>>Why is this causing a problem????
>>>
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>><mailto:tomcat-user-unsubscribe@jakarta.apache.org> For additional
>>>commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>>>
>>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:tomcat-user-unsubscribe@jakarta.apache.org> For additional
>>commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 



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


Mime
View raw message