[patch] Slight changes to the ant tasks

2006-11-06 Thread Kevin Jackson

Hi all,

Just looking through trunk and saw a few places where some minor
tweaks could be applied:
- use FileUtils to close readers/streams
- use  not 
- remove deprecated URLEncoder.encode()

Thanks,
Kev

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

DO NOT REPLY [Bug 40877] - JK1 and IIS6: Problem with multithreading / shared memory

2006-11-06 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=40877





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 01:20 ---
Hi again, hete to say it, but we found another severe bug in the full 
Application Isolation mode of IIS6 with jk1.2.x. Application pools recycle 
themself after some time or number of requests. When this happens:

 Event Type:Information
 Event Source:  W3SVC
 Event Category:None
 Event ID:  1074
 Date:  05.11.2006
 Time:  02:41:15
 User:  N/A
 Computer:  x
 Description:
 A worker process with process id of '1380' serving application
 pool 'www.premiere.de' has requested a recycle because the worker
 process reached its allowed processing time limit.  

...the JK exits with an error:

[Fri Nov 03 22:28:09 2006] [1380:6848] [info]  service::jk_lb_worker.c (873): 
unrecoverable error 413, request failed. Client failed in the middle of 
request, we can't recover to another instance.
[Sun Nov 05 02:41:20 2006] [2044:3792] [error] wc_create_worker::jk_worker.c 
(146): factory for lb failed for P-NG-TC3Hx
[Sun Nov 05 02:41:20 2006] [2044:3792] [error] build_worker_map::jk_worker.c 
(256): failed to create worker P-NG-TC3Hx
[Sun Nov 05 02:41:20 2006] [6872:4756] [error] wc_create_worker::jk_worker.c 
(146): factory for lb failed for P-NG-TC3Hx
[Sun Nov 05 02:41:20 2006] [6872:4756] [error] build_worker_map::jk_worker.c 
(256): failed to create worker P-NG-TC3Hx
[Sun Nov 05 02:41:32 2006] [6568:3420] [error] wc_create_worker::jk_worker.c 
(146): factory for lb failed for P-NG-TC3Hx
[Sun Nov 05 02:41:32 2006] [6568:3420] [error] build_worker_map::jk_worker.c 
(256): failed to create worker P-NG-TC3Hx
[Sun Nov 05 02:42:04 2006] [1360:4448] [error] wc_create_worker::jk_worker.c 
(146): factory for lb failed for P-NG-TC3Hx
[Sun Nov 05 02:42:04 2006] [1360:4448] [error] build_worker_map::jk_worker.c 
(256): failed to create worker P-NG-TC3Hx

JK2 had no problem with this. Maybe this had also to do with the shared mem 
problem, because the "main" jk1 ISAPI-extension is configured globaly in the 
IIS, and the called JK1-instances are run in the Application Pool environment. 
Can you tell me roughly when a testversion will be available? It matters for 
our Testsystems to be held in this state or, if it takes longer, to be re-
setup later.

-- 
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 40877] - JK1 and IIS6: Problem with multithreading / shared memory

2006-11-06 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=40877





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 01:50 ---
Hi,

Yes the problem is with shared memory.
It is initialized as global while it should be initialized on
per virtual server basis.

I'll take a look at that this week.

-- 
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 40906] New: - java.net.SocketException: Broken pipe from time to time

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

   Summary: java.net.SocketException: Broken pipe  from time to time
   Product: Tomcat 5
   Version: 5.0.20
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: minor
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I observe  java.net.SocketException  from time to time in the tomcat cross
context logfile.  The error shows up from time to time, but reguraliy. 

What can I do to avoid this ?


00754350 WARN  20061106 12:18:48  [jk.core.MsgContext] Error sending end packet
 java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
at org.apache.coyote.Response.action(Response.java:182)
at org.apache.coyote.Response.finish(Response.java:304)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
100754351 WARN  20061106 12:18:48  [jk.common.ChannelSocket] processCallbacks
status 2

-- 
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 40907] New: - mod_jk:1.2.19 because of client write error

2006-11-06 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=40907

   Summary: mod_jk:1.2.19 because of client write error
   Product: Tomcat 5
   Version: 5.5.20
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Connector:AJP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I observe continous  logging of error in  mode="info" in mod_jk.log 

