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:52:44 GMT
Sure it won't work.
Check out the res-ref-name. Here you claim it is admin/larco , but in 
server.xml you tell tomcat it is jdbc/larco. So if you do a lookup for 
jdbc/larco or admin/larco the name is not bound to the context. 
admin/larco should be jdbc/larco.
Make the changes and see if it works.

David Durst wrote:
>>The server.xml looks right .
>>What about the web.xml in your webapp ?
>>How does it look like ?
> 
> The strange thing is, I don't have it defined in the web.xml.
> 
> That is because as soon as I do it I got a jdbc connection 'null' can't be
> loaded or something like that.
> 
> But I had it working w/ out it for the last 3 hours.
> 
> Now it won't work.
> 
> but here is the web.xml nyways
> 
> <web-app>
> <!--  <resource-ref>
>     <description>postgreSQL Datasource example</description>
>     <res-ref-name>admin/larco</res-ref-name>
>     <res-type>javax.sql.DataSource</res-type>
>     <res-auth>Container</res-auth>
>   </resource-ref> -->
> </web-app>
> 
> 
> 
> 
> --
> 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