Re: Newbie - JDBC problem Name is not bound in this context

2004-08-10 Thread d_l
On 9 Aug 2004 at 18:34, ohaya ohaya-at-cox.net |Tomcat User List| wrote: I'm assuming you meant Tomcat Administration, not Tomcat Manager :)... Sorry .. I did mean Tomcat Administration .. Ok, if I go to where you indicated, it shows all of the tree-type display of Contexts: / /admin

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread d_l
Can you clarify what version of Tomcat you are using? It seems that there is a configuration change .. from Tomcat4 to Tomcat5 .. the context goes in to \conf\Catalina\localhost\webappname.xml .. for each webapp. Here is a reference I found in my own digging around ..

RE: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread Shapira, Yoav
Hola, It seems that there is a configuration change .. from Tomcat4 to Tomcat5 .. NSS ;) There are definitely multiple configuration changes between the two, it's a major release after all. And I confirm that there is no webapps\examples\in my configuration .. replaced, it seems, by the two

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread ohaya
d_1, Answers/comments below, interspersed... Jim d_l wrote: Can you clarify what version of Tomcat you are using? d_1, I'm running Tomcat 5.0.27... It seems that there is a configuration change .. from Tomcat4 to Tomcat5 .. the context goes in to

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread QM
On Mon, Aug 09, 2004 at 09:29:51AM -0400, ohaya wrote: : BUT .. in my Tomcat 5.0.27 .. I only see three webappname.xml files in above : location .. : : admin.xml : balancer.xml : manager.xml : : no other webappname.xml files (context.xml files) show up such as If there is no

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread ohaya
QM wrote: On Mon, Aug 09, 2004 at 09:29:51AM -0400, ohaya wrote: : BUT .. in my Tomcat 5.0.27 .. I only see three webappname.xml files in above : location .. : : admin.xml : balancer.xml : manager.xml : : no other webappname.xml files (context.xml files) show up such as If

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread d_l
On 9 Aug 2004 at 9:29, ohaya ohaya-at-cox.net |Tomcat User List| wrote: As to your implied question above of why do I have all the .XML files, whereas you only have 3?, is it possible that whoever built the Tomcat installation created it that way? My 5.0.27 binary was straight out of the can

Re: Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread ohaya
From: d_l [EMAIL PROTECTED] Date: 2004/08/09 Mon AM 10:24:12 EDT To: [EMAIL PROTECTED] Subject: Re: Newbie - JDBC problem Name is not bound in this context On 9 Aug 2004 at 9:29, ohaya ohaya-at-cox.net |Tomcat User List| wrote: As to your implied question above of why do I have all

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread QM
On Mon, Aug 09, 2004 at 10:14:04AM -0400, ohaya wrote: : 1) Any idea why d_l has only the 3 .xml files in : [tomcat]/conf/[...], whereas I have a bunch? As I indicated in an : earlier msg, I didn't create them. : 2) When you and others refer to context.xml, are you referring to a : file that

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread d_l
On 9 Aug 2004 at 12:37, QM qm300-at-brandxdev.net |Tomcat User Li wrote: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html My previous message will make more sense then, and both of your questions should be answered. I referred to that same link in an earlier

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread ohaya
d_l wrote: On 9 Aug 2004 at 12:37, QM qm300-at-brandxdev.net |Tomcat User Li wrote: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html My previous message will make more sense then, and both of your questions should be answered. I referred to that same link

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread QM
On Mon, Aug 09, 2004 at 05:00:22PM -0400, ohaya wrote: : I just got back, and as I mentioned earlier, I unzipped the original : .ZIP file, and I guess at least PART of the mystery is solved. : Immediately after unzipping the file, I checked in the : conf\Catalina\localhost directory, and there

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread d_l
On 9 Aug 2004 at 17:00, ohaya ohaya-at-cox.net |Tomcat User List| wrote: Now the thing that I'm wondering is where did those others come from. At this point, it's clear that Tomcat must've created them (I'm 100% sure I didn't create them), at some point. I'm just not sure when or why...

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread ohaya
There are 2 ways for the {tomcat}/conf/{...}.xml files to be created: 1/ META-INF/context.xml is extracted from a WAR file when it is deployed and copied there. (Unless the matching XML file already exists under conf/, in which case the WAR file's context.xml is ignored) 2/ The

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-09 Thread ohaya
d_l wrote: On 9 Aug 2004 at 17:00, ohaya ohaya-at-cox.net |Tomcat User List| wrote: Now the thing that I'm wondering is where did those others come from. At this point, it's clear that Tomcat must've created them (I'm 100% sure I didn't create them), at some point. I'm just not sure

Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
Hi, I just got Tomcat 5.0.27 installed (with Apache 2.0.50), and am trying to get a simple JDBC JSP working. The JSP is called 'test.jsp'. I have the JDBC-ODBC bridge installed and am going through that. I've been using the bridge driver from standalone Java applications, so I think that is

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread Dennis Dai
On 8/7/2004 8:24 AM, ohaya wrote: Hi, I just got Tomcat 5.0.27 installed (with Apache 2.0.50), and am trying to get a simple JDBC JSP working. The JSP is called 'test.jsp'. I have the JDBC-ODBC bridge installed and am going through that. I've been using the bridge driver from standalone Java

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
I'm not a JNDI expert but you can try this: Context ic = new InitialContext(); Context ctx = (Context) ic.lookup(java:comp/env); DataSource ds = (DataSource) ic.lookup(jdbc/jimnew); Hi Dennis, I've been wrestling with this problem for most of today, and at this point, I don't think the

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread D'Alessandro, Arthur
Add a resourcelink to your context definition. -Original Message- From: ohaya [mailto:[EMAIL PROTECTED] Sent: Sat Aug 07 18:07:42 2004 To: Tomcat Users List Subject:Re: Newbie - JDBC problem Name is not bound in this context I'm not a JNDI expert but you can try this:

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
D'Alessandro, Arthur wrote: Add a resourcelink to your context definition. Arthur, I'm kind of (well, really) new to Tomcat, so could you clarify? Am I right that you mean to add that to the server.xml? At least with the distribution that I installed, which I posted with my original

RE: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread D'Alessandro, Arthur
Context cachingAllowed=true docBase=yourwebappname.war debug=99 path=/yourwebappname privileged=false reloadable=true swallowOutput=true ResourceLink name=jdbc/jimnew global=jdbc/jimnew type=javax.sql.DataSource/ /Context Either in your server.xml, or as 'context.xml' in your webapps /META-INF

Re: Newbie - JDBC problem Name is not bound in this context

2004-08-07 Thread ohaya
D'Alessandro, Arthur wrote: Context cachingAllowed=true docBase=yourwebappname.war debug=99 path=/yourwebappname privileged=false reloadable=true swallowOutput=true ResourceLink name=jdbc/jimnew global=jdbc/jimnew type=javax.sql.DataSource/ /Context Either in your server.xml, or as