Server Version: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7d mod_jk/1.2.19

It seams, that the loadbalancer drops client connections


  LOG --
Mon Nov 06 13:28:09 2006] [0345:47744] [info]  jk_handler::mod_jk.c (2056):
Aborting connection for worker=loadbalancer

[Mon Nov 06 13:36:14 2006] [0692:47744] [info] 
ajp_process_callback::jk_ajp_common.c (1410): Writing to client aborted or
client network
problems

[Mon Nov 06 13:36:14 2006] [0692:47744] [info]  ajp_service::jk_ajp_common.c
(1795): (www2) request failed, because of client write error
without recovery in send loop attempt=0

[Mon Nov 06 13:36:14 2006] [0692:47744] [info]  service::jk_lb_worker.c (873):
unrecoverable error 200, request failed. Client failed in t
he middle of request, we can't recover to another instance.

[Mon Nov 06 13:36:14 2006] [0692:47744] [info]  jk_handler::mod_jk.c (2056):
Aborting connection for worker=loadbalancer

-- 
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 40907] - mod_jk:1.2.19 because of client write error

2006-11-06 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=40907





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 04:41 ---
Worker file:

# The workers that jk should create and work with
worker.list=loadbalancer, www1,www2,jkstatus


# Defining a worker named www1 and of type ajp13
worker.www1.type=ajp13
worker.www1.host=www1
worker.www1.port=8009
worker.www1.lbfactor=1
worker.www1.cachesize=1


# Defining a worker named www2 and of type ajp13
worker.www2.type=ajp13
worker.www2.host=www2
worker.www2.port=8009
worker.www2.lbfactor=1
worker.www2.cachesize=1


# Defining a loadbalancer
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=www1,www2
worker.loadbalancer.method=B
worker.loadbalancer.sticky_session=1

# status worker
worker.jkstatus.type=status








-- 
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 40907] - mod_jk:1.2.19 because of client write error

2006-11-06 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=40907


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 04:55 ---
This is normal operation when the clinet closes the browser in the middle of
request.

Please use Tomcat Users list before filing and [info] or [warn] messages.


-- 
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 35461] - bad request http 400 using mod_jk 1.2.13. After downgrading to 1.3.33 and mod_jk 1.2.5 the problems have gone. Problems occur again after using the combination Apache Webse

2006-11-06 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=35461


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 05:00 ---
HI this bugs  semas to be still unsolved.

We observe the same with: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7d
mod_jk/1.2.19

I reopend this bug.



(In reply to comment #17)
> Jorg, Faisal, and others who've reported the problem: please see Nathan and
> Michael's resolutions and give those a shot.  I'm closing the issue given what
> they said, but if it still occurs with the latest versions (Tomcat 5.5.12, JK
> 1.2.15 at the time of this writing), then feel free to reopen the 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]



DO NOT REPLY [Bug 40907] - mod_jk:1.2.19 because of client write error

2006-11-06 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=40907





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 05:02 ---
(In reply to comment #2)
> This is normal operation when the clinet closes the browser in the middle of
> request.
> 
> Please use Tomcat Users list before filing and [info] or [warn] messages.
> 



-- 
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 40907] - mod_jk:1.2.19 because of client write error

2006-11-06 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=40907





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 05:05 ---
Hi sorry for that,  but check the bug i found now , that seams to have the same
status:

http://issues.apache.org/bugzilla/show_bug.cgi?id=35461

I cannot reproduce that the closing of the clinet app causes this strange 
logging.





-- 
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 35461] - bad request http 400 using mod_jk 1.2.13. After downgrading to 1.3.33 and mod_jk 1.2.5 the problems have gone. Problems occur again after using the combination Apache Webse

2006-11-06 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=35461


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 05:19 ---
Please reopen a new bug report with the 1.2.19 related data.
Simply stating that 1.2.19 is faulty without giving at least a
log file will never be treated as error

Regards.


-- 
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 40909] New: - High CPU Usage When Using mod_jk or mod_proxy_ajp connectors

2006-11-06 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=40909

   Summary: High CPU Usage When Using mod_jk or mod_proxy_ajp
connectors
   Product: Tomcat 5
   Version: 5.5.20
  Platform: PC
OS/Version: Windows Server 2003
Status: NEW
  Severity: major
  Priority: P2
 Component: Connector:AJP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


With Apache 2.2.3 and Tomcat 5.5.20 configured to pass dynamic requests to
Tomcat using either mod_jk or mod_proxy_ajp, the tomcat process starts using 50%
of the cpu after the application is first accessed and stays at that level
indefinitely.  If you switch back to Tomcat 5.5.17, this no longer occurs, the
cpu stays at 1%.  The connector library used was: Tomcat Connectors 1.2.19.
Java 1.50_09

-- 
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 40909] - High CPU Usage When Using mod_jk or mod_proxy_ajp connectors

2006-11-06 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=40909





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 06:18 ---
If using the APR AJP connector, make sure you are not using the 1.1.4 version of
the APR JNI code (upgrade to 1.1.6), or set a connectionTimeout to some value on
the AJP Connector element.

-- 
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: New 6.0.x build

2006-11-06 Thread Remy Maucherat

Filip Hanik - Dev Lists wrote:

Sounds great, I'm traveling next week so I'll be out of the loop.
Here are the different uploads that I would suggest go to a maven repo

1. Complete Tomcat Package, if possible (for containers that wanna 
include Tomcat through a build)

2. tomcat-juli.jar (required for other jars dependencies)
3. catalina-tribes.jar (POM should link to tomcat-juli.jar for dependency)
4. servlet-api.jar (POM for dependencies)
5. jsp-api.jar (POM for dependencies)
6. el-api.jar (POM for dependencies)
7. annotations-api.jar (POM for dependencies)
8. jasper-*.jar (POM for dependencies)
9. catalina-ant.jar (POM for dependencies)

I believe all of these in their individual form are useful, and most 
have been requested already.


If you have other (better) suggestions, I'm open.


I agree with that list. Now since it's pretty extexnsive, I don't know 
if I can do it for this release ;)


Rémy

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



DO NOT REPLY [Bug 36630] - Error instantiating servlet class

2006-11-06 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=36630


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 07:16 ---
Perhaps this is the problem:

public ServletException(String message, Throwable rootCause) {
super(message);
this.rootCause = rootCause;
}

It's still in the latest svn revision (assuming this is the trunk):

http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/jsr154/src/share/javax/servlet/ServletException.java



-- 
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: New 6.0.x build

2006-11-06 Thread Filip Hanik - Dev Lists

Remy Maucherat wrote:

Filip Hanik - Dev Lists wrote:

Sounds great, I'm traveling next week so I'll be out of the loop.
Here are the different uploads that I would suggest go to a maven repo

1. Complete Tomcat Package, if possible (for containers that wanna 
include Tomcat through a build)

2. tomcat-juli.jar (required for other jars dependencies)
3. catalina-tribes.jar (POM should link to tomcat-juli.jar for 
dependency)

4. servlet-api.jar (POM for dependencies)
5. jsp-api.jar (POM for dependencies)
6. el-api.jar (POM for dependencies)
7. annotations-api.jar (POM for dependencies)
8. jasper-*.jar (POM for dependencies)
9. catalina-ant.jar (POM for dependencies)

I believe all of these in their individual form are useful, and most 
have been requested already.


If you have other (better) suggestions, I'm open.


I agree with that list. Now since it's pretty extexnsive, I don't know 
if I can do it for this release ;)
understandable. It not really release dependent, as long as we have the 
tags we can recreate these at any time when we have them ready


Filip

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



DO NOT REPLY [Bug 40911] New: - problem with request response scope

2006-11-06 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=40911

   Summary: problem with request response scope
   Product: Tomcat 4
   Version: 4.0.4 Final
  Platform: Other
OS/Version: AIX
Status: NEW
  Severity: major
  Priority: P2
 Component: Servlet & JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


When accesing a request variable affect the value of the variable with the same
name in the session. It supposes that they should have different memory
locations, no?
minimal jsp example :









<% session.putValue("prueba","hola"); %>
 prueba en sesion 1 = <%=session.getValue("prueba")%>
 prueba en request 1 = <%=request.getAttribute("prueba")%>
