tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chandler <a...@chandlerfamily.org.uk>
Subject Re: Struggling with basic database connection
Date Sat, 23 Sep 2006 11:48:03 GMT
On Saturday 23 September 2006 09:57, Andrew Stepanenko wrote:
> Hello,
>
> there is a difference between how resources are defined in 5.0 and
> 5.5. In 5.0 you could provide your resource definitions right in the
> server.xml, but in 5.5 you need to create a separate context.xml file
> ($CATALINA_HOME/conf/Catalina/<hostname>/context.xml) and put resource
> definitions there.
> See this link:
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
>
> I also had this problem when migrating from 5.0 to 5.5. After I
> defined a separate context.xml it started to work again.

The docs seem very vague on this issue,  but it does imply that I could still 
use $CATALINA_HOME/conf/server.xml

One question that isn't answered in the docs is what the root element should 
be - the best seems to be the example for accessing a database, and even 
there it puts <Context ...>

I tried with context.xml in the directory you mentioned and it said it 
couldn't find the webapp "context", so I renamed it to my application and 
tried again.  But it didn't work.

So still stumped

-- 
Alan Chandler
http://www.chandlerfamily.org.uk


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message