Re: SQL Server 2000: JDBC

2005-10-06 Thread Roberto Rios
Hi, Generally this error occurs when the connection between tomcat and the database is down, or the connection object is using a connection that is poor. For instance, if your tomcat is running, and for some reason, the database goes down and then restart, you will receive this error. So,

Aliases for JNDI (JDBC) resources?

2005-10-03 Thread Lisa L. Woodring
I would like to create aliases for a JNDI (specifically, a JDBC) resource, such that I can use multiple names to connect to the same database -- and be able to use the same (i.e. only 1) connection pool for that database. I haven't been able to find anything on how/if this is possible. (I would

Re: Aliases for JNDI (JDBC) resources?

2005-10-03 Thread David Smith
To be honest, I think touching the server.xml is the only way to do this. Declare it as a global resource in server.xml and then declare a resource link in all the contexts that need access. --David Lisa L. Woodring wrote: I would like to create aliases for a JNDI (specifically, a JDBC

Re: SQL Server 2000: JDBC

2005-09-30 Thread MERT EREN ÜSTÜNKAYA
Hei, I used to have that problem i am not sure but this happens when you dont close the connections i guess. Use sp_who STORED procedure to check the logged on users to SQL2000.. sree kanth wrote: Hello lalit, we too had the problem of connection reset by peer and then we changed the

RE: SQL Server 2000: JDBC

2005-09-30 Thread Karasek-XID, Nicolas
-Original Message- From: sree kanth [mailto:[EMAIL PROTECTED] Sent: vendredi 30 septembre 2005 05:27 To: Tomcat Users List; Lalit Batra Subject: Re: SQL Server 2000: JDBC Hello lalit, we too had the problem of connection reset by peer and then we changed the Driver.Now we are using

Re: SQL Server 2000: JDBC

2005-09-30 Thread Lalit Batra
] Sent: vendredi 30 septembre 2005 05:27 To: Tomcat Users List; Lalit Batra Subject: Re: SQL Server 2000: JDBC Hello lalit, we too had the problem of connection reset by peer and then we changed the Driver.Now we are using SourceForge driver jtds.jar.May be this may solve ur problem

Re: SQL Server 2000: JDBC

2005-09-30 Thread sree kanth
i suppose its a driver problem. I too had faced the same problem.More the MS SQL driver works in a very different ways that the query executed is different logically from the query supplied by us. Regards, Sreekanth

SQL Server 2000: JDBC

2005-09-29 Thread Lalit Batra
2000 Driver for JDBC]Error establishing socket. Error connecting: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write All help will be appreciated! Lalit - To unsubscribe, e

Re: SQL Server 2000: JDBC

2005-09-29 Thread sree kanth
Hello lalit, we too had the problem of connection reset by peer and then we changed the Driver.Now we are using SourceForge driver jtds.jar.May be this may solve ur problem. If anyone can find a better alternative please inform us. Regards, Sreekanth

Re: JMX Method to check JDBC connection acivity?

2005-09-28 Thread andy gordon
Edmon, Did you get an answer to your question? I found your question quite interesting. I ran some tests and received the same error (RMI permission) as you. I used JConsole as well as looked at JMXProxy and could not determine if my datasource (in this case MySQL) was running or not. The

How to configure a single JDBC connection via Tomcat's JDBC JNDI configurations for Oracle

2005-09-27 Thread Edmon Begoli
doing this: Resource name=jdbc/server name auth=Container driverClassName=oracle.jdbc.driver.OracleDriver type=javax.sql.DataSource username=username password=password url=jdbc:oracle:thin:@server maxActive=1 maxIdle=1 maxWait=-1 removeAbandoned=true logAbandoned=true

Re: How to configure a single JDBC connection via Tomcat's JDBC JNDI configurations for Oracle

2005-09-27 Thread andy gordon
The attribute maxactive controls how big the pool is. if maxactive is set to 1 then there can be only 1 per time. There are also non-dbcp solutions which have oracle examples described under JDBC datasources link in tomcat 5.5 doc at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi

JMX Method to check JDBC connection acivity?

