Tina,
On 19.9.2010 8:25, Tina Schliemann wrote:
I try to connect the Tomacat 7 to a mySQL.
...
<Host name="localhost" appBase="webapps"
...
<Context path="/ode" docBase="ode"
debug="5" reloadable="true" crossContext="true">
...
<Resource name="jdbc/ode" auth="Container" type="javax.sql.DataSource"
It seems that XML parser cannot parse well Resource element inside
server.xml configuration (not your fault, this might be Tomcat's
regression).
Anyway, for other reasons it is not recommended to put your Context
information inside server.xml, but into separate configuration file.
Please read deployer how-to [1].
If you use WAR deployment, create inside WAR file META-INF/context.xml
and put your Context configuration there. If you deploy exploded
application create conf/Catalina/localhost/ode.xml, and put it there.
That should solve your problems.
Other than that, remove attribute debug="5" from Context tag. It is
deprecated long time ago.
-Ognjen
[1] http://tomcat.eu.apache.org/tomcat-7.0-doc/deployer-howto.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org