RE: TryNo2: path attribute for Context element in tomcat 5.5

2005-11-24 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: TryNo2: path attribute for Context element in tomcat 5.5
 
 I am just wondering if you have any comments on the following email:

What kind of comments are you looking for?  The OP encountered a
problem, read the doc, corrected his configuration, and resolved the
problem.  Other than perhaps reading the doc first (difficult to know
where to read, of course), it looks like he did everything right.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: TryNo2: path attribute for Context element in tomcat 5.5

2005-11-24 Thread Hassan Schroeder
Akoulov, Alexandre [IT] wrote:

 I am just wondering if you have any comments on the following email:

 Is it a right way to configure a context ? 

You configured it one way and it didn't work.

You configured it *per the documentation* and it *did* work.

What kind of comment would seem to be necessary? :-)

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



RE: TryNo2: path attribute for Context element in tomcat 5.5

2005-11-24 Thread Akoulov, Alexandre [IT]
thanks a lot, Hassan and Chuck, for your replies.

Context element description 
(http://tomcat.apache.org/tomcat-5.5-doc/config/context.html) : path... The 
context path of this web application...The value of this field must not be set 
except when statically defining a Context in server.xml, as it will be infered 
from the filenames used for either the .xml context file or the docBase. 

I just find it a bit strange that tomcat5 derives the Context path from the 
actual filename. Was not the tomcat3 way of setting the context path in the 
'path' attribute better? Does anyone know the story behind this change?


Kind regards,

Alex. 

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 November 2005 2:47 AM
To: Tomcat Users List
Subject: Re: TryNo2: path attribute for Context element in tomcat
5.5


Akoulov, Alexandre [IT] wrote:

 I am just wondering if you have any comments on the following email:

 Is it a right way to configure a context ? 

You configured it one way and it didn't work.

You configured it *per the documentation* and it *did* work.

What kind of comment would seem to be necessary? :-)

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



RE: path attribute for Context element in tomcat 5.5

2005-11-24 Thread Akoulov, Alexandre [IT]
I'd greatly appreciate if you could give me the feedback on the following email:

-Original Message-
From: Akoulov, Alexandre [IT] 
Sent: Wednesday, 23 November 2005 12:16 PM
To: Tomcat Users List
Subject: path attribute for Context element in tomcat 5.5


Hi all,

I am in the process of upgrading from tomcat-3.3 to tomcat-5.5.12.

One of the changes in tomcat 5.5 is the configuration of contexts (ie web apps) 
is now being done in individual files (with a .xml extension) in the 
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory ( rather than in 
$CATALINA_HOME/conf/server.xml, which is a tomcat-3.3 way).

To test this new configuration I've created the 
$CATALINA_HOME/conf/Catalina/localhost/test.xml with the following content:

-
?xml version='1.0' encoding='utf-8'?

Contextpath=/testProjYY
docBase=/home/alex/release/TestProj/war  
reloadable=true crossContext=true allowLinking=true 
 
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/alex/release/tomcat-5.5/logs  
prefix=localhost_log_TestProj. suffix=.txt
timestamp=true/
/Context 
-

As you can see the 'path' attribute is '/testProjYY' and in order to access 
this app I tried to hit 
http://sydap42d.aus.nsroot.net:8080/testProjYY/TestServlet url and  I got 
404 (The requested resource (/testProjYY/TestServlet) is not available.) error.

So I went to Context element description 
(http://tomcat.apache.org/tomcat-5.5-doc/config/context.html) and found the 
following : path... The context path of this web application...The value of 
this field must not be set except when statically defining a Context in 
server.xml, as it will be infered from the filenames used for either the .xml 
context file or the docBase. Last sentence indicates that the 'path' attribute 
value is ignored, unless Context element is defined in server.xml (which is not 
encouraged in tomcat-5.5), and .xml file name is used as a context path 
instead. 

Therefore I've modified $CATALINA_HOME/conf/Catalina/localhost/test.xml (got 
rid of the 'path' tag): 

-
Context docBase=/home/alex/release/TestProj/war  
reloadable=true crossContext=true allowLinking=true 
 
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/alex/release/tomcat-5.5/logs  
prefix=localhost_log_TestProj. suffix=.txt
timestamp=true/
/Context 
-

Then I hit http://sydap42d.aus.nsroot.net:8080/test/TestServlet (/test context 
path is derived from $CATALINA_HOME/conf/Catalina/localhost/test.xml filename) 
and got the html generated by TestServlet. 

Is it a right way to configure a context ? It just seems a bit strange that the 
'path' attribute is completely ignored and instead the filename is used as a 
context path.


Thanks a lot for your time and assistance on this matter.


Kind regards,

Alex.




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


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



RE: path attribute for Context element in tomcat 5.5

2005-11-24 Thread Akoulov, Alexandre [IT]
woops, sent it by mistake, just ignore please
:)

-Original Message-
From: Akoulov, Alexandre [IT] 
Sent: Thursday, 24 November 2005 5:51 PM
To: Tomcat Users List
Subject: RE: path attribute for Context element in tomcat 5.5


I'd greatly appreciate if you could give me the feedback on the following email:

