Re: New Tomcat release? Out of the box bundle with Harmony?

2007-11-14 Thread Henri Gomez
> > If someone else were to build and maintain a Tomcat + Harmony
> > download

> I understand that such a bundle is mostly interested for Harmony not
> for Tomcat :)

The good idea could be to package Harmony with major ASF projects,
like Tomcat, Geronimo, Ant, Axis/CXF.

A sort of ASF goodies ready to use.

We could see it in Fedora 8 Release with IcedTea and it's more a
packaging activity than pure developpment.

So I suggest you to see how Harmony could fit with leading Linux
distributions (Suse, RH/Fedora/Ubuntu) and help them package it in
their distro. May be with jpackage, may be directly with distributions
(you could start to make RPM/DEB packages available for these
distros).

For the Windows land, it's another story.

Regards

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



DO NOT REPLY [Bug 43224] - improve checking of workers.properties for invalid values

2007-11-14 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=43224


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||LATER




--- Additional Comments From [EMAIL PROTECTED]  2007-11-14 00:51 ---
Like Rainer said. This is JK3 material

Some things won't be checkable anyhow until actually used,
like valid host names, ports, etc.
Some can with predefined set of valid attributes.


-- 
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 40993] - add session_cookie to lb worker to support customed SESSION_IDENTIFIER

2007-11-14 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=40993


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||LATER




--- Additional Comments From [EMAIL PROTECTED]  2007-11-14 00:47 ---
Like Rainer said. This is for post 1.2 feature

The proper solution would be to use rewriting as well as configurable
session identifier, because configurable session identifier would require
additional changes in Tomcat as well, and that won't happen because it
breaks the spec.

The only solution is to rewrite the JSESSIONID cookie or ;jsessionid path
on the fly on each request/response.
I'm almost sure you can already do that with Apache's mod_rewrite, but anyhow,
it's a JK3 material

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



svn commit: r594798 - /tomcat/connectors/trunk/jk/native/iis/jk_isapi_plugin.c

2007-11-14 Thread mturk
Author: mturk
Date: Wed Nov 14 00:38:55 2007
New Revision: 594798

URL: http://svn.apache.org/viewvc?rev=594798&view=rev
Log:
Fix Bz 42003 by dynamically allocating memory

Modified:
tomcat/connectors/trunk/jk/native/iis/jk_isapi_plugin.c

Modified: tomcat/connectors/trunk/jk/native/iis/jk_isapi_plugin.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/iis/jk_isapi_plugin.c?rev=594798&r1=594797&r2=594798&view=diff
==
--- tomcat/connectors/trunk/jk/native/iis/jk_isapi_plugin.c (original)
+++ tomcat/connectors/trunk/jk/native/iis/jk_isapi_plugin.c Wed Nov 14 00:38:55 
2007
@@ -112,6 +112,7 @@
 #define BAD_REQUEST -1
 #define BAD_PATH-2
 #define MAX_SERVERNAME  128
+#define MAX_PACKET_SIZE 65536
 
 char HTML_ERROR_400[] = "\n"
 "Bad 
