DO NOT REPLY [Bug 40719] - Tomcat 5.5.20 Internal error/crash

2006-12-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=40719





--- Additional Comments From [EMAIL PROTECTED]  2006-12-11 01:49 ---
I have gone back to the code where I had this bug to try reproduce it and then
based on that to try recreate it in a very simple web application. Unfortunately
I cannot reproduce it now, I changed the workaround I had put in (a manual
redirect on the HTTP response object) back to a Spring RedirectView which caused
the problem and now it works just fine. I'm afraid I'm not sure what else
changed in our code in the meantime to cause this. If I see it come back again I
will definitely investigate further and try get a simple web-app together that
reproduces it.

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



Tagging tomcat-native 1.1.8

2006-12-11 Thread Mladen Turk

Hi,

I'll tag the 1.1.8 later today and put the distro files in regular
places, so they can be used for Tomcat builds.

BTW, can we again consider to use the minimum version required
to that version (1.1.8).
Although the API is compatible with 1.1.3 version, the all versions
between 1.1.3 and 1.1.8 are broken for AjpAprConnector except
the current Tomcat trunk.

Think it'll lower down the support questions, because user will
be forced to install the 1.1.8 version instead wondering why
the previous version doesn't work or eats CPU.

Regards,
Mladen.



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



Tomcat 6.0.5 and tcnative 1.1.8 ?

2006-12-11 Thread Henri Gomez

Hi to all,

There are some problems with tcnative and I see today some fixes in
Tomcat and tcnative.

Should we expect a release of Tomcat 6 and tcnative in the next days ?

Regards

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



Re: Tagging tomcat-native 1.1.8

2006-12-11 Thread Henri Gomez

+1

2006/12/11, Mladen Turk <[EMAIL PROTECTED]>:

Hi,

I'll tag the 1.1.8 later today and put the distro files in regular
places, so they can be used for Tomcat builds.

BTW, can we again consider to use the minimum version required
to that version (1.1.8).
Although the API is compatible with 1.1.3 version, the all versions
between 1.1.3 and 1.1.8 are broken for AjpAprConnector except
the current Tomcat trunk.

Think it'll lower down the support questions, because user will
be forced to install the 1.1.8 version instead wondering why
the previous version doesn't work or eats CPU.

Regards,
Mladen.



-
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: Support for JAAS credentials

2006-12-11 Thread Shivaraj Tenginakai

I have an outline implementation, that by extending FormAuthenticator,
allows for (more) complete JAAS support in Tomcat. From what I can tell
using Google, it could be useful for others too.

I would appreciate, if I can be pointed towards the RFC process, for gauging
the usefulness of the change for future Tomcat releases.

Thanks,

Shivaraj


On 12/8/06, Shivaraj Tenginakai <[EMAIL PROTECTED]> wrote:


Hi All,

The current JAAS based authentication in Tomcat (6.0.2) , has no means of
manipulating the associated credentials. This prevents an application from
specifying more complex security policies. For example, timing out the roles
independent of the session timeout.

A very simple fix would be to make the subject object accessible from the
session object. Once could then, for example, use a valve to enforce custom
security policies.

Though not part of servlet specification (from what I can tell), are there
any strong reasons for not supporting this feature.

Thanks much,

Shivaraj




Re: Tomcat 6.0.5 and tcnative 1.1.8 ?

2006-12-11 Thread Remy Maucherat

Henri Gomez wrote:

Hi to all,

There are some problems with tcnative and I see today some fixes in
Tomcat and tcnative.

Should we expect a release of Tomcat 6 and tcnative in the next days ?


I understand you have a problem. However, can you try to stop flooding 
when that happens ?


Rémy

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



Re: Tagging tomcat-native 1.1.8

2006-12-11 Thread Remy Maucherat

Mladen Turk wrote:

Hi,

I'll tag the 1.1.8 later today and put the distro files in regular
places, so they can be used for Tomcat builds.

BTW, can we again consider to use the minimum version required
to that version (1.1.8).
Although the API is compatible with 1.1.3 version, the all versions
between 1.1.3 and 1.1.8 are broken for AjpAprConnector except
the current Tomcat trunk.

Think it'll lower down the support questions, because user will
be forced to install the 1.1.8 version instead wondering why
the previous version doesn't work or eats CPU.


My little tweak will most likely be ported back to 5.5.x. As a result, 
when you install a new build, you'll get a warning, and the code will 
not use the problematic method by default. As a result, the forced 
upgrade is a waste of time for most.


