| Francesc Dalmau |
Mon Jul 21 08:53:12 BST 2008 |
| |
Hi,
How can i solve this exception?
"ServletException: Name primrose is not bound in this Context" (primrose is the name of the pool)
I think i've configured everithig as the documentation says, but i'm not able to load a very simple jsp:
POOL
<%
//Trying to load a connection
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:comp/env/primrose");
Connection c = ds.getConnection();
%>
HELLO!
The pool is working correctly because i've seen 3 connections waiting to be used in the Web Console, so i supose the configuration is ok.
I'm using a tomcat 5.5 on a Windows XP Pro SP2
What can i do?
Thank you very much. |
| |