DO NOT REPLY [Bug 33106] - SSI Processing Enhancements (patch provided)

2005-04-03 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=33106





--- Additional Comments From [EMAIL PROTECTED]  2005-04-04 04:27 ---
Sorry guys, but I need more time.  I had a busy week at work and a computer 
failure this weekend.  I do 
plan on submitting a new set of patches with the issues you raised addressed, 
doc patches and some 
other minor enhancements.  Can you give me another week?  Thanks!

-- 
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 34280] - Tomcat 5.57 admin package default to incorrect MbeanServer

2005-04-03 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=34280


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2005-04-04 01:54 ---
The admin webapp (including list-roles) does work for me.

Suggestions include:
1) Try with TC 5.5.9 (probably won't help, since changes are minor).
2) Ensure that you are using the UserDatabaseRealm (the only one that works 
with the admin webapp).
3) Follow up on tomcat-user@jakarta.apache.org to find the probable 
configuration problem.


-- 
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 34280] New: - Tomcat 5.57 admin package default to incorrect MbeanServer

2005-04-03 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=34280

   Summary: Tomcat 5.57 admin package default to incorrect
MbeanServer
   Product: Tomcat 5
   Version: 5.5.7
  Platform: PC
OS/Version: Windows 2000
Status: NEW
  Severity: critical
  Priority: P2
 Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Tomcat 5.57
Any attempt to configure admin environment settings via 
http://localhost:8080/admin/frameset.jsp
result in

javax.servlet.ServletException: MBeanServer is not available
org.apache.jasper.runtime.PageContextImpl.doHandlePageException
(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:779)
admin.users.listRoles_jsp._jspService(listRoles_jsp.java:495)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.webapp.admin.filters.SetCharacterEncodingFilter.doFilter
(SetCharacterEncodingFilter.java:123)


root cause 

javax.servlet.jsp.JspException: MBeanServer is not available
org.apache.webapp.admin.AttributeTag.doEndTag(AttributeTag.java:163)
admin.users.listRoles_jsp._jspx_meth_controls_attribute_0
(listRoles_jsp.java:759)
admin.users.listRoles_jsp._jspService(listRoles_jsp.java:441)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.webapp.admin.filters.SetCharacterEncodingFilter.doFilter
(SetCharacterEncodingFilter.java:123)


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




Apache Tomcat/5.5.7

-- 
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 34272] - Patch to externalize the JspServlet Options implementation

2005-04-03 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=34272





--- Additional Comments From [EMAIL PROTECTED]  2005-04-04 00:52 ---
It seems to add the original intended behavior of allowing plugging the options.
I'll commit your patch tomorrow.

-- 
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 34278] - error compiling file with jikes compiler

2005-04-03 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=34278





--- Additional Comments From [EMAIL PROTECTED]  2005-04-04 00:35 ---
[background]This is on a DEC DS20 box or alpha 'arch'. There is no j2sdk from
SUN to use here. I am running debian-linux kernel-2.6.10, sablevm builds and
runs fine here, jikes works as the compiler for jakarta-tomcat, but throws the
error shown above only with 'graphic files' The same code runs fine on an i386
box. my sh catalina.sh run startup:
Using CATALINA_BASE:   /home/mel/jakarta-tomcat-5.0.19
Using CATALINA_HOME:   /home/mel/jakarta-tomcat-5.0.19
Using CATALINA_TMPDIR: /home/mel/jakarta-tomcat-5.0.19/temp
Using JAVA_HOME:   /usr/local/lib/sablevm
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
[INFO] Catalina - -Initialization processed in 11055 ms
[INFO] StandardService - -Starting service Catalina
[INFO] StandardEngine - -Starting Servlet Engine: Apache Tomcat/5.0.19
[INFO] StandardHost - -XML validation disabled
[INFO] StandardHost - -Create Host deployer for direct deployment ( non-jmx )
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:/h
ome/mel/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.
LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.actio
n.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin
.ApplicationResources', returnNull=true
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:/h
ome/mel/jakarta-tomcat-5.0.19/conf/Catalina/localhost/balancer.xml
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:/h
ome/mel/jakarta-tomcat-5.0.19/conf/Catalina/localhost/manager.xml
[INFO] StandardHostDeployer - -Installing web application at context path  from
URL file:/home/mel/jakarta-tomcat-5.0.19/webapps/ROOT
[INFO] StandardHostDeployer - -Installing web application at context path /jsp-e
xamples from URL file:/home/mel/jakarta-tomcat-5.0.19/webapps/jsp-examples
[INFO] StandardHostDeployer - -Installing web application at context path /servl
ets-examples from URL file:/home/mel/jakarta-tomcat-5.0.19/webapps/servlets-exam
ples
[INFO] StandardHostDeployer - -Installing web application at context path /tomca
t-docs from URL file:/home/mel/jakarta-tomcat-5.0.19/webapps/tomcat-docs
[INFO] StandardHostDeployer - -Installing web application at context path /webda
v from URL file:/home/mel/jakarta-tomcat-5.0.19/webapps/webdav
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=4/309  config=/home/mel/jakarta-tomcat-5.0
.19/conf/jk2.properties
[INFO] Catalina - -Server startup in 104489 ms
this also happens with 5.0.27, getting latter versions of jakarta-tomcat to run
on alpha is buggy.