<% request.setAttribute("prueba","adios"); %>
 prueba en sesion 2 = <%=session.getValue("prueba")%>
 prueba en request 2 = <%=request.getAttribute("prueba")%>
 prueba en sesion 3 = <%=session.getValue("prueba")%>
 prueba en request 3 = <%=request.getAttribute("prueba")%>




RESULT:

prueba en sesion 1 = hola 
prueba en request 1 = hola 
prueba en sesion 2 = adios 
prueba en request 2 = adios 
prueba en sesion 3 = null 
prueba en request 3 = adios 

The same code in PC with websphere works fine.
It seams that the change of one affect the other value, what seams more strange
is that accessing the value of the request put the value of the session to null.

-- 
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 40911] - problem with request session scope

2006-11-06 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=40911


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|problem with request|problem with request session
   |response scope  |scope




-- 
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 40901] - listings page does not escape XML characters

2006-11-06 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=40901





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 14:04 ---
Created an attachment (id=19093)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19093&action=view)
Patch to DefaultServlet.java that HTML-encodes filenames for directory indexing


-- 
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 40901] - listings page does not escape XML characters

2006-11-06 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=40901





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 14:04 ---
Confirmed on Linux as well.  I'm attaching a simple patch that incorporates
basic HTML encoding into o.a.catalina.servlets.DefaultServlet when outputting a
directory index (whether as HTML or XML).  The method in question is basically
the same as used in o.a.catalina.util.DOMWriter and in HTMLFilter.java in the
JSR152/154 examples.

-- 
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 40901] - listings page does not escape XML characters

2006-11-06 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=40901





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 16:07 ---
Thanks Chris!

BTW: the file/directory names should be "xxx", "yyy" to get the HTML
code interpreted by the browser. Somehow I lost the end tags in my posting.

I tried jarring them up and unjarring them to Windows to see if I could
reproduce it there. Alas, IOExc during unjarring.

-- 
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 40913] New: - JasperException raised against valid attribute

2006-11-06 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=40913

   Summary: JasperException raised against valid attribute
   Product: Tomcat 6
   Version: 6.0.0
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


In org.apache.jasper.compiler.Validator.checkXmlAttributes(), the validation 
for deferred values and methods is raising an exception when an rtexprvalue 
attribute is legitimate.

--Stacktrace--
org.apache.jasper.JasperException: 
org.apache.jasper.JasperException: /index.jsp(83,0)
  According to TLD or attribute directive in tag file, attribute items 
does not accept any expressions
org.apache.jasper.servlet.JspServletWrapper.handleJspException
(JspServletWrapper.java:565)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:354)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



--relevant code in checkXmlAttributes()--
 if (!deferred && (tldAttrs[j].isDeferredMethod() || tldAttrs
[j].isDeferredValue())) {
 // Only deferred expressions are allowed for this attribute
 err.jspError(n, "jsp.error.attribute.custom.non_rt_with_expr",
 tldAttrs[j].getName());
 }

--testcase--

  This line is ${k}.


The TLD for JSTL 1.2 says items can be an rtexprvalue and also a deferred-
value.  So the above usage is correct.
Attaching a testcase WAR.

--summary--
I don't think this code is really necessary; at least, it needs to be relaxed 
to allow tai.canBeRequestTime() values.

-- 
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 40913] - JasperException raised against valid attribute

2006-11-06 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=40913





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 16:25 ---
Created an attachment (id=19094)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19094&action=view)
Testcase for 40913


-- 
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 40911] - problem with request session scope

2006-11-06 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=40911


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 18:09 ---
I have confirmed that has been fixed in 4.1.34. I can't see from the change log
where it was fixed but there were a number of fixes in 4.1.6 that might include
a fix for this.

-- 
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 37793] - org.apache.jasper.runtime.BodyContentImpl doesn't reset the 'cb' character array, causes memory leak

2006-11-06 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=37793


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 18:45 ---
As Jeff notes, the option
-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true is available in
5.5.15 onwards.

-- 
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: r471973 - in /tomcat/container/tc5.5.x/webapps/docs: changelog.xml config/host.xml

2006-11-06 Thread markt
Author: markt
Date: Mon Nov  6 18:57:06 2006
New Revision: 471973

URL: http://svn.apache.org/viewvc?view=rev&rev=471973
Log:
Fix bug 38198. Improve context name aspect of host documentation.

Modified:
tomcat/container/tc5.5.x/webapps/docs/changelog.xml
tomcat/container/tc5.5.x/webapps/docs/config/host.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=471973&r1=471972&r2=471973
==
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Mon Nov  6 18:57:06 2006
@@ -43,6 +43,11 @@
 concurrently. (markt)
   
   
+38198: Add reference to Context documentation from Host
+documentation that explains how Context name is obtained from the
+Context filename. (markt)
+  
+  
 39436: Correct MIME type for SVG. (markt)
   
   

Modified: tomcat/container/tc5.5.x/webapps/docs/config/host.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/config/host.xml?view=diff&rev=471973&r1=471972&r2=471973
==
--- tomcat/container/tc5.5.x/webapps/docs/config/host.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/config/host.xml Mon Nov  6 18:57:06 
2006
@@ -266,7 +266,8 @@
 attribute of this  element will typically
 be the absolute pathname to a web application directory, or the
 absolute pathname of a web application archive (WAR) file (which
-will not be expanded).
+will not be expanded). The path attribute will be automatically set
+as defined in the Context 
documentation.
 Any web application archive file within the application base (appBase)
 directory that does not have a corresponding
 directory of the same name (without the ".war" extension) will be



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



DO NOT REPLY [Bug 38198] - When using context xml definitions standalone file, tomcat wrongly uses the file name instead the context path definition

2006-11-06 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=38198


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 18:58 ---
I recently re-wrote the context name from filename section of the Context docs
so I added a reference to this from the Host docs.

The changes will be in 5.5.21 onwards.

For the record, 5.5.x will not be made backwards compatible with the 5.0.x
functionality.

-- 
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 39120] - Create semantics for "path" attribute in embedded context.xml

2006-11-06 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=39120


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 19:01 ---
This is an intentional change in functionality between 5.0.x and 5.5.x

The docs weren't great about this - there are some fixes in SVN that will be in
5.5.21 onwards. Further suggestions for documentation improvements are always
welcome but the requested functionality change will not be made.

-- 
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 38268] - User friendly: Need submit button on adding/deleting user

2006-11-06 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=38268


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|normal  |enhancement




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 20:33 ---
Marking as an enhancement.

-- 
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 40801] - antiResourceLocking causes undexpected context results from jndi queries

2006-11-06 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=40801


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 20:39 ---
You should be able to use a context.xml file with the necessary configuration as
context parameters. http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
provides more information. If you have any questions, please use the tomcat
users mailing list.

I am closing this as invalid since this isn't a bug but a usage question.

-- 
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 40801] - antiResourceLocking causes undexpected context results from jndi queries

2006-11-06 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=40801


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 20:50 ---
I beg to differ. We are using a context.xml file and it conforms to the 
document you've linked. 

The problem is that getservletContextName() does not report the context of the 
application as it was deployed when antiJarLocking and antiResourceLocking is 
enabled.

If I deploy my app at webapps/foo, getservletContextName reports 8-foo instead 
of the proper context. How is that not a bug?

The only question I asked was if there was a workaround. What we have had to 
do is to strip off the leading [\d-] from the erroneous value returned from 
the call. 

-- 
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 39113] - Missing enviroment through tomcat connector with IIS

2006-11-06 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=39113


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 21:00 ---
env-entry parameters are defined in web.xml, the processing of which is entirely
independent of the connector.

The only mechanism I can imagine where this might happen is some form of
configuration error that leads to contexts you aren't expecting (that don't have
the env-entry settings defined) and IIS mapping requests to one of these
unexpected contexts.

Without a test case there is nothing we can do to investigate this.

Given configuration error is the most likely cause I am resolving this as
INVALID and suggest that if you still see this error you use the Tomcat users
mailing list to confirm your configuration is correct. If your configuration is
correct, please re-open this bug and attach a test case and I'll look into it
some 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]



DO NOT REPLY [Bug 40801] - antiResourceLocking causes undexpected context results from jndi queries

2006-11-06 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=40801





--- Additional Comments From [EMAIL PROTECTED]  2006-11-06 21:02 ---
Sorry, misunderstood what was causing the problem. I'll take another look.

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