Resource in context.xml not found 2006-12-10 - By pir8ped
Back
Thanks for the advice Chuck.
I have tried all you suggested, and it makes no difference ( though what you pointed out was prefectly valid, and I will keep my code that way - it is neater to put the context.xml into META-INF )
I didn't post the error message because I am using the Spring framework, and the error is buried in a load of Spring debug messages. It suggested to me that the datasource wasn't being found, but I have decided that this isn't the case, and the error must lie with my setup with Spring - I will pursue that line of thought for a while.
Thanks,
John
Caldarale, Charles R wrote: > >> From: pir8ped [mailto:john.pedersen@(protected)] >> Subject: Resource in context.xml not found >> >> I have a context file ( starfriend.xml ) in my \Tomcat >> 5.5\conf\Catalina\localhost folder: >> >> <Context path="/appName" docBase="C:/Program Files/Apache Software >> Foundation/Tomcat 5.5/webapps/starfriend" debug="3" reloadable="true"> > > This is probably not the cause of the resource not found problem, but > the above <Context> element is incorrect. First, unless the <Context> > is specified in server.xml, it must not include a path attribute. > Second, the docBase attribute is unnecessary (and should be removed), > since the app is deployed under the standard appBase (webapps). Since > the app is under appBase, the proper place for this <Context> element is > in META-INF/context.xml inside he app. > > - 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@(protected) > To unsubscribe, e-mail: users-unsubscribe@(protected) > For additional commands, e-mail: users-help@(protected) > > >
-- View this message in context: http://www.nabble.com/Resource-in-context.xml-not -found-tf2789195.html#a7783874 Sent from the Tomcat - User mailing list archive at Nabble.com.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|