Re: Smooth applications migration in a J2EE cluster [mod_jk]

2006-12-15 Thread Anthony Vromant

Hi all,

I would like to know if you had time to look at the demonstration of our 
prototype.


We are very interested to get your feelings about that.

Do you have ideas about our problem of testing the validity of a user 
session within mod_jk ?
We're thinking about a mechanism relying on the JMX-Adaptor of Tomcat 
that mod_jk can

invoke through the AJP interface. What's your opinion ?

Thanks.
Regards

Anthony Vromant

Anthony Vromant wrote:

Hi Rainer,

First of all, thank you for these informations.

Here is the HTTP link for the Flash demonstration of our prototype :
https://wiki.objectweb.org/jonas/Wiki.jsp?page=JOnASClusteringSmoothUpdateWebCluster 



I am looking at the new features provided by mod_jk 1.2.20, the 
dynamic configuration reloading is quite interesting.

We are going to bring our prototype to this new version.

In our prototype, when a new request is coming with a JSESSIONID 
cookie, a request is sent to the worker (tomcat) for checking the 
validity (we need to know whether the session is still alive).
Currently, the HTTP protocol is used for invoking tomcat rather than 
AJP. The control at the tomcat side is done through an internal 
servlet which accesses the MBean manager for getting the current 
sessions list.


Do you have any suggestion for improving that ?

Regards,
Anthony



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



Re: Tomcat and SIP

2006-12-15 Thread Remy Maucherat

Filip Hanik - Dev Lists wrote:
I don't believe there has been an effort started yet, but it is 
something that I we would like to have.


I think I want it more than you do (who knows, though ;) ). It's still 
going to be a lot of work to have a cleanly integrated SIP impl inside 
Tomcat (+ having it be small and efficient).


Rémy

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



DO NOT REPLY [Bug 41179] New: - 400 Bad Request response during auto re-deployment

2006-12-15 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=41179

   Summary: 400 Bad Request response during auto re-deployment
   Product: Tomcat 5
   Version: 5.5.20
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: enhancement
  Priority: P5
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


When you re-deploy the root war file using autoDeploy="true", Tomcat sends a
response with status code 400 (Bad Request: No host matches ...).

This makes it impossible to serve a custom error document with Apache + mod_jk
since the request processing is immediately halted to guard against security
problems caused by bad requests. (See:
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument)

RFC 2616 (section 10.4.1) says about status code 400: "The request could not be
understood by the server due to malformed syntax. The client SHOULD NOT repeat
the request without modifications"

The thing is, that there's nothing wrong with the client's request. It's not a
syntactical issue and indeed the client SHOULD repeat the request.

I wonder whether a 404, 500 or 503 wouldn't be more appropriate here, at least
this would allow one to serve a custom error document during re-deployments.

-- 
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 41180] New: - I have fix this by edit org.apache.jasper.compiler.Parser.java

2006-12-15 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=41180>.
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=41180

   Summary:  I have fix this by edit
org.apache.jasper.compiler.Parser.java
   Product: Tomcat 5
   Version: 5.5.12
  Platform: All
OS/Version: All
Status: NEW
  Severity: critical
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


hi:
I have resolve this bug by edit org.apache.jasper.compiler.Parser, in 
function parseOptionalBody,after 'reader.matches(">")' , may have a blank 
character before , so must skip those blank charactor.
I saw this bug has appearance in Tomcat5.0.* , but I find this bug in 
tomcat5.5.9 ,5.5.12. The next is Parser.java source that I have edit and test 
it in Application Server automatic test collections:

private void parseOptionalBody( Node parent, String tag, String bodyType ) 
throws JasperException 
{
if (reader.matches("/>")) {
// EmptyBody
return;
}

if (!reader.matches(">")) {
err.jspError(reader.mark(), "jsp.error.unterminated",
 "<" + tag );
}

//edit by [EMAIL PROTECTED] 20061215: beacause next may be a blank 
character.
reader.skipSpaces();

if( reader.matchesETag( tag ) ) {
// EmptyBody
return;
}

if( !parseJspAttributeAndBody( parent, tag, bodyType ) ) {
// Must be ( '>' # Body ETag )
parseBody(parent, tag, bodyType );
}
}

