DO NOT REPLY [Bug 31447] New: - Contribution: system daemon script for GNU/Linux

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31447.
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=31447

Contribution: system daemon script for GNU/Linux

   Summary: Contribution: system daemon script for GNU/Linux
   Product: Tomcat 5
   Version: Unknown
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Here is a contribution of a system daemon script for GNU/Linux to mangege 
starting and stopping of Tomcat. It has been developed and tested on RedHat 
Enterprise Server 3 but had been made with other distributions in mind. RedHat 
(and probably also for Mandrake) specfied code (/etc/rc.d/init.d/functions) is 
only activated when available.

It would be very nice to ship Tomcat with a out of the box worknig system 
deamon script for Linux.

#!/bin/bash
#
# Startup script for the Tomcat Servlet Container
#
# chkconfig: - 86 14
# description: Tomcat is the servlet container that is used in the official \
#  Reference Implementation for the Java Servlet and JavaServer \
#  Pages technologies
 
# Source function library.
if [ -x /etc/rc.d/init.d/functions ]; then
. /etc/rc.d/init.d/functions
else
echo_success() {
echo -n [  OK  ]
echo -ne \r
return 0
}
echo_failure() {
echo -n [FAILED]
echo -ne \r
return 1
}
fi
prog=tomcat
TOMCAT_HOME=/opt/tomcat

start() {
echo -n $Starting $prog: 
su - root -c $TOMCAT_HOME/bin/startup.sh  /dev/null
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo_success
else
echo_failure
fi
echo
[ $RETVAL = 0 ]  touch /var/lock/subsys/$prog
return $RETVAL
}
stop() {
echo -n $Stopping $prog: 
su - root -c $TOMCAT_HOME/bin/shutdown.sh  /dev/null
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo_success
else
echo_failure
fi
echo
[ $RETVAL = 0 ]  rm -f /var/lock/subsys/$prog
return $RETVAL
}

# See how we were called.
case $1 in
  start)
start
;;
  stop)
stop
;;
  restart)
stop
start
;;
  status)
INSTANCES=`ps --columns 512 -aef|grep java|grep tomcat|grep 
org.apache.catalina.startup.Bootstrap|wc -l`
if [ $INSTANCES -eq 0 ]; then   
echo $prog is stopped
REVAL=3
else
if [ $INSTANCES -eq 1 ]; then   
echo $prog is running 1 instance...
else
echo $prog is running $INSTANCES instances...
fi
REVAL=0
fi
;;
  *)
echo $Usage: $prog {start|stop|restart|status|help}
exit 1
esac

exit $RETVAL

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



DO NOT REPLY [Bug 31304] - NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31304.
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=31304

NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList





--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 09:31 ---
Created an attachment (id=12875)
test webapp war file

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



DO NOT REPLY [Bug 31304] - NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31304.
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=31304

NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList





--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 09:32 ---
Yoav,

Please accept my apologies for the delay in providing the war file. I don't
normally deploy using one so I hope it is what you were after.

Thanks again.

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



cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml

2004-09-28 Thread yoavs
yoavs   2004/09/28 06:23:11

  Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0
ApplicationDispatcher.java
   webapps/docs Tag: TOMCAT_5_0 changelog.xml
  Log:
  Bugzilla 30949: moved ApplicationDispatcher's unwrap calls to the invoke method so 
that they're done even if errors occur in the include.
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.34.2.1  +6 -9  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java
  
  Index: ApplicationDispatcher.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java,v
  retrieving revision 1.34
  retrieving revision 1.34.2.1
  diff -u -r1.34 -r1.34.2.1
  --- ApplicationDispatcher.java7 Jun 2004 17:32:15 -   1.34
  +++ ApplicationDispatcher.java28 Sep 2004 13:23:11 -  1.34.2.1
  @@ -531,8 +531,6 @@
new 
Integer(ApplicationFilterFactory.INCLUDE));
   