request!\n"
@@ -145,7 +146,7 @@
 #define GET_SERVER_VARIABLE_VALUE(name, place)  \
   do {  \
 (place) = NULL; \
-huge_buf_sz = sizeof(huge_buf); \
+huge_buf_sz = MAX_PACKET_SIZE;  \
 if (get_server_value(private_data->lpEcb,   \
 (name), \
 huge_buf,   \
@@ -156,7 +157,7 @@
 
 #define GET_SERVER_VARIABLE_VALUE_INT(name, place, def) \
   do {  \
-huge_buf_sz = sizeof(huge_buf); \
+huge_buf_sz = MAX_PACKET_SIZE;  \
 if (get_server_value(private_data->lpEcb,   \
 (name), \
 huge_buf,   \
@@ -1963,7 +1964,7 @@
 static int init_ws_service(isapi_private_data_t * private_data,
jk_ws_service_t *s, char **worker_name)
 {
-char huge_buf[16 * 1024];   /* should be enough for all */
+char *huge_buf = NULL;   /* should be enough for all */
 
 DWORD huge_buf_sz;
 
@@ -1983,6 +1984,11 @@
 /* Clear RECO status */
 s->reco_status = RECO_NONE;
 
+if (!(huge_buf = jk_pool_alloc(&private_data->p, MAX_PACKET_SIZE))) {
+
+return JK_FALSE;
+}
+huge_buf_sz = MAX_PACKET_SIZE;
 GET_SERVER_VARIABLE_VALUE(HTTP_WORKER_HEADER_NAME, (*worker_name));
 GET_SERVER_VARIABLE_VALUE(HTTP_URI_HEADER_NAME, s->req_uri);
 GET_SERVER_VARIABLE_VALUE(HTTP_QUERY_HEADER_NAME, s->query_string);
@@ -2073,7 +2079,7 @@
 s->num_attributes = num_of_vars;
 if (ssl_env_values[4] && ssl_env_values[4][0] == '1') {
 CERT_CONTEXT_EX cc;
-cc.cbAllocated = sizeof(huge_buf);
+cc.cbAllocated = MAX_PACKET_SIZE;
 cc.CertContext.pbCertEncoded = (BYTE *) huge_buf;
 cc.CertContext.cbCertEncoded = 0;
 
@@ -2102,7 +2108,7 @@
 }
 }
 
-huge_buf_sz = sizeof(huge_buf);
+huge_buf_sz = MAX_PACKET_SIZE;
 if (get_server_value(private_data->lpEcb,
  "ALL_HTTP", huge_buf, huge_buf_sz)) {
 unsigned int cnt = 0;
@@ -2115,7 +2121,7 @@
 }
 
 if (cnt) {
-char *headers_buf = jk_pool_strdup(&private_data->p, huge_buf);
+char *headers_buf = huge_buf;
 unsigned int i;
 size_t len_of_http_prefix = strlen("HTTP_");
 BOOL need_content_length_header = (s->content_length == 0);



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



Re: New Tomcat release? Out of the box bundle with Harmony?

2007-11-14 Thread Alexey Petrenko
2007/11/14, Henri Gomez <[EMAIL PROTECTED]>:
> > > If someone else were to build and maintain a Tomcat + Harmony
> > > download
>
> > I understand that such a bundle is mostly interested for Harmony not
> > for Tomcat :)
> The good idea could be to package Harmony with major ASF projects,
> like Tomcat, Geronimo, Ant, Axis/CXF.
> A sort of ASF goodies ready to use.
Yes, this is the target!

> We could see it in Fedora 8 Release with IcedTea and it's more a
> packaging activity than pure developpment.
>
> So I suggest you to see how Harmony could fit with leading Linux
> distributions (Suse, RH/Fedora/Ubuntu) and help them package it in
> their distro. May be with jpackage, may be directly with distributions
> (you could start to make RPM/DEB packages available for these
> distros).
Yep, we are working on such packages.

> For the Windows land, it's another story.
:)

SY, Alexey

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



[Tomcat Wiki] Trivial Update of "FrontPage" by StefanBecker

2007-11-14 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The following page has been changed by StefanBecker:
http://wiki.apache.org/tomcat/FrontPage

--
   * '''["PoweredBy"]''' - A list of sites powered by Tomcat.
   * '''["Tomcat/Links"]''' - Useful Links.
   * '''["HowTo"]''' - How to as linked by the FAQ.
-  * '''["JNDI HowTo"]''' - How to authenticate to different JNDI realms
+  * '''["JNDI HowTo"]''' - How to authenticate to different LDAP servers
   * '''["Tomcat/Books"]''' -  Books about Tomcat.
   * '''["UsingPhp"]''' - Using PHP with Tomcat 4 or later.
   * '''["WhatIsComet"]''' - What is the Tomcat Comet API.

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



[Tomcat Wiki] Update of "JNDI HowTo" by StefanBecker

2007-11-14 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The following page has been changed by StefanBecker:
http://wiki.apache.org/tomcat/JNDI_HowTo

New page:
##language:en
== Lotus Domino ==
{{{
ldap://ldap.company.com:389";
   roleSearch="(member={0})" 
   roleName="cn"
   userSearch="(cn={0})" />
}}}

== Oracle Internet Directory (OID) ==
{{{
ldap://ldap.company.com:389";
   roleBase="cn=Groups,dc=company,dc=com"
   roleSearch="(uniquemember={0})" 
   roleName="cn"
   userBase="cn=Users,dc=company,dc=com"
   userSearch="(uid={0})" />
}}}

== Microsoft Active Directory ==
{{{
ldap://ldap.company.com:3268";
   authentication="simple"
   referrals="follow"
   connectionName="cn=LDAPUser,ou=Service Accounts,dc=company,dc=com"
   connectionPassword="VerySecretPassword" 
   userSearch="(sAMAccountName={0})"
   userBase="dc=company,dc=com" 
   userSubtree="true"
   roleSearch="(member={0})" 
   roleName="cn" 
   roleSubtree="true"
   roleBase="dc=company,dc=com" />
}}}

The port number (3268) connects to the global catalog. This is important 
because 389 might throw errors when getting referrals. (It sends a referral to 
ldap://company.com:389.) With this setting we don't have to change anything in 
/etc/hosts.

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



[Tomcat Wiki] Update of "FrontPage" by StefanBecker

2007-11-14 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The following page has been changed by StefanBecker:
http://wiki.apache.org/tomcat/FrontPage

--
   * '''["PoweredBy"]''' - A list of sites powered by Tomcat.
   * '''["Tomcat/Links"]''' - Useful Links.
   * '''["HowTo"]''' - How to as linked by the FAQ.
+  * '''["JNDI HowTo"]''' - How to authenticate to different JNDI realms
   * '''["Tomcat/Books"]''' -  Books about Tomcat.
   * '''["UsingPhp"]''' - Using PHP with Tomcat 4 or later.
   * '''["WhatIsComet"]''' - What is the Tomcat Comet API.

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



DO NOT REPLY [Bug 42593] - Win32 Apache/jk/tomcat configuration causes 100% cpu usage

2007-11-14 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=42593


[EMAIL PROTECTED] changed:

   What|Removed |Added

 OS/Version|Windows XP  |Windows Server 2003




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



svn commit: r594968 - in /tomcat/tc6.0.x/trunk: ./ java/org/apache/catalina/connector/ java/org/apache/tomcat/util/http/ webapps/docs/

2007-11-14 Thread fhanik
Author: fhanik
Date: Wed Nov 14 09:36:47 2007
New Revision: 594968

URL: http://svn.apache.org/viewvc?rev=594968&view=rev
Log:
Cookie parsing patch

Modified:
tomcat/tc6.0.x/trunk/STATUS
tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Response.java
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/http/Cookies.java
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/http/ServerCookie.java
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS?rev=594968&r1=594967&r2=594968&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Wed Nov 14 09:36:47 2007
@@ -42,11 +42,6 @@
   +1: markt, remm
   -1:
 
-* Fix Tomcat's cookie parsing/writing, changelog updated with changes
-  http://people.apache.org/~fhanik/patches/cookie_change.patch.5
-  +1: fhanik, jfclere, remm
-  -1:
-
 * Add tests for the cookie parsing.
   http://people.apache.org/~jfclere/patches/test_cookies.patch
   +1: jfclere

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java?rev=594968&r1=594967&r2=594968&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java Wed 
Nov 14 09:36:47 2007
@@ -2350,6 +2350,22 @@
 cookie.setSecure(true);
 }
 }
+
+protected String unescape(String s) {
+if (s==null) return null;
+if (s.indexOf('\\') == -1) return s;
+StringBuffer buf = new StringBuffer();
+for (int i=0; i= s.length()) throw new 
IllegalArgumentException();//invalid escape, hence invalid cookie
+c = s.charAt(i);
+buf.append(c);
+}
+}
+return buf.toString();
+}
 
 /**
  * Parse cookies.
@@ -2369,14 +2385,18 @@
 for (int i = 0; i < count; i++) {
 ServerCookie scookie = serverCookies.getCookie(i);
 try {
-Cookie cookie = new Cookie(scookie.getName().toString(),
-   scookie.getValue().toString());
-cookie.setPath(scookie.getPath().toString());
-cookie.setVersion(scookie.getVersion());
+/*
+we must unescape the '\\' escape character
+*/
+Cookie cookie = new Cookie(scookie.getName().toString(),null);
+int version = scookie.getVersion();
+cookie.setVersion(version);
+cookie.setValue(unescape(scookie.getValue().toString()));
+cookie.setPath(unescape(scookie.getPath().toString()));
 String domain = scookie.getDomain().toString();
-if (domain != null) {
-cookie.setDomain(scookie.getDomain().toString());
-}
+if (domain!=null) cookie.setDomain(unescape(domain));//avoid 
NPE
+String comment = scookie.getComment().toString();
+cookie.setComment(version==1?unescape(comment):null);
 cookies[idx++] = cookie;
 } catch(IllegalArgumentException e) {
 // Ignore bad cookie

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Response.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Response.java?rev=594968&r1=594967&r2=594968&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Response.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Response.java Wed 
Nov 14 09:36:47 2007
@@ -955,9 +955,9 @@
 if (isCommitted())
 return;
 
-cookies.add(cookie);
-
 final StringBuffer sb = new StringBuffer();
+//web application code can receive a IllegalArgumentException 
+//from the appendCookieValue invokation
 if (SecurityUtil.isPackageProtectionEnabled()) {
 AccessController.doPrivileged(new PrivilegedAction() {
 public Object run(){
@@ -975,12 +975,13 @@
  cookie.getPath(), cookie.getDomain(), 
cookie.getComment(), 
  cookie.getMaxAge(), cookie.getSecure());
 }
-
+//if we reached here, no exception, cookie is valid
 // the header name is Set-Cookie for both "old" and v.1 ( RFC2109 )
 // RFC2965 is not supported by browsers and the Servlet spec
 // asks for 2109.
 addHeader("Set-Cookie", sb.

svn commit: r594964 - /tomcat/tc6.0.x/trunk/STATUS

2007-11-14 Thread fhanik
Author: fhanik
Date: Wed Nov 14 09:33:06 2007
New Revision: 594964

URL: http://svn.apache.org/viewvc?rev=594964&view=rev
Log:
Correct JDT location for download

Modified:
tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS?rev=594964&r1=594963&r2=594964&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Wed Nov 14 09:33:06 2007
@@ -71,4 +71,10 @@
 * Fix Comet bug, if servlet calls cometEvent.close() on the BEGIN event, the 
request still is marked as comet and ends up in a funky state
   http://people.apache.org/~fhanik/patches/comet-begin-event-close.patch
   +1: fhanik
-  -1: 
\ No newline at end of file
+  -1: 
+  
+* JDT location return 404
+  http://people.apache.org/~fhanik/patches/jdt-loc.patch
+  +1: fhanik
+  -1: 
+  
\ No newline at end of file



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



svn commit: r594957 - /tomcat/tc6.0.x/trunk/STATUS

2007-11-14 Thread fhanik
Author: fhanik
Date: Wed Nov 14 09:19:55 2007
New Revision: 594957

URL: http://svn.apache.org/viewvc?rev=594957&view=rev
Log:
Comet bug when a servlet calls CometEvent.close upon the begin event, the 
container acts like it didn't


Modified:
tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS?rev=594957&r1=594956&r2=594957&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Wed Nov 14 09:19:55 2007
@@ -66,4 +66,9 @@
   This is a port of improvements from the old trunk and fixes the BZ above and 
improves greatly on the NIO connector
   http://people.apache.org/~fhanik/patches/fix-nio-blocking-output.patch
   +1: fhanik
+  -1: 
+  
+* Fix Comet bug, if servlet calls cometEvent.close() on the BEGIN event, the 
request still is marked as comet and ends up in a funky state
+  http://people.apache.org/~fhanik/patches/comet-begin-event-close.patch
+  +1: fhanik
   -1: 



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



svn commit: r594969 - /tomcat/tc6.0.x/trunk/STATUS

2007-11-14 Thread fhanik
Author: fhanik
Date: Wed Nov 14 09:42:21 2007
New Revision: 594969

URL: http://svn.apache.org/viewvc?rev=594969&view=rev
Log:
cast vote

Modified:
tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS?rev=594969&r1=594968&r2=594969&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Wed Nov 14 09:42:21 2007
@@ -51,7 +51,7 @@
   Better patch that removes ServerCookie.log(String) entirely as per
   Remy's -1 comment on previous patch
   http://svn.apache.org/viewvc?view=rev&revision=594700
-  +1: markt, remm
+  +1: markt, remm, fhanik
   -1:
 
 * Fix BZ 43846



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



svn commit: r595009 - /tomcat/tc6.0.x/trunk/STATUS

2007-11-14 Thread jfclere
Author: jfclere
Date: Wed Nov 14 10:47:32 2007
New Revision: 595009

URL: http://svn.apache.org/viewvc?rev=595009&view=rev
Log:
Cast a vote.

Modified:
tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS?rev=595009&r1=595008&r2=595009&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Wed Nov 14 10:47:32 2007
@@ -70,6 +70,6 @@
   
 * JDT location return 404
   http://people.apache.org/~fhanik/patches/jdt-loc.patch
-  +1: fhanik
+  +1: fhanik, jfclere
   -1: 
-  
\ No newline at end of file
+  



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



Re: How do I expose Catalina MBeans through Java Platform MBeanServer

2007-11-14 Thread Vamsavardhana Reddy
What does the jar do?  It does not seem to contain source code.

++Vamsi

On Nov 15, 2007 1:16 AM, Ramakanth Kunapuli <[EMAIL PROTECTED]> wrote:

> It appears that tomcat uses different MBeanServer instance from Java's
> platform MBeanServer.
>
> Here's a tech tip of making both Tomcat & Java use the same MBean Server
> instance.
>
> Drop the attached jar file under /jre/lib/ext.
> Modify the java execution command to include the following system
> property.
> *
> -Djavax.management.builder.initial=SingletonMBeanServerBuilder
>
>
> *
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


How do I expose Catalina MBeans through Java Platform MBeanServer

2007-11-14 Thread Ramakanth Kunapuli
It appears that tomcat uses different MBeanServer instance from Java's
platform MBeanServer.

Here's a tech tip of making both Tomcat & Java use the same MBean Server
instance.

Drop the attached jar file under /jre/lib/ext.
Modify the java execution command to include the following system property.
*
-Djavax.management.builder.initial=SingletonMBeanServerBuilder


*


mbeanserver_builder.jar
Description: application/java-archive
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

DO NOT REPLY [Bug 43846] - Race condition with NIO connector parsing chunked response

2007-11-14 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=43846





--- Additional Comments From [EMAIL PROTECTED]  2007-11-14 12:10 ---
I've run a series of tests of various kinds and it appears that this issue is 
fixed in the patched version.   Would this fix going into a 6.0.15 release?

-- 
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: [PROPOSAL] Rename all STATUS files to STATUS.txt

2007-11-14 Thread Guenter Knauf
Hi Mark,
> Alternatively, if anyone knows a workaround so I can just double click and
> edit that would be fine too.
not directly what you might expect - however much better than the open selector:
open the menue tree with right-click on the start button, then in the 'All 
users' or in your personal tree lookup the 'SendTo' folder (requires setting to 
be able to view hidden folders), inside the 'SendTo' folder add a link to your 
favorite text editor, and prepend the link description with a '-' so that it 
appears at the top of the SendTo menue. Now you can right-click any file, and 
via SendTo context menue send to your text editor.

Guenter.



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



svn commit: r595052 - in /tomcat/trunk/java/org/apache: catalina/connector/Request.java catalina/connector/Response.java tomcat/util/http/Cookies.java tomcat/util/http/ServerCookie.java

2007-11-14 Thread markt
Author: markt
Date: Wed Nov 14 12:54:09 2007
New Revision: 595052

URL: http://svn.apache.org/viewvc?rev=595052&view=rev
Log:
Add cookie patch to trunk to keep it up to date

Modified:
tomcat/trunk/java/org/apache/catalina/connector/Request.java
tomcat/trunk/java/org/apache/catalina/connector/Response.java
tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java
tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java

Modified: tomcat/trunk/java/org/apache/catalina/connector/Request.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Request.java?rev=595052&r1=595051&r2=595052&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/connector/Request.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/Request.java Wed Nov 14 
12:54:09 2007
@@ -2350,6 +2350,22 @@
 cookie.setSecure(true);
 }
 }
+
+protected String unescape(String s) {
+if (s==null) return null;
+if (s.indexOf('\\') == -1) return s;
+StringBuffer buf = new StringBuffer();
+for (int i=0; i= s.length()) throw new 
IllegalArgumentException();//invalid escape, hence invalid cookie
+c = s.charAt(i);
+buf.append(c);
+}
+}
+return buf.toString();
+}
 
 /**
  * Parse cookies.
@@ -2369,14 +2385,18 @@
 for (int i = 0; i < count; i++) {
 ServerCookie scookie = serverCookies.getCookie(i);
 try {
-Cookie cookie = new Cookie(scookie.getName().toString(),
-   scookie.getValue().toString());
-cookie.setPath(scookie.getPath().toString());
-cookie.setVersion(scookie.getVersion());
+/*
+we must unescape the '\\' escape character
+*/
+Cookie cookie = new Cookie(scookie.getName().toString(),null);
+int version = scookie.getVersion();
+cookie.setVersion(version);
+cookie.setValue(unescape(scookie.getValue().toString()));
+cookie.setPath(unescape(scookie.getPath().toString()));
 String domain = scookie.getDomain().toString();
