DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-08-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2004-08-30 19:59 ---
OK, I'm closing this item.  In summary:
- For Tomcat 5.0.x, docBase is required.  For some scenarios we could deduce 
it, but that's extra work that's not always trivial and will not be that 
portable to Tomcat 5.5.x.
- Use relative docBases whenever possible to make WAR files more transferable 
across machines.
- Use the other usual mechanisms, e.g. Ant filter tokens, so that only one 
version of the WAR file needs to be in source control.
- For Tomcat 5.5.x, the behavior of the deployer is sufficiently different that 
this item MAY be reconsidered.  Let's wait for 5.5.0, test it out, and if need 
be discuss the item on the mailing list BEFORE re-opening this issue or another 
one for 5.5.0.

Thanks ;)

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-07-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-07-29 11:31 ---
Is there a spec of the new deployer somewhere? Thanks.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-07-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-07-29 13:24 ---
No. How are you doing stuff right now ?

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-07-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-07-29 14:30 ---
Here's our current approach (Martin, please correct me if I am wrong).

1) In the source, the docBase attribute is not present. This allows us to share
context.xml in CVS. context.xml is placed under docBase/META-INF

2) At build time, we insert docBase with absolute value to context.xml in the
build directory. The disadvantage of this is that the build products (war
file) are not transferable to another machine - that's what we'd like to fix.

3) We use manager to deploy the application directly from the build directory,
without copying it under catalina_base/webapps, which saves time when
(re)deploying.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-07-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-07-29 14:42 ---
The next Tomcat relies more on copying, esp in order to fight file locking.

So what you'll do with that release is that you'll give the deployer your XML
file, with the right docBase, rather than the folder name (it would copy it to
webapps; this is indeed slower, but the idea is that hot deployment would
actually really work if everything is consistent).

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-07-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-07-28 21:39 ---
Given the refactoring of the deployer in Tomcat 5.1, I also think this item is 
obsolete.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-06-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-06-04 10:56 ---
Per Yoav's suggestion, I filed a new enhancement request which asks for docBase
to be optional, see issue 29390.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-06-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-06-04 11:04 ---
*** Bug 29390 has been marked as a duplicate of this bug. ***

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-06-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WONTFIX |



--- Additional Comments From [EMAIL PROTECTED]  2004-06-04 12:33 ---
Ok, I was just following Yoav's suggestion. Nevermind, so I am reopening this
issue. Please feel free to comment on the use case I stated above.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-06-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-06-04 13:04 ---
I see some anectodical benefits to this, but due to the JavaBean way of doing
things in Catalina (at least right now), it's not easy to do. And I don't want
to add more hacks in that poor deployer, so my opinion on this enh is WONTFIX.
As usual, you don't care ;)
Anyway, there's no point in creating duplicates. You probably misunderstood what
Yoav meant.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-05-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-05-27 09:39 ---
I may have a different motivation than David, but I too think that docBase
should not be required in some situations. Consider the following scenario:

1. I deploy the war file (or expanded war structure) locally, it's already
present on the machine where I run Tomcat.
2. The war file is not under webapps; it resides outside the server installation
3. I have put context.xml into the archive's META-INF directory, as recommended
by http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html

In this case, I will supply the location of the war file when deploying using
manager, and I expect the server will use the 'path' attribute for the context
path. However, it shouldn't require the 'docBase' attribute, as that's already
determined by the war location. After all, Jan Luehe says in his evaluation of
28272 that sometimes docBase is ignored:

   'path' attribute inside META-INF/context.xml is used, whereas 'docBase'
   attribute is ignored (it is implicitly set to the WAR file location).

Currently, omitting 'docBase' in my scenario will not work, because the server
will not find the deployed application after restart.

I suggest this could be fixed as follows: When manager deploys the application,
then besides copying context.xml into $CATALINA_BASE/conf/Catalina/localhost, it
also maintains information about the 'docBase' of deployed applications for apps
that do not specify docBase in context.xml. (This could be done by maintaining a
properties file that maps file names of context.xml files in
$CATALINA_BASE/conf/Catalina/localhost to real docBase locations of the
applications.)

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-05-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2004-05-26 16:48 ---
docBase, like path, is a required attribute of the Context element.  It doesn't 
matter with the current implementation whether that Context is defined in 
server.xml or in a WAR file (and I'm not sure we want it to matter).

I agree that under some circumstances, Tomcat might be able to deduce the 
docBase for you, but that's not always the case.  If you wish to make the 
docBase attribute optional, please open a separate request for enhancement 
issue in Bugzilla and explain your reasoning.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-05-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-05-26 17:03 ---
Tomcat not only can, but does deduce the docBase. Anything that I deploy with 
the manager app has a docBase in the Catalina/localhost/blah.xml file. If I 
drop a war into the webapps directory that doesn't have a context.xml file set 
it a docBase automatically set for it too.

If docBase is not optional then the bug is that the manager app lets me deploy 
a war file without the docBase set. This should fail and does not.

I'm not sure how this make sense though. When I deploy using the manager app is 
the docBase used to determine where to upload the war file to on the server? If 
not how would one deal with a docBase that doesn't match the location of where 
Tomcat decides to put the upload.

Putting a relative path in there doesn't make sense to me either. If I put 
foo.war for the docBase in foo.war I can't just rename the war file and deploy 
it to another context - which would have been possible if I had not put a 
context.xml file in the war file.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-04-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-04-12 12:49 ---
Yes, it works with the manager tool even if I don't have a docBase set, but I 
wasn't using the manager tool. Is dropping a war file into the webapps 
directory no longer supported? If it is the requirements for what you can put 
in the context.xml file are not clear. How that file is used is also not clear. 
I assumed it provided default settings for fields not set in the context file 
created in the conf/Catalina/localhost directory, but that doesn't seem to be 
the case.

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-04-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase





--- Additional Comments From [EMAIL PROTECTED]  2004-04-11 05:33 ---
Hope this isn't stating the obvious, but you if your .war file is named
myapp.war, you can set the docBase to myapp.war, do a manager deploy, and it
will work fine.  It does seem a bit redundant, though, since Tomcat could
provide that info itself.  I guess I haven't run into an issue with the way
things currenly work so this arguable redundancy isn't overly important to me.

Jake

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-04-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2004-04-08 08:35 ---
*** Bug 28272 has been marked as a duplicate of this bug. ***

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



DO NOT REPLY [Bug 27916] - context.xml in war appears to require a docBase

2004-03-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27916

context.xml in war appears to require a docBase

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Normal  |Enhancement



--- Additional Comments From [EMAIL PROTECTED]  2004-03-24 19:43 ---
I'll eventually test this.

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