2005-09-27 Thread Edmon Begoli
Is there a handy MBean in Tomcat that would allow me to do on demand check if the connection to the database is up? I've looked at DataSource but that one does not expose getConnection, and the one that requires username and password throws RMI permission exception. I would really like to have

Re: jdbc driver

2005-09-21 Thread Kito Holliday
=org.apache.catalina.logger.FileLogger prefix=standalone_DBTest_log. suffix=.txt timestamp=true / Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver

Re: jdbc driver

2005-09-20 Thread Kito Holliday
Thanks for the quick reply... Yes the .jar file is in common/lib. I fear the problem lies in the server.xml since jndi is binding datasource jdbc/TestDB to org.hsql.jdbcDriver On Mon, 19 Sep 2005, andy gordon wrote: is the MySQL Connector Jar file in the $CATALINA_HOME/common/lib directory

jdbc driver

2005-09-19 Thread Kito Holliday
Attempting to use connector-java-3.3.10 with tomcat 4.0 and mysql and servlets. The Java code: InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)lookup(jdbc/TestDB); throws the exception: Exception creating DataSource: org.hsql.jdbcDriver The problem is that my .xml files

Re: jdbc driver

2005-09-19 Thread andy gordon
is the MySQL Connector Jar file in the $CATALINA_HOME/common/lib directory? Kito Holliday [EMAIL PROTECTED] wrote:Attempting to use connector-java-3.3.10 with tomcat 4.0 and mysql and servlets. The Java code: InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)lookup(jdbc

Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

2005-09-14 Thread luc_boudreau
Hi fellas, I'm working on Tomcat 5.5.7 on a webapp compiled by Ant using shared and common libraries in their respective tomcat folders. My mysql driver (mysql-connector-java-3.1.10-bin.jar) is in the $CATALINA_HOME/common/lib/ folder and I still get the following message : Cannot load JDBC

Re: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

2005-09-14 Thread David Delbecq
. My mysql driver (mysql-connector-java-3.1.10-bin.jar) is in the $CATALINA_HOME/common/lib/ folder and I still get the following message : Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' It happens when the dataSourceVariable.getConnection() method of type

Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Hi, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
List Subject: Different JDBC sources? Hi, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test

Re: Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair, And then I would publish my code into two places? (Or alternatively I can have two

Re: Different JDBC sources?

2005-09-13 Thread Stephen Caine
Simon, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
the standard way. Allistair. -Original Message- From: Vsevolod (Simon) Ilyushchenko [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 17:01 To: Tomcat Users List Subject: Re: Different JDBC sources? Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers

Re: Different JDBC sources?

2005-09-13 Thread Hassan Schroeder
Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production

Re: Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Hassan Schroeder wrote on 09/13/2005 12:33 PM: Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages

Re: Different JDBC sources?

2005-09-13 Thread Hassan Schroeder
Vsevolod (Simon) Ilyushchenko wrote: Presumably these are two different Contexts; put the appropriate Resource in each ${context}.xml file... Thanks! How will different contexts be invoked depending on the URL? Well, maybe I misunderstood the original question :-) My presumption was that

Re: Which Oracle JDBC Drive for JDK 1.5?

2005-08-05 Thread Jeff Duska
only support you on 'certified' databases. I'd try it. If it works great, if doesn't then I patch to 10.1.0.4. I've also only used the thin client JDBC drivers, so I can't say much about the other drivers. HTH, Jeff Paul Singleton wrote: I noticed there are JDBC drivers for 10.1.0.2

Regarding JDBC Driver error

2005-08-04 Thread tomcat
Hi all Placing jar in the tomcat_home/common/lib works fine. but placing jar in the webapp/application_name/WEB-INF/lib throws JDBC Driver error i think this is due to classloader.could anyone explain me in detail why placing a jar under WEB-INF/lib throws error reason? regards, siva

RE: Regarding JDBC Driver error

2005-08-04 Thread ajith.skumar
Hi Siva, Jar files placed in CATALINA_HOME/common/lib are visible both to all of your web applications and internal Tomcat code. I think u must be using JDBCRealm for your application security and this is managed by Tomcat internally. So u got error when u put your JDBC driver jar file in WEB

Which Oracle JDBC Drive for JDK 1.5?

2005-08-04 Thread Chuck
Getting ready to build some applications on Tomcat 5.5.9 on Solaris 9 using jdk 1.5 rev 4 and Oracle 10.1.0.3 as my backend. I noticed there are JDBC drivers for 10.1.0.2 and 10.1.0.4. Which should I use? (or should I patch to 10.1.0.4) Thanks, CC -- To reply to this message, remove _NOSPAM_

Re: Which Oracle JDBC Drive for JDK 1.5?

2005-08-04 Thread Paul Singleton
I noticed there are JDBC drivers for 10.1.0.2 and 10.1.0.4. Which should I use? I've always found that Oracle JDBC drivers are backwards compatible (not that I've driven them very hard) so I'd use the .4 (or should I patch to 10.1.0.4) not if it ain't broke :-) Paul S. -- No virus found