request.setAttribute(ApplicationFilterFactory.DISPATCHER_REQUEST_PATH_ATTR, 
origServletPath);
   invoke(request, outerResponse);
  -unwrapResponse();
  -
   }
   
   // Handle an HTTP named dispatcher include
  @@ -552,9 +550,6 @@
   invoke(outerRequest, outerResponse);
   
   wrequest.recycle();
  -unwrapRequest();
  -unwrapResponse();
  -
   }
   
   // Handle an HTTP path based include
  @@ -590,9 +585,6 @@
   invoke(outerRequest, outerResponse);
   
   wrequest.recycle();
  -unwrapRequest();
  -unwrapResponse();
  -
   }
   
   }
  @@ -795,6 +787,11 @@
   // Reset the old context class loader
   if (oldCCL != null)
   Thread.currentThread().setContextClassLoader(oldCCL);
  +
  +// Unwrap the request and response if needed
  +// See Bugzilla 30949
  +unwrapRequest();
  +unwrapResponse();
   
   // Rethrow an exception if one was thrown by the invoked servlet
   if (ioException != null)
  
  
  
  No   revision
  No   revision
  1.70.2.44 +3 -0  jakarta-tomcat-catalina/webapps/docs/changelog.xml
  
  Index: changelog.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
  retrieving revision 1.70.2.43
  retrieving revision 1.70.2.44
  diff -u -r1.70.2.43 -r1.70.2.44
  --- changelog.xml 27 Sep 2004 15:28:49 -  1.70.2.43
  +++ changelog.xml 28 Sep 2004 13:23:11 -  1.70.2.44
  @@ -91,6 +91,9 @@
 fix
   bug31362/bug: Missing -Xdebug in catalina.bat when using JPDA and 
Security. (yoavs)
 /fix
  +  fix
  +bug30949/bug: Make sure ApplicationDispatcher unwraps requests even if 
include fails. (yoavs)
  +  /fix
   /changelog
 /subsection
 subsection name=Webapps
  
  
  

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



cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml

2004-09-28 Thread yoavs
yoavs   2004/09/28 06:32:28

  Modified:catalina/src/share/org/apache/catalina/core
ApplicationDispatcher.java
   webapps/docs changelog.xml
  Log:
  Bugzilla 30949: make sure ApplicationDispatcher unwraps request/response even if an 
include error occurs.
  
  Revision  ChangesPath
  1.40  +6 -9  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java
  
  Index: ApplicationDispatcher.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- ApplicationDispatcher.java27 Jun 2004 23:56:22 -  1.39
  +++ ApplicationDispatcher.java28 Sep 2004 13:32:27 -  1.40
  @@ -522,8 +522,6 @@
new 
Integer(ApplicationFilterFactory.INCLUDE));
   
request.setAttribute(ApplicationFilterFactory.DISPATCHER_REQUEST_PATH_ATTR, 
origServletPath);
   invoke(request, outerResponse);
  -unwrapResponse();
  -
   }
   
   // Handle an HTTP named dispatcher include
  @@ -543,9 +541,6 @@
   invoke(outerRequest, outerResponse);
   
   wrequest.recycle();
  -unwrapRequest();
  -unwrapResponse();
  -
   }
   
   // Handle an HTTP path based include
  @@ -581,9 +576,6 @@
   invoke(outerRequest, outerResponse);
   
   wrequest.recycle();
  -unwrapRequest();
  -unwrapResponse();
  -
   }
   
   }
  @@ -767,6 +759,11 @@
   // Reset the old context class loader
   if (oldCCL != null)
   Thread.currentThread().setContextClassLoader(oldCCL);
  +
  +// Unwrap request/response if needed
  +// See Bugzilla 30949
  +unwrapRequest();
  +unwrapResponse();
   
   // Rethrow an exception if one was thrown by the invoked servlet
   if (ioException != null)
  
  
  
  1.120 +3 -0  jakarta-tomcat-catalina/webapps/docs/changelog.xml
  
  Index: changelog.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
  retrieving revision 1.119
  retrieving revision 1.120
  diff -u -r1.119 -r1.120
  --- changelog.xml 27 Sep 2004 16:04:04 -  1.119
  +++ changelog.xml 28 Sep 2004 13:32:28 -  1.120
  @@ -69,6 +69,9 @@
