RE: I can't access my webapplication from another computer

2008-02-29 Thread Ryan Webb

Dear Antonio,
 
Yes I think the machine which tomcat has been installled has firewall enabled 
Windows firewall..
Do you think that is the problem?
 
Thank you for replying on short notice.
 
GodBless,
Ryan Webb - Philippines Date: Fri, 29 Feb 2008 08:47:14 +0100 From: [EMAIL 
PROTECTED] To: users@tomcat.apache.org Subject: Re: I can't access my 
webapplication from another computer  2008/2/29, Ryan Webb [EMAIL 
PROTECTED]:   http://192.168.1.2/webapplication/login.jspIs the 
machine behind a firewall (even software firewall)? Is your client computer in 
the same subnet of your server?  Antonio
_
Get your free suite of Windows Live services today!
http://www.get.live.com/wl/all

RE: I can't access my webapplication from another computer

2008-02-29 Thread Ryan Webb

Dear Partha,
 
My OS is windows XP professional SP2 and I configured Tomacat port to 80
Thanks for your quick reply..
 
GodBless,
Ryan Webb -- Philippines Date: Fri, 29 Feb 2008 13:16:56 +0530 From: [EMAIL 
PROTECTED] To: users@tomcat.apache.org Subject: Re: I can't access my 
webapplication from another computer  what's the tomcat port?  ur OS ?  On 
Fri, Feb 29, 2008 at 1:14 PM, Ryan Webb [EMAIL PROTECTED] wrote:
Hello,   I am new to Tomcat and i wish you would lend a hand.   Here's 
the situation:  I installed Tomcat 6.0.14 full install and I copied my .war 
file into  /webapps  I checked if my webapplication is running by typing  
http://localhost/webapplication/login.jsp  and it worked ok..   Problem: 
 Unfortunately, when I tried to access my webapplication from another  
computer, I tried to type from url:  
http://192.168.1.2/webapplication/login.jsp, the browser always gives the  
Page cannot be displayed page.  (where the IP address is the address which 
Tomcat 6 was installed).  Are there futher configurations needed to be done? 
  You may give me links / websites that relates to my problem (if you're 
not  in the mood for explaining ha.ha!)   Thank you for reading my 
e-mail.   Godbless,  Ryan Webb -- from Philippines  
_  Get your 
free suite of Windows Live services today!  http://www.get.live.com/wl/all  
   --  Regards Partha Goswami Solaris/Open solaris User Group 
www.solaris-user-group.org
_
Help Splitzo Sally Before It’s Too Late! 
http://www.thegirlwhosplitinto5.com/

Re: I can't access my webapplication from another computer

2008-02-29 Thread Partha Goswami
humm,

Go the other computer, from where, u want to see, Go, its, command mode, 
type,
ping 192.168.1.2   send, me the output.

On Fri, Feb 29, 2008 at 1:34 PM, Ryan Webb [EMAIL PROTECTED] wrote:


 Dear Partha,

 My OS is windows XP professional SP2 and I configured Tomacat port to 80
 Thanks for your quick reply..

 GodBless,
 Ryan Webb -- Philippines Date: Fri, 29 Feb 2008 13:16:56 +0530 From:
 [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: I
 can't access my webapplication from another computer  what's the tomcat
 port?  ur OS ?  On Fri, Feb 29, 2008 at 1:14 PM, Ryan Webb 
 [EMAIL PROTECTED] wrote:Hello,   I am new to Tomcat and
 i wish you would lend a hand.   Here's the situation:  I installed
 Tomcat 6.0.14 full install and I copied my .war file into  /webapps  I
 checked if my webapplication is running by typing 
 http://localhost/webapplication/login.jsp  and it worked ok..  
 Problem:  Unfortunately, when I tried to access my webapplication from
 another  computer, I tried to type from url: 
 http://192.168.1.2/webapplication/login.jsp, the browser always gives the
  Page cannot be displayed page.  (where the IP address is the address
 which Tomcat 6 was installed).  Are there futher configurations needed to
 be done?   You may give me links / websites that relates to my problem
 (if you're not  in the mood for explaining ha.ha!)   Thank you for
 reading my e-mail.   Godbless,  Ryan Webb -- from Philippines 
 _  Get
 your free suite of Windows Live services today! 
 http://www.get.live.com/wl/all --  Regards Partha Goswami
 Solaris/Open solaris User Group www.solaris-user-group.org
 _
 Help Splitzo Sally Before It's Too Late!
 http://www.thegirlwhosplitinto5.com/




-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


Re: I can't access my webapplication from another computer

2008-02-29 Thread Antonio Petrelli
2008/2/29, Ryan Webb [EMAIL PROTECTED]:

 Yes I think the machine which tomcat has been installled has firewall
 enabled Windows firewall..
 Do you think that is the problem?



Probably. Configure Windows Firewall to open the port on which Tomcat runs.

Antonio


I cant access my webapplication issue is now Solved!

2008-02-29 Thread Ryan Webb

Dear fellow users,
 
I would like to thank all people who helped me solved my problem..
Problem is windows firewall I did not notice it was running.
I will configure windows firewall.
 
most reply was related to network, port and firewall..
 
God bless all of you.
 
Warmest regards,
Ryan Webb - Philippines
_
Help Splitzo Sally Before It’s Too Late! 
http://www.thegirlwhosplitinto5.com/

Re: JkRequestLogFormat Options

2008-02-29 Thread Ahmed Musa
Hallo Fred,

A - you're right - the missing Letter was the fault - i checked this 
command so many times -but don't see this. 
Thanks a lot
best
ahmed
 Original-Nachricht 
 Datum: Thu, 28 Feb 2008 12:23:25 -0800 (PST)
 Von: fredk2 [EMAIL PROTECTED]
 An: users@tomcat.apache.org
 Betreff: Re: JkRequestLogFormat Options

 
 Hi,
 
 btw, in your log format line you have %{JK_REQUEST_DURATON}n instead of
 %{JK_REQUEST_DURATION}n see the missing I.
 
 I am using 1.2.25 and i get times alike 0.0275 when using Apache 2.2
 
 Rgds, Fred
 
 
 Ahmed Musa wrote:
  
  Hallo,
  
  I am logging the mod_jk Output through the Apache access_log - as
 written
  in the reference found under
  http://tomcat.apache.org/connectors-doc/reference/apache.html
  
  Because i want to get clearness about what exactly is going on in our
  system i use the following LogFormat:
  
  LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
  \%{Cookie}i\ \%{Set-Cookie}o\ %{pid}P %{tid}P%T 
  %{JK_WORKER_NAME}n %{JK_REQUEST_DURATON}n %{JK_WORKER_ROUTE}n
  %{JK_LB_FIRST_NAME}n %{JK_LB_FIRST_BUSY}n %{JK_LB_FIRST_VALUE}n
  %{JK_LB_FIRST_ACCESSED}n %{JK_LB_FIRST_READ}n
 %{JK_LB_FIRST_TRANSFERRED}n
  %{JK_LB_FIRST_ERRORS}n %{JK_LB_FIRST_ACTIVATION}n
  %{JK_LB_FIRST_STATE}n %{JK_LB_LAST_NAME}n mod_jk_log
  
  ...everthing works fine except the Options responsible for the Request
  Duration.
  
  Mostly neither %T nor %{JK_REQUEST_DURATON}n have a Value (%T mostly is
 0
  an the other Parameter is -).
  At some Requests i found the %T has a value like for example 2 or 3.. -
  and JK_REQUEST DURATION has -
  or %T is 0 and JK_REQUEST_DURATION has an value like 2 or 3 ...
  
  First - why are there not values at each request ?
  Second -i think both Options are measuring the same Value - why they are
  not the same ?
  Third - why they are not showing seconds.microseconds as written in the
  reference but only (I think so) rounded seconds.
  
  We use mod_jk 1.2.26
  
  Thanks for help
  Best 
  ahmed
  -- 
  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
  http://games.entertainment.web.de/de/entertainment/games/free
  
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/JkRequestLogFormat-Options-tp15736214p15745192.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat load balanced with Apache HTTP Server and mod_jk

2008-02-29 Thread Rainer Jung

Hi Frannack,

No, not at the moment.

A partial workaround: add all balamncer members you are assuming to 
become valid in the future and put those, which don't yet exist into 
activation=Stopped


Then you can put them into active without restart, once you build them up.

BTW: apachectl graceful is not *that* bad any more (but it destroys 
non-persistent JK activation).


Regards,

Rainer

frannack Guimard wrote:



Hello,

Is there a way to add a Balancer Member to Apache HTTP Server on the fly?

I'm using Apache 2.2, Tomcat 5.5 and mod_jk. I have a Apache HTTP Server load 
balance request on the pool of workers (tomcat instances).
When I add a new worker, I would like Apache HTTP Server to be notify so it can 
add it on its balancer member list. I don't care if it's not persistent after 
reboot of the Apache HTTP Server.

Thank you,

Frannack


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JkRequestLogFormat Options

2008-02-29 Thread Ahmed Musa
Hallo Rainer,

thanks for your Input
- of course i have to change my FIRST and LAST variant (the FIRST_NAME i will 
use to check if the worker has changed) - but you're right - i am more 
interested in the LAST values.

Changed %T to %D - works fine, thanks

We upgraded to 1.2.26 last week - but the Values for ROUTE and DURATION are the 
same than before (1.2.25) - and we haven't set JkRequestLogFormat 
explicitly.(of course i wrote DURATION without I - now it's ok).

thanks
best ahmed



 Original-Nachricht 
 Datum: Thu, 28 Feb 2008 23:52:40 +0100
 Von: Rainer Jung [EMAIL PROTECTED]
 An: Tomcat Users List users@tomcat.apache.org
 Betreff: Re: JkRequestLogFormat Options

 In addition to Freds remark:
 
 Usually you want the LAST variant, instead of the FIRST variant. The 
 two are the same, if a loab balancer only tries one worker, but in case 
 of an error and failover, FIRST will be the first worker tried (so the 
 failed one) and LAST the last one, so usually the successful one (unless 
 all workers fail).
 
 %T: response time in seconds, and I think it always gets rounded down. 
 So usually not very useful
 
 Instead you could use the httpd standard %D, which is response time in 
 microseconds.
 
 Last remark: until JK 1.2.25 the variables JK_WORKER_ROUTE and 
 JK_REQUEST_DURATION where only filled, if some JkRequestLogFormat was 
 set. In your version 1.2.26 both of them should get set even with a 
 JkRequestLogFormat (but only, if the request gets handled by mod_jk, so 
 not for static content, that is returned by the web server without any 
 Tomcat interaction).
 
 Regards,
 
 Rainer
 
 Ahmed Musa schrieb:
  Hallo,
  
  I am logging the mod_jk Output through the Apache access_log - as
 written in the reference found under
  http://tomcat.apache.org/connectors-doc/reference/apache.html
  
  Because i want to get clearness about what exactly is going on in our
 system i use the following LogFormat:
  
  LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
 \%{Cookie}i\ \%{Set-Cookie}o\ %{pid}P %{tid}P%T 
  %{JK_WORKER_NAME}n %{JK_REQUEST_DURATON}n %{JK_WORKER_ROUTE}n
 %{JK_LB_FIRST_NAME}n %{JK_LB_FIRST_BUSY}n %{JK_LB_FIRST_VALUE}n
  %{JK_LB_FIRST_ACCESSED}n %{JK_LB_FIRST_READ}n
 %{JK_LB_FIRST_TRANSFERRED}n %{JK_LB_FIRST_ERRORS}n %{JK_LB_FIRST_ACTIVATION}n
  %{JK_LB_FIRST_STATE}n %{JK_LB_LAST_NAME}n mod_jk_log
  
  ...everthing works fine except the Options responsible for the Request
 Duration.
  
  Mostly neither %T nor %{JK_REQUEST_DURATON}n have a Value (%T mostly is
 0 an the other Parameter is -).
  At some Requests i found the %T has a value like for example 2 or 3.. -
 and JK_REQUEST DURATION has -
  or %T is 0 and JK_REQUEST_DURATION has an value like 2 or 3 ...
  
  First - why are there not values at each request ?
  Second -i think both Options are measuring the same Value - why they are
 not the same ?
  Third - why they are not showing seconds.microseconds as written in the
 reference but only (I think so) rounded seconds.
  
  We use mod_jk 1.2.26
  
  Thanks for help
  Best 
  ahmed
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Questions to some mod_jk Options

2008-02-29 Thread Rainer Jung

Ahmed Musa wrote:
.) retries (for LB workers) 
- At the Apache we use he prefork MPM. So how big is the connection_pool ?


Connection pool is per process. Unless you set a different pool size per 
in the configuration, the following is true:


For Apache httpd we ask httpd How many threads do you use for request 
handling per process and set the maximum pool size to this number. The 
pool might be smaller is not all members are needed (depending on 
configuration). For prefork MPM there is only one thtread per process, 
so we set the pool size to 1, because more connections will never be 
used (per process).



because a retry of a lb-worker happens if the loadbalancer can not get a free 
connection for a member worker from the pool (Info from the doku).


That means: for httpd it should never happen. If it happens, we either 
made a mistake in the code, or in our brain, or you are nut using httpd, 
or you overwrite the pool size setting.



Does it depends on the Apache prefork Parameters MaxClients and 
MaxRequestsPerChild ?


No, MaxClients for prefork is the maximum number of httpd processes 
handling requests. For prefork MPM that means, you should not observe 
more than MaxClients (+1) httpd processes, and each will have a 
connection pool of size one, so you should never observe more than 
MaxClients AJP13 connections going from this httpd to one of your backends.


MaxRequestsPerChild: is totally unrelated. It says: if a single httpd 
child already answered this many requests, then stop it (and of course 
the connection pool of size 1 belonging to this child will be closed). 
If a new child gets spawned instead is determined depending on the httpd 
spares/idle settings and the load. Why stop an httpd child: think about 
a module with a memory leak. Then you want to throw away the httpd 
processes every now and then and use new ones instead. It's not that 
expensive, if you don't do it every second.



If it is so - we have MaxClients 500 and MaxRequestsPerChild 1 = this 
means the webserver can send/handle 500 requests ?


No, 500 *parallel* requests.


- is this the size of our connection_pool? - i don't think so.


Size of pool: prefork = 1.
Nummber of connections: = 1 * Number of httpd child processes = 
MaxClients = 500



On the other side we have 36 Tomcat instances - each Tomcat has - maxThreads=300 
on the AJP connector. = ?this doesn't fit, or?
(And 3 Apache as frontend - all configured the same)


Doesn't fit. For one httpd in front, maxThreads=500 would be fine. For 
more than one httpd on front, you don't want to increase the number of 
threads in proportion, because most likely once you reach the 1.500 
threads (for 3 httpd), something is wrong and your system won't really 
be able to handle all those parallel requests (more likely: it wasn't 
able to handle fewer requests, got slow and that's why you now have that 
many requests waiting in parallel).


You could:

- use AJP connector, which will detach the connection on the backend 
side from the thread, whenever the connection doesn't actually have a 
request on it (waiting for the next request).


- use connectionTimeout on the Tomcat side and a connection poool 
timeout on the JK side, s.t. idle connections get closed down and thus 
Tomcat threads are freed.


- Use preferences between the httpd and Tomcat (36/3=12, so each httpd 
gets 12 Tomcats with distance 0, and the other 24 with distance 1). 
details depend on your availability concept (how you want to work with 
redundancy and so on).



In the worker model i think the number of threads must correspond to the max 
threads of the Tomcat - but how does it work in our prefork model?


Number of threads per httpd process = default connection pool size

Total number of connections = Maximum Number of httpd processes * 
Number of threads per httpd process


Relation etween Tomcat threads and connections: see above


.) Why does a load-balancer retries to get a free connection for a member 
worker from the pool ? Why doesn't he use another member worker ?


Why LB retries: because we also support IIS and NSAPI, where we can't 
determine the number of threads used per web server process with an 
official web server API


Why dowsn't it use another member worker: it does, we call it failover. 
The situations are different:


retry: we can't get a free connection. Should *never* happen on httpd
failover: we ran into a communication problem with the backend (network 
problem, no response etc.)




.) reply_timeout - does it only work between the request and the first response 
packet or between each two response packets. Is a response packet an AJP-packet 
with 8k default size ?


Last question: yes, here a response packet is one from the JK point of 
view (AJP packet). The size could be smaller though, e.g. if you flush() 
in a servlet.


And: yes, the reply_timeout is checked between sending the request to 
the backend and the fir4st response packet, but also between 

Re: tomcat ldap authentication problem

2008-02-29 Thread Andris Eiduks
I think that better is for userID and passwords don't use national
characters. In Latvia we time after time have similar problems ...

Andris Eiduks

On Fri, Feb 29, 2008 at 9:53 AM, Antonio Petrelli 
[EMAIL PROTECTED] wrote:

 2008/2/20, Christian Andersson [EMAIL PROTECTED]:
   all our html pages uses the utf-8 encoding, using slapcat and looking
 at
   the content the data inside openldap seems to be using utf-8 (the
 output
   from slapcat is at least utf-8,but I don't know if slapcat converts
   anything)

 This might be a shot in the dark, but what client browser are you using?
 I've had some problems with IE7: though I tell him to use UTF-8, it
 posts the form in UTF-8 charset, but telling that it is using
 ISO-8859-1!
 Try it with Firefox, if you already didn't do it.

 Antonio

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Does tomcat support multicores

2008-02-29 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alan,

Alan Chaney wrote:
| XP Home only supports one core - however, that would hardly be an OS for
| a production web server (grin)

Unless XP sees an Intel ht processor as something other than two cored,
this is BS. I have XP home on one of my laptops, and it happily
recognized and utilizes both ht'd processors.

| I would suspect that the OPs factors were related to IO Bandwidth or
| running out of threads as suggested earlier. I've found that a modern
| multicore machine doesn't actually spend very much time processing the
| Tomcat stuff at all.

That's because CPUs are ridiculously fast these days compared to the
hardware with which they are coupled. Bus and memory speeds are
disappointingly low, which is where the real time is wasted. :(

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfIElkACgkQ9CaO5/Lv0PCyxwCfYpAN76N8SYAerozE5gaHWcfG
xuAAn1DObFinHiVdIeqpubawAFgaxoHc
=YO97
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat ldap authentication problem

2008-02-29 Thread Christian Andersson

we have tried it with the following..

IE6 and 7 on windows
IE6 on linux (using ie4linux and wine)
Firefox 2.0.12 on windows and on linux

all behave the same..

all the tools we have to get information out from the ldap gives us the 
username out in utf-8 correctly so for me it looks like it is stored in 
utf-8 in ldap..


and since now all our system is configured for utf-8 it is strange that 
this 1 part (the jndirealm) looks like it is using iso-8859-1 .-(




Antonio Petrelli skrev:

2008/2/20, Christian Andersson [EMAIL PROTECTED]:

 all our html pages uses the utf-8 encoding, using slapcat and looking at
 the content the data inside openldap seems to be using utf-8 (the output
 from slapcat is at least utf-8,but I don't know if slapcat converts
 anything)


This might be a shot in the dark, but what client browser are you using?
I've had some problems with IE7: though I tell him to use UTF-8, it
posts the form in UTF-8 charset, but telling that it is using
ISO-8859-1!
Try it with Firefox, if you already didn't do it.

Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat ldap authentication problem

2008-02-29 Thread Christian Andersson
ofcourse, it would be better, but unfourtunally it is not up to me to 
enforce this policy, and we already have a lot of users with those 
character in both username and/or password..


we had the system up and running before but after switching the website 
over from ISO-8859-1 to UTF-8 it i sno longer working, the strange part 
is though that with every tool I canuse to check what is in the ldap, it 
say it is in utf-8


and we cannot go back o ISO-8859-1 either..



Andris Eiduks skrev:

I think that better is for userID and passwords don't use national
characters. In Latvia we time after time have similar problems ...

Andris Eiduks

On Fri, Feb 29, 2008 at 9:53 AM, Antonio Petrelli 
[EMAIL PROTECTED] wrote:


2008/2/20, Christian Andersson [EMAIL PROTECTED]:

 all our html pages uses the utf-8 encoding, using slapcat and looking

at

 the content the data inside openldap seems to be using utf-8 (the

output

 from slapcat is at least utf-8,but I don't know if slapcat converts
 anything)

This might be a shot in the dark, but what client browser are you using?
I've had some problems with IE7: though I tell him to use UTF-8, it
posts the form in UTF-8 charset, but telling that it is using
ISO-8859-1!
Try it with Firefox, if you already didn't do it.

Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does tomcat support multicores

2008-02-29 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Len,

Len Popp wrote:
| (Please excuse the boring licensing details, but I've seen a lot of
| misinformation on this topic.)

Thanks for setting the record straight. I didn't want to call Alan a
liar, but I knew that his assertions were in conflict with my experience.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfIEqUACgkQ9CaO5/Lv0PCjHACgmRq4HB0DAf+NX9X0WNsbtCib
nAsAoIOHPPctspaQb6Uxh32cC+T/az7/
=cFgv
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Jonathan Mast
However it is usually linked, I'm obviously not an expert on this subject.
Perhaps you know a concise summary of how Tomcat and Apahce HTTPD work?

thanks

On Thu, Feb 28, 2008 at 1:51 PM, Mark Thomas [EMAIL PROTECTED] wrote:

 Jonathan Mast wrote:
  sorry
 
  Tomcat 5.5.1
  Apache 1.3.33
  Java 1.4.2

 And you are linking httpd and Tomcat how?

 Mark


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan,

Jonathan Mast wrote:
| However it is usually linked, I'm obviously not an expert on this subject.
| Perhaps you know a concise summary of how Tomcat and Apahce HTTPD work?

Apache can be linked to Tomcat using either HTTP or AJP protocols. You
have some options for each:

HTTP: mod_proxy_http, provided by Apache httpd since many versions ago
AJP: mod_proxy_ajp, included in Apache httpd since 2.2.x
~ mod_jk, a separate package that has existed for a long time
~ mod_jk2, a separate package that has been abandoned

(I've included that last one since it looks like you have a relatively
old setup... Apache 1.3, etc.)

All options are equally well supported (except mod_jk2), and each has
their champions and complainants.

You should be able to find out which modules have been enabled and which
are configured to do something with your application.

If you see ProxyPass keywords near your app configuration in
httpd.conf (or one of its friends), you're using mod_proxy_http (since
mod_proxy_ajp wasn't available until a later version of Apache httpd
than the one you are running).

Instead, if you see Jk[Something], then you are more likely running
mod_jk (or the ghastly mod_jk2).

A few notes:
* Your JDK version is quite old relative to your Tomcat version.
~  If you don't have the compatibility package installed, you'll have
~  problems. Consider upgrading to Java 1.5 or 1.6.

* I didn't see anywhere in your configuration where you mentioned
~  index.jsp, so I'm guessing that Tomcat's welcome-file setting is
~  being used. Can you tell us if you are getting the 404 from Apache
~  httpd or Tomcat?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAkfIK3UACgkQ9CaO5/Lv0PDb6QCglxwruPhm4Urouty/gstcz8l4
scoAlR9dPoOyRwvnm8DmxXYoMa6AchI=
=iNNg
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Leap-year problem with commons-net

2008-02-29 Thread David kerber
I have found that the commons-net ftp.listfiles() fails to get files 
whose date on the server is on feb 29.  Googling indicates that this a 
known problem (at least since this morning), but I haven't found a quick 
fix.  Does anybody know of one?


D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Jonathan Mast
Thanks for the notes.

It is a Tomcat 404 error.

So I take it that I can specify a file name (index.jsp) in the configuration
and it will  default to that file?

On Fri, Feb 29, 2008 at 10:57 AM, Christopher Schultz 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jonathan,

 Jonathan Mast wrote:
 | However it is usually linked, I'm obviously not an expert on this
 subject.
 | Perhaps you know a concise summary of how Tomcat and Apahce HTTPD work?

 Apache can be linked to Tomcat using either HTTP or AJP protocols. You
 have some options for each:

 HTTP: mod_proxy_http, provided by Apache httpd since many versions ago
 AJP: mod_proxy_ajp, included in Apache httpd since 2.2.x
 ~ mod_jk, a separate package that has existed for a long time
 ~ mod_jk2, a separate package that has been abandoned

 (I've included that last one since it looks like you have a relatively
 old setup... Apache 1.3, etc.)

 All options are equally well supported (except mod_jk2), and each has
 their champions and complainants.

 You should be able to find out which modules have been enabled and which
 are configured to do something with your application.

 If you see ProxyPass keywords near your app configuration in
 httpd.conf (or one of its friends), you're using mod_proxy_http (since
 mod_proxy_ajp wasn't available until a later version of Apache httpd
 than the one you are running).

 Instead, if you see Jk[Something], then you are more likely running
 mod_jk (or the ghastly mod_jk2).

 A few notes:
 * Your JDK version is quite old relative to your Tomcat version.
 ~  If you don't have the compatibility package installed, you'll have
 ~  problems. Consider upgrading to Java 1.5 or 1.6.

 * I didn't see anywhere in your configuration where you mentioned
 ~  index.jsp, so I'm guessing that Tomcat's welcome-file setting is
 ~  being used. Can you tell us if you are getting the 404 from Apache
 ~  httpd or Tomcat?

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEUEARECAAYFAkfIK3UACgkQ9CaO5/Lv0PDb6QCglxwruPhm4Urouty/gstcz8l4
 scoAlR9dPoOyRwvnm8DmxXYoMa6AchI=
 =iNNg
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




tomcat proxy trouble

2008-02-29 Thread fan0o

Regard

Here is the scenario

Internet proxy server : 10.0.0.1
Tomcat server : 10.0.0.5
Internet explorer/ firefox proxy settings : 10.0.0.1 (as i mentioned
10.0.0.1 is my internet proxy server)

now the trouble is that every time user need to connect to local hosted
website (tomcat server running) could not be accessed until or unless
internet explorer/firefox proxy is not changed to 10.0.0.5 which stops
internet servces on the client side but tomcat starts working (my website
contains only simple html pages no java servlets or jsp is used at all)

Problem statement:

I want both internet proxy server and tomcat server running simultaneously
with out interrupting each other services

please help me to configure with above mentioned scenario

thanks
-- 
View this message in context: 
http://www.nabble.com/tomcat-proxy-trouble-tp15766268p15766268.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leap-year problem with commons-net

2008-02-29 Thread David kerber
Yeah, that's what I've done so far today, but the files come in 
continuously throughout the day for a total of 1000 or so, and we need 
to process them as they come in, so I've been letting them build up and 
doing it every hour or so.  It's a pain, and I hope they get this fixed 
sometime before the next leap year (and enough before it that I have 
time to implement and test it!!!)


D


Adam Gordon wrote:
Short of downloading/patching the source code and redeploying, just a 
stab in the dark here, but maybe just execute touch -d date in the 
offending directory/directories.  There's no recursive flag though, 
bummer.  At least it'll only be a problem for 12 more hours (MST).


HTH,

--adam

David kerber wrote:
I have found that the commons-net ftp.listfiles() fails to get files 
whose date on the server is on feb 29.  Googling indicates that this 
a known problem (at least since this morning), but I haven't found a 
quick fix.  Does anybody know of one?


D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leap-year problem with commons-net

2008-02-29 Thread Adam Gordon
Short of downloading/patching the source code and redeploying, just a 
stab in the dark here, but maybe just execute touch -d date in the 
offending directory/directories.  There's no recursive flag though, 
bummer.  At least it'll only be a problem for 12 more hours (MST).


HTH,

--adam

David kerber wrote:
I have found that the commons-net ftp.listfiles() fails to get files 
whose date on the server is on feb 29.  Googling indicates that this a 
known problem (at least since this morning), but I haven't found a 
quick fix.  Does anybody know of one?


D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leap-year problem with commons-net

2008-02-29 Thread Adam Gordon

Dave-

Just set a cron job to do it every minute or (some other interval) and 
then you don't have to worry about it - just don't forget to remove the 
job tonight.


--adam

David kerber wrote:
Yeah, that's what I've done so far today, but the files come in 
continuously throughout the day for a total of 1000 or so, and we need 
to process them as they come in, so I've been letting them build up 
and doing it every hour or so.  It's a pain, and I hope they get this 
fixed sometime before the next leap year (and enough before it that I 
have time to implement and test it!!!)


D


Adam Gordon wrote:
Short of downloading/patching the source code and redeploying, just a 
stab in the dark here, but maybe just execute touch -d date in 
the offending directory/directories.  There's no recursive flag 
though, bummer.  At least it'll only be a problem for 12 more hours 
(MST).


HTH,

--adam

David kerber wrote:
I have found that the commons-net ftp.listfiles() fails to get files 
whose date on the server is on feb 29.  Googling indicates that this 
a known problem (at least since this morning), but I haven't found a 
quick fix.  Does anybody know of one?


D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leap-year problem with commons-net

2008-02-29 Thread David kerber
The problem is that ftp.getfiles won't even retrieve the files from the 
server!  It sees them as invalid because of the date issue.  So I have 
to retrieve them manually.  Yeah, I could script up that part as well, 
but I don't think it's worth it for now.



Adam Gordon wrote:

Dave-

Just set a cron job to do it every minute or (some other interval) and 
then you don't have to worry about it - just don't forget to remove 
the job tonight.


--adam

David kerber wrote:
Yeah, that's what I've done so far today, but the files come in 
continuously throughout the day for a total of 1000 or so, and we 
need to process them as they come in, so I've been letting them build 
up and doing it every hour or so.  It's a pain, and I hope they get 
this fixed sometime before the next leap year (and enough before it 
that I have time to implement and test it!!!)


D


Adam Gordon wrote:
Short of downloading/patching the source code and redeploying, just 
a stab in the dark here, but maybe just execute touch -d date in 
the offending directory/directories.  There's no recursive flag 
though, bummer.  At least it'll only be a problem for 12 more hours 
(MST).


HTH,

--adam

David kerber wrote:
I have found that the commons-net ftp.listfiles() fails to get 
files whose date on the server is on feb 29.  Googling indicates 
that this a known problem (at least since this morning), but I 
haven't found a quick fix.  Does anybody know of one?


D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leap-year problem with commons-net

2008-02-29 Thread Konstantin Kolinko
See
https://issues.apache.org/jira/browse/NET-190
https://issues.apache.org/jira/browse/NET-188

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan,

Jonathan Mast wrote:
| It is a Tomcat 404 error.

Okay, good. That means that Tomcat is handling the request (rather than
Apache handling it) so we are probably not talking about fixing httpd
configuration or your connector (mod_whatever).

| So I take it that I can specify a file name (index.jsp) in the
configuration
| and it will  default to that file?

Yes, you can. You do it using the welcome-file-list element (and
sub-elements) in web.xml. The default welcome-file-list is (at least
in TC 5.5):