-- 
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: Question: Strange Session Remove Attribute

2005-04-03 Thread Remy Maucherat
Bill Barker wrote:
Hey
I have review the getIdInteral changes. At expire (StandardSession, 
DeltaSession) we send first the "SessionDestory events" and after this 
the "Remove Session Attribute" events. Before we send the remove 
attribute events the session set to invalid. Hmm: Why we do that? I 
have read the spec 2.4 but I can find a hint. With this handling 
nobody can access the getId without IllegalStateException in a 
HttpSessionBindingListener or HttpSessionAttributeListener! That I 
can't find this very nice?
What can I say, we needed to generate more BZ reports to mark as INVALID 
;-).
The tester actually has example code of using getId in a 
HttpSessionAttributeListener to get an ISE.

Can anyone explain this session event handling?
There was just a long discussion of this.  For the details, check the 
list archives.  The short version is that it's mandated by section 
15.1.7 + Errata 
(http://jcp.org/aboutJava/communityprocess/maintenance/jsr154/154errata.txt). 
(maybe I shouldn't have mentioned it, as Jan didn't appear to have 
noticed it before: I may have started the trouble ...)

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


DO NOT REPLY [Bug 34278] - error compiling file with jikes compiler

2005-04-03 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=34278


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|blocker |normal




--- Additional Comments From [EMAIL PROTECTED]  2005-04-03 22:10 ---
Two notes and one question.  The question: are you sure you have these JPEG
(probably JAI) libraries in your classpath?  If you don't have needed optional
libraries in your classpath, it's obviously not a Tomcat bug.

Note 1 is regarding severity: nothing with Jikes can be a blocker, as you can
always use other compilers.  So I'm downgrading severity to normal.

Note 2 is regarding version: please use the latest stable version (5.5.7) or at
least the latest stable version for your branch (5.0.28).

-- 
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 34278] New: - error compiling file with jikes compiler

2005-04-03 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=34278

   Summary: error compiling file with jikes compiler
   Product: Tomcat 5
   Version: 5.0.19
  Platform: DEC
OS/Version: other
Status: NEW
  Keywords: RFC
  Severity: blocker
  Priority: P2
 Component: Connector:HTTP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


INFO] Catalina - -Server startup in 104489 ms
[ERROR] Compiler - -Error compiling file: /home/mel/jakarta-tomcat-5.0.19/work/C
atalina/localhost/_//org/apache/jsp/prodGraph_jsp.java [javac] Since compile
r setting isn't classic or modern,ignoring fork setting.
[javac] Compiling 1 source file
[javac] Since compiler setting isn't classic or modern,ignoring fork 
setting .

[javac] Found 3 semantic errors compiling "/home/mel/jakarta-tomcat-5.0.19/w
ork/Catalina/localhost/_/org/apache/jsp/prodGraph_jsp.java":