fix
  bug31356/bug: Duplicates not counted in session generation. (yoavs)
/fix
  + fix
  +   bug30949/bug: Make sure ApplicationDispatcher unwraps request/response 
even if include error occurs. (yoavs)
  + /fix
   /changelog
 /subsection
   
  
  
  

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



DO NOT REPLY [Bug 30949] - After Failed Include, Request and Response not Unwrapped

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30949.
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=30949

After Failed Include, Request and Response not Unwrapped

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 13:34 ---
OK, I've moved the ApplicationDispatcher unwrap requests to the invoke method 
as Remy suggested.  Done on both the Tomcat 5.0 and 5.5 CVS branches.

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



DO NOT REPLY [Bug 31239] - destroy method of servlets not called when stopping tomcat service

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31239.
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=31239

destroy method of servlets not called when stopping tomcat service





--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 13:47 ---
I've verified the bug exists for Tomcat 5.0.28 on Windows 2000 (in addition to 
the Windows XP reported by the user), using Sun JDK 1.4.2_04.  Attaching WAR 
used to verify bug.

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



DO NOT REPLY [Bug 31239] - destroy method of servlets not called when stopping tomcat service

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31239.
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=31239

destroy method of servlets not called when stopping tomcat service





--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 13:48 ---
Created an attachment (id=12883)
Simple Test WAR: writes to System.out on destroy

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



Re: cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml

2004-09-28 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:
yoavs   2004/09/28 06:23:11
 Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0
   ApplicationDispatcher.java
  webapps/docs Tag: TOMCAT_5_0 changelog.xml
 Log:
 Bugzilla 30949: moved ApplicationDispatcher's unwrap calls to the invoke method so that they're done even if errors occur in the include.
 

I think the patch is not so good.
 
 Revision  ChangesPath
 No   revision
 No   revision
 1.34.2.1  +6 -9  jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java
 
 Index: ApplicationDispatcher.java
 ===
 RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java,v
 retrieving revision 1.34
 retrieving revision 1.34.2.1
 diff -u -r1.34 -r1.34.2.1
 --- ApplicationDispatcher.java	7 Jun 2004 17:32:15 -	1.34
 +++ ApplicationDispatcher.java	28 Sep 2004 13:23:11 -	1.34.2.1
 @@ -531,8 +531,6 @@
   new Integer(ApplicationFilterFactory.INCLUDE));
  request.setAttribute(ApplicationFilterFactory.DISPATCHER_REQUEST_PATH_ATTR, origServletPath);
  invoke(request, outerResponse);
 -unwrapResponse();
 -
 

Here it doesn't seem good (ok, the case is actually never used) since 
the request would be unwrapped as well.

  }
  
  // Handle an HTTP named dispatcher include
 @@ -552,9 +550,6 @@
  invoke(outerRequest, outerResponse);
  
  wrequest.recycle();
 -unwrapRequest();
 -unwrapResponse();
 -
 

And here the recycling won't get done.
Rémy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 30128] - StandardDefaultContext don't handle LifecycleListener correct

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30128.
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=30128

StandardDefaultContext don't handle LifecycleListener  correct





--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 17:24 ---
Hey Yoav,

I also think the we not need more fixes to the store system at the 5.0.x 
branch or we change more.

peter

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



DO NOT REPLY [Bug 31456] New: - Error in Users Guide / Manager/Custom Ant Task example

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31456.
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=31456

Error in Users Guide / Manager/Custom Ant Task example

   Summary: Error in Users Guide / Manager/Custom Ant Task example
   Product: Tomcat 5
   Version: 5.0.27
  Platform: All
OS/Version: All
Status: NEW
  Severity: Minor
  Priority: Other
 Component: Webapps:Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Location: ManagerApp HowTo / Executing Manager Commands With Ant

