Hi there Michael,

I am starting to think it might very well have to do with my context.xml
file. I just saw in the logs that Tomcat was actually giving error saying
that it could not deploy myapp.xml. After reading some on the web I
discovered that this is actually my context.xml that Tomcat is picking up
and then renames to my app's name but then something goes wrong.... Here is
my context.xml file, I have changed it slightly since I saw the error
removing path and docbase and adding factory, going to try this one out now
and see whether that resolves the problem but just in case, here it is,
maybe you spot something I am missing.... btw. Might there be an ever so
slightly different way that this is handled with Tomcat on Linux as opposed
to Windows?

<context debug="5" reloadable="true" crossContext="true">
        <Resource name="jdbc/wuMaps" auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" maxActive="100"
maxIdle="30" maxWait="10000" removeAbandoned="true"
removeAbandonedTimeout="100" logAbandoned="true" username="root"
password="password" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://196.0.0.23:3306/wuadmin_development" />
</context>

--
Kind Regards
Schalk Neethling

-----Original Message-----
From: Michael Ludwig [mailto:mil...@gmx.de] 
Sent: 01 September 2009 12:13 AM
To: Tomcat Users List
Subject: Re: Strange problem with data source Tomcat 6.0.18

sch...@afrigis.co.za schrieb am 31.08.2009 um 23:57:07 (+0200):
> Hi there Michael,
> 
> Ok, I removed the mysql jar from my app and left it in tomcat/lib
> 
> I also undeployed and then redeployed the war file via the manager app
> but the problem persists.

Then I suspect a typo in your resource definition. I once had
Resource/@url instead of Resource/@uri with the MySQL driver.
The error was just:

  Cannot create JDBC driver of class 'com.mysql.jdbc.Driver'
  for connect URL 'null'

Double-check your resource definition.

-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

AfriGIS e-mail facility may not be used for the distribution of chain
letters or offensive email. AfriGIS hereby distances itself from and accepts
no liability for the unauthorized use of its e-mail facility or the sending
of e-mail communications for other than strictly business purposes. AfriGIS
furthermore disclaims liability for any unauthorized instruction for which
permission was not granted. Required as per Sec 50 Companies Act 61 of 1973
Afrigis Pty LTD Reg No 1997/0067/1607.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to