AW: jk connector and response.sendRedirect()

2003-07-30 Thread Fischer, Ilona
I'm not a programmer but an administrator.
We have had an similar problem and solved it by changing the apache option
UseCanonicalNames from on to off. 
[when UseCanonicalName ist on, everytimes you call response.sendRedirect()
the apache takes the servername (from httd.conf) and make the absolute URL.
If you are switching UseCanonicalNames to off, apache takes the hostname
from the incoming HTTP-Header]

Maybe this tip helps

Regards :o)
Ilona


 -Ursprüngliche Nachricht-
 Von: Chris Egolf [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 30. Juli 2003 16:18
 An: [EMAIL PROTECTED]
 Betreff: jk connector and response.sendRedirect()
 
 
 I'm pulling my hair out on this one, but I think I've 
 narrowed it down so I can 
 at least ask the question...
 
 We're running Tomcat 4.1.24/Apache 1.3.27/Sun JDK 1.4.2 using 
 mod_jk.  The issue 
 we're dealing with now, is that in some cases an existing 
 webapp uses the 
 response.sendRedirect() method to redirect the client to 
 another relative URL. 
 Previously, we were using the warp connector and everything 
 worked fine.  Now, 
 using mod_jk, the redirect fails causing the browser to say 
 it can't find the 
 host.
 
 Here's what I've tried so far.  I removed Apache from the mix 
 and setup the 
 Coyote HTTP/1.1 connector to listen to port 80.  Everything 
 works fine with this 
 setup, so it must be a connector thing, right?
 
 With just the JK connector enabled and listening on 8009, 
 I've added Apache back 
 and setup Alias elements in the Host element of my 
 server.xml.  The host the 
 browser says it can't find is the actual hostname of the 
 machine, not the DNS 
 entry.
 
 I believe this is a problem unique to the jk connector (or 
 how I have it 
 configured) and the response.sendRedirect() method.  Here's 
 the documentation 
 from the servlet API:
 
 public void sendRedirect(java.lang.String location)
throws java.io.IOException
 
  Sends a temporary redirect response to the client using 
 the specified 
 redirect location URL. This method can accept relative URLs; 
 the servlet 
 container will convert the relative URL to an absolute URL 
 before sending the 
 response to the client.
 
  If the response has already been committed, this method 
 throws an 
 IllegalStateException. After using this method, the response 
 should be 
 considered to be committed and should not be written to.
 
 Here's the connector and Host element stuff from my server.xml:
 ...
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true acceptCount=10 debug=0
 connectionTimeout=0 useURIValidationHack=false/
 ...
 
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
  Aliasdemo.mycompany.com/Alias
  Aliasgoatweed/Alias
  Aliasdemo/Alias
  Aliasgoatweed.mycompany.com/Alias
  Aliasdemo.anotherdomain.net/Alias
  Aliasgoatweed.anotherdomain.net/Alias
 ...
 /Host
 
 Anyone have any ideas or see a glaring mistake on my part?  
 I'll gladly provide 
 more info if needed.
 
 Thanks,
 
 Chris Egolf
 
 
 -
 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]



AW: Does Tomcat load config. files dynamically?

2003-07-30 Thread Fischer, Ilona
Hallo Yoav
 Web.xml for a given webapp is read when the webapp is loaded 
 (normally on server startup), and you can have it reloaded by 
 reloading the webapp (via the manager webapp), without 
 restarting the whole server.
If i'm reloading the webapp via manager application, all users lost there
sessions, isn't it?

Regards :o)
Ilona

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



AW: tomcat startup problem - tomcat window disappears

2003-07-24 Thread Fischer, Ilona
Alternative:
open a cmd-line
go to your Tomcat-Installation-Path ( E:\TomCat4.1)
change to bin ( E:\TomCat4.1\bin)
call catalina.bat run

:o)
Ilona