-- 
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 41180] - I have fix this by edit org.apache.jasper.compiler.Parser.java

2006-12-15 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=41180





--- Additional Comments From [EMAIL PROTECTED]  2006-12-15 06:02 ---
In jsp file ,when write   , the jasper will 
throw an Exception:

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

org.apache.jasper.JasperException: /jsp1.jsp(2,1) Expecting "jsp:param" 
standard action with "name" and "value" attributes
org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.parseParam(Parser.java:852)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1804)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
org.apache.jasper.compiler.Parser.parseInclude(Parser.java:888)
org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1211)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1563)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse
(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.9 logs.
 

-- 
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 40307] - error page not shown when exception occurs in nested custom JSP tag after jsp:include

2006-12-15 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=40307





--- Additional Comments From [EMAIL PROTECTED]  2006-12-15 06:03 ---
Created an attachment (id=19263)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19263&action=view)
this is resolve file


-- 
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 40307] - error page not shown when exception occurs in nested custom JSP tag after jsp:include

2006-12-15 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=40307


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-12-15 06:35 ---
Since flush="true" on a include -  the respsone is committed. Error pages won't 
be invoked correctly since the the requestDispather.forward() cannot work 
correctly once a response is committed.

-- 
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 41182] New: - Jasper ignores JspServlet's 'classpath' init param

2006-12-15 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=41182

   Summary: Jasper ignores JspServlet's 'classpath' init param
   Product: Tomcat 5
   Version: 5.5.20
  Platform: Other
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


JspServlet describes and reads a servlet init parameter 'classpath'.
Documentation says: 

"classpath - What class path should I use while compiling generated servlets? By
default the classpath is created dynamically based on the current web 
application."

Current behaviour is that the configured classpath is only considered if no
classpath is configured as servlet context attribute. 

---JspRuntimeContext:335
String cp = (String) context.getAttribute(Constants.SERVLET_CLASSPATH);
if (cp == null || cp.equals("")) {
  cp = options.getClassPath();
}

It seems that when running within tomcat the context attribute is usually
present and therefore the classpath from the servlet init parameter is not
considered.

-- 
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: r487407 - in /tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/transport: ReceiverBase.java RxTaskPool.java ThreadPool.java WorkerThread.java bio/BioReceiver.java nio/NioReceiver.j

2006-12-15 Thread Remy Maucherat

Filip Hanik - Dev Lists wrote:

you're good to go, tag away


Ok, I should be able to tag later today (a bit after 00:00 GMT+1, as usual).

Rémy

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



svn commit: r487694 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardHostValve.java

2006-12-15 Thread remm
Author: remm
Date: Fri Dec 15 14:30:51 2006
New Revision: 487694