Re: Which Oracle JDBC Drive for JDK 1.5?

2005-08-04 Thread Woodchuck
fwiw, i'm still using the old 9.2.0.x oracle jdbc drivers with my new TC 5.5/JDK 5.0 setup. works fine as far as i can tell :p woodchuck --- Paul Singleton [EMAIL PROTECTED] wrote: I noticed there are JDBC drivers for 10.1.0.2 and 10.1.0.4. Which should I use? I've always found

can I put JDBC connection information in the webapps web.xml file?

2005-08-02 Thread Mark
I want to know if it is possible to place the JDBC resource information in the web.xml file in my context's WEB-INF directory? If this is possible, what is the syntax? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: can I put JDBC connection information in the webapps web.xml file?

2005-08-02 Thread Adile Abbadi
Hi Mark, Yep I'm pretty sure you can - you can even do pooling - check the tomcat docs. Adile -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: August 2, 2005 10:21 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: can I put JDBC connection information in the webapps

Cannot create JDBC driver of class - help!!

2005-08-01 Thread Anish Tom Ashley
create JDBC driver of class ' ' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:780) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 40

RE: Cannot create JDBC driver of class - help!!

2005-08-01 Thread Allistair Crossley
Is Context not supposed to be within a Host element? You also have a lowercase c in context rather than Context. You also will want jdbc/ before the name for the datasource. In fact, I think you need to read the manual (I am assuming Tomcat 5.0, otherwise look at your version). http

Trouble with JDBC Session Persistence (Tomcat 4.1)

2005-07-07 Thread lawrence
I am having some troubles getting JDBC session persistance to work. I have set up my Oracle DB and server.xml correctly (as I have verified that the session is indeed stored in the DB), but then after restarting tomcat, it appears that the session is not getting swapped in correctly. Here

Regarding JDBC applet server

2005-06-29 Thread reddy.sudheer
Hi In our project we are using Tomcat server(version 5.0.28) and DB2(version 5.1).From time to time we get the following error. ERROR_MSG : [IBM][JDBC Driver] CLI0614E Error sending to the socket, server is not responding. SQLSTATE=08S01 This is happening due to the jdbc applet server stopping

RE: Regarding JDBC applet server

