Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
5.0.18: Windows XP Pro vs Windows 2000

5.0.18: Windows XP Pro vs Windows 2000

2004-01-24       - By Jacob Kjome

 Back
Reply:     1     2     3     4  

At 08:47 AM 1/24/2004 -0600, you wrote:
>Remy,
>
>>
>>No, it does not. .xml files in the Host appBase will be ignored.
>
>[Sigh...]  I thought I had it.  Checking back, I see that only the
>balancer sample app has it context description file there.

No it isn't... Oh, I see what you mean.  It isn't in the appBase, but in
the docBase of the balancer webapp.  Not sure why it is there.  Either way,
it isn't doing anything.  Probably an oversight.  It won't cause any harm
either way.


>>You need to put your Context elements in XML files next to the ones for
>>the manager and admin, and it will work ok.
>
>OK, I tried doing searches of the various *.xml files.  Here's what I found:
>
>balancer.xml is in:
>       %CATALINA_HOME%\webapps\balancer
>       %CATALINA_HOME\conf\Catalina\localhost

Like I said above, the former doesn't do anything.  The latter is
recognized, though.


>jsp-examples.xml is in:
>       can't find it, but it got installed according to stdout.log

Of course it did. There has never been a rule that says you *must* define a
<Context> for each webapp.  It is entirely optional.  If not found, Tomcat
will load up the webapp with defaults.

>servlets-examples.xml is in:
>       can't find it, but it got installed according to stdout.log

ditto

>admin.xml is in:
>       %CATALINA_HOME%\server\webapps\admin
>       %CATALINA_HOME\conf\Catalina\localhost
>
>manager.xml is in:
>       %CATALINA_HOME%\server\webapps\manager
>       %CATALINA_HOME\conf\Catalina\localhost
>

Ok, looks like the files within the docBase directory weren't an oversight
given that they are in those apps' docBase directories (or maybe it is just
a big oversight?).  Possibly it is just to provide a web-accessible way to
see how the application is configured?  Again, however, these files are not
used by Tomcat and are completely harmless.

>The %CATALINA_HOME\conf\Catalina\localhost location is mentioned in the
>Tomcat docs

For Tomcat-5 (See http://cat-5.ora-code.com).0.xx, not for Tomcat-4 (See http://cat-4.ora-code.com).1.xx

>, but I thought the server.xml location was mentioned also.
>To top it all off,  the book TOMCAT, THE DEFINITIVE  GUIDE (the only
>O'Reilly book I've ever been disappointed in) says the *.xml context
>descriptions (or "fragments", is it calls them) are placed in
>%CATALINA_HOME%\webapps directory.

They aren't wrong, at least not for Tomcat-4 (See http://cat-4.ora-code.com).1.xx. That is exactly where
they go for the 4.1.xx releases.  They changed things in Tomcat5 to store
them in CATALINA_HOME/conf/Catalina/[some host]

>[signed]
>Confused in Austin

Hopefully my response cleared the confusion.

Jake



>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)