-Ursprüngliche Nachricht-
Von: Andrew Liles [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 24. Juli 2003 11:05
An: 'Tomcat Users List'
Betreff: RE: tomcat startup problem - tomcat window disappears


Edit 
tomcat/bin/startup.bat

in one of the last lines change the keyword start to run. 
 Then go into
a DOS box and run startup.bat.  This time any faults will 
remain on the
screen and you can start debugging from there.

 -Original Message-
 From: Gayathrie Gunawardene [mailto:[EMAIL PROTECTED]
 Sent: 21 July 2003 19:15
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 
 [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: tomcat startup problem
 
 
 Hi,
 
 I get the following message when I run startup command.  
 Using CATALINA_BASE:   E:\TomCat4.1
 
 Using CATALINA_HOME:   E:\TomCat4.1
 
 Using CATALINA_TMPDIR: E:\TomCat4.1\temp
 
 Using JAVA_HOME:   E:\jdk1.4
 
 I see a tomcat window open and suddenly disappear. No matter 
 how hard I tried to run, the result is the same all the time. 
 I use tomcat4.1 and JDK1.4 on Windows 2000 adv. server platform.
 
 Pls Help
 
 GG
 
 [EMAIL PROTECTED]
 
 
 
 
_
 This e-mail has been scanned for viruses by MessageLabs.
 

_
This e-mail has been scanned for viruses by MessageLabs.

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



AW: JK2 connector

2003-07-22 Thread Fischer, Ilona
Hi John!
 If Apache and Tomcat are on the same machine, is there any difference
concerning performance between: 
worker.myhost.host=localhost
worker.myhost.host=127.0.0.1
worker.myhost.host=10.0.0.71

Regards :o)
Ilona

-Ursprüngliche Nachricht-
Von: John Turner [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. Juli 2003 14:45
An: Tomcat Users List
Betreff: Re: JK2 connector



In workers.properties, change worker.ajp13.host to the IP address of the 
server where Tomcat is installed.

John

v.siguier wrote:
 Thank you very much for your help !
 Your document should be in Jakarta-Apache web site.
 I have one question more : what do I have to do if http server and
application server are not on the same computer ?
 
 Vincent
 
 
 
If you are using mod_jk_2.0.46.dll, that would be mod_jk, not mod_jk2.

Check out my HOWTO for Windows, it covers everything step by step.  The 
version numbers are a little out of date, but it shouldn't matter.

http://www.johnturner.com/howto

Incidentally, I had a little trouble with the DLL for .46, I ended up
using 
the DLL for .43.  That was several weeks ago, it is possible the problems 
are fixed now, but if you run into some issues that you can't solve, you 
might want to try dropping back to the .43 DLL.

John



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



AW: JK2 connector

2003-07-22 Thread Fischer, Ilona
Oh, good idea :o)
We are using w2k and i just now checked the maximum packetsize  my machine
was able to transfer without fragmentation (ping -f -l [packetsize]). It
seems to be 1472 regardless of destination (localhost or ip of the host).
But of course you are right, its unnecessary to busy the whole network
drivers layers.

Okay... i'm now going to check out all our machines if there is anywhere an
IP instead of localhost (we have some troublemaker... may this resolves
their problems)

Thank you for explanation :o)
Ilona

-Ursprüngliche Nachricht-
Von: Halstead, Chris [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. Juli 2003 18:57
An: Tomcat Users List
Betreff: RE: JK2 connector


Communication over 127.0.0.1 (or localhost, which should resolve to
127.0.0.1) should be more efficient than using the real IP.  The MTU over
loopback (127.0.0.1) is on the order of 8k in Solaris and 16k in current
Linux distros, whereas the MTU over a real IP maxes at 1500.  The larger MTU
will prevent fragmentation of your responses into multiple packets.  Using
loopback should also avoid going up and then back down the network driver
layers.  If all your communication is local, use localhost.

cheers,

-chris

 
 I highly doubt it.  Maybe something on the order of a few 
 milliseconds, 
 but certainly nothing I would worry about.
 
 Its been awhile since I looked at the mod_jk source, but my 
 guess is it 
 only reads workers.properties once, at startup, and if that's 
 the case, 
 there would be no difference in performance whatsoever.
 
 John
 
 Fischer, Ilona wrote:
 
  Hi John!
   If Apache and Tomcat are on the same machine, is there any 
 difference
  concerning performance between: 
  worker.myhost.host=localhost
  worker.myhost.host=127.0.0.1
  worker.myhost.host=10.0.0.71
  
  Regards :o)
  Ilona


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



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]



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]



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]