The example for using Tomcat with Ant reads for the target undeploy:

target name=undeploy description=Remove web application
remove url=${url} username=${username} password=${password}
path=${path}/
  /target

This doesn´t work - in the second line the tag remove must read undeploy.

I have tried in using Ant build from within Eclipse.

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



cvs commit: jakarta-tomcat-4.0/webapps/tomcat-docs cgi-howto.xml

2004-09-28 Thread markt
markt   2004/09/28 14:51:50

  Modified:catalina/src/conf web.xml
   catalina/src/share/org/apache/catalina/servlets
CGIServlet.java
   webapps/tomcat-docs cgi-howto.xml
  Log:
  Revert RFE 27090 as it introduced a JDK 1.4 dependency
  
  Revision  ChangesPath
  1.59  +0 -4  jakarta-tomcat-4.0/catalina/src/conf/web.xml
  
  Index: web.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/conf/web.xml,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- web.xml   17 Aug 2004 21:44:32 -  1.58
  +++ web.xml   28 Sep 2004 21:51:49 -  1.59
  @@ -236,10 +236,6 @@
 !--   executable   Name of the exectuable used to run the--
 !--script. [perl]--
 !--  --
  -  !--   parameterEncodingName of parameter encoding to be used with--
  -  !--CGI servlet.  --
  -  !--[System.getProperty(file.encoding,UTF-8)] --
  -  !--  --
 !--   passShellEnvironment Should the shell environment variables (if--
 !--any) be passed to the CGI script? [false] --
 !--  --
  
  
  
  1.28  +6 -11 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java
  
  Index: CGIServlet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- CGIServlet.java   26 Aug 2004 21:38:13 -  1.27
  +++ CGIServlet.java   28 Sep 2004 21:51:49 -  1.28
  @@ -263,10 +263,6 @@
   /** the executable to use with the script */
   private String cgiExecutable = perl;
   
  -/** the encoding to use for parameters */
  -private String parameterEncoding = System.getProperty(file.encoding,
  -  UTF-8);
  -
   /** object used to ensure multiple threads don't try to expand same file */
   static Object expandFileLock = new Object();
   
  @@ -768,8 +764,7 @@
   if (param != null) {
   String values[] = req.getParameterValues(param);
   for (int i=0; i  values.length; i++) {
  -String value = URLEncoder.encode(values[i],
  - parameterEncoding);
  +String value = URLEncoder.encode(values[i]);
   NameValuePair nvp = new NameValuePair(param, value);
   queryParameters.add(nvp);
   }
  
  
  
  1.6   +0 -3  jakarta-tomcat-4.0/webapps/tomcat-docs/cgi-howto.xml
  
  Index: cgi-howto.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/cgi-howto.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- cgi-howto.xml 17 Aug 2004 21:44:32 -  1.5
  +++ cgi-howto.xml 28 Sep 2004 21:51:50 -  1.6
  @@ -56,9 +56,6 @@
   by this servlet. Default 0./li
   listrongexecutable/strong - The of the executable to be used to
   run the script. Default is codeperl/code./li
  -listrongparameterEncoding/strong - Name of the parameter encoding
  -to be used with the GCI servlet. Default is
  -codeSystem.getProperty(file.encoding,UTF-8)/code./li
   listrongpassShellEnvironment/strong - Should the shell environment
   variables (if any) be passed to the CGI script? Default is
   codefalse/code./li
  
  
  

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



DO NOT REPLY [Bug 31459] New: - org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketTimeoutException: Accept timed out

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31459.
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=31459

  org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing 
accept java.net.SocketTimeoutException: Accept timed out

   Summary:   org.apache.jk.common.ChannelSocket acceptConnections
WARNING: Exception executing accept
java.net.SocketTimeoutException: Accept timed out
   Product: Tomcat 5
   Version: 5.0.28
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Catalina:Cluster
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi to all,

I am implementing the Clustering in tomcat 5.0, So  followed the below step 
To run session replication in your Tomcat 5 container, the following steps 
should be completed:
All your session attributes must implement java.io.Serializable 
Uncomment the Cluster element in server.xml 
Uncomment the Valve(ReplicationValve) element in server.xml 
If your Tomcat instances are running on the same machine, make sure the 
tcpListenPort attribute is unique for each instance. 
Make sure your web.xml has the distributable/ element 
Load balancing can be achieved through many techniques, as seen in the Load 
Balancing balancer-howto.html chapter.
Note: Remember that your session state is tracked by a cookie, so your URL 
must look the same from the out side otherwise, a new session will be created.
Note: Clustering support currently requires the JDK version 1.4 or later.

when i start the tomcat i am getting the following error. if any one gimme the 
solution it will be great help  to me.


INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/balancer.xml
Sep 28, 2004 11:11:29 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/manager.xml
Sep 28, 2004 11:11:29 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/webdav.xml
Sep 28, 2004 11:11:29 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/servlets-examples.xml
Sep 28, 2004 11:11:29 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/jsp-examples.xml
Sep 28, 2004 11:11:30 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/tomcat-docs.xml
Sep 28, 2004 11:11:30 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/ROOT.xml
Sep 28, 2004 11:11:30 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-
5.0.28/conf/Catalina/localhost/newnn.xml

Creating ClusterManager for context /newnn using class 
org.apache.catalina.cluster.session.DeltaManager

Sep 28, 2004 11:11:30 AM org.apache.catalina.cluster.session.DeltaManager start
INFO: Starting clustering manager...:/newnn
Sep 28, 2004 11:11:30 AM org.apache.catalina.cluster.session.DeltaManager start
INFO: Manager[/newnn], skipping state transfer. No members active in cluster 
group.
hello 
sas_home/usr/local/jakarta-tomcat-5.0.28/conf
hello 
Sep 28, 2004 11:11:32 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 28, 2004 11:11:33 AM org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
Sep 28, 2004 11:11:33 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on localhost/127.0.0.1:8009
Sep 28, 2004 11:11:33 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/120  config=/usr/local/jakarta-tomcat-
5.0.28/conf/jk2.properties
Sep 28, 2004 11:11:33 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9899 ms
Sep 28, 2004 11:11:34 AM org.apache.jk.common.ChannelSocket acceptConnections
WARNING: Exception executing accept
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at 

DO NOT REPLY [Bug 31459] - org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketTimeoutException: Accept timed out

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31459.
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=31459

  org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing 
accept java.net.SocketTimeoutException: Accept timed out





--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 22:02 ---
Created an attachment (id=12887)
org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing 
accept java.net.SocketTimeoutException: Accept timed out

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets CGIServlet.java

2004-09-28 Thread markt
markt   2004/09/28 15:13:31

  Modified:catalina/src/share/org/apache/catalina/servlets
CGIServlet.java
  Log:
  Make parameterEncoding actually do something.
  
  Revision  ChangesPath
  1.26  +10 -5 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java
  
  Index: CGIServlet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- CGIServlet.java   29 Aug 2004 16:46:12 -  1.25
  +++ CGIServlet.java   28 Sep 2004 22:13:31 -  1.26
  @@ -330,6 +330,11 @@
   cgiExecutable = value;
   }
   
  +value = getServletConfig().getInitParameter(parameterEncoding);
  +if (value != null) {
  +parameterEncoding = value;
  +}
  +
   // Identify the internal container resources we need
   context = config.getServletContext();
   
  
  
  

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