So I am against this plan. I've stated my position already: unless 
there's an API change that was needed, the minimum version number should 
not be upgraded.


Rémy


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



Re: Support for JAAS credentials

2006-12-11 Thread Mark Thomas
Shivaraj Tenginakai wrote:
> I have an outline implementation, that by extending FormAuthenticator,
> allows for (more) complete JAAS support in Tomcat. From what I can tell
> using Google, it could be useful for others too.
> 
> I would appreciate, if I can be pointed towards the RFC process, for
> gauging
> the usefulness of the change for future Tomcat releases.

Create a bug report with severity of enhancement.

Your bug report description should be concise and include a use case,
description of the new functionality and an explanation of any new
configuration options.

Your patch proposed should be attached to the bug report. Please use
diff -u format please and generate the patch against the latest
release or, even better, SVN trunk.

Regards,

Mark


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



Re: Tagging tomcat-native 1.1.8

2006-12-11 Thread Mladen Turk

Remy Maucherat wrote:

Mladen Turk wrote:

My little tweak will most likely be ported back to 5.5.x. As a result, 
when you install a new build, you'll get a warning, and the code will 
not use the problematic method by default. As a result, the forced 
upgrade is a waste of time for most.




OK.

So I am against this plan. I've stated my position already: unless 
there's an API change that was needed, the minimum version number should 
not be upgraded.




Also fine. The problem we have is the 1.1.5 that eats the CPU.
The 1.1.3 as minimum means that any version up to recommended is
allowable, which is not the real case.

Anyhow, this should at least be clearly documented if not enforced.

Regards,
Mladen.

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



Re: Tomcat 6.0.5 and tcnative 1.1.8 ?

2006-12-11 Thread Jess Holle

Just an note:

We're also having odd problems with tcnative -- but on 5.5.20...

All problems disappear without tcnative enabled, but performance suffers...

--
Jess Holle

Remy Maucherat wrote:

Henri Gomez wrote:

Hi to all,

There are some problems with tcnative and I see today some fixes in
Tomcat and tcnative.

Should we expect a release of Tomcat 6 and tcnative in the next days ?


I understand you have a problem. However, can you try to stop flooding 
when that happens ?


Rémy

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



DO NOT REPLY [Bug 40719] - Tomcat 5.5.20 Internal error/crash

2006-12-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=40719


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



Re: Tagging tomcat-native 1.1.8

2006-12-11 Thread Jim Jagielski


On Dec 11, 2006, at 5:00 AM, Mladen Turk wrote:


Hi,

I'll tag the 1.1.8 later today and put the distro files in regular
places, so they can be used for Tomcat builds.

BTW, can we again consider to use the minimum version required
to that version (1.1.8).
Although the API is compatible with 1.1.3 version, the all versions
between 1.1.3 and 1.1.8 are broken for AjpAprConnector except
the current Tomcat trunk.

Think it'll lower down the support questions, because user will
be forced to install the 1.1.8 version instead wondering why
the previous version doesn't work or eats CPU.



+1


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



Re: Tagging tomcat-native 1.1.8

2006-12-11 Thread Remy Maucherat

Mladen Turk wrote:
So I am against this plan. I've stated my position already: unless 
there's an API change that was needed, the minimum version number 
should not be upgraded.




Also fine. The problem we have is the 1.1.5 that eats the CPU.
The 1.1.3 as minimum means that any version up to recommended is
allowable, which is not the real case.


If that's what you want to do, and since I am not contributing to 
native, I can't legitimately prevent you from doing it.



Anyhow, this should at least be clearly documented if not enforced.


There's no changelog for native that I could find, which should be 
fixed. There's also a source duplication at the moment (these sources do 
not seem to be updated: 
https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/native/connector).


Rémy

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



svn commit: r485793 - in /tomcat/connectors/trunk/jk/java/org/apache/jk: common/ChannelSocket.java common/JkInputStream.java core/JkHandler.java core/MsgContext.java

2006-12-11 Thread pero
Author: pero
Date: Mon Dec 11 10:28:58 2006
New Revision: 485793

URL: http://svn.apache.org/viewvc?view=rev&rev=485793
Log:
Add a packetSize option to match the option.
Backport from Tomcat 6.0.x

Modified:
tomcat/connectors/trunk/jk/java/org/apache/jk/common/ChannelSocket.java
tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java
tomcat/connectors/trunk/jk/java/org/apache/jk/core/JkHandler.java
tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java

