is the context automatically generated on auto-deploy?

2004-07-12 Thread Joel
In the deployer how-to at

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

the docs state that, for eploying on startup, at least, ... a matching
Context XML descriptor will be created unless one exists already.

Under the description of context descriptors, it seems to say the files
will be in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.

I dropped the xindice.war from the xml projects into the webapps
directory, and I can access it. (I did this twice, actually. First time
I was running Java 1.5 beta, and I dropped it live. This time it's Java
1.4 and I dropped it in while TC was down.)  Xindice is expanded
automagically in the webapps directory, and I can access it, do queries,
etc.

I look in my $CATALINA_HOME/conf directory, and all I see is 

Catalina\localhost\{ admin.xml, balancer.xml, manager.xml }

No other files or directories.

Nor can I see any sign of a xindice.xml or context.xml in the xindice
directory structure under webapps. 

There is a web.xml under WEB-INF and contains the servlet and
servlet-mapping declarations, and security-constraints commented out.
Conceptually, that's context kinds of specification, but it doesn't look
like what 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

leads me to expect. 

There is a system.xml under WEB-INF and it seems to contain application
specific declarations of the database and of XML-RPC. There is also a
configs/commands.xml which is very definitely application specific.
Clearly, neither of these is the context file.

So, does the automatically configured context actually get written out
anywhere? If so, I'm either looking for context in all the wrong places
or I've got this thing set up so strange it doesn't wanna do the right
thing.

-- 
Joel [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: is the context automatically generated on auto-deploy?

2004-07-12 Thread Joel
On Mon, 12 Jul 2004 18:05:21 +0900 I wrote

 In the deployer how-to at
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
 
 the docs state that, for eploying on startup, at least, ... a matching
 Context XML descriptor will be created unless one exists already.
 
 Under the description of context descriptors, it seems to say the files
 will be in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.

Okay, I think I can see that this is basically an undesired result under
TC 5. (Although I kinda wish I knew why my setup is doing what is
apparently the right thing after all.)

 I dropped the xindice.war from the xml projects into the webapps
 directory, and I can access it. (I did this twice, actually. First time
 I was running Java 1.5 beta, and I dropped it live. This time it's Java
 1.4 and I dropped it in while TC was down.)  Xindice is expanded
 automagically in the webapps directory, and I can access it, do queries,
 etc.
 
 I look in my $CATALINA_HOME/conf directory, and all I see is 
 
 Catalina\localhost\{ admin.xml, balancer.xml, manager.xml }
 
 ...

I finally found a place where it says the app\WEB-INF\context.xml file
is the one _I_ am supposed to write for the app if it needs one.

But it looks like the context elements can also go in
app\WEB-INF/web.xml, and the documentation seems to mention web.xml more
than context.xml, which is a little confusing. (If I were confident of
my interpretation, I'd offer some diffs.)

I thought I saw mention of the default context specification buried
somewhere in a source directory. Wish I could find it, although it may
not turn out to be useful as an example of what should go in it.

-- 
Joel [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]