> From: AbelMacAdam [mailto:[EMAIL PROTECTED]
> Subject: Re: NamingException
>
> The context file contained the following entry:
>
More problems due to using old doc: the path and docBase attributes are
not allowed when using a META-INF/context.xml file. They will probably
p://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
p 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 bo
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
AOBase.getConnection: == context.lookup ==");
dataSource = (DataSource)
context.lookup("java:/comp/env/jdbc/myDataSource");
}
catch (NamingException e) {
logger.info("DAOBase.getConnection: == NamingException ==",
e.fillInStackTrace());
throw new D
nt stmt = conn.createStatement();
> > 17:ResultSet rset = stmt.executeQuery("select * from employee;");
> > ..
> >
> > As you can see, I'm just trying to get an example working.
> >
> > Thanks again for any help,
> > Kevin
> >
&
[EMAIL 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
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 t
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