-if (domain != null) {
-cookie.setDomain(scookie.getDomain().toString());
-}
+if (domain!=null) cookie.setDomain(unescape(domain));//avoid 
NPE
+String comment = scookie.getComment().toString();
+cookie.setComment(version==1?unescape(comment):null);
 cookies[idx++] = cookie;
 } catch(IllegalArgumentException e) {
 // Ignore bad cookie

Modified: tomcat/trunk/java/org/apache/catalina/connector/Response.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Response.java?rev=595052&r1=595051&r2=595052&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/connector/Response.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/Response.java Wed Nov 14 
12:54:09 2007
@@ -955,9 +955,9 @@
 if (isCommitted())
 return;
 
-cookies.add(cookie);
-
 final StringBuffer sb = new StringBuffer();
+//web application code can receive a IllegalArgumentException 
+//from the appendCookieValue invokation
 if (SecurityUtil.isPackageProtectionEnabled()) {
 AccessController.doPrivileged(new PrivilegedAction() {
 public Object run(){
@@ -975,12 +975,13 @@
  cookie.getPath(), cookie.getDomain(), 
cookie.getComment(), 
  cookie.getMaxAge(), cookie.getSecure());
 }
-
+//if we reached here, no exception, cookie is valid
 // the header name is Set-Cookie for both "old" and v.1 ( RFC2109 )
 // RFC2965 is not supported by browsers and the Servlet spec
 // asks for 2109.
 addHeader("Set-Cookie", sb.toString());
 
+cookies.add(cookie);
 }
 
 

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java?rev=595052&r1=595051&r2=595052&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java Wed Nov 14 
12:54:09 2007
@@ -487,7 +487,7 @@
 if (equals( "Version", bytes, nameStart, nameEnd) && 
 sc == null) {
 // Set version
-if( bytes[valueStart] =='1' && valueEnd == valueStart) {
+if( bytes[valueStart] =='1' && valueEnd == (valueSta

DO NOT REPLY [Bug 43866] New: - add support for session attribute propagation without calls to DeltaSession.setAttribute

2007-11-14 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=43866

   Summary: add support for session attribute propagation without
calls to DeltaSession.setAttribute
   Product: Tomcat 5
   Version: 5.5.23
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Catalina:Cluster
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This enhancement request is based on our misunderstanding of Tomcat clustering.
We were under the impression that we could use the "useDirtyFlag" attribute in
conjunction with DeltaManager to cause session replication to occur after each
request (vs only on certain requests that manipulate the session via
Session.setAttribute, etc.)  Apparently useDirtyFlag is not applicable to
DeltaManager.

In our scenario, this is problematic because we have a mutable object that is
stored in the session and manipulated after a call to Session.getAttribute but
not followed by a new call to Session.setAttribute.  Because there is no
setAttribute call, the session is not propagated.

Our "fix" was to add a call to the internal version of DeltaSession.setAttribute
(not notifying listeners) from within DeltaSession.getAttribute.  If desired and
with some direction, I could submit a patch that would make this behavior
configurable.

-- 
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 43713] - Tomcat 6.0 + HTTPS + Oreilly MultiPartRequest file upload slowly with IE6 browser

2007-11-14 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=43713


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-11-14 23:03 ---
It is a bug of Windows Server.
(Actually, a bug of Windows Server + Tomcat + Oreilly MultiPartRequest + IE6)
See Microsoft KB328890 & KB815230

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



Can Tomcat be used as a servlet container for non-http servlets?

2007-11-14 Thread Sean Nagle
Where can I get more information about the design of Tomcat in regards to
non-http servlet applications? I am interested in writing a servlet that
would derive from GenericServlet and I am wondering if I will be able to use
Tomcat as the servlet container.

If it is not currently designed for such a purpose, would it be possible to
modify or extend Tomcat so that it would be able to?

Thanks in advance for any help

Sean Nagle


Debug level to be set for Tomcat bug reporting

2007-11-14 Thread Kumar Sai-A18253
Hi,
 
The default debug level is 0 for Tomcat.
When I looked at http://tomcat.apache.org/bugreport.html website for
Tomcat bug reporting, they mentioned that they need Log file excerpts
mentioned below
Log file excerpts - Review your logs files, reproduce the bug with
debugging enabled in your Apache Tomcat configuration. Then submit any
relevant sections of the log which help document the bug.
 
In our project we didn't change debug level for Tomcat...using default
debug level 0.
If we get any issues, we need to capture Log file Excerpts to open
Tomcat bug for your investigation.
My question is which debug level  ( 0 .. 4) we need to set in our
project to get sufficient logs for resolving Tomcat bug.
At the same time , we may not set high debug level  as it may degrade
server performance.
Please advice as soon as possible.
 
Thanks for your help.
 
Thanks,
Sai.