Modified: 
tomcat/connectors/trunk/jk/java/org/apache/jk/common/ChannelSocket.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/jk/common/ChannelSocket.java?view=diff&rev=485793&r1=485792&r2=485793
==
--- tomcat/connectors/trunk/jk/java/org/apache/jk/common/ChannelSocket.java 
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/jk/common/ChannelSocket.java Mon 
Dec 11 10:28:58 2006
@@ -655,7 +655,7 @@
 log.debug("Accepting ajp connections on " + port);
 while( running ) {
try{
-MsgContext ep=createMsgContext();
+MsgContext ep=createMsgContext(packetSize);
 ep.setSource(this);
 ep.setWorkerEnv( wEnv );
 this.accept(ep);

Modified: 
tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java?view=diff&rev=485793&r1=485792&r2=485793
==
--- tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java 
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java Mon 
Dec 11 10:28:58 2006
@@ -39,8 +39,8 @@
 private static org.apache.commons.logging.Log log=
 org.apache.commons.logging.LogFactory.getLog( JkInputStream.class );
 
-private Msg bodyMsg = new MsgAjp();
-private Msg outputMsg = new MsgAjp();
+private Msg bodyMsg ;
+private Msg outputMsg ;
 private MsgContext mc;
 
 
@@ -61,11 +61,20 @@
 // ignore
 }
 }
