DO NOT REPLY [Bug 31276] - Child elements of context.xml are lost when deployed in a war

2004-11-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=31276


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Platform||All




--- Additional Comments From [EMAIL PROTECTED]  2004-11-17 14:54 ---
Was there an app.xml in conf/Catalina/localhost already?  Such aas from a 
previous deployment?  If so, it won't be overwritten by the HTML manager 
deployment.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 31276] - Child elements of context.xml are lost when deployed in a war

2004-11-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=31276


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2004-11-22 15:57 ---
This works for me fine when doing a clean deployment.  If there's already an 
app.xml in conf/[engine]/[host] then it won't be overwritten, and the effect is 
that META-INF/context.xml will appear to be ignored.  So you need to be 
vigilant about the server's configuration state with respect to these app.xml 
file when using the META-INF/context.xml feature.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 31276] - Child elements of context.xml are lost when deployed in a war

2005-02-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=31276


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |




--- Additional Comments From [EMAIL PROTECTED]  2005-02-25 12:27 ---
I have rechecked the sitation and it definitely happens as I describe. Let me 
explain again, starting with a clean installation of Tomcat.

I created a war file that contained a context.xml that included a parameter 
(see attachment). This file exists on the server but not in any place that 
Tomcat knows about. Then I go through the following steps (on Tomcat 5.0.28).

1. Use the HTML manager. In "WAR or directory URL:" I 
put "file:/apps/servlet/targets/test/MyApp.war" and click Deploy

2. The war file onthe server is untouched by tomcat and a copy is not placed in 
webapps. Tomcat does create "myapp.xml" in conf/Catalina/localhost but the 
parameters are lost:




3. I go to the test JSP page and I get
  Context param: myparam = My test parameter 
It worked because the parameters were used, just not copied through to 
conf/Catalina/localhost/myapp.xml

4. If I stop teh server and restart it, it obviously uses the new myapp.xml, 
fails to find the parameter and the JSP page returns:
  Context param: myparam = null 

I also tried this on Tomat 5.5.7 but got entirely different (and more 
confusing) results

1. Use the HTML manager. In "WAR or directory URL:" I 
put "file:/apps/servlet/targets/test/MyApp.war" and click Deploy
This fails with "Invalid context path". I get around this by adding /myapp to 
the web form in "Context Path". Why do I need to do this? It says this is 
optional and I wanted Tomcat to get the path out of the context file in the war.

2. This time Tomcat creates a copy of MyApp.war in the webapps directory as 
myapp.war and correctly copies the context.xml file to 
conf/Catalina/localhost/myapp.xml


So, 
  Tomcat 5.0.28 appears to have a bug
  Tomcat 5.5.7 does not appear to operate as I expected


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 31276] - Child elements of context.xml are lost when deployed in a war

2005-02-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=31276





--- Additional Comments From [EMAIL PROTECTED]  2005-02-25 12:29 ---
Created an attachment (id=14359)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=14359&action=view)
The war file I was testing Tomcat with


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 31276] - Child elements of context.xml are lost when deployed in a war

2005-02-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=31276





--- Additional Comments From [EMAIL PROTECTED]  2005-02-25 13:02 ---
Tomcat 5.5.7 will never get the context path from your context file. I recommend
you get used to it, because this will not be changed.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 31276] - Child elements of context.xml are lost when deployed in a war

2005-03-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=31276


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WONTFIX




--- Additional Comments From [EMAIL PROTECTED]  2005-03-11 04:08 ---
If you feel like posting a patch for 5.0.30, that's great.  Evidently, no one 
else feels like working on it.  For 5.5.x, see Remy's remarks.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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