[javac]  9. import com.sun.image.codec.jpeg.*;
[javac]^--^
[javac] *** Semantic Error: You need to modify your classpath, sourcepath, b
ootclasspath, and/or extdirs setup. Jikes could not find package "com.sun.image.
codec.jpeg" in:
[javac] /usr/local/share/sablevm-classpath
[javac] /usr/local/share/sablevm-classpath/libclasspath.jar
[javac] /usr/local/share/sablevm-classpath/resources.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/bin/bootstrap.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/bin/commons-logging-
api.jar
[javac] /usr/local/lib/sablevm/jre/lib/rt.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF
/classes
[javac] /home/mel/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF
/lib/catalina-root.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF
/lib/mysql-connector-java-3.0.8-stable-bin.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/work/Catalina/localh
ost/_
[javac] /home/mel/jakarta-tomcat-5.0.19/shared/classes
[javac] /home/mel/jakarta-tomcat-5.0.19/common/classes
[javac] /home/mel/jakarta-tomcat-5.0.19/common/endorsed/xerc
esImpl.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/endorsed/xmlP
arserAPIs.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/ant.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/commons-c
ollections.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/commons-d
bcp-1.1.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/commons-e
l.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/commons-p
ool-1.1.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/jasper-co
mpiler.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/jasper-ru
ntime.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/jmx.jar
[javac] 
/home/mel/jakarta-tomcat-5.0.19/common/lib/jsp-api.j ar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/naming-co
mmon.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/naming-fa
ctory.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/naming-ja
va.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/naming-re
sources.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/servlet-a
pi.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/resources
.jar
[javac] /home/mel/jakarta-tomcat-5.0.19/common/lib/tools.jar
[javac] .



[javac]477. JPEGImageEncoder encoder = 
JPEGCodec.createJPEGEncoder(outpu t);
[javac] ^--^
[javac] *** Semantic Error: Type "org.apache.jsp.JPEGImageEncoder" was not f
ound.


[javac]477. JPEGImageEncoder encoder = 
JPEGCodec.createJPEGEncoder(outpu t);
[javac]^---^
[javac] *** Semantic Error: No accessible field named "JPEGCodec" was found
in type "org.apache.jsp.prodGraph_jsp".



[ERROR] Compiler - -Javac exception  Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:978)
   at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:799)
   at org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:387)
   at org.apache.jasper.compiler.Compiler.compile (

Re: Question: Strange Session Remove Attribute

2005-04-03 Thread Bill Barker
- Original Message - 
From: "Peter Rossbach" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" 
Sent: Sunday, April 03, 2005 5:04 AM
Subject: Question: Strange Session Remove Attribute


Hey
I have review the getIdInteral changes. At expire (StandardSession, 
DeltaSession) we send first the "SessionDestory events" and after this the 
"Remove Session Attribute" events. Before we send the remove attribute 
events the session set to invalid. Hmm: Why we do that? I have read the 
spec 2.4 but I can find a hint. With this handling nobody can access the 
getId without IllegalStateException in a HttpSessionBindingListener or 
HttpSessionAttributeListener! That I can't find this very nice?

What can I say, we needed to generate more BZ reports to mark as INVALID 
;-).

Can anyone explain this session event handling?
There was just a long discussion of this.  For the details, check the list 
archives.  The short version is that it's mandated by section 15.1.7 + 
Errata 
(http://jcp.org/aboutJava/communityprocess/maintenance/jsr154/154errata.txt).

regards
Peter

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


This message is intended only for the use of the person(s) listed above as 
the intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication 
in error, please notify us immediately by e-mail and then delete all copies of 
this message and any attachments.
In addition you should be aware that ordinary (unencrypted) e-mail sent through 
the Internet is not secure. Do not send confidential or sensitive information, 
such as social security numbers, account numbers, personal identification 
numbers and passwords, to us via ordinary (unencrypted) e-mail.

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

DO NOT REPLY [Bug 10385] - SSI-Servlet produces invalid character encoding information

2005-04-03 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=10385





--- Additional Comments From [EMAIL PROTECTED]  2005-04-03 21:07 ---
I have committed a partial fix for TC4.1.x that should resolve the original 
issue.

I am still looking at the attached patches.

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



cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi SSIServlet.java

2005-04-03 Thread markt
markt   2005/04/03 11:55:30

  Modified:catalina/src/share/org/apache/catalina/ssi SSIServlet.java
  Log:
  Partial fix for bug 10385. Forcing content type to "text/html;charset=UTF-8" 
broke
   more things than it fixed.
  
  Revision  ChangesPath
  1.5   +3 -5  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIServlet.java
  
  Index: SSIServlet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SSIServlet.java   30 Mar 2005 21:53:05 -  1.4
  +++ SSIServlet.java   3 Apr 2005 18:55:30 -   1.5
  @@ -153,20 +153,18 @@
path.toUpperCase().startsWith("/WEB-INF") ||
path.toUpperCase().startsWith("/META-INF") ) {
   
  -res.sendError(res.SC_NOT_FOUND, path);
  +res.sendError(HttpServletResponse.SC_NOT_FOUND, path);
   log( "Can't serve file: " + path );
   return;
   }
   
   URL resource = servletContext.getResource(path);
   if (resource==null) {
  -res.sendError(res.SC_NOT_FOUND, path);
  +res.sendError(HttpServletResponse.SC_NOT_FOUND, path);
   log( "Can't find file: " + path );
   return;
   }
   
  -res.setContentType("text/html;charset=UTF-8");
  -
   if (expires != null) {
   res.setDateHeader("Expires", (
   new java.util.Date()).getTime() + expires.longValue() * 
1000);
  
  
  

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



DO NOT REPLY [Bug 34277] - Add encoding attribute to Logger element, need UTF-8 log files

2005-04-03 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=34277


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX




--- Additional Comments From [EMAIL PROTECTED]  2005-04-03 18:26 ---
There will be no more Logger interface development.  See JULI in Tomcat 5.5.

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



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

2005-04-03 Thread pero
pero2005/04/03 09:06:11

  Modified:webapps/docs changelog.xml
  Log:
  Huge of Cluster changes.
  
  Revision  ChangesPath
  1.280 +50 -2 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.279
  retrieving revision 1.280
  diff -u -r1.279 -r1.280
  --- changelog.xml 1 Apr 2005 13:52:10 -   1.279
  +++ changelog.xml 3 Apr 2005 16:06:11 -   1.280
  @@ -52,6 +52,9 @@
   34220: Provide better error message when server.xml can't 
be located.
 [Modified patch from Ralf Hauser] (yoavs)
 
  +  
  +  Add MessageListener and LifecylceListener cluster saving to 
storeconfig module (pero)
  +
 
   33743: Add additional synchronization in webapp 
classloader to avoid
   possible race condition when defining a class (remm)
  @@ -62,7 +65,7 @@
   to it would leak a minimal amount of memory) (remm)
 
 
  -Readd patch causing Session.getId to throw an ISE, and make all 