2005-06-29 Thread Brereton, Stephen
perhaps connection pooling or timeout? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 29 June 2005 11:24 To: tomcat-user@jakarta.apache.org Subject: Regarding JDBC applet server Hi In our project we are using Tomcat server(version 5.0.28) and DB2(version

Re: JDBC Persisted Sessions

2005-06-23 Thread Peter Johnson
config for JDBC persisted sessions that I could look at as the information in the docs seems a little disjointed. Also, for those that have it working, what has been their experience with it? Thanks, Peter Johnson - To unsubscribe

JDBC Persisted Sessions

2005-06-22 Thread Peter Johnson
Hi All, Does anyone have a working config for JDBC persisted sessions that I could look at as the information in the docs seems a little disjointed. Also, for those that have it working, what has been their experience with it? Thanks, Peter Johnson

Embedded Tomcat JDBC Issue

2005-05-31 Thread Joe Reger, Jr.
Any tips on how to get a JDBC connection going using the embedded version of Tomcat? Where does the MySql driver go? How is the JNDI resource configured? I've tried deploying a .war file with a context.xml, but have had some problems (below). Thanks, Joe -Original Message- From: Joe

Embedded Tomcat JNDI/JDBC Configuration Questions

2005-05-29 Thread Joe Reger, Jr.
properly. Inside of the .war file is a context.xml file. The jdbc/db resource is defined in context.xml, inside of the .war file with the following: Resource name=jdbc/db auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/db parameter namefactory/name

Re: database - jdbc setup help

2005-05-12 Thread Lutz Zetzsche
? Can anyone point me to a short-sweet tutorial that can get me from here to there? I'm not sure if I need to install jdbc and the mysql driver or if those are included in the tomcat release. A tutorial that takes me through all that would be great. Firstly, you have to install the MySQL JDBC

Re: database - jdbc setup help

2005-05-12 Thread Terence M. Bandoian
For information about JDBC, you may want to try the Sun JDBC tutorial http://java.sun.com/docs/books/tutorial/jdbc/ - http://java.sun.com/docs/books/tutorial/jdbc/ -Terence - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: database - jdbc setup help

2005-05-12 Thread Geoff Wiggs
-Original Message- From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 12:14 AM To: Tomcat Users List Subject: Re: database - jdbc setup help Hi Bagus, Am Donnerstag, 12. Mai 2005 00:38 schrieb Bagus: I've now set up Tomcat 5.5.4 and have installed mysql

RE: database - jdbc setup help

2005-05-12 Thread Bagus
Wow, great. That worked like a charm. After following your simple instructions, your script listed my database tables. Amazing! I don't quite get the JSTL stuff tho... Your script says: %-- The taglib directive below imports the JSTL library. If you uncomment it, you must also add the JSTL

Re: database - jdbc setup help

2005-05-12 Thread Lutz Zetzsche
Hi Bagus, Am Freitag, 13. Mai 2005 04:04 schrieb Bagus: Wow, great. That worked like a charm. After following your simple instructions, your script listed my database tables. Amazing! Many thanks for the compliment. :-) I have worked this out for me from the various how-tos. The problem is

database - jdbc setup help

2005-05-11 Thread Bagus
tutorial that can get me from here to there? I'm not sure if I need to install jdbc and the mysql driver or if those are included in the tomcat release. A tutorial that takes me through all that would be great. Thanks Bagus

JNDI jdbc resource

2005-04-22 Thread John Reynolds
I am trying to configure JNDI resources on tomcat 5, i used the admin tool to setup the resource, and checked the server.xml with documentation on the tomcat site, i have copied the mysql jdbc driver jar into commons/lib. when i deploy an application that uses this resource, the following

Re: Per Application JNDI/JDBC Configuration

2005-04-20 Thread David C. Hicks
only to that app. This will still give you pooling. If you follow the instructions on the Tomcat site for the JDBC How-To that will set things up. The only change is to put the elements in with the context fragment in the xml file for your app instead of the server.xml. Yeah the web site should

Per Application JNDI/JDBC Configuration

2005-04-19 Thread David C. Hicks
Hi, I'm trying to configure Tomcat5 with a JNDI resource for a JDBC connection that I would like to be specific to the application. In other words, I don't want to have to add anything to server.xml. I keep reading where this is possible, but haven't seen any clear examples of it. My

Re: Per Application JNDI/JDBC Configuration

2005-04-19 Thread Parsons Technical Services
For each app you have running you will need a context element in a xml file. This should reside in the war. In this file you can setup the resource which will be available only to that app. This will still give you pooling. If you follow the instructions on the Tomcat site for the JDBC How

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2005-04-13 Thread Licinio Gomez Delgado
/Connector Engine defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ Resource name=jdbc/myoracle auth=Container

RE: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2005-04-13 Thread Licinio Gomez Delgado
docBase=C:\Archivos de programa\Apache Software Foundation\Tomcat 5.0\webapps\ROOT path= workDir=work\Catalina\localhost\_ Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_ROOT_log. suffix=.txt timestamp=true/ Resource name=jdbc/bbdesa type=javax.sql.DataSource/ ResourceParams

Antwort: Re: DBCP/JDBC Problems with DelegatingResultSet

2005-04-13 Thread Sebastian . Wiemer
Bitte antwortenThema an Re: DBCP/JDBC Problems with Tomcat UsersDelegatingResultSet

