Re: Name jdbc is not bound in this Context error

2005-02-22 Thread U K Laxmi
Hi Antony, I downloaded postgres and installed on my m/c. I installed it as a service. Can you pls give step by step instruction as how to connect to postgresql database. Thank you so much. --- Antony Paul [EMAIL PROTECTED] wrote: You can name it the name of the context(web). The content

Re: Name jdbc is not bound in this Context error

2005-02-22 Thread Antony Paul
In fact I hadnt installed it in windlws. You can connect to server suing psql. it will be in the bin directory. There is one GUI front end available PgAdmin. The documentation will be in doc directory. This contains installation, administration and tutorials on SQL. For further you can ask

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
It seems you still have problem. You can google for the answer. One thing I know is GlobalNamingResources should come inside the Server element and not inside Context element. rgds Antony Paul On Fri, 18 Feb 2005 22:47:06 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote: I could able to get

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread U K Laxmi
As just moved the GlobalNamingResources inside the main server in my server.xml residing in TOMCAT_HOME/conf directory. When i restart tomcat 5.5.7 it's throwing up following exception. INFO: Starting Servlet Engine: Apache Tomcat/5.5.7 Feb 22, 2005 11:51:46 AM

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
By default server.xml contains have a GlobalNamingResources. You have to add your resources in there. rgds Antony Paul On Mon, 21 Feb 2005 19:56:23 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote: As just moved the GlobalNamingResources inside the main server in my server.xml residing in

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread U K Laxmi
I tried without GlobalNamingResources. No luck. When googled, i found that if we include GlobalNamingResource tag, then it will be available in all web context. After spending enough time on that, now i coded all database related stuff in JSP in the way we do in stand alone application. I mean -

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Robert F Hall
U K, It works as you said, but there are a couple of things I'll recommend: First, you should move your Connection, ResultSet and Statement declarations before the try {} block and add a finally {} block where you check for null values and close the resources if not null. Connection conn =

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
If you followed the tomcat docs you will have no problem in DBCP getting to work. Going for Globalnamingresources is needed if you need to access it will all applications. Try to configure it as per the doc in following URL.

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread U K Laxmi
Sure to do the changes you mentioned. Pls do send the config file for connection pooling and also guidelines for how to use it in my program. It will be a great help. I'm developing web based application for using it inhouse. Later part of time, it may grow to a big MRP application based on the

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread U K Laxmi
Yes i read and did as per the document. When it didn't work, i followed the suggetions given to many users in the mailing lists in the internet and now i guess i messed up. Actually in the error, it says, no suitable driver found. I'm using Ms Access as it's free. Do we have any free driver

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
I dont whether MS Access is considered as RDBMS. For serious development it is not recommended. Using ODBC have several problems. I will recommend PostgreSQL. Now it runs very well on Windows. But requires Windows 2000 or higher. You can find it at

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread U K Laxmi
Thank you for the replies. Ms Access is not a relational databaase. It's just DBMS. I didn't know that PostGreSQL is a open source RDBMS system. All the sqls, table creation etc.. works similar to Oracle or any other RDBMS? I'm working on windows 2000 machine. --- Antony Paul [EMAIL PROTECTED]

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
Most SQL is same and it supports a subset of SQL 92 and SQL 99 standards. Every RDBMS vendor have some proprietory code which dont work in other databases. There is one RDBMS Firebird(http://firebird.sourceforge.net/). The site claims that it is more like Oracle. rgds Antony Paul On Mon, 21

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread U K Laxmi
Thanks for the replies. What do u mean by the following in ur erlier mail. Did you defined your newly created context web in server.xml or at TOMCAT_HOME\conf\Catalina\localhost\some name.xml Does it mean i need to create a new xml file in TOMCAT_HOME\conf\Catalina\localhost?

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
You can name it the name of the context(web). The content should be similar to any other file there. I am giving a sample Context docBase=${catalina.home}/webapps/web antiResourceLocking=false antiJARLocking=false /Context rgds Antony Paul On Mon, 21 Feb 2005 23:18:55 -0800 (PST), U

Name jdbc is not bound in this Context error

2005-02-18 Thread U K Laxmi
I could able to get thro' JarperException. Thanks for replies. Now facing new problem. I'm getting NameNotFoundException - Name jdbc is not bound in this Context Environment what i'm using is: Apache 2, Tomcat 5.5, Netscape 7.2, MsAccess 2003 on windows 2000 machine. I integrated tomcat and

Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-07 Thread Dan Washusen
Dominik, that worked! Champion!!! My revised context.xml looks like this: Context path=/mind docBase=D:/Development/Projects/mind/src/webapp debug=99 reloadable=true Resource name=jdbc/MindDB auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1

Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-06 Thread sven morales
Hi, This is an excerpt of my code, to get a Context. Try and see if it works for you. 31 private void initDataSource () { 32 try { 33 Context initCtx = new InitialContext(); 34 Context envCtx = (Context) initCtx.lookup(java:comp/env); 35

Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-06 Thread Dan Washusen
Hi Sven, I can access the data source from within my code using the name java:/comp/env/jdbc/MindDB and everything works great. It's just that the Realm can't... I have found a few other posts to this list with the same problem and one of the email suggested that the Realm is configured before

Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-06 Thread Dominik Drzewiecki
Dan Washusen [EMAIL PROTECTED] wrote: Hi Sven, I can access the data source from within my code using the name java:/comp/env/jdbc/MindDB and everything works great. It's just that the Realm can't... I have found a few other posts to this list with the same problem and one of the email

DataSourceRealm says Name jdbc is not bound in this Context

2005-02-05 Thread Dan Washusen
Hi All, I'm trying to get container managed authentication going under Tomcat 5.5 using the org.apache.catalina.realm.DataSourceRealm class. I've configured a DataSource using the name jdbc/MindDB and I can access that from within my app, but when the configured DataSourceRealm tries to access it

RE: Name jdbc is not bound in this Context

2004-10-12 Thread Shapira, Yoav
Hi, I bet it's just your webapp code that's looking for jdbc instead of jdbc/myapp ;) Your config (original: you don't need to do the GlobalResources stuff, your original config is better) looks fine. Yoav Shapira -Original Message- From: Mauro Romano Trajber [mailto:[EMAIL

Name jdbc is not bound in this Context

2004-10-09 Thread Mauro Romano Trajber
I have configured the following datasource in $TOMCAT_HOME/conf/Catalina/localhost/myapp.xml: Context ... Resource name=jdbc/myapp type=javax.sql.DataSource/ ResourceParams name=jdbc/myapp parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter

Re: Name jdbc is not bound in this Context

2004-10-09 Thread Michael Echerer
If you put the ResourceParams stuff in server.xml as GlobalResource, you must put e.g. this into your server.xml's context respectively your myapp.xml context descriptor. ResourceLink name=jdbc/myapp global=jdbc/myapp type=javax.sql.DataSource/ResourceLink Of course name and global can differ,

Re: Name jdbc is not bound in this Context

2004-10-09 Thread Mauro Romano Trajber
On Sat, 09 Oct 2004 19:48:45 +0200, Michael Echerer [EMAIL PROTECTED] wrote: If you put the ResourceParams stuff in server.xml as GlobalResource, you must put e.g. this into your server.xml's context respectively your myapp.xml context descriptor. Ok, did it ResourceLink name=jdbc/myapp

Name jdbc is not bound in this Context

2004-09-09 Thread Kelly C. Goedert
Hi, I'm getting this error Name jdbc is not bound in this Context on my application. My tomcat version is 5.0.27. The servlet that is causing this error is trying to access a database with the following code: protected IDatabaseConnection getConnection() throws Exception {

Re: Name jdbc is not bound in this Context

2004-09-09 Thread QM
On Thu, Sep 09, 2004 at 10:28:32AM -0300, Kelly C. Goedert wrote: : I'm getting this error Name jdbc is not bound in this Context on my : application. My tomcat version is 5.0.27. ResourceLink ? See the Tomcat docs for details. -QM -- software -- http://www.brandxdev.net tech news --

Re: Name jdbc is not bound in this Context

2004-09-09 Thread Kelly C. Goedert
I thought I only needed ResourceLink if I had made the datasource Global. Do I need it even if it is not declared globally? QM wrote: On Thu, Sep 09, 2004 at 10:28:32AM -0300, Kelly C. Goedert wrote: : I'm getting this error Name jdbc is not bound in this Context on my : application. My

Re: Name jdbc is not bound in this Context

2004-09-09 Thread David Smith
Most of it looks good. driverClassName on a recent mysql jar should be com.mysql.jdbc.Driver instead of the ancient org.gjt. stuff. The mysql jar should be located in common/lib if you're using the container supplied dbcp pooling. If you happen to move the mysql jar file, you'll have to

Re: Name jdbc is not bound in this Context

2004-09-09 Thread Angel Cervera Claudio
Idem error to me, but with realm using DataSource: problem is that DataSourceRealm can not find JNDI name in context. There are a bug in tomcat 4.1, but this was resolved. My xml in Catalina/localhost content: ?xml version='1.0' encoding='utf-8'? Context displayName=Gestion de cunetas.

Re: Name jdbc is not bound in this Context

2004-09-09 Thread David Smith
Right. ResourceLink is used when you want to use a global resource in your app. Not necessary when the resource is local to the app. --David Kelly C. Goedert wrote: I thought I only needed ResourceLink if I had made the datasource Global. Do I need it even if it is not declared globally? QM

Re: Name jdbc is not bound in this Context

2004-09-09 Thread Angel Cervera Claudio
I'm using Tomcat 5.0.28 El jue, 09-09-2004 a las 15:56, Angel Cervera Claudio escribió: Idem error to me, but with realm using DataSource: problem is that DataSourceRealm can not find JNDI name in context. There are a bug in tomcat 4.1, but this was resolved. My xml in Catalina/localhost

Re: Name jdbc is not bound in this Context

2004-09-09 Thread David Smith
Please don't hijack other peoples threads. Create a new thread and also post your web.xml stuff. Otherwise read my reply to the original post. --David Angel Cervera Claudio wrote: Idem error to me, but with realm using DataSource: problem is that DataSourceRealm can not find JNDI name in

RE: Name jdbc is not bound in this Context

2004-09-09 Thread Shapira, Yoav
Hi, I'm getting this error Name jdbc is not bound in this Context on my application. My tomcat version is 5.0.27. The servlet that is causing this error is trying to access a database with the following code: protected IDatabaseConnection getConnection() throws Exception { Context ic

Re: Name jdbc is not bound in this Context

2004-09-09 Thread Angel Cervera Claudio
Apologies. My response may be in other thread. I will created a new. Thank's David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Name jdbc is not bound in this Context

2004-09-09 Thread Kelly C. Goedert
I fixed this on the code and it still didn't work. I put my datasource as a global resource and used ResourceLink than the error stoped. But when it is not global it doesn't, I don't know why. Kelly. Shapira, Yoav wrote: Hi, I'm getting this error Name jdbc is not bound in this Context on

RE: Name jdbc is not bound in this Context

2004-09-09 Thread Allistair Crossley
i agree, when I define my 5 JNDI datasources within /conf/Catalina/localhost/webapp.xml on startup of tomcat I get a bunch of error messages saying JDBC is not bound for all my resources. I have a servlet context listener that configures a bunch of manager objects each of which attempts to

Re: Name jdbc is not bound in this Context

2004-09-02 Thread David Smith
Remove this from your Context.../Context definition: ResourceLink global=jdbc/cd_managerDB name=jdbc/cd_managerDB/ You don't need it and it may interfere since you didn't define your data as a global resource. --David Ben Halton wrote: Hi, I am getting the problem :

Name jdbc is not bound in this Context

2004-09-01 Thread Ben Halton
Hi, I am getting the problem : javax.naming.NameNotFoundException: Name jdbc is not bound in this Context using Tomcat 5.025. I have seen suggested solutions to this problem, none of them seem to work. My web.xml: resource-ref descriptionOracle Datasource

Name JDBC is not bound in this context.

2003-08-14 Thread Andoni
Hi, I am getting this error in my log files: name jdbc is not bound in this context and I cannot see any reason why. I have found multiple examples on the web but nobody seems to answer queries about it! My program is using Tomcat 4.0.4 connection pooling and seems to be working fine (if a

Re: Name JDBC is not bound in this context.

2003-08-14 Thread Andoni
Hi, I think this might be because I have the .war file that is using the JNDI connection pooling loading as the default context. Because it is in the /webapps folder it is also loading as the /name context, even though I have nothing specified for this in server.xml. But this one I have no JNDI

NameNotFoundException: Name jdbc is not bound in this context

2003-02-18 Thread Rejeev Divakaran
Hi All, I have deployed one app which uses a datasourde jdbc/mydatasource . while running the app I got the following exception Naming exception error while connecting to the database : javax.Naming.NameNotFoundException: jdbc is not bound in this context What could be went wrong? Thanks in

RE : NameNotFoundException: Name jdbc is not bound in this context

2003-02-18 Thread PALLUEL Sylvie
What's in your file Tomcat/conf/server.xml ? What's in your file web.xml ? What is your source code using the jndi name jdbc ? Sylvie. -Message d'origine- De : Rejeev Divakaran [mailto:[EMAIL PROTECTED]] Envoyé : mardi 18 février 2003 09:51 À : [EMAIL PROTECTED] Objet :

RE: NameNotFoundException: Name jdbc is not bound in this context

2003-02-18 Thread Chanan Braunstein
Use: java:comp/env/jdbc/mydatasource Chanan Braunstein knovel Corp. Web Development Manager 607-648-4770 x672 http://www.knovel.com -Original Message- From: Rejeev Divakaran [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 3:51 AM To: [EMAIL PROTECTED] Subject: