DO NOT REPLY [Bug 37464] - SEVERE: Socket error caused by remote host

2005-11-11 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=37464


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 09:16 ---
The errors seems to be popped by the OOEM error , can you make the changes in 
the JVM heap size and then check if this appears at the same intervals .
Also you can use some profiling tool to make sure that the applicaion you have 
deployed in the Tomcat is not causing the memory leaks .


-- 
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 35300] - Thread pool expands when many threads are idle

2005-11-11 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=35300





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 09:41 ---
Connector configuration: minSpareThreads="150" and maxThreads="300"

When the connector starts, it will start with 150 threads and when the load
increases it can go up to 300 threads. But, it seems that the thread pool
expanded from 150 to 300 even though only about ~37 threads were busy and
remaining threads were idle.

This thread dump was taken immediately after noticing thread count increase.

-- 
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 37277] - long delay in Tomcat startup

2005-11-11 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=37277





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 10:30 ---
Thread dump on the windows system can be achieved by typing Control+Break.

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



Re: svn commit: r332351 - in /tomcat/container/tc5.5.x: catalina/src/bin/catalina.bat webapps/docs/changelog.xml

2005-11-11 Thread Remy Maucherat

[EMAIL PROTECTED] wrote:

Author: yoavs
Date: Thu Nov 10 10:44:53 2005
New Revision: 332351

URL: http://svn.apache.org/viewcvs?rev=332351&view=rev
Log:
Bugzilla 37319: http://issues.apache.org/bugzilla/show_bug.cgi?id=37319

Modified:
tomcat/container/tc5.5.x/catalina/src/bin/catalina.bat
tomcat/container/tc5.5.x/webapps/docs/changelog.xml


I use Windows, and use exclusively catalina.bat. It works fine (in the 
code, you'll see that there is replacement code for system properties - 
the installer uses them, please don't "fix" that occurrence ;) ), and 
will (hopefully) work just as fine with the fix.


Rémy

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



DO NOT REPLY [Bug 37410] - jsp: implicit object pageContext not AVAILABLE in scriptlet

2005-11-11 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=37410


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 10:56 ---
It is done deliberately.
JSP2.0 created a new object JSPContext, as well as PageContext

The specification says that in tag files, the implicit variable must be called 
jspContext. JSP specification section 8.8


-- 
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 37469] New: - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469

   Summary: mod_jk doesn´t scale well with hundreds of sites -
interferes with CGI handling
   Product: Tomcat 5
   Version: Unknown
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: major
  Priority: P2
 Component: Native:JK
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


1. Create a httpd.conf with 1500 websites. Every VirtualHost section should be 
like this:


ServerName testXXX
ServerAlias testXXX.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/testXXX/public_html
ScriptAlias /cgi-local/ /home/testXXX/public_html/cgi-local/
SetEnv LOG_SUBDIR testXXX
SuexecUserGroup testXXX testXXX
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


ServerName testXXX
ServerAlias testXXX.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/testXXX/public_html
ScriptAlias /cgi-local/ /home/testXXX/public_html/cgi-local/
SetEnv LOG_SUBDIR testXXX
SuexecUserGroup testXXX testXXX
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


2. create a simple script:

#!/usr/bin/perl

print "Content-Type: text/html\n\n";
print "Test!!";

3. execute on the web
  
Actual results:

In a Dual Xeon, zero load, it takes 2 seconds to run.

I did some straces:

strace -T -f -p x

[pid 30864] read(4, "", 4096)   = 0 <0.22>
[pid 30864] close(4)= 0 <0.16>
[pid 30864] read(3, "", 4096)   = 0 <0.14>
[pid 30864] close(3)= 0 <0.12>
[pid 30864] write(1, "Content-Type: text/html\n\nTest"..., 72) = 72 <0.20>
[pid 30785] <... poll resumed> [{fd=26, events=POLLIN, revents=POLLIN}, {fd=28, 
events=POLLIN}], 2, 3) = 1 <2.120682>

In "LogLevel debug", I see: 

[Fri Nov 11 12:55:50 2005] [25756:39072] [debug] jk_cleanup_shmem::mod_jk.c 
(1761): Shmem cleanup
[Fri Nov 11 12:55:53 2005] [25756:39072] [debug] jk_cleanup_shmem::mod_jk.c 
(1761): Shmem cleanup

(> 2 seconds !!)

If I remove all the JkMount mapping, the CGI execution is very fast. So there 
is definitely an issue with mod_jk. 

with mod_jk -> more than 2 seconds
without mod_jk -> a few milliseconds

OBS: Those tests were done in a server without load. I simply turn apache 
2.0.52 on and requested the CGI execution. 

I can test any patch.

-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 18:04 ---
What version of mod_jk and what Apache version (httpd -V)
as well as OS.
The messages you see are caused by recycling the child process
so that's why they took 2 seconds.

The question is why the child dies, so please provide more info
about apache version, mpm used and OS.

-- 
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 37470] New: - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37470

   Summary: mod_jk doesn´t scale well with hundreds of sites -
interferes with CGI handling
   Product: Tomcat 5
   Version: Unknown
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: major
  Priority: P2
 Component: Native:JK
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


1. Create a httpd.conf with 1500 websites. Every VirtualHost section should be 
like this:


ServerName testXXX
ServerAlias testXXX.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/testXXX/public_html
ScriptAlias /cgi-local/ /home/testXXX/public_html/cgi-local/
SetEnv LOG_SUBDIR testXXX
SuexecUserGroup testXXX testXXX
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


ServerName testXXX
ServerAlias testXXX.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/testXXX/public_html
ScriptAlias /cgi-local/ /home/testXXX/public_html/cgi-local/
SetEnv LOG_SUBDIR testXXX
SuexecUserGroup testXXX testXXX
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


2. create a simple script:

#!/usr/bin/perl

print "Content-Type: text/html\n\n";
print "Test!!";

3. execute on the web
  
Actual results:

In a Dual Xeon, zero load, it takes 2 seconds to run.

I did some straces:

strace -T -f -p x

[pid 30864] read(4, "", 4096)   = 0 <0.22>
[pid 30864] close(4)= 0 <0.16>
[pid 30864] read(3, "", 4096)   = 0 <0.14>
[pid 30864] close(3)= 0 <0.12>
[pid 30864] write(1, "Content-Type: text/html\n\nTest"..., 72) = 72 <0.20>
[pid 30785] <... poll resumed> [{fd=26, events=POLLIN, revents=POLLIN}, {fd=28, 
events=POLLIN}], 2, 3) = 1 <2.120682>

In "LogLevel debug", I see: 

[Fri Nov 11 12:55:50 2005] [25756:39072] [debug] jk_cleanup_shmem::mod_jk.c 
(1761): Shmem cleanup
[Fri Nov 11 12:55:53 2005] [25756:39072] [debug] jk_cleanup_shmem::mod_jk.c 
(1761): Shmem cleanup

(> 2 seconds !!)

If I remove all the JkMount mapping, the CGI execution is very fast. So there 
is definitely an issue with mod_jk. 

with mod_jk -> more than 2 seconds
without mod_jk -> a few milliseconds

OBS: Those tests were done in a server without load. I simply turn apache 
2.0.52 on and requested the CGI execution. 

I can test any patch.

-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 18:10 ---
I´m using RedHat AS 3.0

httpd -V
Server version: Apache/2.0.46
Server built:   Sep  6 2005 11:21:32
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

Latest mod_jk - 1.2.15 (I tested on 1.2.14 and it´s the same)

Let me know if you need something else.


-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 18:27 ---
Can you post your workers.properties file and global Jk directives.

Also, set the 'JkLogLevel debug' to httpd.conf,
and post the mod_jk.log for:
> apachectrl start
> apachectrl stop

One other question, is it working with 500 vhosts?

-- 
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 37471] New: - Can not delete a Context from Admin Tool

2005-11-11 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=37471

   Summary: Can not delete a Context from Admin Tool
   Product: Tomcat 5
   Version: 5.5.12
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: major
  Priority: P2
 Component: Webapps:Administration
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


User can not delete an existing Context from Web Administration tool. It is 
deleting a Context from tool temperately but if reload the administration 
tool, the Administration tool still shows up the Context even though user 
clicked the “Commit Change” button.

-- 
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 35300] - Thread pool expands when many threads are idle

2005-11-11 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=35300





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 19:05 ---
If you need to discuss further, please post to tomcat-user.

-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 19:07 ---
Created an attachment (id=16949)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16949&action=view)
debug file for mod_jk


-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 19:08 ---
workers.properties, only the uncomment part:

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=0
worker.ajp13.socket_timeout=300

It works with 1500 ;)). But then CGI works very slowly as described in this 
issue.

I´m attaching the debug log. I turned the server on, executed the cgi script 
and the turned it off.


-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 19:20 ---
Your log statements look inconsistent to me:

[pid 30864] write(1, "Content-Type: text/html\n\nTest"..., 72) = 72 <0.20>

So PID 30864 correctly writes your CGI output after a very short time.
The next entry

[pid 30785] <... poll resumed> [{fd=26, events=POLLIN, revents=POLLIN}, {fd=28, 
events=POLLIN}], 2, 3) = 1 <2.120682>

comes from a totally different process 30785 and for me it does NOT mean, that
the request took 2 seconds.

[Fri Nov 11 12:55:50 2005] [25756:39072] [debug] jk_cleanup_shmem::mod_jk.c 
(1761): Shmem cleanup
[Fri Nov 11 12:55:53 2005] [25756:39072] [debug] jk_cleanup_shmem::mod_jk.c 
(1761): Shmem cleanup

These two messages come from PID 25756 which is again another process.
Furthermore the PID is numerically very different from the PIDs above, so it
seems that this process has not been started/forked around the same time as the
other two ones.

You can add %P to apaches log format to log the PID which processed the request
and %T to get the request duration in seconds.

Nevertheless I find it strange, that the same PID and thread id logs a cleanup
two times.

-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 19:34 ---
I just looked at your mod_jk.log. Again the PID of the process doing two
cleanups in a row is not contained in the startup log lines. I guess it's the
forked CGI process, that does the jk cleanup. I think that's not to be expected
- Mladen, what do you think?



-- 
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 37469] - mod_jk doesn�t scale well with hundreds of sites - interferes with CGI handling

2005-11-11 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=37469





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 19:35 ---
The log I send is different from the first post (I did another test when you 
asked). Also when I did the strace, I had to choose a child process and then 
hit the web a couple of times, till it uses the one I chose. Sorry, if it looks 
inconsistent. If you want I can try to provide a log with the right PIDs, but 
they will look exactly as what I posted.

Thanks again.

-- 
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 35461] - bad request http 400 using mod_jk 1.2.13. After downgrading to 1.3.33 and mod_jk 1.2.5 the problems have gone. Problems occur again after using the combination Apache We

2005-11-11 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=35461





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 23:23 ---
I seem to be running into this issue as well. Just a suggestion (not sure if it
makes a difference here yet), but have you tried setting maxPostSize="0" or to
some high value on the AJP connector definition in your Tomcat server.xml files?
According to http://tomcat.apache.org/tomcat-5.0-doc/config/http.html the
default maximum is 2MB.

-- 
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 35461] - bad request http 400 using mod_jk 1.2.13. After downgrading to 1.3.33 and mod_jk 1.2.5 the problems have gone. Problems occur again after using the combination Apache We

2005-11-11 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=35461


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




-- 
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 35461] - bad request http 400 using mod_jk 1.2.13. After downgrading to 1.3.33 and mod_jk 1.2.5 the problems have gone. Problems occur again after using the combination Apache We

2005-11-11 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=35461





--- Additional Comments From [EMAIL PROTECTED]  2005-11-11 23:44 ---
Just to followup to my previous suggestion... it did not fix the problem. We are
using the following versions:

apache-2.0.54
mod_jk-1.2.13
tomcat-5.0.27

Apache is using mod_jk for load balancing between four Tomcat instances on other
machines. This is what we see throughout our mod_jk log:

[Fri Nov 11 22:39:02 2005] [info]  ajp_process_callback::jk_ajp_common.c (1375):
Connection aborted or network problems
[Fri Nov 11 22:39:02 2005] [info]  ajp_service::jk_ajp_common.c (1719):
Receiving from tomcat failed, because of client error without recovery in send
loop 0
[Fri Nov 11 22:39:02 2005] [info]  service::jk_lb_worker.c (677): unrecoverable
error 400, request failed. Client failed in the middle of request, we can't
recover to another instance.
[Fri Nov 11 22:39:02 2005] [info]  jk_handler::mod_jk.c (1970): Aborting
connection for worker=balancer


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



Re: svn commit: r332351 - in /tomcat/container/tc5.5.x: catalina/src/bin/catalina.bat webapps/docs/changelog.xml

2005-11-11 Thread Shankar Unni

Remy Maucherat wrote:

[EMAIL PROTECTED] wrote:

Author: yoavs
Date: Thu Nov 10 10:44:53 2005
New Revision: 332351

URL: http://svn.apache.org/viewcvs?rev=332351&view=rev
Log:
Bugzilla 37319: http://issues.apache.org/bugzilla/show_bug.cgi?id=37319

Modified:
tomcat/container/tc5.5.x/catalina/src/bin/catalina.bat
tomcat/container/tc5.5.x/webapps/docs/changelog.xml


I use Windows, and use exclusively catalina.bat. It works fine (in the 
code, you'll see that there is replacement code for system properties - 
the installer uses them, please don't "fix" that occurrence ;) ), and 
will (hopefully) work just as fine with the fix.



Besides, Yoavs' fix has a problem in it: it says

-Djava.util.logging.config.file="%CATALINA_BASE\conf\logging.properties"

notice the missing closing "%" after CATALINA_BASE..


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



1 year free webhosting for anyone who can solve this Tomcat problem!

2005-11-11 Thread Richard Schilling
I've been trying for about 12 hours now, and can't figure out why Tomcat 
won't bind to a port.  The ports aren't being used, and in JVMs are running.


I'm out of ideas and this is delaying a production box.

I'll give free webhosting for a year to anyone who wants to take the 
time to log onto the box and can fix this while talking to me on the 
phone.  The web server that does the hosting has e-mail, awstats, pgsql, 
mysql, postnuke, Apache 1.3, mod_ssl, mod_perl, mod_jk and of course 
Tomcat (when you get it running).


Using JDK1.5 and FreeBSD 6.0.


I get theses errors in stdout.log:


Nov 11, 2005 11:49:14 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Nov 11, 2005 11:49:15 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3095 ms
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 11, 2005 11:49:21 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.
webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule:
 Target string: News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.bal
ancer.rules.RequestParameterRule: Target param name: paramName / Target 
param va
lue: paramValue / Redirect URL: http://www.yahoo.com], 
[org.apache.webapp.balanc

er.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 11, 2005 11:49:23 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Nov 11, 2005 11:49:23 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 11, 2005 11:49:23 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/17  config=null
Nov 11, 2005 11:49:24 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 11, 2005 11:49:24 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9128 ms
Nov 11, 2005 11:49:24 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.(ServerSocket.java:185)
at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:346

)
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


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



DO NOT REPLY [Bug 36922] - setup.sh file mis-advertised and missing

2005-11-11 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=36922


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




--- Additional Comments From [EMAIL PROTECTED]  2005-11-12 01:08 ---
(In reply to comment #1)
> I see a tomcat.sh in the jsvc.tar.gz file: it's under the native subdirectory,
> as the instructions suggest.  And if you copy the files created when making 
> jsvc
> under a directory with that name, jsvc is a directory in addition to a file.

It can't be both in the same place.

The web page is *STILL* wrong.  It's the next to the last paragraph.

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



Re: 1 year free webhosting for anyone who can solve this Tomcat problem!

2005-11-11 Thread Costin Manolache
Nice, it would be good if everyone asking a question would offer
something - a beer, hosting, etc :-)

So - are you sure port 8005 is free ? Do a quick "netstat -an |grep
8005", maybe
you forgot to change it in  ( I noticed you're using
8180 for http )

Costin

On 11/11/05, Richard Schilling <[EMAIL PROTECTED]> wrote:
> I've been trying for about 12 hours now, and can't figure out why Tomcat
> won't bind to a port.  The ports aren't being used, and in JVMs are running.
>
> I'm out of ideas and this is delaying a production box.
>
> I'll give free webhosting for a year to anyone who wants to take the
> time to log onto the box and can fix this while talking to me on the
> phone.  The web server that does the hosting has e-mail, awstats, pgsql,
> mysql, postnuke, Apache 1.3, mod_ssl, mod_perl, mod_jk and of course
> Tomcat (when you get it running).
>
> Using JDK1.5 and FreeBSD 6.0.
>
>
> I get theses errors in stdout.log:
>
>
> Nov 11, 2005 11:49:14 AM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8180
> Nov 11, 2005 11:49:15 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 3095 ms
> Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
> Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Nov 11, 2005 11:49:21 AM org.apache.catalina.core.ApplicationContext log
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> [org.apache.
> webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule:
>   Target string: News / Redirect URL: http://www.cnn.com],
> [org.apache.webapp.bal
> ancer.rules.RequestParameterRule: Target param name: paramName / Target
> param va
> lue: paramValue / Redirect URL: http://www.yahoo.com],
> [org.apache.webapp.balanc
> er.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
> Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Nov 11, 2005 11:49:23 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8180
> Nov 11, 2005 11:49:23 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Nov 11, 2005 11:49:23 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/17  config=null
> Nov 11, 2005 11:49:24 AM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Nov 11, 2005 11:49:24 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 9128 ms
> Nov 11, 2005 11:49:24 AM org.apache.catalina.core.StandardServer await
> SEVERE: StandardServer.await: create[8005]:
> java.net.BindException: Can't assign requested address
>  at java.net.PlainSocketImpl.socketBind(Native Method)
>  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>  at java.net.ServerSocket.bind(ServerSocket.java:319)
>  at java.net.ServerSocket.(ServerSocket.java:185)
>  at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:346
> )
>  at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>
>
> -
> 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: 1 year free webhosting for anyone who can solve this Tomcat problem!

2005-11-11 Thread Richard Schilling
I'm getting some good feedback, and I think I'm narrowing down the 
problem now.  Thanks Aaron. Yes, if this is it I'll give him the hosting.



I'm narrowing down a problem with BindAddress on jdk1.5, FreeBSD RELENG_6 .

uname -a output:
FreeBSD newbox.cognitiongroup.biz 6.0-STABLE FreeBSD 6.0-STABLE #3: Fri 
Nov  4 23:36:56 PST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/PRODUCTION  amd64


Here's the error:

$ java TestServer localhost 8080
Host Address=localhost
Port=8080
Exception in thread "main" java.net.BindException: Can't assign 
requested address

at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.bind(ServerSocket.java:277)
at TestServer.main(TestServer.java:15)
$


Check out http;//bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206527

I'm able to reproduce the error with the following code, with IPv6 
enabled and with IPv6 disabled...


import java.net.*;

public class TestServer {

public static void main (String[] args) throws Exception {
if (args.length   != 2) {
System.out.println("Usage: java TestServer 
 ");

System.exit(1);
}

System.out.println("Host Address="+args[0]);
System.out.println("Port="+args[1]);
ServerSocket ss = new ServerSocket();

ss.bind(new 
InetSocketAddress(InetAddress.getByName(args[0]), 
 Integer.parseInt(args[1])));


System.out.println("ServerSocket Bound");

ss.accept();
}
}





Richard



Aaron Hamid wrote:

Hi Richard,

  I don't have the time at the moment, but typically when Java can't 
bind to a port that is /in use/ it says something like:


Address already in use: JVM_Bind

Your error is different.  It's saying it can't /assign/ the address. 
That speaks of a lower level problem to me.  I'd double check any 
firewall/ipchains/etc. settings.


There apparently was a bug in Java 1.4 on SuSE, maybe this will help:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206527

Something to do with IPv6.  Might want to check that too.

Aaron


Richard Schilling wrote:

I've been trying for about 12 hours now, and can't figure out why 
Tomcat won't bind to a port.  The ports aren't being used, and in JVMs 
are running.


I'm out of ideas and this is delaying a production box.

I'll give free webhosting for a year to anyone who wants to take the 
time to log onto the box and can fix this while talking to me on the 
phone.  The web server that does the hosting has e-mail, awstats, 
pgsql, mysql, postnuke, Apache 1.3, mod_ssl, mod_perl, mod_jk and of 
course Tomcat (when you get it running).


Using JDK1.5 and FreeBSD 6.0.


I get theses errors in stdout.log:


Nov 11, 2005 11:49:14 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Nov 11, 2005 11:49:15 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3095 ms
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 11, 2005 11:49:21 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.
webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule:
 Target string: News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.bal
ancer.rules.RequestParameterRule: Target param name: paramName / 
Target param va
lue: paramValue / Redirect URL: http://www.yahoo.com], 
[org.apache.webapp.balanc

er.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 11, 2005 11:49:23 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Nov 11, 2005 11:49:23 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 11, 2005 11:49:23 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/17  config=null
Nov 11, 2005 11:49:24 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 11, 2005 11:49:24 AM

Re: 1 year free webhosting for anyone who can solve this Tomcat problem!

2005-11-11 Thread Richard Schilling
Aaron got me pointed in the right direction. Between him and the bsd 
lists I figured it out.


I ended up giving two people free hosting for a year.  But that's O.K. 
because I got this box working now.


Here is the fix.

Here's what I did.  I added the following line to /etc/rc.conf:

jakarta_tomcat55_java_opts="-Djava.net.preferIPv4Stack=true"

JDK1.5 chokes on binding to any address with FreeBSD 6.0 because of the 
IPv6 stack.


The JDK documentation on IPv6 documents this command line define, also.

On a related note, when I tried to build JDK1.5 with IPV6 support, I got 
an error.  But, that's a subject for another thread on another list, I 
think.



Richard

Richard Schilling wrote:
I'm getting some good feedback, and I think I'm narrowing down the 
problem now.  Thanks Aaron. Yes, if this is it I'll give him the hosting.



I'm narrowing down a problem with BindAddress on jdk1.5, FreeBSD RELENG_6 .

uname -a output:
FreeBSD newbox.cognitiongroup.biz 6.0-STABLE FreeBSD 6.0-STABLE #3: Fri 
Nov  4 23:36:56 PST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/PRODUCTION  amd64


Here's the error:

$ java TestServer localhost 8080
Host Address=localhost
Port=8080
Exception in thread "main" java.net.BindException: Can't assign 
requested address

at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.bind(ServerSocket.java:277)
at TestServer.main(TestServer.java:15)
$


Check out http;//bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206527

I'm able to reproduce the error with the following code, with IPv6 
enabled and with IPv6 disabled...


import java.net.*;

public class TestServer {

public static void main (String[] args) throws Exception {
if (args.length   != 2) {
System.out.println("Usage: java TestServer 
 ");

System.exit(1);
}

System.out.println("Host Address="+args[0]);
System.out.println("Port="+args[1]);
ServerSocket ss = new ServerSocket();

ss.bind(new 
InetSocketAddress(InetAddress.getByName(args[0]), 
 Integer.parseInt(args[1])));


System.out.println("ServerSocket Bound");

ss.accept();
}
}





Richard



Aaron Hamid wrote:


Hi Richard,

  I don't have the time at the moment, but typically when Java can't 
bind to a port that is /in use/ it says something like:


Address already in use: JVM_Bind

Your error is different.  It's saying it can't /assign/ the address. 
That speaks of a lower level problem to me.  I'd double check any 
firewall/ipchains/etc. settings.


There apparently was a bug in Java 1.4 on SuSE, maybe this will help:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206527

Something to do with IPv6.  Might want to check that too.

Aaron


Richard Schilling wrote:

I've been trying for about 12 hours now, and can't figure out why 
Tomcat won't bind to a port.  The ports aren't being used, and in 
JVMs are running.


I'm out of ideas and this is delaying a production box.

I'll give free webhosting for a year to anyone who wants to take the 
time to log onto the box and can fix this while talking to me on the 
phone.  The web server that does the hosting has e-mail, awstats, 
pgsql, mysql, postnuke, Apache 1.3, mod_ssl, mod_perl, mod_jk and of 
course Tomcat (when you get it running).


Using JDK1.5 and FreeBSD 6.0.


I get theses errors in stdout.log:


Nov 11, 2005 11:49:14 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Nov 11, 2005 11:49:15 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3095 ms
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Nov 11, 2005 11:49:15 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 11, 2005 11:49:21 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.
webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule:
 Target string: News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.bal
ancer.rules.RequestParameterRule: Target param name: paramName / 
Target param va
lue: paramValue / Redirect URL: http://www.yahoo.com], 
[org.apache.webapp.balanc

er.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 11, 2005 11:49:22 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 11, 2005 11:49:

svn commit: r332735 - /tomcat/connectors/trunk/.project

2005-11-11 Thread costin
Author: costin
Date: Fri Nov 11 22:00:03 2005
New Revision: 332735

URL: http://svn.apache.org/viewcvs?rev=332735&view=rev
Log:
Lower cap - so eclipse checkout will create a dir that is lower cap -
matching how the dir is called in the tree.

Modified:
tomcat/connectors/trunk/.project

Modified: tomcat/connectors/trunk/.project
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/.project?rev=332735&r1=332734&r2=332735&view=diff
==
--- tomcat/connectors/trunk/.project (original)
+++ tomcat/connectors/trunk/.project Fri Nov 11 22:00:03 2005
@@ -1,6 +1,6 @@
 
 
-   Connectors
+   connectors






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



svn commit: r332736 - /tomcat/container/tc5.5.x/.project

2005-11-11 Thread costin
Author: costin
Date: Fri Nov 11 22:00:53 2005
New Revision: 332736

URL: http://svn.apache.org/viewcvs?rev=332736&view=rev
Log:
Same, lower cap name

Modified:
tomcat/container/tc5.5.x/.project

Modified: tomcat/container/tc5.5.x/.project
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/.project?rev=332736&r1=332735&r2=332736&view=diff
==
--- tomcat/container/tc5.5.x/.project (original)
+++ tomcat/container/tc5.5.x/.project Fri Nov 11 22:00:53 2005
@@ -1,6 +1,6 @@
 
 
-   Container
+   container






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



svn commit: r332738 - /tomcat/build/tc5.5.x/.project

2005-11-11 Thread costin
Author: costin
Date: Fri Nov 11 22:53:36 2005
New Revision: 332738

URL: http://svn.apache.org/viewcvs?rev=332738&view=rev
Log:
Add a project here as well, for checkout to work. 

The only solution I found so far to use eclipse and svn is to do a
checkout from the repostiory - 'share project' or import existing
project - or any other thing - fails. This seems to kind-of-work for me.
BTW - I can't even see the current/ 

How is everyone using eclipse with svn ??

Added:
tomcat/build/tc5.5.x/.project

Added: tomcat/build/tc5.5.x/.project
URL: 
http://svn.apache.org/viewcvs/tomcat/build/tc5.5.x/.project?rev=332738&view=auto
==
--- tomcat/build/tc5.5.x/.project (added)
+++ tomcat/build/tc5.5.x/.project Fri Nov 11 22:53:36 2005
@@ -0,0 +1,17 @@
+
+
+   build
+   
+   
+   
+   
+   
+   org.eclipse.jdt.core.javabuilder
+   
+   
+   
+   
+   
+   org.eclipse.jdt.core.javanature
+   
+



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



svn commit: r332739 - /tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/.project

2005-11-11 Thread costin
Author: costin
Date: Fri Nov 11 23:58:55 2005
New Revision: 332739

URL: http://svn.apache.org/viewcvs?rev=332739&view=rev
Log:
Rename to match the name in svn and ant files

Modified:
tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/.project

Modified: tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/.project
URL: 
http://svn.apache.org/viewcvs/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/.project?rev=332739&r1=332738&r2=332739&view=diff
==
--- tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/.project (original)
+++ tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/.project Fri Nov 11 23:58:55 2005
@@ -1,6 +1,6 @@
 
 
-   ServletAPI
+   servletapi






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