to create DBCP.
I hope this help you.
Mariano
-Mensaje original-
De: AbelMacAdam [mailto:[EMAIL PROTECTED]
Enviado el: miercoles, 02 de enero de 2008 14:05
Para: users@tomcat.apache.org
Asunto: NamingException
I have a piece of code that should get me a dataSource (from an example
I'm
From: AbelMacAdam [mailto:[EMAIL PROTECTED]
Subject: Re: NamingException
The context file contained the following entry:
Context path=/app15a docBase=app15a reloadable=true debug=8
More problems due to using old doc: the path and docBase attributes are
not allowed when using a META-INF
: == context.lookup ==);
dataSource = (DataSource)
context.lookup(java:/comp/env/jdbc/myDataSource);
}
catch (NamingException e) {
logger.info(DAOBase.getConnection: == NamingException ==,
e.fillInStackTrace());
throw new DAOException();
}
[/code]
This is a piece of my
in
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
to create DBCP.
I hope this help you.
Mariano
-Mensaje original-
De: AbelMacAdam [mailto:[EMAIL PROTECTED]
Enviado el: miercoles, 02 de enero de 2008 14:05
Para: users@tomcat.apache.org
Asunto: NamingException
this help you.
Mariano
-Mensaje original-
De: AbelMacAdam [mailto:[EMAIL PROTECTED]
Enviado el: miercoles, 02 de enero de 2008 14:05
Para: users@tomcat.apache.org
Asunto: NamingException
I have a piece of code that should get me a dataSource (from an example I'm
playing with from a Struts
PROTECTED]:
Hello,
I'm trying to get a jsp to access a mysql database. I'm using the
preferred JNDI resources approach with Tomcat, but I keep getting
the
NamingException: Cannot create resource instance error. I know others
have posted with this error. I've read some of those posts
the
NamingException: Cannot create resource instance error. I know others
have posted with this error. I've read some of those posts, but
the solutions don't seem to fix the problem in my case.
I'm using FC5, MySql 5.0.22 and Apache Tomcat 5.5.15. I attach the
following files
a mysql database. I'm using the
preferred JNDI resources approach with Tomcat, but I keep getting the
NamingException: Cannot create resource instance error. I know others
have posted with this error. I've read some of those posts, but
the solutions don't seem to fix the problem in my case.
I'm