~welcome-file-list
~welcome-fileindex.html/welcome-file
~welcome-fileindex.htm/welcome-file
~welcome-fileindex.jsp/welcome-file
~/welcome-file-list

...where order is relevant (the top file will be used first if it
exists, and so on).

You only have to customize this if you want it to use some other file
(or URI, really) when you specify http://host/ (with no additional path).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfIhmYACgkQ9CaO5/Lv0PApMQCfaxinrhV4e2shvbF45qTb6xZ5
iJwAn0i71zoyEC44ulKpkr8MKXJ3KBEF
=MY3q
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leap-year problem with commons-net

2008-02-29 Thread Adam Gordon

I mean a cron job to touch the files and change the date

David kerber wrote:
The problem is that ftp.getfiles won't even retrieve the files from 
the server!  It sees them as invalid because of the date issue.  So I 
have to retrieve them manually.  Yeah, I could script up that part as 
well, but I don't think it's worth it for now.



Adam Gordon wrote:

Dave-

Just set a cron job to do it every minute or (some other interval) 
and then you don't have to worry about it - just don't forget to 
remove the job tonight.


--adam

David kerber wrote:
Yeah, that's what I've done so far today, but the files come in 
continuously throughout the day for a total of 1000 or so, and we 
need to process them as they come in, so I've been letting them 
build up and doing it every hour or so.  It's a pain, and I hope 
they get this fixed sometime before the next leap year (and enough 
before it that I have time to implement and test it!!!)


D


Adam Gordon wrote:
Short of downloading/patching the source code and redeploying, just 
a stab in the dark here, but maybe just execute touch -d date 
in the offending directory/directories.  There's no recursive flag 
though, bummer.  At least it'll only be a problem for 12 more hours 
(MST).


HTH,

--adam

David kerber wrote:
I have found that the commons-net ftp.listfiles() fails to get 
files whose date on the server is on feb 29.  Googling indicates 
that this a known problem (at least since this morning), but I 
haven't found a quick fix.  Does anybody know of one?


D



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leap-year problem with commons-net

2008-02-29 Thread David Kerber
Yes, I understood what you meant, but that is only 1 part of what I need 
to do:  I need to retrieve the files from the ftp server before I can 
touch them, and that won't work either because of the leap year bug.  
So I retrieve them with a manual ftp client, and then use a gui file 
date/time changer on them.


D


Adam Gordon wrote:

I mean a cron job to touch the files and change the date

David kerber wrote:
The problem is that ftp.getfiles won't even retrieve the files from 
the server!  It sees them as invalid because of the date issue.  So I 
have to retrieve them manually.  Yeah, I could script up that part as 
well, but I don't think it's worth it for now.



Adam Gordon wrote:

Dave-

Just set a cron job to do it every minute or (some other interval) 
and then you don't have to worry about it - just don't forget to 
remove the job tonight.


--adam

David kerber wrote:
Yeah, that's what I've done so far today, but the files come in 
continuously throughout the day for a total of 1000 or so, and we 
need to process them as they come in, so I've been letting them 
build up and doing it every hour or so.  It's a pain, and I hope 
they get this fixed sometime before the next leap year (and enough 
before it that I have time to implement and test it!!!)


D


Adam Gordon wrote:
Short of downloading/patching the source code and redeploying, 
just a stab in the dark here, but maybe just execute touch -d 
date in the offending directory/directories.  There's no 
recursive flag though, bummer.  At least it'll only be a problem 
for 12 more hours (MST).


HTH,

--adam

David kerber wrote:
I have found that the commons-net ftp.listfiles() fails to get 
files whose date on the server is on feb 29.  Googling indicates 
that this a known problem (at least since this morning), but I 
haven't found a quick fix.  Does anybody know of one?


D




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Accessing tomcat folder

2008-02-29 Thread dbpatel

Hello
   I currently have Tomcat and Apache installed and can't access my
Tomcat folders. I can access my tomcat folders if i directly put in the
address in my browser, ie http://localhost/[myTomcatFolder] but i can't
access them if i try http://www.myDomain.com/[myTomcatFolder]. I can however
view my static HTML pages stored in my Apache directory both ways, ie.
www.myDomain.com  http://localhost/ both go to my index.html page stored in
my Apache directory. Please help on how i can access my tomcat folder. I
know Apache and Tomcat are connected view my JK connector because i can run
JSP pages, as i mentioned above, if i use http://localhost/[myTomcatFolder]
without specifying the tomcat port.

Thanks,
D
-- 
View this message in context: 
http://www.nabble.com/Accessing-tomcat-folder-tp15773052p15773052.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]