-Original Message-
From: Akoulov, Alexandre [IT] 
Sent: Wednesday, 23 November 2005 12:16 PM
To: Tomcat Users List
Subject: path attribute for Context element in tomcat 5.5


Hi all,

I am in the process of upgrading from tomcat-3.3 to tomcat-5.5.12.

One of the changes in tomcat 5.5 is the configuration of contexts (ie web apps) 
is now being done in individual files (with a .xml extension) in the 
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory ( rather than in 
$CATALINA_HOME/conf/server.xml, which is a tomcat-3.3 way).

To test this new configuration I've created the 
$CATALINA_HOME/conf/Catalina/localhost/test.xml with the following content:

-
?xml version='1.0' encoding='utf-8'?

Contextpath=/testProjYY
docBase=/home/alex/release/TestProj/war  
reloadable=true crossContext=true allowLinking=true 
 
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/alex/release/tomcat-5.5/logs  
prefix=localhost_log_TestProj. suffix=.txt
timestamp=true/
/Context 
-

As you can see the 'path' attribute is '/testProjYY' and in order to access 
this app I tried to hit 
http://sydap42d.aus.nsroot.net:8080/testProjYY/TestServlet url and  I got 
404 (The requested resource (/testProjYY/TestServlet) is not available.) error.

So I went to Context element description 
(http://tomcat.apache.org/tomcat-5.5-doc/config/context.html) and found the 
following : path... The context path of this web application...The value of 
this field must not be set except when statically defining a Context in 
server.xml, as it will be infered from the filenames used for either the .xml 
context file or the docBase. Last sentence indicates that the 'path' attribute 
value is ignored, unless Context element is defined in server.xml (which is not 
encouraged in tomcat-5.5), and .xml file name is used as a context path 
instead. 

Therefore I've modified $CATALINA_HOME/conf/Catalina/localhost/test.xml (got 
rid of the 'path' tag): 

-
Context docBase=/home/alex/release/TestProj/war  
reloadable=true crossContext=true allowLinking=true 
 
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/alex/release/tomcat-5.5/logs  
prefix=localhost_log_TestProj. suffix=.txt
timestamp=true/
/Context 
-

Then I hit http://sydap42d.aus.nsroot.net:8080/test/TestServlet (/test context 
path is derived from $CATALINA_HOME/conf/Catalina/localhost/test.xml filename) 
and got the html generated by TestServlet. 

Is it a right way to configure a context ? It just seems a bit strange that the 
'path' attribute is completely ignored and instead the filename is used as a 
context path.


Thanks a lot for your time and assistance on this matter.


Kind regards,

Alex.




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


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


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



path attribute for Context element in tomcat 5.5

2005-11-22 Thread Akoulov, Alexandre [IT]
Hi all,

I am in the process of upgrading from tomcat-3.3 to tomcat-5.5.12.

One of the changes in tomcat 5.5 is the configuration of contexts (ie web apps) 
is now being done in individual files (with a .xml extension) in the 
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory ( rather than in 
$CATALINA_HOME/conf/server.xml, which is a tomcat-3.3 way).

To test this new configuration I've created the 
$CATALINA_HOME/conf/Catalina/localhost/test.xml with the following content:

-
?xml version='1.0' encoding='utf-8'?

Contextpath=/testProjYY
docBase=/home/alex/release/TestProj/war  
reloadable=true crossContext=true allowLinking=true 
 
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/alex/release/tomcat-5.5/logs  
prefix=localhost_log_TestProj. suffix=.txt
timestamp=true/
/Context 
-

As you can see the 'path' attribute is '/testProjYY' and in order to access 
this app I tried to hit 
http://sydap42d.aus.nsroot.net:8080/testProjYY/TestServlet url and  I got 
404 (The requested resource (/testProjYY/TestServlet) is not available.) error.

So I went to Context element description 
(http://tomcat.apache.org/tomcat-5.5-doc/config/context.html) and found the 
following : path... The context path of this web application...The value of 
this field must not be set except when statically defining a Context in 
server.xml, as it will be infered from the filenames used for either the .xml 
context file or the docBase. Last sentence indicates that the 'path' attribute 
value is ignored, unless Context element is defined in server.xml (which is not 
encouraged in tomcat-5.5), and .xml file name is used as a context path 
instead. 

Therefore I've modified $CATALINA_HOME/conf/Catalina/localhost/test.xml (got 
rid of the 'path' tag): 

-
Context docBase=/home/alex/release/TestProj/war  
reloadable=true crossContext=true allowLinking=true 
 
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/alex/release/tomcat-5.5/logs  
prefix=localhost_log_TestProj. suffix=.txt
timestamp=true/
/Context 
-

Then I hit http://sydap42d.aus.nsroot.net:8080/test/TestServlet (/test context 
path is derived from $CATALINA_HOME/conf/Catalina/localhost/test.xml filename) 
and got the html generated by TestServlet. 

Is it a right way to configure a context ? It just seems a bit strange that the 
'path' attribute is completely ignored and instead the filename is used as a 
context path.


Thanks a lot for your time and assistance on this matter.


Kind regards,

Alex.




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