;ll go back to sleep.
- Original Message -
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 4:37 AM
Subject: Re: JDBC/mySQL problem.
>
> Wait.. it's working now... I played around with my server.xml file
>>>>
>Kawthar,
>
>>From what I understand the context is not available from outside
>Tomcat. If
>you are running this from an IDE or command line you are in a
separate
>JVM
>form Tomcat. You have to be trying your code from a servlet, jsp or
>class
>w
form Tomcat. You have to be trying your code from a servlet, jsp or
>class
>within Tomcat to use the context.
>
>Doug
>
>- Original Message -
>From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, March 25,
an" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 2:58 AM
Subject: Re: JDBC/mySQL problem.
Doug,
I created a test stand-alone application: TestConnection.java
Inside theis class, it has
public static void main(Strig[] args)
{
DatabaseO
ing your code from a servlet, jsp or
class
within Tomcat to use the context.
Doug
- Original Message -
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 2:58 AM
Subject: Re: JDBC/mySQL problem.
>
> Doug,
&
nal Message -
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 2:58 AM
Subject: Re: JDBC/mySQL problem.
>
> Doug,
>
> I created a test stand-alone application: TestConnection.java
> Inside theis class, it ha
rify what you mean by "inside the main()".
Doug
- Original Message -
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 9:37 PM
Subject: RE: JDBC/mySQL problem.
>
> Hi folks,
>
> Sorr
Kawthar,
Please clarify what you mean by "inside the main()".
Doug
- Original Message -
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 9:37 PM
Subject: RE: JDBC/mySQL problem.
>
> Hi fol
Sulaiman [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 6:52 PM
To: [EMAIL PROTECTED]
Subject: Re: JDBC/mySQL problem.
Yes, I have the latest connector inside my /common/lib.
mysql-connector-java-3.0.11-stable-bin.jar
I even tried naming this without the word "stable" in it,
: Re: JDBC/mySQL problem.
Yes, I have the latest connector inside my /common/lib.
mysql-connector-java-3.0.11-stable-bin.jar
I even tried naming this without the word "stable" in it, and still
not
working.
In my log file, I can see the following:
Creating JNDI naming context
Resource
9.1
- Original Message -
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 8:51 PM
Subject: Re: JDBC/mySQL problem.
> Yes, I have the latest connector inside my /common/lib.
> mysql-connector-java-3.0.
om mysql and copied it under
your
comon /lib +/lib of your aplication ?
here everyting works fine and im on tomcat 4.0
- Original Message -
From: "Parsons Technical Services" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thurs
r
> issues.
>
> Are you running a firewall on the machine?
>
> What OS are you on?
>
> What are the rights for the user in the database, can the user gain access
> from localhost?
>
> Doug
>
>
> - Original Message -
> From: "Kawthar Bt M Sulaiman&quo
TECTED]>
Sent: Thursday, March 18, 2004 1:26 AM
Subject: Re: JDBC/mySQL problem.
> Hi Doug,
>
> I know basic table creation and simple sql statement.. so I was able
to
> create the database
> and create few tables to get tomcat running with mySQL. I read few
> docs (including th
Sent: Thursday, March 18, 2004 1:26 AM
Subject: Re: JDBC/mySQL problem.
> Hi Doug,
>
> I know basic table creation and simple sql statement.. so I was able to
> create the database
> and create few tables to get tomcat running with mySQL. I read few
> docs (including the
> l
.
>
> Are you running a firewall on the machine?
>
> What OS are you on?
>
> What are the rights for the user in the database, can the user gain
> access
> from localhost?
>
> Doug
>
>
> - Original Message -
> From: "Kawthar Bt M Sulaiman&qu
fail.
> If so use the IP of your machine if you can ping it otherwise you have
> other
> issues.
>
> Are you running a firewall on the machine?
>
> What OS are you on?
>
> What are the rights for the user in the database, can the user gain
> access
> from localhost?
>
> Dou
it otherwise you have
other
issues.
Are you running a firewall on the machine?
What OS are you on?
What are the rights for the user in the database, can the user gain
access
from localhost?
Doug
- Original Message -
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
T
-
From: "Kawthar Bt M Sulaiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:46 PM
Subject: Re: JDBC/mySQL problem.
> Followed your suggestion, but still not working.
>
> Thnx,
> --Kawthar
>
> >>> [EMAIL PROTE
- Original Message -
From: "Parsons Technical Services" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:02 PM
Subject: Re: JDBC/mySQL problem.
> Kawthar,
>
> Try this context in place of your
; <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 11:02 PM
Subject: Re: JDBC/mySQL problem.
> Kawthar,
>
> Try this context in place of yours.
>
>
> type="javax.sql.DataSource"/>
>
> type="
Kawthar,
Try this context in place of yours.
factory
org.apache.commons.dbcp.BasicDataSourceFactory
username
password
Doug,
I've removed these params but I still get the same error.
--Kawthar
>>> [EMAIL PROTECTED] 18/03/2004 10:47:36 AM >>>
Kawthar,
Remove this from the context:
databaseName
ecpa
pathname
conf/tomcat-use
i'm trying to run the example about JDBC realms with
tomcat and mysql, but when i start tomcat i get this
message:
java.sql.SQLException: Cannot disable AUTO_COMMIT
anyone knows what could be happening?
Thanks
_
Do You Yahoo!?
InformaciĆ³n
: MySql Problem Hi Dinman,Did you set your classpath to point the location where you place you mmysqldriver?Actually you can place the driver anywhere you like provided that you setthe classpath correctly!Of course ,you have to prefix the driver class with the correct package namee.g
man@i
ndya.com To: [EMAIL PROTECTED]
cc:
03/19/2001 Subject: MySql Problem (Error Message)
I dont know why its looking for MyODBC
Unable to load driver.
java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server
on 'localhost' (10061)
at sun.jdbc.odbc.JdbcOdbc.createSQLException
(JdbcOdbc.java:6031)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
I dont know why its looking for MyODBC
Unable to load driver.
java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server
on 'localhost' (10061)
at sun.jdbc.odbc.JdbcOdbc.createSQLException
(JdbcOdbc.java:6031)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
Since I work with MySQL both in servlets and in regular applications, I
have the jar file in the lib/ext directory of the jre. But I have no
idea what you're referring to by the org.apache class. I know of only
two MySQL drivers, twz1.jdbc.mysql and org/gjt/mm/mysql. Of those,
only the latt
. org.gjt.mm.mysql.Driver
Believe it or not, many people mistype the "gjt" package name as "git" and
thus result in a Driver not found error!
Regards
Dick Poon
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 11:51 AM
Subjec
03/18/2001 Subject: MySql Problem
10:51 PM
Hi
I am trying to Acces MySql thru JDBC using mmysql driver.
But when I run thru Servlets in Tomcat it doesnot read the org.apache
class. Can anyone say where should I keep my jar files when I acces
the data from Servlets.
Thanx in advance.
DINMAN
Enjoy being an Indyan at http://www.indya.
32 matches
Mail list logo