Hi,
I don't' know whether specifying db.properties works or not, but I
configured a datasource for mysql as follows:
1. Shutdown tomcat.
2. Enter followin in TOMCAT_HOME/conf/server.xml
(If you have an entry in server.xml for this update it as below)
3. Enter following in your-web-app/META
Hi Scott,
I had also this problem some time back. You need to create a file named
context.xml in WEB-APP/META-INF directory. The resource needs to be
defined her as follows
Note in the above that the value of attribute 'type' should be the
DataSource class from your db driver jar. Also
index.jsp
default.html
default.htm
default.jsp
jdbc/MyDB
javax.sql.DataSource
Container
*****
index.jsp
default.html
default.htm
default.jsp
jdbc/MyDB
javax.sql.DataSource
Container
*****
Hi,
Can anybody help me to get a working copy of a simple database
application (using DataSource) in Tomcat 5.5?
Desperately looking for your help.
Regards,
Jitendra Kharche
-
To start a new topic, e-mail: users
Hi Dilan,
Its there - see the second attribute.
Regards,
Jitendra Kharche
Geometric Software Solutions Co. Ltd.
Work: +91-20-2290 6351
This e-mail communication and any attachments are privileged and
confidential and
Hi Dilan,
Have you got all the details about my problem.
Regards,
Jitendra Kharche
-Original Message-
From: Jitendra Kharche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 4:09 PM
To: Tomcat Users List
Subject: RE: Using Datasource for cloudscape
Hi Dilan,
Thanks for
bc/MyDB
javax.sql.DataSource
Container
********
Contents of file CATALINA_HOME/webapps/myApp/META-INF/context.xml
**
resources.
Please ask any additional info required.
Regards,
Jitendra Kharche
Geometric Software Solutions Co. Ltd.
Work: +91-20-2290 6351
This e-mail communication and any attachments are privileged and
confidential and
resources.
Please ask any additional info required.
Regards,
Jitendra Kharche
Geometric Software Solutions Co. Ltd.
Work: +91-20-2290 6351
This e-mail communication and any attachments are privileged and
confidential and
)
at
com.ibm.db2j.jdbc.DB2jAbstractDataSource.getObjectInstance(Unknown
Source)
Then I added the resourec-ref entry in web.xml, but I still get the same
error.
Regards,
Jitendra Kharche
Geometric Software Solutions Co. Ltd.
Work: +91-20-2290 6351
)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerExceptionnull
Regards,
Jitendra Kharche
Geometric Software Solutions Co. Ltd.
Work: +91-20-2290 6351
LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerExceptionnull
Please help.
Regard
13 matches
Mail list logo