DBCP/JDBC Problems with DelegatingResultSet

2005-04-12 Thread Sebastian . Wiemer
Hello, I need some help accessing low level routines using JDNI based connection pooling provided by tomcat. Environment: J2SE 1.4.2 Tomcat: 5.5 JDBC-Driver: Sybase JConnect 5.5 (TDS) The Tomcat is configured to provide a small connection pool. Within my servlet i need access

AW: DBCP/JDBC Problems with DelegatingResultSet

2005-04-12 Thread Marco Pöhler
2005 15:56 An: tomcat-user@jakarta.apache.org Betreff: DBCP/JDBC Problems with DelegatingResultSet Hello, I need some help accessing low level routines using JDNI based connection pooling provided by tomcat. Environment: J2SE 1.4.2 Tomcat: 5.5 JDBC-Driver: Sybase JConnect 5.5

Re: DBCP/JDBC Problems with DelegatingResultSet

2005-04-12 Thread Jimmy Ray
Do you mean that perhaps you are trying to access SYBASE specific JDBC extensions? If so, then you need the inner most delegate connection. I did this with Oracle: I also had this parameter in my JNDI declaration in the server.xml... parameter nameaccessToUnderlyingConnectionAllowed

Re: Using JDBC with 5.5.x

2005-04-05 Thread Martin Dubuc
. The right config to use MySQL to perform authentication in 5.5.x is: server.xml: GlobalNamingResources ... Resource name=jdbc/auth auth=Container type=javax.sql.DataSource maxActive=4 maxIdle=30 maxWait=1 username

Re: Using JDBC with 5.5.x

2005-04-05 Thread Parsons Technical Services
: Using JDBC with 5.5.x I have found the cause of my problem. I am posting it in case someone would run into the same problem. The main issue was that I was using a DataSourceRealm that was pointing to a Resource (under GlobalNamingResources) that was using a username and password that was valid

Using JDBC with 5.5.x

2005-03-29 Thread Martin Dubuc
I am having some problems using JDBC with 5.5.x releases. I can use JDBC with 5.0.28, but as soon as I switch to 5.5.x, I get the following errors trying to connect to database: Mar 29, 2005 11:26:37 AM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication

Re: Using JDBC with 5.5.x

2005-03-29 Thread Trond G. Ziarkowski
Hi, the way to define JNDI Datasources has changed from 5.0.x to 5.5.x. Check out the docs http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html Trond Martin Dubuc wrote: I am having some problems using JDBC with 5.5.x releases. I can use JDBC with 5.0.28

Re: Using JDBC with 5.5.x

2005-03-29 Thread Jimmy Ray
...Cannot create JDBC driver of class '' for connect URL 'null' Java code: Connection conn = null; Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(JNDI_LOOKUP); //data source name from properties file DataSource ds

[tomcat-user] Postgres + JDBC

2005-03-18 Thread [EMAIL PROTECTED]
First of all, hello to the groupe. I'm a newbi as far as tomcat is concerned, so if this is really stupid, sorry for wasting your time. I'm trying to get a JDBC Data pool connection up using Tomcat and postgres SQL. My JNDI source is configured, and when I : Context initContext = new

Re: [tomcat-user] Postgres + JDBC

2005-03-18 Thread Antony Paul
a JDBC Data pool connection up using Tomcat and postgres SQL. My JNDI source is configured, and when I : Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/postgres); I get

Trouble with JDBC (I need a little help)

2005-03-16 Thread Maxime
out = response.getWriter(); Statement stmt; ResultSet result; String url = jdbc:mysql://localhost:3306/HeroDB; String user = Login; String password = Password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection

Re: Trouble with JDBC (I need a little help)

2005-03-16 Thread Wolfgang Hackl
ResultSets and Statements after usage (read some JDBC tutorials)! If this does not help with your current problem, this might be the next problem you run into anyway. Kind regards, Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Trouble with JDBC (I need a little help)