internal components
  +Read patch causing Session.getId to throw an ISE, and make all 
internal components
   use a safe getIdInternal method (remm)
 
   
  @@ -75,7 +78,52 @@
 
   
 
  -
  +  
  +
  +  
  +Setup JvmRouteBinderValve as host valve instead context valve. 
Refactor the API a little bit. (pero)
  +  
  +  
  +Don't increment open socket counter before socket is really open, 
counte socket open failures (pero) 
  +
  +  
  +Add MessageListener support to cluster server.xml element 
(ClusterListener) to 
  +register your own cluster message receiver (pero)
  +
  +  
  +Add LifecycleListener support to cluster server.xml element 
(Listener)
  +and notify those listener from start/stop cluster,
  +add/remove session manager, sending fault and start/stop member  
(pero)
  +
  +  
  +Add active backgroundProcess keepAlive timeout and request count 
socket close check
  +at ReplicationTransmitter.  Check frequency can be change with 
attribute 
  +processSenderFrequency (default 2). (pero)
  +  
  +  
  +Jdk13ReplicationListener active threads closed, when stop called 
(pero)
  +  
  +  
  +Add and update some API documentation (pero)
  +  
  +  
  +Refactor ReplicationValve for better understanding and small 
optimization (pero)
  +  
  +  
  +Starting a unit test suite for cluster module - very much todo (pero)
  +  
  +  
  +Fix ant build.xml to direct compile at cluster module directory 
(pero)
  +  
  +  
  +Fix some I18N messages (pero)
  +  
  +  
  +Add ReplicationValve Mbeans stats attribute getter and 
resetStatistics operation (pero)
  +  
  + 
  +  
  + 
   
   
 
  
  
  

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



cvs commit: jakarta-tomcat-catalina/modules/storeconfig/test/src/share/org/apache/catalina/storeconfig DescriptorHelper.java StandardHostSFTest.java

2005-04-03 Thread pero
pero2005/04/03 09:05:10

  Modified:modules/storeconfig/src/share/org/apache/catalina/storeconfig
CatalinaClusterSF.java StoreRegistry.java
server-registry.xml
   
modules/storeconfig/test/src/share/org/apache/catalina/storeconfig
DescriptorHelper.java StandardHostSFTest.java
  Log:
  Add storeconfig  Cluster/Listener and Cluster/ClusterListener elements
  
  Revision  ChangesPath
  1.2   +20 -0 