-
-public JkInputStream(MsgContext context) {
+   
+public JkInputStream(MsgContext context, int bsize) {
 mc = context;
+bodyMsg = new MsgAjp(bsize);
+outputMsg = new MsgAjp(bsize);
 }
 
+/**
+  * @deprecated
+  */
+   public JkInputStream(MsgContext context) {
+this(context, 8*1024);
+}
+   
 //  Jk specific methods 
 
 

Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/core/JkHandler.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/jk/core/JkHandler.java?view=diff&rev=485793&r1=485792&r2=485793
==
--- tomcat/connectors/trunk/jk/java/org/apache/jk/core/JkHandler.java (original)
+++ tomcat/connectors/trunk/jk/java/org/apache/jk/core/JkHandler.java Mon Dec 
11 10:28:58 2006
@@ -110,10 +110,14 @@
 public void destroy() throws IOException {
 }
 
-public MsgContext createMsgContext() {
-return new MsgContext();
-}
-
+ public MsgContext createMsgContext() {
+ return new MsgContext(8*1024);
+ }
+
+ public MsgContext createMsgContext(int bsize) {
+return new MsgContext(bsize);
+ }
+ 
 public int invoke(Msg msg, MsgContext mc )  throws IOException {
 return OK;
 }

Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java?view=diff&rev=485793&r1=485792&r2=485793
==
--- tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java 
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java Mon Dec 
11 10:28:58 2006
@@ -53,7 +53,7 @@
 private Object notes[]=new Object[32];
 private JkHandler next;
 private JkChannel source;
-private JkInputStream jkIS = new JkInputStream(this);
+private JkInputStream jkIS;
 private C2BConverter c2b;
 private Request req;
 private WorkerEnv wEnv;
@@ -80,12 +80,20 @@
 public static final int JK_STATUS_CLOSED=2;
 public static final int JK_STATUS_ERROR=3;
 
-public MsgContext() {
+public MsgContext(int bsize) {
 try {
 c2b = new C2BConverter("iso-8859-1");
 } catch(IOException iex) {
 log.warn("Can't happen", iex);
 }
+   jkIS = new JkInputStream(this, bsize);
+}
+
+/**
+ * @deprecated
+ */
+public MsgContext() {
+this(8*1024);
 }
 
 public final Object getNote( int id ) {




svn commit: r485795 - /tomcat/container/tc5.5.x/webapps/docs/changelog.xml

2006-12-11 Thread pero
Author: pero
Date: Mon Dec 11 10:30:02 2006
New Revision: 485795

URL: http://svn.apache.org/viewvc?view=rev&rev=485795
Log:
Add a packetSize option to standard ajp jk handler

Modified:
tomcat/container/tc5.5.x/webapps/docs/changelog.xml

Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?view=diff&rev=485795&r1=485794&r2=485795
==
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Mon Dec 11 10:30:02 2006
@@ -148,6 +148,9 @@

   
 
+  
+Backport packetSize feature from Tomcat 6.0.x at standard coyote AJP 
Jk handler. (pero)
+  
   
 40771: Fix implementation of
 SavedRequestInputFilter.doRead() so POST data may be read using a



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



jk 1.2.20 release candidate: Windows Binaries available

2006-12-11 Thread Rainer Jung
Hi,

Mladen Turk provided Windows Binaries for win32 (Apache mod_jk, IIS
isapi plugin and Netscape nsapi plugin) and for win64 (AMD+IA64 isapi
plugin):

http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/binaries

Thanks Mladen and happy testing to everybody.

Regards,

Rainer


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



Re: Tagging tomcat-native 1.1.8

2006-12-11 Thread Peter Rossbach

Hi

I have test to compile apr at mac os x 10.4..8 intel and get  
following warning:


/bin/sh /Users/peter/develop/tools/local/tomcat55//build-1/libtool -- 
silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -DDARWIN - 
DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp   -g -O2 - 
DHAVE_OPENSSL   -I/Users/peter/develop/projects/tomcat/tomcat55/ 
connectors/jni/native/include -I/System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Home/include -I/Users/peter/develop/ 
tools/local/tomcat55/include  -I/Users/peter/develop/tools/local/ 
tomcat55//include/apr-1   -o src/network.lo -c src/network.c && touch  
src/network.lo

src/network.c: In function 'Java_org_apache_tomcat_jni_Socket_send':
src/network.c:442: warning: pointer targets in passing argument 2 of  
's->net->send' differ in signedness
src/network.c:449: warning: pointer targets in passing argument 2 of  
's->net->send' differ in signedness

src/network.c: In function 'Java_org_apache_tomcat_jni_Socket_recvt':
src/network.c:722: warning: pointer targets in passing argument 2 of  
's->net->recv' differ in signedness
src/network.c:729: warning: pointer targets in passing argument 2 of  
's->net->recv' differ in signedness



Other problem is that poller are not created:

11.12.2006 20:17:26 org.apache.tomcat.util.net.AprEndpoint  
allocatePoller

INFO: Failed to create poller with specified size of 8192
11.12.2006 20:17:26 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-7380
11.12.2006 20:17:26 org.apache.tomcat.util.net.AprEndpoint  
allocatePoller

INFO: Failed to create poller with specified size of 8192
11.12.2006 20:17:26 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-7309

Regards
Peter



Am 11.12.2006 um 11:00 schrieb Mladen Turk:


Hi,

I'll tag the 1.1.8 later today and put the distro files in regular
places, so they can be used for Tomcat builds.

BTW, can we again consider to use the minimum version required
to that version (1.1.8).
Although the API is compatible with 1.1.3 version, the all versions
between 1.1.3 and 1.1.8 are broken for AjpAprConnector except
the current Tomcat trunk.

Think it'll lower down the support questions, because user will
be forced to install the 1.1.8 version instead wondering why
the previous version doesn't work or eats CPU.

Regards,
Mladen.



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






Re: Tagging tomcat-native 1.1.8

2006-12-11 Thread David Rees

On 12/11/06, Remy Maucherat <[EMAIL PROTECTED]> wrote:

> Anyhow, this should at least be clearly documented if not enforced.

There's no changelog for native that I could find, which should be
fixed.


+1 for that, I was looking for a tc-native changelog a while back to
figure out if I need to be running the latest or not, but was unable
to find anything at all related to documentation of tc-native.

-Dave

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



DO NOT REPLY [Bug 37084] - JspC from ant fails on JSPs that use custom taglib

2006-12-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=37084


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |




--- Additional Comments From [EMAIL PROTECTED]  2006-12-11 15:28 ---
I've found that adding  caching="false"  to the jasper2 task will work around
this problem.

Updated jasper2 call:



Should this work without the caching="false"  ?
I'll post an example project if that's still needed.


Thanks to Grégoire Rolland for providing an example of a jasper2 call that works
with tomcat 5.5.20 jspc

His example posted here for posterity:


-- 
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 37084] - JspC from ant fails on JSPs that use custom taglib

2006-12-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=37084





--- Additional Comments From [EMAIL PROTECTED]  2006-12-11 17:22 ---
Yes, please provide a test case. It should be the simplest possible project that
exhibits this issue.

-- 
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: r486005 - in /tomcat/container/tc5.5.x: catalina/src/share/org/apache/catalina/connector/Request.java catalina/src/share/org/apache/catalina/session/PersistentManagerBase.java webapps/docs

2006-12-11 Thread markt
Author: markt
Date: Mon Dec 11 19:45:59 2006
New Revision: 486005

URL: http://svn.apache.org/viewvc?view=rev&rev=486005
Log:
Fix bug 40551. When restoring a session from a PersistentManager to w new node 
update the session Id with the new jvmRoute. Based on a patch by Chris Chandler.

Modified:

tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Request.java

tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/session/PersistentManagerBase.java
tomcat/container/tc5.5.x/webapps/docs/changelog.xml

Modified: 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Request.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Request.java?view=diff&rev=486005&r1=486004&r2=486005
==
--- 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Request.java
 (original)
+++ 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/Request.java
 Mon Dec 11 19:45:59 2006
@@ -2207,6 +2207,12 @@
 if ((session != null) && !session.isValid())
 session = null;
 if (session != null) {
+if(!requestedSessionId.equals(session.getId())) {
+Cookie cookie = new Cookie(Globals.SESSION_COOKIE_NAME,
+session.getIdInternal());
+configureSessionCookie(cookie);
+response.addCookie(cookie);
+}
 session.access();
 return (session);
 }

Modified: 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/session/PersistentManagerBase.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/session/PersistentManagerBase.java?view=diff&rev=486005&r1=486004&r2=486005
==
--- 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/session/PersistentManagerBase.java
 (original)
+++ 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/session/PersistentManagerBase.java
 Mon Dec 11 19:45:59 2006
@@ -772,6 +772,20 @@
 }
 } else {
  session = store.load(id);
+ 
+ String jvmRoute = getJvmRoute();
+ if (jvmRoute != null && session != null) {
+ String requestJvmRoute = null;
+ int index = id.indexOf(".");
+ if (index > 0) {
+ requestJvmRoute = id.substring(index + 1, 
id.length());
+ }
+ if (requestJvmRoute != null &&
+ !requestJvmRoute.equals(jvmRoute)) {
+ id = id.substring(0, index) + "." + jvmRoute;
+ session.setId(id);
+ }
+ }
 }   
 } catch (ClassNotFoundException e) {
 log.error(sm.getString("persistentManager.deserializeError", id, 
e));

Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?view=diff&rev=486005&r1=486004&r2=486005
==
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Mon Dec 11 19:45:59 2006
@@ -86,6 +86,11 @@
 Ben Clifford. (markt)
   
   
+40551: When restoring sessions from a PersistentManager to
+a new node ensure that the session ID is updated to reflect the new
+jvmRoute. Based on a patch by Chris Chandler. (markt)
+  
+  
 40585: Fix parameterised constructor for 
o.a.juli.FileHandler
 so parameters have an effect. (markt)
   



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



DO NOT REPLY [Bug 40551] - Sticky sessions using PersistentManager enter indeterminate state on node failover

2006-12-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=40551


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-12-11 19:47 ---
A slightly modified version of your patch has been applied to SVN and will be
included in 5.5.21 onwards.

Many thanks for the 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 41152] New: - jre6

