tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "d_l" <>
Subject Re: Newbie - JDBC problem "Name is not bound in this context"
Date Mon, 09 Aug 2004 10:15:39 GMT
Can you clarify what version of Tomcat you are using?

It seems that there is a configuration change .. from Tomcat4 to Tomcat5 ..

the context goes in to \conf\Catalina\localhost\<webappname>.xml .. for each 

Here is a reference I found in my own digging around ..

which states ..
Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT recommended to place 
<Context> elements directly in the server.xml file. Instead, put them in the META-
INF/context.xml directory of your WAR file or the conf directory as described above. 


BUT .. in my Tomcat 5.0.27 ..  I only see three <webappname>.xml files in above 
location ..


no other <webappname>.xml files (context.xml files) show up such as


I don't understand why you have jsp-examples.xml and I don't see that file (only the 
three above).

" so I added just the ResourceLink to jsp-examples.xml, 
bounced Tomcat, and VOILA!!!  It worked!! "

Where is the default context information when there is no <webappname>.xml?
There is no context entry in server.xml.

And I confirm that there is no webapps\examples\in my configuration ..

replaced, it seems, by the two separate webapps above.


I'm still puzzled.


On 7 Aug 2004 at 21:47, ohaya |Tomcat User List| wrote:

> Hi Arthur,
> Guess what?  I think that I've found where the Contexts ended up!!
> I was digging around the Tomcat directories, and I found that at [TOMCAT
> HOME]\conf\Catalina\localhost, there was a bunch of .XML files, one
> named after each of the webapps, e.g., jsp-examples.xml.  And, it looks
> like each of these are the Context for the respective webapps.
> My test JSP is in jsp-examples, so I added just the ResourceLink to
> jsp-examples.xml, bounced Tomcat, and VOILA!!!  It worked!!
> BTW, I am curious about something.  It seems that my installation seems
> a bit non-standard.  All the docs that I've seen talk about 'examples',
> but in my case, I don't have an 'examples' directory or webapp, just a
> 'jsp-examples'.  Do you, or does anyone else know if this is something
> that has changed in the distribution?
> Thanks for all of your help!!
> Jim

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message