jakarta-tomcat-catalina/modules/storeconfig/src/share/org/apache/catalina/storeconfig/CatalinaClusterSF.java
  
  Index: CatalinaClusterSF.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/storeconfig/src/share/org/apache/catalina/storeconfig/CatalinaClusterSF.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CatalinaClusterSF.java8 Jan 2005 11:14:07 -   1.1
  +++ CatalinaClusterSF.java3 Apr 2005 16:05:10 -   1.2
  @@ -18,12 +18,17 @@
   
   import java.io.PrintWriter;
   
  +import org.apache.catalina.Lifecycle;
  +import org.apache.catalina.LifecycleListener;
  +import org.apache.catalina.Pipeline;
   import org.apache.catalina.Valve;
   import org.apache.catalina.cluster.CatalinaCluster;
   import org.apache.catalina.cluster.ClusterDeployer;
   import org.apache.catalina.cluster.ClusterReceiver;
   import org.apache.catalina.cluster.ClusterSender;
   import org.apache.catalina.cluster.MembershipService;
  +import org.apache.catalina.cluster.MessageListener;
  +import org.apache.catalina.cluster.tcp.SimpleTcpCluster;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   
  @@ -88,6 +93,21 @@
   elementFactory.store(aWriter, indent, valve);
   }
   }
  +// Store nested  pipeline elements
  +/*   if (aCluster instanceof SimpleTcpCluster) {
  +   Valve valves[] = ((Pipeline) 
((SimpleTcpCluster)cluster).getValves();
  +   storeElementArray(aWriter, indent, valves);
  +   }
  +   */
  +if (aCluster instanceof SimpleTcpCluster) {
  +// Store nested  elements
  +LifecycleListener listeners[] = 
((SimpleTcpCluster)cluster).findLifecycleListeners();
  +storeElementArray(aWriter, indent, listeners);
  +// Store nested  elements
  +MessageListener mlisteners[] = 
((SimpleTcpCluster)cluster).findClusterListeners();
  +storeElementArray(aWriter, indent, mlisteners);
  +}
  +
   }
   }
   }
  \ No newline at end of file
  
  
  
  1.2   +2 -1  
jakarta-tomcat-catalina/modules/storeconfig/src/share/org/apache/catalina/storeconfig/StoreRegistry.java
  
  Index: StoreRegistry.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/storeconfig/src/share/org/apache/catalina/storeconfig/StoreRegistry.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StoreRegistry.java8 Jan 2005 11:14:07 -   1.1
  +++ StoreRegistry.java3 Apr 2005 16:05:10 -   1.2
  @@ -30,6 +30,7 @@
   import org.apache.catalina.cluster.ClusterReceiver;
   import org.apache.catalina.cluster.ClusterSender;
   import org.apache.catalina.cluster.MembershipService;
  +import org.apache.catalina.cluster.MessageListener;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   
  @@ -55,7 +56,7 @@
   ClusterSender.class, ClusterReceiver.class,
   MembershipService.class, ClusterDeployer.class, Realm.class,
   Manager.class, DirContext.class, LifecycleListener.class,
  -Valve.class };
  +Valve.class, MessageListener.class };
   
   /**
* @return Returns the name.
  
  
  
  1.4   +7 -0  
jakarta-tomcat-catalina/modules/storeconfig/src/share/org/apache/catalina/storeconfig/server-registry.xml
  
  Index: server-registry.xml
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/storeconfig/src/share/org/apache/catalina/storeconfig/server-registry.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- server-registry.xml   15 Feb 2005 09:36:12 -  1.3
  +++ server-registry.xml   3 Apr 2005 16:05:10 -   1.4
  @@ -327,5 +327,12 @@
tagClass="org.apache.catalina.cluster.ClusterDeployer"
   storeFactoryClass="org.apache.catalina.storeconfig.StoreFactoryBase">
 
  + 
  + 
   
   
  
  
  
  1.2   +5 -3  
jakarta-tomcat-catalina/modules/storeconfig/test/src/share/org/apac

cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup ClusterRuleSet.java

2005-04-03 Thread pero
pero2005/04/03 09:03:49

  Modified:catalina/src/share/org/apache/catalina/startup
ClusterRuleSet.java
  Log:
  Add Listener and ClusterListener to Cluster Element
  
  Revision  ChangesPath
  1.5   +18 -5 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/ClusterRuleSet.java
  
  Index: ClusterRuleSet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/ClusterRuleSet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ClusterRuleSet.java   26 Jun 2004 17:41:31 -  1.4
  +++ ClusterRuleSet.java   3 Apr 2005 16:03:49 -   1.5
  @@ -27,6 +27,7 @@
* Cluster definition element.  
*
* @author Filip Hanik
  + * @author Peter Rossbach
* @version $Revision$ $Date$
*/
   
  @@ -123,11 +124,23 @@
   digester.addSetNext(prefix + "Deployer",
   "setClusterDeployer",
   "org.apache.catalina.cluster.ClusterDeployer");
  -
  -
  -
  +
  +digester.addObjectCreate(prefix + "Listener",
  +null, // MUST be specified in the element
  +"className");
  +digester.addSetProperties(prefix + "Listener");
  +digester.addSetNext(prefix + "Listener",
  +"addLifecycleListener",
  +"org.apache.catalina.LifecycleListener");
  +
  +digester.addObjectCreate(prefix + "ClusterListener",
  +null, // MUST be specified in the element
  +"className");
  +digester.addSetProperties(prefix + "ClusterListener");
  +digester.addSetNext(prefix + "ClusterListener",
  +"addClusterListener",
  +"org.apache.catalina.cluster.MessageListener");
   //Cluster configuration end
   }
   
  -
   }
  
  
  

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache/catalina/cluster/tcp DataSenderTest.java ReplicationValveTest.java