2005-03-16 Thread Jon Wingfield
{ response.setContentType(text/html); PrintWriter out = response.getWriter(); // New Instance : DBConnection DBConnection db = new DBConnection(); String req =Select * FROM User_Table; try{ db.Connect(); out.println(br DRIVERS JDBC : OK!); out.println(br Connexion

Re: Trouble with JDBC (I need a little help)

2005-03-16 Thread Maxime
Fenderbosch Eric, Wolfgang Hackl and Jon Wingfield. Hi and thank you! It's looks like I have a lot of thing to learn (it's nice to learn everyday hehe). For closing connection + ResultSet and Statement, I wanted to include them later. Anyway, thank you very very much for these advices and

JDBC Realm by-passing login page using a link

2005-03-10 Thread Fredrik Liden
Is it possible to pass login info in a link and then based on this information set the JDBC realm status to logged in? In other words is it possible to trigger the authentication manually in a filter? Thanks! /Fredrik

RE: JDBC Realm by-passing login page using a link

2005-03-10 Thread Anderson, M. Paul
It is my understanding that the JDBC realm will execute prior to any filters or other servlets, so I wouldn't think this would be possible unless you perform your own authentication - possibly in a filter - to do just what you're looking for. -Original Message- From: Fredrik Liden [mailto

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread David Smith
In your context definition, you have Resource name=TestDB.. In your web.xml, you have res-ref-namejdbc/TestDB/res-ref-name These two need to match. If one is jdbc/TestDB, so must the other. --David Darryl Wagoner wrote: Greetings, Not sure if this made it the first time. I didn't see it show

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread Darryl Wagoner
David, I have been looking at this off and on for weeks and could not see the problem. I changed the context to be jdbc/TestDB and it worked. Thank you very much David Smith wrote: In your context definition, you have Resource name=TestDB.. In your web.xml, you have res-ref-namejdbc

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread David Smith
No problem. Amazing what an extra set of eyes will catch, isn't it? Enjoy! David Darryl Wagoner wrote: David, I have been looking at this off and on for weeks and could not see the problem. I changed the context to be jdbc/TestDB and it worked. Thank you very much David Smith wrote

newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Darryl Wagoner
Greetings, Not sure if this made it the first time. I didn't see it show up on the list I am trying to get the example in the MySQL JDBC/JNDI HOWTO to work and I am missing something. I get this error: My webapp directory is /DBTest. What am I missing? thanks -darryl --- Error Page --- *type

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Parsons Technical Services
@jakarta.apache.org Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JDBC/JNDI Datasource example Greetings, Not sure if this made it the first time. I didn't see it show up on the list I am trying to get the example in the MySQL JDBC/JNDI HOWTO to work and I am missing

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Justin Crabtree
Users List tomcat-user@jakarta.apache.org Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JDBC/JNDI Datasource example Greetings, Not sure if this made it the first time. I didn't see it show up on the list I am trying to get the example in the MySQL JDBC/JNDI

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Darryl Wagoner
Sounds like it can't find the driver. Do you have the Connector/J jar installed in the correct place? Should be in common/lib. I think so! I have $CATALINA/common/lib/mysql-connector-java-3.0.16-ga-bin.jar which I believe to be the correct. I just downloaded and installed 3.1 with same

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Parsons Technical Services
What version are you running of Tomcat? Did you put in your resource link? Doug - Original Message - From: Darryl Wagoner [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JDBC/JNDI

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Drew Jorgenson
javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' what is your connection URL? it doesn't seem like you're supplying one to the driver. If you're passing

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Drew Jorgenson
Woops, my bad, that's not it, I should have read the entire message :( Drew. On Tue, 2005-03-01 at 18:51, Drew Jorgenson wrote: javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class

RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-28 Thread Varley, Roger
If I can see your encrypted passwords, then I can see the code that decrypts them. And with that I have your passwords. It only adds a step to my effort to crack your security. Is that strictly true? If you use the method that is used to encrypt Unix passwords (google for JCrypt for

Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-28 Thread Parsons Technical Services
Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 4:34 AM Subject: RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords If I can see your encrypted passwords, then I can see the code that decrypts them. And with that I have your passwords

RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-28 Thread George Sexton
Your argument about short duration attacks is optimistic at best. Most systems are so poorly secured and monitored, that breakins aren't detected anywhere near that quickly. Let's face reality here. The only safe way to hide the JDBC information is to have the SECRET (encryption password

Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-28 Thread Shankar Unni
George Sexton wrote: If you really want to do this, then you will need to have your application startup have a method that permits an operator to enter in the password for the JDBC information at startup. Whatever - the key is to be able to insert an application-defined processing step between

Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-27 Thread Edmon Begoli
- primarely finding and reading the sensitive data. It is commonly recognized in the security circles that the application server's JDBC rights are achilles heel of the application. With clear passwords - there is nothing in your way. If you have 5 min on the Tomcat that has a connection

Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-27 Thread Parsons Technical Services
: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords Please do not start the flame war. Check what I have to say. I am really not a beginner in this area. First, feature I mentioned is commonly implemented on every major application server platform that I know- JBoss

RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-27 Thread Richard Mixon (qwest)
am planning on upgrading as needed. As we all know Tomcat enables me to configure JDBC resources that my app can use through the JNDI. My problem is that these passwords have to be stored as a plain text which is a very bitter pill in my environment. What is the Tomcat class that reads

RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-27 Thread Benson Margulies
Why do you give your webapp access to a sql user with all this dangerous and unneccessary access? The user name / password on the externally-accessible machine could have a sql login that only granted access to views (or better yet) procedures, that allowed for the minimal necessary access: that's

JDBC

2005-02-27 Thread deepak suldhal
Hi, I followed the JDBC document posted on Tomcat site. and it works fine. I am able to access the database and see the results. My question is. I have different users who will be using my application and I need to validate these users before I provide them acesss to database. How would I do

Re: JDBC

2005-02-27 Thread Hiroshi Iwatani
Write tomcat-users element in the tomcat-users.xml file. deepak suldhal wrote: Hi, I followed the JDBC document posted on Tomcat site. and it works fine. I am able to access the database and see the results. My question is. I have different users who will be using my application and I need

Re: JDBC

2005-02-27 Thread deepak suldhal
[EMAIL PROTECTED] wrote: Write tomcat-users element in the tomcat-users.xml file. deepak suldhal wrote: Hi, I followed the JDBC document posted on Tomcat site. and it works fine. I am able to access the database and see the results. My question is. I have different users

RE: JDBC

2005-02-27 Thread Richard Mixon (qwest)
wrote: Hi, I followed the JDBC document posted on Tomcat site. and it works fine. I am able to access the database and see the results. My question is. I have different users who will be using my application and I need to validate these users before I provide them acesss to database

Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-26 Thread Edmon Begoli
Hi, I an using Tomcat 5.5.7, and I am planning on upgrading as needed. As we all know Tomcat enables me to configure JDBC resources that my app can use through the JNDI. My problem is that these passwords have to be stored as a plain text which is a very bitter pill in my environment. What

Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-26 Thread Parsons Technical Services
Message - From: Edmon Begoli [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Saturday, February 26, 2005 10:08 PM Subject: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords Hi, I an using Tomcat 5.5.7, and I am planning on upgrading

Tomcat 5.5.7 using builtin JDBC connection pool, can't access 'real' connection - accessToUnderlyingConnectionAllowed=true

2005-02-25 Thread Bernd Bartke
: +PoolingDriver.isAccessToUnderlyingConnectionAllowed()); PoolingDriver.setAccessToUnderlyingConnectionAllowed(true); BasicDataSource dataSource = (BasicDataSource)envContext.lookup(jdbc/website); logger.debug(dataSource.isAccessToUnderlyingConnectionAllowed: +dataSource.isAccessToUnderlyingConnectionAllowed

Re: Name jdbc is not bound in this Context error

2005-02-22 Thread U K Laxmi
found. I'm using Ms Access as it's free. Do we have any free driver available in the form of jar to use in place of JDBC-ODBC bridge driver? Or it's not required if configuration is correct. Pls let me know. I've pasted all relevant code

Re: Name jdbc is not bound in this Context error

2005-02-22 Thread Antony Paul
have any free driver available in the form of jar to use in place of JDBC-ODBC bridge driver? Or it's not required if configuration is correct. Pls let me know. I've pasted all relevant code in my first mail itself. If time

  1   2   3   4   5   6   7   8   9   10   >