Re: jndi question

2005-08-25 Thread Brian Cook
Although this is now scorned, it's still valid. The 2 other methods are contextname.xml as you say, and also META-INF/context.xml within the webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject:

Re: jndi question

2005-08-25 Thread Sean Rowe
methods are contextname.xml as you say, and also META-INF/context.xml within the webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi question Ok but do you have the resource defined in

Re: jndi question

2005-08-25 Thread Sean Rowe
webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi question Ok but do you have the resource defined in context.xml? If you go to <>/conf/Cataliana/localhost/ do you see a file

Re: jndi question

2005-08-25 Thread Brian Cook
Host element. Although this is now scorned, it's still valid. The 2 other methods are contextname.xml as you say, and also META-INF/context.xml within the webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomca

Re: jndi question

2005-08-25 Thread Brian Cook
I thought of that but his code samples and configs are consitant with both the 5.0 and 5.5 docs. Which Tomcat 5? The configuration for the 5.0 series is not necessarily the same as in 5.5. - To unsubscribe, e-mail: [EMA

Re: jndi question

2005-08-25 Thread Sean Rowe
right! sorry, it's 5.5.9 Caldarale, Charles R wrote: From: Sean Rowe [mailto:[EMAIL PROTECTED] Subject: Re: jndi question tomcat 5, and jdk 1.5 Which Tomcat 5? The configuration for the 5.0 series is not necessarily the same as in 5.5. - Chuck THIS COMMUNICATION MAY CO

RE: jndi question

2005-08-25 Thread Caldarale, Charles R
> From: Sean Rowe [mailto:[EMAIL PROTECTED] > Subject: Re: jndi question > > tomcat 5, and jdk 1.5 Which Tomcat 5? The configuration for the 5.0 series is not necessarily the same as in 5.5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MAT

Re: jndi question

2005-08-25 Thread Sean Rowe
NF/context.xml within the webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi question Ok but do you have the resource defined in context.xml? If you go to <>/conf/Cataliana/localhost/ do

Re: jndi question

2005-08-25 Thread Brian Cook
ginal Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi question Ok but do you have the resource defined in context.xml? If you go to <>/conf/Cataliana/localhost/ do you see a file with the name of the module ending

Re: jndi question

2005-08-25 Thread Sean Rowe
d, it's still valid. The 2 other methods are contextname.xml as you say, and also META-INF/context.xml within the webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi ques

Re: jndi question

2005-08-25 Thread haim
Hi I had the same problem and I managed to make this work when following this post http://forums.devshed.com/archive/t-120081 The only problem is that it works when a deploy a war file. When I try using this out of Eclipse (I am running tomcat using sysdeo plug-in) it makes problems. Let me

RE: jndi question

2005-08-25 Thread Allistair Crossley
ailto:[EMAIL PROTECTED] > Sent: 25 August 2005 14:39 > To: Tomcat Users List > Subject: Re: jndi question > > > Sean, > > One thing that stands out in your message is that the conext.xml file > was placed in the META-INF folder. Is it also in < Folder>>/con

Re: jndi question

2005-08-25 Thread Brian Cook
F/context.xml within the webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi question Ok but do you have the resource defined in context.xml? If you go to <>/conf/Cataliana/l

Re: jndi question

2005-08-24 Thread Sean Rowe
this is now scorned, it's still valid. The 2 other methods are contextname.xml as you say, and also META-INF/context.xml within the webapp itself. Allistair. -Original Message- From: Brian Cook [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re

Re: jndi question

2005-08-23 Thread Brian Cook
[mailto:[EMAIL PROTECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi question Ok but do you have the resource defined in context.xml? If you go to <>/conf/Cataliana/localhost/ do you see a file with the name of the module ending with .xml? If so is the resource

Re: jndi question

2005-08-23 Thread Sean Rowe
ECTED] Sent: 23 August 2005 17:23 To: Tomcat Users List Subject: Re: jndi question Ok but do you have the resource defined in context.xml? If you go to <>/conf/Cataliana/localhost/ do you see a file with the name of the module ending with .xml? If so is the resource defined in that f

RE: jndi question

2005-08-23 Thread Allistair Crossley
.xml within the webapp itself. Allistair. > -Original Message- > From: Brian Cook [mailto:[EMAIL PROTECTED] > Sent: 23 August 2005 17:23 > To: Tomcat Users List > Subject: Re: jndi question > > > > Ok but do you have the resource defined in context.xml? If you go

Re: jndi question

2005-08-23 Thread Brian Cook
ined in both web.xml and context.xml. In looking at the code snip it in the first post I am not following what you are trying to do. The post is for a JNDI question but in the code it looks like you are calling the DB URL directly. The whole point of JDNI being to get specific URL, and configur

Re: jndi question

2005-08-23 Thread Sean Rowe
2005 16:45 To: Tomcat Users List Subject: Re: jndi question thank you, i will Allistair Crossley wrote: If you could please send 1. server.xml 2. web.xml 3. context.xml or yourwebapp.xml 4. list of files in common/lib 5. list of files in yourwebapp/WEB-INF/lib I'd be happy to see

Re: jndi question

2005-08-23 Thread Sean Rowe
e calling it but does not show web.xml or context.xml. The error you are getting just means that that the JNDI resource being called in the code is not defined in both web.xml and context.xml. In looking at the code snip it in the first post I am not following what you are trying to do. The p

RE: jndi question

2005-08-23 Thread Allistair Crossley
be to move the JNDI datasource Resource configuration block into the Context block. See how you get on, Allistair. > -Original Message- > From: Sean Rowe [mailto:[EMAIL PROTECTED] > Sent: 23 August 2005 16:45 > To: Tomcat Users List > Subject: Re: jndi question > >

Re: jndi question

2005-08-23 Thread Brian Cook
looking at the code snip it in the first post I am not following what you are trying to do. The post is for a JNDI question but in the code it looks like you are calling the DB URL directly. The whole point of JDNI being to get specific URL, and configuration info outside of the code base. I am

Re: jndi question

2005-08-23 Thread Sean Rowe
Rowe [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 16:41 To: Tomcat Users List Subject: Re: jndi question no, that didn't help. thanks though. could this maybe be a class problem? am i using the wrong jar files? i can list the files i'm using if anyone thinks it might be the prob

RE: jndi question

2005-08-23 Thread Allistair Crossley
ent: 23 August 2005 16:41 > To: Tomcat Users List > Subject: Re: jndi question > > > no, that didn't help. thanks though. > > could this maybe be a class problem? am i using the wrong > jar files? i > can list the files i'm using if anyone thinks it might be

Re: jndi question

2005-08-23 Thread Sean Rowe
xception nE) { // log somewhere } catch (NullPointerException npE) { // log somewhere } Does that work for you? Allistair -Original Message- From: Sean Rowe [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 16:29 To: Tomcat Users List Subject: Re: jndi question Brian, thank you for re

RE: jndi question

2005-08-23 Thread Allistair Crossley
gust 2005 16:29 > To: Tomcat Users List > Subject: Re: jndi question > > > Brian, thank you for replying. I was afraid my topic was > dead. If you > could look at my first post, I listed all the files that you have > suggested I take a look at. I have done everything yo

Re: jndi question

2005-08-23 Thread Sean Rowe
nd wrote: Sean, --- Ursprüngliche Nachricht --- Von: Sean Rowe <[EMAIL PROTECTED]> An: Tomcat Users List Betreff: Re: jndi question Datum: Mon, 22 Aug 2005 09:24:10 -0500 Thanks for responding Dirk. I've practically memorized the documentation on the link you sent: //

Re: jndi question

2005-08-23 Thread Brian Cook
use jstl, I would really like to know. I was hoping to put the code in a class somewhere that my servlets could use. thanks, sean Dirk Weigenand wrote: Sean, --- Ursprüngliche Nachricht --- Von: Sean Rowe <[EMAIL PROTECTED]> An: Tomcat Users List Betreff: Re: jndi question Datum

Re: jndi question

2005-08-22 Thread Sean Rowe
te: Sean, --- Ursprüngliche Nachricht --- Von: Sean Rowe <[EMAIL PROTECTED]> An: Tomcat Users List Betreff: Re: jndi question Datum: Mon, 22 Aug 2005 09:24:10 -0500 Thanks for responding Dirk. I've practically memorized the documentation on the link you sent: // Obtain o

Re: jndi question

2005-08-22 Thread Sean Rowe
( and i really have followed the directions in the link you gave me), I can't seem to get it to work. I must be missing something, but I can't seem to find it. Dirk Weigenand wrote: Sean, --- Ursprüngliche Nachricht --- Von: Sean Rowe <[EMAIL PROTECTED]> An: Tomca

Re: jndi question

2005-08-22 Thread Dirk Weigenand
Sean, > --- Ursprüngliche Nachricht --- > Von: Sean Rowe <[EMAIL PROTECTED]> > An: Tomcat Users List > Betreff: Re: jndi question > Datum: Mon, 22 Aug 2005 09:24:10 -0500 > > Thanks for responding Dirk. I've practically memorized the > documentation on th

Re: jndi question

2005-08-22 Thread Sean Rowe
to trying it the way I posted): javax.naming.NameNotFoundException: Name java:comp is not bound in this Context Any ideas? Thanks again. Sean Dirk Weigenand wrote: Hi Sean, --- Ursprüngliche Nachricht --- Von: Sean Rowe <[EMAIL PROTECTED]> An: tomcat-user@jakarta.apache.org Betreff: jndi question Datum: Mon

Re: jndi question

2005-08-22 Thread Dirk Weigenand
Hi Sean, > --- Ursprüngliche Nachricht --- > Von: Sean Rowe <[EMAIL PROTECTED]> > An: tomcat-user@jakarta.apache.org > Betreff: jndi question > Datum: Mon, 22 Aug 2005 01:26:49 -0500 > > I have tried for several hours now to get connection pooling for my > MySql d

jndi question

2005-08-21 Thread Sean Rowe
I have tried for several hours now to get connection pooling for my MySql database to work, but have been unable to do so. I keep getting this error: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.commons.dbcp.BasicDataSourceFactory I checked to make sure this

RE: JNDI question

2004-08-09 Thread Shapira, Yoav
ilto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 2:37 PM >To: 'Tomcat Users List' >Subject: JNDI question > >Hello > >I am using Tomcat 5 with JNDI(mysql) > >Are there ways to get usages info from the POOL > >Like active connections, max connecti

JNDI question

2004-08-09 Thread Randy Paries
Hello I am using Tomcat 5 with JNDI(mysql) Are there ways to get usages info from the POOL Like active connections, max connections (basically the state of the DB Pool) Thanks for any help - To unsubscribe, e-mail: [EMAIL

RE: JNDI Question

2004-06-21 Thread Benson Margulies
Have a look at http://issues.apache.org/bugzilla/show_bug.cgi?id=29584. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

JNDI Question

2004-06-21 Thread Worley Brent - bworle
Forgive me for being a newbie, but here is a question regarding JNDI. I have my server.xml configured and my web.xml configured for a resource named xyz. xyz is a custom object factory contained within class files (currently under WEB-INF/classes/xyz/). The error I'm getting is this: Caused by:

RE: JNDI question

2004-05-27 Thread Mike Curwen
closing a connection that you obtained through a pooled DataSource will merely return it to the pool, and not actually close it. > -Original Message- > From: Randy [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 27, 2004 3:55 PM > To: 'Tomcat Users List' > Subject: RE:JNDI question > >

Re: Tomcat/Ant/JNDI question

2003-06-17 Thread Tim Shaw
The Resource is specified, in the server.xml, with a name. This is the JNDI name and is used to refer to the resource from wherever you like. The setup of the resource is done by the ResourceParams (I hope you didn't copy my example verbatim ;-) The web.xml is just abstracting that reference fo

Re: Tomcat/Ant/JNDI question

2003-06-17 Thread Garrett Dangerfield
I tried this and it's not giving me the "not found in Context" message, but it's now trying to pass me a null connection. I think the problem is that it doesn't know where to get the connection from. With the ResourceLink in the server.xml Context, one specifies the name one wants to use local

Re: Tomcat/Ant/JNDI question

2003-06-17 Thread Tim Shaw
This works for me ... web.xml : Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. jdbc/SessionDB

Re: Tomcat/Ant/JNDI question

2003-06-17 Thread Garrett Dangerfield
I tried this and it's not working. It's saying: Name jdbc not found in this context In my web.xml, I put in: jdbc/DataWarehouse jdbc/DataWarehouse javax.sql.DataSource In my server.xml, I have: Am I missing something? Thanks Garrett Dangerfield. Shapira, Yoav wrote: Howdy, -

RE: Tomcat/Ant/JNDI question

2003-06-17 Thread Shapira, Yoav
Howdy, >- put the equivalent of ResourceEnvRef into the web.xml inside the web app See the element in the Servlet Specification, v2.3, SRC.13.1. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential,

Tomcat/Ant/JNDI question

2003-06-17 Thread Garrett Dangerfield
I have defined a GlobalNamingResource for a database connection and that works great if I put a ResourceEnvRef in the Context in the server.xml. However, I have a problem. If I deploy my app using ant and it's deply task, it removes the ResourceEnvRef portion of my Context. I see two possible

RE: Newbie mod_webapp/Oracle/jndi question

2002-01-09 Thread Martin van den Bemt
proxy module in apache of course ;) -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 15:05 To: Tomcat Users List Subject: RE: Newbie mod_webapp/Oracle/jndi question About the apache to tomcat directly to the httpconnector : use

RE: Newbie mod_webapp/Oracle/jndi question

2002-01-09 Thread Martin van den Bemt
To: [EMAIL PROTECTED] Subject: Newbie mod_webapp/Oracle/jndi question I'm new to the jndi part of J2EE and to tomcat. I have my app almost working in tomcat, but it needs to use Oracle. I have a sample servlet that connects to the Oracle database just fine, but only if I connect directly t

Re: Newbie mod_webapp/Oracle/jndi question

2002-01-08 Thread lmarcus
nuary 08, 2002 4:47 PM Subject: Newbie mod_webapp/Oracle/jndi question > I'm new to the jndi part of J2EE and to tomcat. I have my app almost > working in tomcat, but it needs to use Oracle. I have a sample > servlet that connects to the Oracle database just fine, but only i

Newbie mod_webapp/Oracle/jndi question

2002-01-08 Thread Barry Roberts
I'm new to the jndi part of J2EE and to tomcat. I have my app almost working in tomcat, but it needs to use Oracle. I have a sample servlet that connects to the Oracle database just fine, but only if I connect directly to the tomcat server's http connector. If I hit the servlet (below) throught

New Bie JNDI question

2001-12-13 Thread Bhamidi Krishna
Hi, I am using Tomcat 4.0.1 on W2K and trying to use JNDI datasource. I have configured datasource as described in the JNDI Resources, yet cannot seem to get my JDBC connection going. I keep getting a null connection. I looked through the lists, but could not get a proper solution. Can someon

Re: AW: JNDI question

2001-10-26 Thread Mike Givens
I was having the same problem, but finally figured it out. I'm using Tomcat 4.0.1 and accessing my jsp pages through Apache using the Warp connector. I found it important to put the JNDI DataSource definition under the correct connector in the server.xml configuration file. So, to access the DataS

Re: AW: JNDI question

2001-10-26 Thread P.Miller
OTECTED]] > > Gesendet: Donnerstag, 25. Oktober 2001 11:46 > > An: [EMAIL PROTECTED] > > Betreff: JNDI question > > > > > > Hi evryone > > > > I have a question about how JNDI works in Tomcat 4.0.1 > > How can i set

AW: JNDI question

2001-10-26 Thread Nottebrok, Guido
che Nachricht- > Von: Jaime Garcia Bonis [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 25. Oktober 2001 11:46 > An: [EMAIL PROTECTED] > Betreff: JNDI question > > > Hi evryone > > I have a question about how JNDI works in Tomcat 4.0.1 > How can i s

JNDI question

2001-10-25 Thread Jaime Garcia Bonis
Hi evryone I have a question about how JNDI works in Tomcat 4.0.1 How can i set up a JNDI naming repository in order to create a datasource??? In the server.xml i have this: userscott passwordtiger driverClassName oracle.j

Re: Tomcat 4 and JNDI Question

2001-09-02 Thread Andrew
I have the same problem: how I can configure JNDI? - Original Message - From: "G.C. Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 02, 2001 8:20 AM Subject: Tomcat 4 and JNDI Question > How can I set > java.naming.factory.initia

Tomcat 4 and JNDI Question

2001-09-01 Thread G.C. Miller
How can I set java.naming.factory.initial java.naming.provider.url java.naming.factory.url.pkgs I have tried putting a jndi.properties file in common/classes, common/lib, WEB-INF/classes, and WEB-INF/lib - didn't work. I have also tried modifing catalina.sh as below else $JAVA_HOME/bin/jav