cvs commit: jakarta-tomcat-catalina/webapps/docs cgi-howto.xml

2004-09-28 Thread markt
markt   2004/09/28 15:19:33

  Modified:catalina/src/conf Tag: TOMCAT_5_0 web.xml
   catalina/src/share/org/apache/catalina/servlets Tag:
TOMCAT_5_0 CGIServlet.java
   webapps/docs Tag: TOMCAT_5_0 cgi-howto.xml
  Log:
  Revert RFE 27090 as it introduced a JDK 1.4 dependency.
  Remove unused timeout parameter
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.39.2.2  +0 -12 jakarta-tomcat-catalina/catalina/src/conf/web.xml
  
  Index: web.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/conf/web.xml,v
  retrieving revision 1.39.2.1
  retrieving revision 1.39.2.2
  diff -u -r1.39.2.1 -r1.39.2.2
  --- web.xml   24 Aug 2004 23:14:51 -  1.39.2.1
  +++ web.xml   28 Sep 2004 22:19:32 -  1.39.2.2
  @@ -262,20 +262,12 @@
 !--   webAppRootDir + File.separator + this prefix.  --
 !--   [WEB-INF/cgi]  --
 !--  --
  -  !--   clientInputTimeout  The time (in milliseconds) to wait for input   --
  -  !--   from the browser before assuming that there--
  -  !--   is none.  [100]--
  -  !--  --
 !--   debug   Debugging detail level for messages logged --
 !--   by this servlet.  [0]  --
 !--  --
 !--   executable  Name of the exectuable used to run the script. --
 !--   [perl] --
 !--  --
  -  !--   parameterEncoding   Name of parameter encoding to be used with CGI --
  -  !--   servlet.   --
  -  !--   [System.getProperty(file.encoding,UTF-8)]  --
  -  !--  --
 !-- IMPORTANT: To use the CGI servlet, you also need to rename the   --
 !--$CATALINA_HOME/server/lib/servlets-cgi.renametojar file   --
 !--to $CATALINA_HOME/server/lib/servlets-cgi.jar --
  @@ -284,10 +276,6 @@
   servlet
   servlet-namecgi/servlet-name
   servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
  -init-param
  -  param-nameclientInputTimeout/param-name
  -  param-value100/param-value
  -/init-param
   init-param
 param-namedebug/param-name
 param-value6/param-value
  
  
  
  No   revision
  No   revision
  1.22.2.1  +6 -17 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java
  
  Index: CGIServlet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java,v
  retrieving revision 1.22
  retrieving revision 1.22.2.1
  diff -u -r1.22 -r1.22.2.1
  --- CGIServlet.java   16 Jun 2004 18:22:20 -  1.22
  +++ CGIServlet.java   28 Sep 2004 22:19:32 -  1.22.2.1
  @@ -259,9 +259,6 @@
   /** the debugging detail level for this servlet. */
   private int debug = 0;
   
  -/** the time in ms to wait for the client to send us CGI input data */
  -private int iClientInputTimeout = 100;
  -
   /**
*  The CGI search path will start at
*webAppRootDir + File.separator + cgiPathPrefix
  @@ -273,10 +270,6 @@
   /** the command to use with the script */
   private String cgiExecutable = perl;
   
  -/** the encoding to use for parameters */
  -private String parameterEncoding = System.getProperty(file.encoding,
  -  UTF-8);
  -
   /** object used to ensure multiple threads don't try to expand same file */
   static Object expandFileLock = new Object();
   
  @@ -314,9 +307,6 @@
   debug = Integer.parseInt(value);
   cgiPathPrefix =
   getServletConfig().getInitParameter(cgiPathPrefix);
  -value =
  -getServletConfig().getInitParameter(iClientInputTimeout);
  -iClientInputTimeout = Integer.parseInt(value);
   } catch (Throwable t) {
   //NOOP
   }
  @@ -728,8 +718,7 @@
   if (param != null) {
   String values[] = req.getParameterValues(param);
   for (int i=0; i  values.length; i++) {
  -

DO NOT REPLY [Bug 27090] - CGI parameters use default encoding instead of UTF-8

2004-09-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27090.
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=27090

CGI parameters use default encoding instead of UTF-8





--- Additional Comments From [EMAIL PROTECTED]  2004-09-28 22:22 ---
Note that this has been reverted in 4.1.x and 5.0.x as it introduced a JDK 1.4 
dependency. It remains in 5.5.x

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