Removing the path and docBase worked. Or maybe it was that I deleted tomcat
and unziped it again. Not sure which.
But the funny thing is the docs say to put path and docBase in. That is
where I get it from:
Section 2 Context configuration
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
<Context path="/DBTest" docBase="DBTest"
debug="5" reloadable="true" crossContext="true">...Now if I can get
it to work with eclipse I'll be all set.Thanks for all your help,Kevin
----- Original Message -----
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, March 10, 2008 6:57 PM
Subject: RE: Eclipse with tomcat and mysql
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Subject: Re: Eclipse with tomcat and mysql
<Context path="/musicDB" docBase="musicDB"
debug="5" reloadable="true" crossContext="true">
Remove the path and docBase attributes - they're not allowed here.
<Resource name="jdbc/musicDB" auth="Container"
type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="javauser" password="javadude"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/musicDb?autoReconnect=true"/>
Where did you put the driver jar? Is the database up and running on the
same box Tomcat is? Is it configured for port 3306? Does the above
work when you get Eclipse out of the way?
This did not work so I tried the one in lower case which I
found in an example on the web.
The web is a great example of Sturgeon's law: "90% of everything is
crap." Use the real doc, not somebody's misremembered ramblings.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]