2 newbie questions: Apache-tomcat

2003-07-18 Thread Fischer, Ilona
1. is it possibly apply aliases to tomcat?
For example: the webapp-root is /www/mywebapp. 
I want to mount an directory /other/directory/help to the name help
(httpd.conf: alias /help other/directory/help). But when i'm calling
http://mywebsite/help it crash's with a 404 error:o( . When i'm using JRUN,
all is okay. Jrun handle aliases without problems. But Tomcat don't???

2. is the Option JkMount /*.jsp worker1 the same as JkMount /*/*.jsp
worker1? Or means /*.jsp only the *.jsp in the root of my webapp?
Can i wrote something like that: 
JkMount /servlet/* worker1
JkMount /anotherdirectory/servlet/* worker2
and it works? How about regexpressions in the JkMount-option? 

thanks very match
Ilona

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



Re: 2 newbie questions: Apache-tomcat

2003-07-18 Thread John Turner
On Fri, 18 Jul 2003 16:45:42 +0200, Fischer, Ilona 
[EMAIL PROTECTED] wrote:

1. is it possibly apply aliases to tomcat?
For example: the webapp-root is /www/mywebapp. I want to mount an 
directory /other/directory/help to the name help
(httpd.conf: alias /help other/directory/help). But when i'm calling
http://mywebsite/help it crash's with a 404 error:o( . When i'm using 
JRUN,
all is okay. Jrun handle aliases without problems. But Tomcat don't???
in server.xml:

Context path=/help docBase=/other/directory/help
/Context
2. is the Option JkMount /*.jsp worker1 the same as JkMount /*/*.jsp
worker1? Or means /*.jsp only the *.jsp in the root of my webapp?
Can i wrote something like that:JkMount /servlet/* worker1
JkMount /anotherdirectory/servlet/* worker2
and it works? How about regexpressions in the JkMount-option?
#1: no.  The second one is invalid, only one wildcard (*) is allowed.
#2: /*.jsp means send all requests ending in .jsp to Tomcat regardless 
of the directory structure
#3: yes. /servlet/* matches http://localhost/servlet/myServlet but not 
http://localhost/someDir/servlet/myServlet.
#4: no.

Best thing to do is try it and see.

John

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


RE: 2 newbie questions: Apache-tomcat

2003-07-18 Thread Ralph Einfeldt

If you go this way you you have to be carefull with the 
alias directive. (If you let tomcat serve everything,
you don't need the alias, but that's quite uncommon)

If you have static resources that are directly delivered 
through apache, apache has to alias just this resources, 
not the the ones that are delivered through tomcat.
(Otherwise tomcat cant match the url against /help.

Another thing is, that you create a new context for the
alias. If help is just one part of a webapp this can have
some impact on the application.

Another option is to use the alias in apache as it is,
and setup tomcat to match the alias url.

Context path=/other

and have a file like
AppRoot/other/directory/help/index.html

Or 
Context path=
and have a file like
AppRoot/webapp/other/directory/help/index.jsp

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 4:53 PM
 To: Tomcat Users List
 Subject: Re: 2 newbie questions: Apache-tomcat
 
 
 in server.xml:
 
 Context path=/help docBase=/other/directory/help
 /Context
 

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



AW: 2 newbie questions: Apache-tomcat

2003-07-18 Thread Fischer, Ilona
John and Ralph: thanks for help! :o)

aliases: in principle- it works :o) but there was an error on tomcat-start:
Missing application web.xml, using defaults only. Our application web.xml
is located in %docroot%/WEB-INF/classes. Why Tomcat dosn't find them if i
call the alias? The Rest of the application works fine.

JkMount: now i understand the whole thing is a little bit better. It's a
pitty that the documentation is so sparing of words

Greeting :o)
Ilona

-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Juli 2003 17:26
An: Tomcat Users List
Betreff: RE: 2 newbie questions: Apache-tomcat



If you go this way you you have to be carefull with the 
alias directive. (If you let tomcat serve everything,
you don't need the alias, but that's quite uncommon)

If you have static resources that are directly delivered 
through apache, apache has to alias just this resources, 
not the the ones that are delivered through tomcat.
(Otherwise tomcat cant match the url against /help.

Another thing is, that you create a new context for the
alias. If help is just one part of a webapp this can have
some impact on the application.

Another option is to use the alias in apache as it is,
and setup tomcat to match the alias url.

Context path=/other

and have a file like
AppRoot/other/directory/help/index.html

Or 
Context path=
and have a file like
AppRoot/webapp/other/directory/help/index.jsp

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 4:53 PM
 To: Tomcat Users List
 Subject: Re: 2 newbie questions: Apache-tomcat
 
 
 in server.xml:
 
 Context path=/help docBase=/other/directory/help
 /Context
 

-
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: AW: 2 newbie questions: Apache-tomcat

2003-07-18 Thread John Turner
Hi -

You're welcome.

web.xml belongs in WEB-INF, not WEB-INF/classes.

John

On Fri, 18 Jul 2003 18:51:01 +0200, Fischer, Ilona 
[EMAIL PROTECTED] wrote:

John and Ralph: thanks for help! :o)

aliases: in principle- it works :o) but there was an error on tomcat- 
start:
Missing application web.xml, using defaults only. Our application 
web.xml
is located in %docroot%/WEB-INF/classes. Why Tomcat dosn't find them if i
call the alias? The Rest of the application works fine.

JkMount: now i understand the whole thing is a little bit better. It's a
pitty that the documentation is so sparing of words
Greeting :o)
Ilona
-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Juli 2003 17:26
An: Tomcat Users List
Betreff: RE: 2 newbie questions: Apache-tomcat


If you go this way you you have to be carefull with the alias directive. 
(If you let tomcat serve everything,
you don't need the alias, but that's quite uncommon)

If you have static resources that are directly delivered through apache, 
apache has to alias just this resources, not the the ones that are 
delivered through tomcat.
(Otherwise tomcat cant match the url against /help.

Another thing is, that you create a new context for the
alias. If help is just one part of a webapp this can have
some impact on the application.
Another option is to use the alias in apache as it is,
and setup tomcat to match the alias url.
Context path=/other

and have a file like
AppRoot/other/directory/help/index.html
Or Context path=
and have a file like
AppRoot/webapp/other/directory/help/index.jsp
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 4:53 PM
To: Tomcat Users List
Subject: Re: 2 newbie questions: Apache-tomcat
in server.xml:

Context path=/help docBase=/other/directory/help
/Context
-
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]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: AW: 2 newbie questions: Apache-tomcat

2003-07-18 Thread Fischer, Ilona
Sorry, John ... ist was an typing error. Of course, our  web.xml is in the
right path : %docroot%/WEB-INF... its friday...;o)

-Ursprüngliche Nachricht-
Von: John Turner [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Juli 2003 19:12
An: Tomcat Users List
Betreff: Re: AW: 2 newbie questions: Apache-tomcat



Hi -

You're welcome.

web.xml belongs in WEB-INF, not WEB-INF/classes.

John

On Fri, 18 Jul 2003 18:51:01 +0200, Fischer, Ilona 
[EMAIL PROTECTED] wrote:

 John and Ralph: thanks for help! :o)

 aliases: in principle- it works :o) but there was an error on tomcat- 
 start:
 Missing application web.xml, using defaults only. Our application 
 web.xml
 is located in %docroot%/WEB-INF/classes. Why Tomcat dosn't find them if i
 call the alias? The Rest of the application works fine.

 JkMount: now i understand the whole thing is a little bit better. It's a
 pitty that the documentation is so sparing of words

 Greeting :o)
 Ilona

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 18. Juli 2003 17:26
 An: Tomcat Users List
 Betreff: RE: 2 newbie questions: Apache-tomcat



 If you go this way you you have to be carefull with the alias directive. 
 (If you let tomcat serve everything,
 you don't need the alias, but that's quite uncommon)

 If you have static resources that are directly delivered through apache, 
 apache has to alias just this resources, not the the ones that are 
 delivered through tomcat.
 (Otherwise tomcat cant match the url against /help.

 Another thing is, that you create a new context for the
 alias. If help is just one part of a webapp this can have
 some impact on the application.

 Another option is to use the alias in apache as it is,
 and setup tomcat to match the alias url.

 Context path=/other

 and have a file like
 AppRoot/other/directory/help/index.html

 Or Context path=
 and have a file like
 AppRoot/webapp/other/directory/help/index.jsp

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 4:53 PM
 To: Tomcat Users List
 Subject: Re: 2 newbie questions: Apache-tomcat


 in server.xml:

 Context path=/help docBase=/other/directory/help
 /Context


 -
 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]





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
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]