Re: Error connecting to the database with tomcat 7 on eclipse jave ee

2017-05-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yosef, On 5/17/17 11:38 AM, Yosef Fastow wrote: > Hi, I am running a spring framework website on eclipse jave ee > using tomcat 7. When I try to connect to do anything connected to > the databse it raises a HTTP 500: > > Request processing failed;

Error connecting to the database with tomcat 7 on eclipse jave ee

2017-05-17 Thread Yosef Fastow
Hi, I am running a spring framework website on eclipse jave ee using tomcat 7. When I try to connect to do anything connected to the databse it raises a HTTP 500: Request processing failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC

RE: Connecting to a Database

2010-03-30 Thread Propes, Barry L
To: 'Tomcat Users List' Subject: RE: Connecting to a Database And after doing this, and getting my DataSourceRealm to work properly, now I can't get the Tomcat manager app to work properly now...it references my JNDI realm reference (DataSourceRealm actually) and throws an exception. Even if I delete

RE: Connecting to a Database

2010-03-30 Thread Leo Donahue - PLANDEVX
: Tuesday, March 30, 2010 9:20 AM To: 'Tomcat Users List' Subject: RE: Connecting to a Database Oh ok, I see. You've added a valve to the manager app. I probably need to do that, and have not. Thanks. -Original Message- From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov

RE: Connecting to a Database

2010-03-30 Thread Propes, Barry L
Right -- ok, that's good. And I will do so (post the data Chuck asked for). -Original Message- From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Sent: Tuesday, March 30, 2010 11:34 AM To: 'Tomcat Users List' Subject: RE: Connecting to a Database I only added that valve

RE: Connecting to a Database

2010-03-29 Thread Propes, Barry L
, 2010 6:09 PM To: 'Tomcat Users List' Subject: RE: Connecting to a Database You are correct. I stumbled across that info while reading the Realm config in the DataSource Database Realm section but I wasn't looking for that when I saw it the first n times. I was looking for info about

RE: Connecting to a Database

2010-03-29 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: Connecting to a Database And after doing this Doing which? now I can't get the Tomcat manager app to work properly now...it references my JNDI realm reference (DataSourceRealm actually) and throws an exception. Where

RE: Connecting to a Database

2010-03-29 Thread Leo Donahue - PLANDEVX
To: 'Tomcat Users List' Subject: RE: Connecting to a Database And after doing this, and getting my DataSourceRealm to work properly, now I can't get the Tomcat manager app to work properly now...it references my JNDI realm reference (DataSourceRealm actually) and throws an exception. Even if I delete

RE: Connecting to a Database

2010-03-26 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: Connecting to a Database Thanks, Leo! I've not seen instructions in the How-To (maybe I overlooked it) on the localDataSource=true attrib to the Realm in the context.xml file Unfortunately, it's not in the How-To, just

RE: Connecting to a Database

2010-03-26 Thread Propes, Barry L
Thanks, Chuck. I'll take a look again at this to see what else I might have overlooked! -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, March 26, 2010 4:56 PM To: Tomcat Users List Subject: RE: Connecting to a Database From: Propes

RE: Connecting to a Database

2010-03-26 Thread Leo Donahue - PLANDEVX
[mailto:chuck.caldar...@unisys.com] Sent: Friday, March 26, 2010 2:56 PM To: Tomcat Users List Subject: RE: Connecting to a Database From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: Connecting to a Database Thanks, Leo! I've not seen instructions in the How-To (maybe I overlooked

Re: Connecting to a Database

2010-03-25 Thread Pid
On 24/03/2010 15:56, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Connecting to a Database If you define the datasource as a global resource, you can define the Realm in server.xml (before or inside the Host), but then you need a resource link in the context.xml

RE: Connecting to a Database

2010-03-25 Thread Leo Donahue - PLANDEVX
on that I assumed I could digest other passwords as well. Leo -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, March 24, 2010 12:47 PM To: Tomcat Users List Subject: Re: Connecting to a Database -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: Connecting to a Database

2010-03-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/25/2010 10:50 AM, Leo Donahue - PLANDEVX wrote: I can digest a password and use that digested password in the tomcat-users.xml Sorry, I was thinking server.xml for the DataSource setup: you cannot use the database's password in a hashed

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
://localhost;database=authstore/ -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, March 23, 2010 3:22 PM To: Tomcat Users List Subject: RE: Connecting to a Database From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov

Re: Connecting to a Database

2010-03-24 Thread Pid
Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, March 23, 2010 3:22 PM To: Tomcat Users List Subject: RE: Connecting to a Database From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Subject: Connecting to a Database Tomcat 6.0.24 Windows

Re: Connecting to a Database

2010-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/24/2010 11:43 AM, Leo Donahue - PLANDEVX wrote: No, not sure. That is what I was confused about. JDBC Realm, vs JNDI DataSourceRealm, vs JDBC DataSource A Realm is something Tomcat uses for authentication. A DataSource is an object

RE: Connecting to a Database