2005-04-03 Thread pero
pero2005/04/03 09:03:01

  Modified:modules/cluster build.xml
   modules/cluster/src/share/org/apache/catalina/cluster
ClusterSender.java
   modules/cluster/src/share/org/apache/catalina/cluster/session
JvmRouteBinderValve.java
   modules/cluster/src/share/org/apache/catalina/cluster/tcp
DataSender.java Jdk13ReplicationListener.java
LocalStrings.properties ReplicationTransmitter.java
ReplicationValve.java SimpleTcpCluster.java
TcpReplicationThread.java mbeans-descriptors.xml
  Added:   modules/cluster/src/share/org/apache/catalina/cluster/tcp
SendMessageData.java
   modules/cluster/test build.xml
   modules/cluster/test/conf log4j.xml
   modules/cluster/test/src/share/org/apache/catalina/cluster/tcp
DataSenderTest.java ReplicationValveTest.java
  Log:
  refactor something, see changelog 5.5.10
  
  Revision  ChangesPath
  1.14  +10 -8 jakarta-tomcat-catalina/modules/cluster/build.xml
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/build.xml.diff?r1=1.13&r2=1.14
  
  
  1.5   +3 -1  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/ClusterSender.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/ClusterSender.java.diff?r1=1.4&r2=1.5
  
  
  1.5   +61 -65
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/JvmRouteBinderValve.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/JvmRouteBinderValve.java.diff?r1=1.4&r2=1.5
  
  
  1.5   +189 -62   
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/DataSender.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/DataSender.java.diff?r1=1.4&r2=1.5
  
  
  1.6   +77 -14
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/Jdk13ReplicationListener.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/Jdk13ReplicationListener.java.diff?r1=1.5&r2=1.6
  
  
  1.5   +18 -5 
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/LocalStrings.properties
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/LocalStrings.properties.diff?r1=1.4&r2=1.5
  
  
  1.23  +59 -1 
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java.diff?r1=1.22&r2=1.23
  
  
  1.19  +248 -155  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationValve.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationValve.java.diff?r1=1.18&r2=1.19
  
  
  1.60  +181 -71   
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java.diff?r1=1.59&r2=1.60
  
  
  1.15  +2 -2  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/TcpReplicationThread.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/TcpReplicationThread.java.diff?r1=1.14&r2=1.15
  
  
  1.6   +33 -1 
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/mbeans-descriptors.xml
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/mbeans-descriptors.xml.diff?r1=1.5&r2=1.6
  
  
  1.1  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SendMessageData.java
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SendMessageData.java?rev=1.1
  
  
  1.1  jakarta-tomcat-catalina/modules/cluster/test/build.xml
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/test/build.xml?rev=1.1
  
  
  1.1  
jakarta-tomcat-catalina/modules/cluster/test/conf/log4j.xml
  
  
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/modules/cluster/test/conf/log4j.xml?rev=1.1
  
  
  1.1  
jakarta-tomcat-catalina/modules/cluster/test/src

cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache/catalina/cluster/tcp - New directory

2005-04-03 Thread pero
pero2005/04/03 09:01:36

  
jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache/catalina/cluster/tcp
 - New directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache/catalina/cluster - New directory

2005-04-03 Thread pero
pero2005/04/03 09:01:31

  
jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache/catalina/cluster
 - New directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache/catalina - New directory

2005-04-03 Thread pero
pero2005/04/03 09:01:25

  jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache/catalina - 
New directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache - New directory