URL: http://svn.apache.org/viewvc?view=rev&rev=487694
Log:
- Ignore client aborts when flushing the buffer.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardHostValve.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardHostValve.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardHostValve.java?view=diff&rev=487694&r1=487693&r2=487694
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardHostValve.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardHostValve.java 
Fri Dec 15 14:30:51 2006
@@ -343,6 +343,8 @@
 if (custom(request, response, errorPage)) {
 try {
 response.flushBuffer();
+} catch (ClientAbortException e) {
+// Ignore
 } catch (IOException e) {
 container.getLogger().warn("Exception Processing " + 
errorPage, e);
 }



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



svn commit: r487695 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java

2006-12-15 Thread remm
Author: remm
Date: Fri Dec 15 14:32:11 2006
New Revision: 487695

URL: http://svn.apache.org/viewvc?view=rev&rev=487695
Log:
- As decided, update version numbers.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java?view=diff&rev=487695&r1=487694&r2=487695
==
--- 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java 
(original)
+++ 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java 
Fri Dec 15 14:32:11 2006
@@ -56,8 +56,8 @@
 
 protected static final int TCN_REQUIRED_MAJOR = 1;
 protected static final int TCN_REQUIRED_MINOR = 1;
-protected static final int TCN_REQUIRED_PATCH = 3;
-protected static final int TCN_RECOMMENDED_PV = 7;
+protected static final int TCN_REQUIRED_PATCH = 8;
+protected static final int TCN_RECOMMENDED_PV = 8;
 
 
 // -- Properties



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



svn commit: r487716 - /tomcat/tc6.0.x/tags/TOMCAT_6_0_5/

2006-12-15 Thread remm
Author: remm
Date: Fri Dec 15 15:35:31 2006
New Revision: 487716

URL: http://svn.apache.org/viewvc?view=rev&rev=487716
Log:
made a copy

Added:
tomcat/tc6.0.x/tags/TOMCAT_6_0_5/
  - copied from r487715, tomcat/tc6.0.x/trunk/


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



svn commit: r487717 - /tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

2006-12-15 Thread remm
Author: remm
Date: Fri Dec 15 15:37:33 2006
New Revision: 487717

URL: http://svn.apache.org/viewvc?view=rev&rev=487717
Log:
- Changelog update.

Modified:
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?view=diff&rev=487717&r1=487716&r2=487717
==
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Fri Dec 15 15:37:33 2006
@@ -21,6 +21,22 @@
 40585: Fix parameterised constructor for 
o.a.juli.FileHandler
 so parameters have an effect. (markt)
   
+  
+Escape invalid characters from request.getLocale. (markt, remm)
+  
+  
+Update required version for native to 1.1.8. (remm)
+  
+  
+Do not log broken pipe errors which can occur when flushing the 
content of an error page. (remm)
+  
+
+  
+  
+
+  
+Fix firstReadTimeout behavior for the AJP connector. (remm)
+  
 
   
   
@@ -28,6 +44,16 @@
   
 41057: Make jsp:plugin output XHTML compliant. (markt)
   
+
+  
+  
+
+  
+Cluster interface cleanup. (fhanik)
+  
+  
+Refactoring to allow usage of executors. (fhanik)
+  
 
   
 



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



svn commit: r487718 - /tomcat/tc6.0.x/tags/TOMCAT_6_0_5/trunk/

2006-12-15 Thread remm
Author: remm
Date: Fri Dec 15 15:37:59 2006
New Revision: 487718

URL: http://svn.apache.org/viewvc?view=rev&rev=487718
Log:
made a copy

Added:
tomcat/tc6.0.x/tags/TOMCAT_6_0_5/trunk/
  - copied from r487717, tomcat/tc6.0.x/trunk/


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



svn commit: r487720 - /tomcat/tc6.0.x/tags/TOMCAT_6_0_6/

2006-12-15 Thread remm
Author: remm
Date: Fri Dec 15 15:41:20 2006
New Revision: 487720

URL: http://svn.apache.org/viewvc?view=rev&rev=487720
Log:
- 6.0.6 sounds better anyway. (sorry for the error, I'm a bit sick)

Added:
tomcat/tc6.0.x/tags/TOMCAT_6_0_6/
  - copied from r487719, tomcat/tc6.0.x/trunk/


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



Re: svn commit: r487168 - /tomcat/tc6.0.x/trunk/res/side_left.bmp

2006-12-15 Thread Remy Maucherat

[EMAIL PROTECTED] wrote:

Author: mturk
Date: Thu Dec 14 02:42:33 2006
New Revision: 487168

URL: http://svn.apache.org/viewvc?view=rev&rev=487168
Log:
More artwork

Modified:
tomcat/tc6.0.x/trunk/res/side_left.bmp


Your new bitmap does not look good to me: it's stretched. It should also 
not read "The Apache Tomcat 6", but "Apache Tomcat 6".


Rémy

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



[VOTE] Release build 6.0.6 as alpha

2006-12-15 Thread Remy Maucherat

Hi,

The vote is to release Apache Tomcat 6.0.6 as alpha.
The build is located here: http://people.apache.org/~remm/tomcat-6/v6.0.6/

Votes ?

Rémy

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