2010-03-24 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Connecting to a Database If you define the datasource as a global resource, you can define the Realm in server.xml (before or inside the Host), but then you need a resource link in the context.xml to make the global resource available

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
: Wednesday, March 24, 2010 8:56 AM To: Tomcat Users List Subject: Re: Connecting to a Database -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/24/2010 11:43 AM, Leo Donahue - PLANDEVX wrote: No, not sure. That is what I was confused about. JDBC Realm, vs JNDI DataSourceRealm, vs JDBC

Re: Connecting to a Database

2010-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/24/2010 1:28 PM, Leo Donahue - PLANDEVX wrote: I know you can specify digest for a Realm, but I don't see where I can do that for a Resource. Note that the digest is for hashing passwords during /user/ authentication, not connecting

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
-name /security-role -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, March 24, 2010 12:47 PM To: Tomcat Users List Subject: Re: Connecting to a Database -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/24/2010 1:28 PM, Leo

RE: Connecting to a Database

2010-03-24 Thread Martin Gainty
or alter this transmission. From: leodona...@mail.maricopa.gov To: users@tomcat.apache.org Date: Wed, 24 Mar 2010 10:28:52 -0700 Subject: RE: Connecting to a Database Thanks everyone. I understand this better. I know you can specify digest for a Realm, but I don't see where I can do

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
-namewebservicereader/role-name /security-role -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, March 24, 2010 12:47 PM To: Tomcat Users List Subject: Re: Connecting to a Database -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/24/2010 1:28

Connecting to a Database

2010-03-23 Thread Leo Donahue - PLANDEVX
Tomcat 6.0.24 Windows Server 2003 R2 SP2 SQL Server 2005 Express Microsoft SQL Server 2005 JDBC Driver 1.2 - October 2007 I know I need to configure a Realm and that can be in an Engine, Host or Context element, but most likely in a context element inside the context.xml under META-INF of my

Re: Connecting to a Database

2010-03-23 Thread Mark Thomas
On 23/03/2010 22:16, Leo Donahue - PLANDEVX wrote: Tomcat 6.0.24 Windows Server 2003 R2 SP2 SQL Server 2005 Express Microsoft SQL Server 2005 JDBC Driver 1.2 - October 2007 I know I need to configure a Realm and that can be in an Engine, Host or Context element, but most likely in a

RE: Connecting to a Database

2010-03-23 Thread Caldarale, Charles R
From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Subject: Connecting to a Database Tomcat 6.0.24 Windows Server 2003 R2 SP2 SQL Server 2005 Express Microsoft SQL Server 2005 JDBC Driver 1.2 - October 2007 I know I need to configure a Realm Are you sure? A Realm

Re: Error while connecting to MySQL database

2006-06-30 Thread David Smith
ownership, and start tomcat with root user, Then the application is connecting to the database without any problem. However, It is working, until the database location is /var/lib/mysql. If I change the database location to any other directory and specify in /etc/my.cnf file as datadir, Then I

RE: Error while connecting to MySQL database

2006-06-29 Thread Jitendra Kharche
loganathan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 5:27 AM To: users@tomcat.apache.org Subject: Error while connecting to MySQL database Hi, I am facing a problem with my Apache-Tomcat-MySQL installation.MyEnvironment is as follows: Redhat ES4(2.6.9-5.EL), Apache-Tomcat-5.5.15, MySQL

RE: Error while connecting to MySQL database

2006-06-29 Thread Gordon Smith
as long as you can connect by using that pwd from the MySQL client. Hope this helps. Cheers, Gordon Smith -Original Message- From: navaneethan loganathan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 7:57 PM To: users@tomcat.apache.org Subject: Error while connecting to MySQL

AW: Error while connecting to MySQL database

2006-06-29 Thread KHZ (SAW)
: Donnerstag, 29. Juni 2006 15:51 An: 'Tomcat Users List' Betreff: RE: Error while connecting to MySQL database If Class.forName throws a null pointer exception, chances are it can't find the driver because you have a Tomcat configuration problem or other classpath-related problem relating to driver setup

Re: Error while connecting to MySQL database

2006-06-29 Thread navaneethan loganathan
is connecting to the database without any problem. However, It is working, until the database location is /var/lib/mysql. If I change the database location to any other directory and specify in /etc/my.cnf file as datadir, Then I will not be able to start MySQL server even. The detail of this new error

Error while connecting to MySQL database

2006-06-28 Thread navaneethan loganathan
Hi, I am facing a problem with my Apache-Tomcat-MySQL installation.MyEnvironment is as follows: Redhat ES4(2.6.9-5.EL), Apache-Tomcat-5.5.15, MySQL 4.1.12, Java version 1.5.0_06, Apache-Tomcat connector ajp13, mysql-connector-java-3.2.0-alpha-bin.jar. After installation and configuration I am

When we restarted tomcat, we are getting the below error while connecting to MySql database

2006-06-26 Thread rk
Hi, When we restarted tomcat, we are getting the below error while connecting to MySql database: - Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: Access denied for user 'root'@'localhost.localdomain' (using password: YES

Trace messages when connecting to the database (MySql)

2006-03-08 Thread Mike Sabroff
I am not sure if this is a Tomcat issue or a MySql issue. I get these trace messages in catalina.out: Wed Mar 08 07:48:48 CST 2006 TRACE: about 800 to 1000 lines of them, each time I connect to the database. I have googled and searched but can find nothing on the cause or the solution except