2005-04-03 Thread pero
pero2005/04/03 09:01:19

  jakarta-tomcat-catalina/modules/cluster/test/src/share/org/apache - New 
directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src/share/org - New directory

2005-04-03 Thread pero
pero2005/04/03 09:01:13

  jakarta-tomcat-catalina/modules/cluster/test/src/share/org - New directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src/share - New directory

2005-04-03 Thread pero
pero2005/04/03 09:01:08

  jakarta-tomcat-catalina/modules/cluster/test/src/share - New directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/src - New directory

2005-04-03 Thread pero
pero2005/04/03 09:00:56

  jakarta-tomcat-catalina/modules/cluster/test/src - New directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test/conf - New directory

2005-04-03 Thread pero
pero2005/04/03 09:00:55

  jakarta-tomcat-catalina/modules/cluster/test/conf - New directory

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/test - New directory

2005-04-03 Thread pero
pero2005/04/03 09:00:31

  jakarta-tomcat-catalina/modules/cluster/test - New directory

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



DO NOT REPLY [Bug 34277] New: - Add encoding attribute to Logger element, need UTF-8 log files

2005-04-03 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=34277

   Summary: Add encoding attribute to Logger element, need UTF-8 log
files
   Product: Tomcat 5
   Version: Unknown
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


FileLogger always create a platform default encoding for files. Western Windows
usually use ISO1/Cp1252. If webapps use internationalized text such as chinese,
then logfile receives only ? characters.

Univeral solution is to to have UTF-8 written logfiles. Example here with a new
attribute:


Additional feature, make UTF-8BOM special case encoding value.
http://koti.mbnet.fi/akini/java/unicodereader/
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058

Due to a bug Java does not support UTF-8 bom marker. This is very unfortunate in
windows world, where all proper text editors add bom mark to the start of
unicode files. Even Notepad does it.

If logger attribute is encoding="UTF-8BOM" then write the following three bytes
to start of _new_ logfile:
byte[] bom = new byte[] { (byte)0xEF, (byte)0xBB, (byte)0xBF };
filestream.write(bom);

This should not create any runtime penalty 'cause a new logfile is created 
rarely.

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session DeltaSession.java LocalStrings.properties

2005-04-03 Thread pero
pero2005/04/03 06:26:46

  Modified:modules/cluster/src/share/org/apache/catalina/cluster/session