2006-12-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=41152

   Summary: jre6
   Product: Tomcat 5
   Version: 5.5.20
  Platform: PC
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


on jre6 apache tomcat 5.5.20 does not work

-- 
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 41153] New: - Reg: Tomcat start up

2006-12-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=41153

   Summary: Reg: Tomcat start up
   Product: Tomcat 5
   Version: 5.5.0
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


When i try to run Tomcat service while a meta data is active i get the 
following error log and the tomcat service stops automatically.

INFO  - DI9007: Loading configuration from "CwfConfig.xml(embedded)"
INFO  - DI9006: Processing metadata version "Customer" with internal id "1"
WARN  - DW0524: There is no default system calendar. Run time processes will 
fail
INFO  - DI9005: ConceptWave AVM "3.2 GA EBF1 build 3.2.22.2" with Id 26 
running on Java VM "1.5.0_08-b03". 
State=MODE:U;MEM:0M/10M;CSTR:5014/338K;SCR:2/485K/973K
- Unable to find config file.  Creating new servlet engine config file: /WEB-
INF/server-config.wsdd
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl could not be instantiated: 
java.lang.NullPointerException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284)
at 
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
at 
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors
(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at org.apache.commons.modeler.Registry.loadDescriptors
(Registry.java:931)
at org.apache.commons.modeler.Registry.loadDescriptors
(Registry.java:909)
at org.apache.commons.modeler.Registry.findDescriptor
(Registry.java:992)
at org.apache.commons.modeler.Registry.findManagedBean
(Registry.java:696)
at org.apache.commons.modeler.Registry.findManagedBean
(Registry.java:1047)
at org.apache.commons.modeler.Registry.registerComponent
(Registry.java:859)
at org.apache.catalina.connector.Connector.start(Connector.java:988)
at org.apache.catalina.core.StandardService.start
(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
... 6 more

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