DO NOT REPLY [Bug 39829] New: - classnotfoundexception when we start tomcat like a service

2006-06-17 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=39829

   Summary: classnotfoundexception when we start tomcat like a
service
   Product: Tomcat 5
   Version: 5.0.28
  Platform: Other
OS/Version: Windows 2000
Status: NEW
  Severity: major
  Priority: P2
 Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


When to start tomcat like a service and we chage a class in the repository 
(WEB-IN/classes/...), the reloader class don't find the class and throw a 
classnotfoundexception.

This only happen when tomcat is start like a service. If start tomcat from 
console don't happen and it's work ok.
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 39832] New: - HTML Manager improvements

2006-06-17 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=39832

   Summary: HTML Manager improvements
   Product: Tomcat 5
   Version: 5.5.17
  Platform: All
   URL: http://sourceforge.net/project/showfiles.php?group_id=14
7751&package_id=169274
OS/Version: All
Status: NEW
  Keywords: PatchAvailable
  Severity: enhancement
  Priority: P3
 Component: Webapps:Manager
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


The HTML Manager is a central point for managing an instance of Tomcat. This
tool can be greatly improved by displaying active sessions for each webapp, as
done in my open-source tool MessAdmin http://messadmin.sourceforge.net
I have back-ported and integrated part of this tool to Tomcat's HTML Manager
(please see attached patch), and am  willing to give this code to the Apache
Tomcat team.
Please note this patched manager is already used in production sites, so there
should be no problem of bugs or stability.
Do not hesitate to contact me directly in case you need more information!

-- 
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 39832] - HTML Manager improvements

2006-06-17 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=39832





--- Additional Comments From [EMAIL PROTECTED]  2006-06-17 14:51 ---
Created an attachment (id=18482)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18482&action=view)
patch file and additional sources


-- 
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 39824] - Tomcat 5.5.16+ memory realm on context not work

2006-06-17 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=39824


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2006-06-17 14:55 ---
This works for me using exact copies of your configuration files.

There must be some other configuration problem. I suggest you follow up on the
Tomcat users mailing list.

-- 
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: Tomcat Comet Model, DOS example

2006-06-17 Thread Filip Hanik - Dev Lists

Remy Maucherat wrote:

Filip Hanik - Dev Lists wrote:

I agree, chunked would be the way to go for a communication.

I reverted my fix, however, now TC6 has a DOS possibility, by 
following these steps


1. Override CometServlet.read, always return true (you wanna serve N 
client requests, and you don't know how many its gonna send, so this 
is not unreasonable)


I fail to see why doing that is reasonable: you're getting an event to 
read data, so you have to read it even if you're not going to use it 
(as in NIO).
yes, and since I am receiving the read event, I'm expecting data, no 
data was available, so I return true to wait for it become available.
Tomcat fails to deliver the data, even though it issues a read(req,resp) 
event.

Two solutions
1. Deliver the data (my reverted checkin)
2. Read the socket, discard the data, never call read

Right now I'm not hot about reading the data first in the container: 
if done, it should be in InputBuffer, 
yes, that is how I suggested it to be done. The AprBuffer was reading 
the socket data in my checkin.


but could mean automagically discarding data, which could become a 
very sneaky problem if the user doesn't code the right way but is 
interested in the data.

yes, I prefer delivering the data. option 1


There are still some serious problems though, starting with the 
current C2B and B2C converters which use far too much memory. I would 
like to use the NIO converters instead, but they want to use 
ByteBuffer and CharBuffer.
yes, and ByteBuffer and CharBuffer have historically been slower than 
byte[] and char[], not sure if that is still the case.


Rémy
so where do we stand, you cool now? can I go back and work on my 
checkin, improve it, and continue working on the Comet feature?


Filip


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





--


Filip Hanik

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



DO NOT REPLY [Bug 39829] - classnotfoundexception when we start tomcat like a service

2006-06-17 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=39829


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2006-06-17 16:27 ---
This works for me using the latest 5.5 source from svn. I am therefore going to
close this as works for me.

If you can reproduce this with the latest 5.0.x code and particularly want it
fixed in the 5.0.x branch feel free to re-open it but as far as I am aware there
is unlikely to be another 5.0.x release so it will almost certainly get closed
again as WONTFIX.

-- 
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: r415029 - in /tomcat/container/tc5.5.x/webapps: docs/changelog.xml manager/WEB-INF/classes/org/apache/catalina/manager/JMXProxyServlet.java

2006-06-17 Thread markt
Author: markt
Date: Sat Jun 17 09:57:47 2006
New Revision: 415029

URL: http://svn.apache.org/viewvc?rev=415029&view=rev
Log:
Fix bug 39813. Correct handling of new line characters in JMXProxyServlet
Patch provided by R Bramley

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

tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/JMXProxyServlet.java

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?rev=415029&r1=415028&r2=415029&view=diff
==
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Sat Jun 17 09:57:47 2006
@@ -51,6 +51,10 @@
   
 
   
+39813: Correct handling of new line characters in JMX
+attributes. Patch provided by R Bramley. (markt)
+  
+  
 37781: Make sure that StoreConfig save external referenced 
war files at context.xml correct. (pero)
   
   

Modified: 
tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/JMXProxyServlet.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/JMXProxyServlet.java?rev=415029&r1=415028&r2=415029&view=diff
==
--- 
tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/JMXProxyServlet.java
 (original)
+++ 
tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/JMXProxyServlet.java
 Sat Jun 17 09:57:47 2006
@@ -77,7 +77,6 @@
 response.setContentType("text/plain");
 
 PrintWriter writer = response.getWriter();
-String qryString= request.getQueryString();
 
 if( mBeanServer==null ) {
 writer.println("Error - No mbean server");
@@ -111,7 +110,8 @@
 try {
 ObjectName oname = new ObjectName(onameStr);
 Object value = mBeanServer.getAttribute(oname, att);
-writer.println("OK - Attribute get '" + onameStr + "' - " + att + 
"= " + value.toString() );
+writer.println("OK - Attribute get '" + onameStr + "' - " + att
++ "= " + escape(value.toString()));
 } catch (Exception ex) {
 writer.println("Error - " + ex.toString());
 }
@@ -201,7 +201,7 @@
 int prev=0;
 StringBuffer sb=new StringBuffer();
 while( idx >= 0 ) {
-appendHead(sb, value, prev, idx-1);
+appendHead(sb, value, prev, idx);
 
 sb.append( "\\n\n ");
 prev=idx+1;
@@ -214,6 +214,8 @@
 }
 
 private void appendHead( StringBuffer sb, String value, int start, int 
end) {
+if (end < 1) return;
+
 int pos=start;
 while( end-pos > 78 ) {
 sb.append( value.substring(pos, pos+78));



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



DO NOT REPLY [Bug 39813] - JMX proxy servlet newline escaping is incorrect

2006-06-17 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=39813


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-06-17 16:57 ---
Patch applied.

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