DeltaSession.java LocalStrings.properties
  Log:
  Change to new getInternalID usage. (expire)
  
  Revision  ChangesPath
  1.33  +2 -2  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaSession.java
  
  Index: DeltaSession.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaSession.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- DeltaSession.java 3 Apr 2005 08:12:03 -   1.32
  +++ DeltaSession.java 3 Apr 2005 13:26:46 -   1.33
  @@ -674,7 +674,7 @@
   // Mark this session as "being expired" if needed
   if (expiring)
   return;
  -String expiredId = getId();
  +String expiredId = getIdInternal();
   
   synchronized (this) {
   
  
  
  
  1.5   +3 -0  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/LocalStrings.properties,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LocalStrings.properties   3 Apr 2005 08:12:03 -   1.4
  +++ LocalStrings.properties   3 Apr 2005 13:26:46 -   1.5
  @@ -44,6 +44,7 @@
   jvmRoute.changeSession=Changed session from [{0}] to [{1}]
   jvmRoute.clusterListener.started=Cluster JvmRouteSessionIDBinderListener 
started
   jvmRoute.clusterListener.stopped=Cluster JvmRouteSessionIDBinderListener 
stoppedjvmRoute.listener.started=SessionID Binder Listener started
  +jvmRoute.configure.warn=Please, setup your JvmRouteBinderValve at host 
valve, not at context valve!
   jvmRoute.contextNotFound=Context [{0}] not found at note [{1}]!
   jvmRoute.failover=Detected a failover with different jvmRoute - orginal 
route: [{0}] new one: [{1}] at session id [{2}]
   jvmRoute.foundManager=Found Cluster DeltaManager {0} at {1}
  @@ -62,4 +63,6 @@
   jvmRoute.valve.notStarted=jvmRoute backup sessionID correction run already
   jvmRoute.valve.started=JvmRouteBinderValve started
   jvmRoute.valve.stopped=JvmRouteBinderValve stopped
  +jvmRoute.set.orignalsessionid=Set Orginal Session id at request attriute {0} 
value: {1}
   standardSession.getId.ise=getId: Session already invalidated
  +standardSession.attributeEvent=Session attribute event listener threw 
exception
  
  
  

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



Question: Strange Session Remove Attribute

2005-04-03 Thread Peter Rossbach
Hey
I have review the getIdInteral changes. At expire (StandardSession, DeltaSession) we 
send first the "SessionDestory events" and after this the "Remove Session Attribute" events. Before we send the remove attribute events the session set to invalid. Hmm: Why we do that? I have read the spec 2.4 but I can find a hint. With this handling nobody can access the getId without IllegalStateException in a HttpSessionBindingListener or HttpSessionAttributeListener! That I can't find this very nice?

Can anyone explain this session event handling?
regards
Peter

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


[GUMP@brutus]: Project jakarta-tomcat-jk-native (in module jakarta-tomcat-connectors) failed

2005-04-03 Thread Bill Barker
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project jakarta-tomcat-jk-native has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 79 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- jakarta-tomcat-jk-native :  Connectors to various web servers


Full details are available at:

http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/gump_work/build_jakarta-tomcat-connectors_jakarta-tomcat-jk-native.html
Work Name: build_jakarta-tomcat-connectors_jakarta-tomcat-jk-native (Type: 
Build)
Work ended in a state of : Failed
Elapsed: 
Command Line: make 
[Working Directory: 
/usr/local/gump/public/workspace/jakarta-tomcat-connectors/jk/native]
-
Making all in common
make[1]: Entering directory 
`/home/gump/workspaces2/public/workspace/jakarta-tomcat-connectors/jk/native/common'
/bin/sh 
/usr/local/gump/public/workspace/apache-httpd/dest-03042005/build/libtool 
--silent --mode=compile gcc 
-I/usr/local/gump/public/workspace/apache-httpd/dest-03042005/include -g -O2 -g 
-O2 -pthread -DHAVE_APR  
-I/usr/local/gump/public/workspace/apr/dest-03042005/include/apr-1 -g -O2 
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-I/home/gump/workspaces2/public/workspace/apache-httpd/srclib/pcre -I 
/opt/jdk1.4/include -I /opt/jdk1.4/include/ -c jk_ajp12_worker.c 
/usr/local/gump/public/workspace/apache-httpd/dest-03042005/build/libtool: 
/usr/local/gump/public/workspace/apache-httpd/dest-03042005/build/libtool: No 
such file or directory
make[1]: *** [jk_ajp12_worker.lo] Error 127
make[1]: Leaving directory 
`/home/gump/workspaces2/public/workspace/jakarta-tomcat-connectors/jk/native/common'
make: *** [all-recursive] Error 1
-

To subscribe to this information via syndicated feeds:
- RSS: 
http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/rss.xml
- Atom: 
http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/atom.xml

== Gump Tracking Only ===
Produced by Gump version 2.2.
Gump Run 2303042005, brutus:brutus-public:2303042005
Gump E-mail Identifier (unique within run) #21.

--
Apache Gump
http://gump.apache.org/ [Instance: brutus]

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session DeltaSession.java LocalStrings.properties

2005-04-03 Thread pero
pero2005/04/03 00:12:03

  Modified:modules/cluster/src/share/org/apache/catalina/cluster/session
DeltaSession.java LocalStrings.properties
  Log:
  Change to new getInternalID usage.
  
  Revision  ChangesPath
  1.32  +3 -3  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaSession.java
  
  Index: DeltaSession.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaSession.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- DeltaSession.java 31 Mar 2005 10:31:54 -  1.31
  +++ DeltaSession.java 3 Apr 2005 08:12:03 -   1.32
  @@ -898,10 +898,10 @@
   
   public void resetDeltaRequest() {
   if (deltaRequest == null) {
  -deltaRequest = new DeltaRequest(getId(), false);
  +deltaRequest = new DeltaRequest(getIdInternal(), false);
   } else {
   deltaRequest.reset();
  -deltaRequest.setSessionId(getId());
  +deltaRequest.setSessionId(getIdInternal());
   }
   }
   
  
  
  
  1.4   +1 -0  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session/LocalStrings.properties,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LocalStrings.properties   14 Mar 2005 21:22:16 -  1.3
  +++ LocalStrings.properties   3 Apr 2005 08:12:03 -   1.4
  @@ -62,3 +62,4 @@
   jvmRoute.valve.notStarted=jvmRoute backup sessionID correction run already
   jvmRoute.valve.started=JvmRouteBinderValve started
   jvmRoute.valve.stopped=JvmRouteBinderValve stopped
  +standardSession.getId.ise=getId: Session already invalidated
  
  
  

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