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

2007-11-11 Thread David Jencks


On Nov 10, 2007, at 2:12 PM, [EMAIL PROTECTED] wrote:


Author: markt
Date: Sat Nov 10 14:12:54 2007
New Revision: 593815

URL: http://svn.apache.org/viewvc?rev=593815view=rev
Log:
Add JSP schema fix

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

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS? 
rev=593815r1=593814r2=593815view=diff
== 


--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Sat Nov 10 14:12:54 2007
@@ -53,3 +53,7 @@
   -1: markt - only the double quoting part - see http://marc.info/? 
l=tomcat-devm=119454915422424w=2 for reasons
   -1: fhanik - I still think it needs some work, will discuss on  
dev list


+* Fix licensing of JSP 2.1 schema
+  svn diff -c r593814
+  +1: markt
+  -1:


As noted in a reply to the commit email I think you have replaced the  
files Remy checked in with geronimo's copies of those files, so if  
I'm correct you have not improved the legal situation.


thanks
david jencks





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




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



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

2007-11-11 Thread David Jencks


On Nov 11, 2007, at 1:24 AM, David Jencks wrote:



On Nov 10, 2007, at 2:12 PM, [EMAIL PROTECTED] wrote:


Author: markt
Date: Sat Nov 10 14:12:54 2007
New Revision: 593815

URL: http://svn.apache.org/viewvc?rev=593815view=rev
Log:
Add JSP schema fix

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

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS? 
rev=593815r1=593814r2=593815view=diff
= 
=

--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Sat Nov 10 14:12:54 2007
@@ -53,3 +53,7 @@
   -1: markt - only the double quoting part - see http:// 
marc.info/?l=tomcat-devm=119454915422424w=2 for reasons
   -1: fhanik - I still think it needs some work, will discuss on  
dev list


+* Fix licensing of JSP 2.1 schema
+  svn diff -c r593814
+  +1: markt
+  -1:


As noted in a reply to the commit email I think you have replaced  
the files Remy checked in with geronimo's copies of those files, so  
if I'm correct you have not improved the legal situation.


As noted in my 2nd reply I was wrong and these files are not copies  
of Remy's checkin or suns originals.


My apologies.
david jencks



thanks
david jencks





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




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




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



DO NOT REPLY [Bug 43834] New: - Jsp not able to find and compile Java Class Code

2007-11-11 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=43834.
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=43834

   Summary: Jsp not able to find and compile Java Class Code
   Product: Tomcat 5
   Version: 5.5.24
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: blocker
  Priority: P1
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I have a java class code , placed in the path C:\Program Files\Apache Software 
Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\mail\jspemailjava.java

where mail is the package and the java code is 

package mail;

import javax.mail.*;
import javax.mail.internet.*;


import java.util.Properties;

public class jspemailjava {
public void execute() throws Exception{

  boolean debug = true; 

  Properties props = new Properties();

  props.setProperty(mail.transport.protocol, smtp);
  props.setProperty(mail.smtp.host, smtp.gmail.com);
  props.put(mail.smtp.port,587);
  props.setProperty(mail.smtp.user, [EMAIL PROTECTED]);
  props.setProperty(mail.smtp.password, ecosystem2007);
  props.put(mail.smtp.starttls.enable,true);
  props.put(mail.smtp.auth, true);
  props.put(mail.debug, true);
 
 
 Session mailSession = Session.getDefaultInstance(props,new 
javax.mail.Authenticator() {
 
protected PasswordAuthentication 
getPasswordAuthentication() {
return new PasswordAuthentication
([EMAIL PROTECTED], ecosystem2007);

 }
   
 });
 
  //mailSession.setDebug(debug);

  Transport transport = mailSession.getTransport();
  
  MimeMessage message = new MimeMessage(mailSession);

  message.setSubject(Testing javamail plain);
  message.setContent(This is a test, text/plain);
  message.addRecipient(Message.RecipientType.TO,
  new InternetAddress([EMAIL PROTECTED]));

  message.setFrom(new InternetAddress([EMAIL PROTECTED]));

  transport.connect();
  transport.sendMessage(message,
  message.getRecipients(Message.RecipientType.TO));
  transport.close();
}


}

The jsp file to invoke the java code is placed in the path C:\Program 
Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\sendmail\mail.jsp, 
the jsp code is 

%@ page import=mail.*%

%

jsp:useBean id=email type=jspemailjava scope=page
jsp:getProperty name=email property=name/
/jsp:useBean

%

html 
p align=center 
% email.execute(); %
A Message has been sent. br 
Check your inbox. 
/p 

p align=center 

/p 

/html 

When i run the mail.jsp, i get the following error. Please can u help me as to 
how to solve the problem. Urgently required to complete my project.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP: 
JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error on token(s), misplaced construct(s)
2: 
3: %
4: 
5: jsp:useBean id=email type=jspemailjava scope=page
6: jsp:getProperty name=email property=name/
7: /jsp:useBean
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error, insert AssignmentOperator ArrayInitializer to complete 
ArrayInitializerAssignement
2: 
3: %
4: 
5: jsp:useBean id=email type=jspemailjava scope=page
6: jsp:getProperty name=email property=name/
7: /jsp:useBean
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error, insert ; to complete Statement
2: 
3: %
4: 
5: jsp:useBean id=email type=jspemailjava scope=page
6: jsp:getProperty name=email property=name/
7: /jsp:useBean
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error, insert ; to complete Statement
2: 
3: %
4: 
5: jsp:useBean id=email type=jspemailjava scope=page
6: jsp:getProperty name=email property=name/
7: /jsp:useBean
8: 

JSP FileName:/sendmail/mail.jsp
Java 

DO NOT REPLY [Bug 43834] - Jsp not able to find and compile Java Class Code

2007-11-11 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=43834.
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=43834


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2007-11-11 05:04 ---
You need to provide the compiled class. Use the users list if you need more 
help.

-- 
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: r593915 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 07:55:20 2007
New Revision: 593915

URL: http://svn.apache.org/viewvc?rev=593915view=rev
Log:
Rename envvars_in_use to envvars_has_own reflecting better
it's new use. It indicates, if the envvars are completely
inherited from another vhost, or if the vhost has at least
one envvar which is special for it.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593915r1=593914r2=593915view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 07:55:20 
2007
@@ -208,7 +208,7 @@
 /*
  * Environment variables support
  */
-int envvars_in_use;
+int envvars_has_own;
 apr_table_t *envvars;
 apr_table_t *envvars_def;
 apr_array_header_t *envvar_items;
@@ -1826,7 +1826,7 @@
 (jk_server_conf_t *) ap_get_module_config(s-module_config,
   jk_module);
 
-conf-envvars_in_use = JK_TRUE;
+conf-envvars_has_own = JK_TRUE;
 if (!conf-envvars) {
 conf-envvars  = apr_table_make(cmd-pool, 0);
 conf-envvars_def  = apr_table_make(cmd-pool, 0);
@@ -2366,7 +2366,7 @@
 c-key_size_indicator = JK_ENV_KEY_SIZE;
 c-strip_session = JK_FALSE;
 }
-c-envvars_in_use = JK_FALSE;
+c-envvars_has_own = JK_FALSE;
 
 c-s = s;
 apr_pool_cleanup_register(p, s, jk_apr_pool_cleanup, jk_apr_pool_cleanup);
@@ -2433,7 +2433,7 @@
 overrides-options |= (base-options  ~base-exclude_options);
 
 if (base-envvars) {
-if (overrides-envvars  overrides-envvars_in_use) {
+if (overrides-envvars  overrides-envvars_has_own) {
 merge_apr_table(base-envvars, overrides-envvars);
 merge_apr_table(base-envvars_def, overrides-envvars_def);
 }
@@ -2822,7 +2822,7 @@
 ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
  JkRequestLogFormat format array 
NULL);
 }
-if (sconf-envvars  sconf-envvars_in_use) {
+if (sconf-envvars  sconf-envvars_has_own) {
 int i;
 const apr_array_header_t *arr;
 const apr_table_entry_t *elts;



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



svn commit: r593916 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:00:07 2007
New Revision: 593916

URL: http://svn.apache.org/viewvc?rev=593916view=rev
Log:
Add two comments, how me merge.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593916r1=593915r2=593916view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:00:07 
2007
@@ -2434,6 +2434,7 @@
 
 if (base-envvars) {
 if (overrides-envvars  overrides-envvars_has_own) {
+/* merge_apr_table() preserves existing entries in overrides table */
 merge_apr_table(base-envvars, overrides-envvars);
 merge_apr_table(base-envvars_def, overrides-envvars_def);
 }
@@ -2445,6 +2446,7 @@
 }
 
if (overrides-uri_to_context) {
+/* jk_map_copy() preserves existing entries in overrides map */
 if (jk_map_copy(base-uri_to_context, overrides-uri_to_context) == 
JK_FALSE) {
 jk_error_exit(APLOG_MARK, APLOG_EMERG, overrides-s, p, 
Memory error);
 }



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



svn commit: r593917 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:02:09 2007
New Revision: 593917

URL: http://svn.apache.org/viewvc?rev=593917view=rev
Log:
We have this check already in two of three places, where
we use uw_map. Adding it to the third place.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593917r1=593916r2=593917view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:02:09 
2007
@@ -2111,7 +2111,17 @@
worker_name, r-uri);
 }
 else {
-worker_name = map_uri_to_worker(xconf-uw_map, r-uri, NULL, 
xconf-log);
+if (!xconf-uw_map) {
+if (JK_IS_DEBUG_LEVEL(xconf-log))
+jk_log(xconf-log, JK_LOG_DEBUG,
+   missing uri map for %s:%s,
+   xconf-s-server_hostname ? 
xconf-s-server_hostname : _default_,
+   r-uri);
+}
+else
+worker_name = map_uri_to_worker(xconf-uw_map, r-uri,
+NULL, xconf-log);
+
 if (worker_name == NULL  worker_env.num_of_workers) {
 worker_name = worker_env.worker_list[0];
 if (JK_IS_DEBUG_LEVEL(xconf-log))



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



svn commit: r593918 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:06:27 2007
New Revision: 593918

URL: http://svn.apache.org/viewvc?rev=593918view=rev
Log:
We should always have a non-NULL mapping table
in the main server. Otherwise e.g. we get a core dump,
when using the mount attribute in workers.properties.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593918r1=593917r2=593918view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:06:27 
2007
@@ -2354,6 +2354,9 @@
 c-ssl_enable = JK_UNSET;
 c-strip_session = JK_UNSET;
 } else {
+if (!jk_map_alloc((c-uri_to_context))) {
+ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, Memory error);
+}
 c-mountcopy = JK_FALSE;
 c-mount_file_reload = JK_URIMAP_DEF_RELOAD;
 c-log_level = JK_LOG_DEF_LEVEL;



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



svn commit: r593926 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:49:09 2007
New Revision: 593926

URL: http://svn.apache.org/viewvc?rev=593926view=rev
Log:
Correct typo from revision 593921.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593926r1=593925r2=593926view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:49:09 
2007
@@ -2459,7 +2459,7 @@
 }
 
if (overrides-mountcopy == JK_UNSET  jk_mount_copy_all == JK_TRUE) { 
   
-   overrides-mountcopy == JK_TRUE;
+   overrides-mountcopy = JK_TRUE;
}
if (overrides-uri_to_context  overrides-mountcopy == JK_TRUE) {
 /* jk_map_copy() preserves existing entries in overrides map */



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



svn commit: r593927 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:50:46 2007
New Revision: 593927

URL: http://svn.apache.org/viewvc?rev=593927view=rev
Log:
We don't use uri_to_context after post_config, so we
can clean it up early.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593927r1=593926r2=593927view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:50:46 
2007
@@ -2322,14 +2322,8 @@
we can't guarantee what order pools get cleaned
up between APR implementations. */
 wc_close(NULL);
-if (conf-uri_to_context) {
-jk_map_free(conf-uri_to_context);
-/* We cannot have allocated uw_map
- * unless we've allocated uri_to_context
- */
-if (conf-uw_map)
-uri_worker_map_free(conf-uw_map, NULL);
-}
+if (conf-uw_map)
+uri_worker_map_free(conf-uw_map, NULL);
 conf-was_initialized = JK_FALSE;
 }
 s = s-next;
@@ -2818,6 +2812,7 @@
   sconf-uri_to_context, 
sconf-log))
 jk_error_exit(APLOG_MARK, APLOG_EMERG, srv,
   srv-process-pool, Memory error);
+jk_map_free(sconf-uri_to_context);
 if (sconf-options  JK_OPT_REJECTUNSAFE)
 sconf-uw_map-reject_unsafe = 1;
 else



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



svn commit: r593930 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:58:05 2007
New Revision: 593930

URL: http://svn.apache.org/viewvc?rev=593930view=rev
Log:
Prevent crash, if worker_name is still NULL.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593930r1=593929r2=593930view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:58:05 
2007
@@ -2137,13 +2137,13 @@
 if (JK_IS_DEBUG_LEVEL(xconf-log))
jk_log(xconf-log, JK_LOG_DEBUG, Into handler %s worker=%s
r-proxyreq=%d,
-  r-handler, worker_name, r-proxyreq);
+  r-handler, STRNULL_FOR_NULL(worker_name), r-proxyreq);
 
 /* If this is a proxy request, we'll notify an error */
 if (r-proxyreq) {
 jk_log(xconf-log, JK_LOG_INFO, Proxy request for worker=%s
is not allowed,
-  worker_name);
+  STRNULL_FOR_NULL(worker_name));
 JK_TRACE_EXIT(xconf-log);
 return HTTP_INTERNAL_SERVER_ERROR;
 }



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



DO NOT REPLY [Bug 43839] - I think the implement is difference with the document in function CoyoteAdapter.postParseRequest

2007-11-11 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=43839.
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=43839


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|I think the implement is|I think the implement is
   |difference with the document|difference with the document
   ||in function
   ||CoyoteAdapter.postParseReque
   ||st




-- 
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 43840] New: - Unexpected behaviour when GenericPrincipal is serialized using the SerializablePrincipal in a cluster.

2007-11-11 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=43840.
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=43840

   Summary: Unexpected behaviour when GenericPrincipal is serialized
using the SerializablePrincipal in a cluster.
   Product: Tomcat 6
   Version: 6.0.14
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Cluster
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The method 'getUserPrincipal()' in the GenericPrincipal class returns itself or
a provided Principal if possible. This is also the return value of the
request.getUserPrincipal() method. This works fine in a non-clustered 
environment.

However the behaviour of this method changes when the GenericPrincipal is
serialized by the SerializablePrincipal class. In the initial node of a cluster
the request.getUserPrincipal() method behaves normally. However after the
principal is serialized to another node it no longer contains the internal
Principal object, so the same method call will now return a different object.

I think a solution could be:

1) If there exists an internal userPrincipal AND it is Serializable then
serialize it along with the other properties of GenericPrincipal.

2) Recreate it at the other end if it is available in the object stream.

In this manner users with custom Principal objects that implement
java.io.Serializable will have predictable results from the
request.getUserPrincipal method across nodes in a cluster.

I'd appreciate your thoughts on this.

Thanks,
Ashley

-- 
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 43841] New: - Tomcat 6.0.14 crashed at JDK 1.6.0_03

2007-11-11 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=43841.
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=43841

   Summary: Tomcat 6.0.14 crashed at JDK 1.6.0_03
   Product: Tomcat 6
   Version: 6.0.14
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: critical
  Priority: P2
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When I debug tomcat at eclipse with tomcatPlugs. It's crashed. There is the log.
hs_err_pid2892.log
--
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d9eaa8f, pid=2892, tid=2976
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x17aa8f]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---  T H R E A D  ---

Current thread (0x0aae0c00):  VMThread [id=2976]

siginfo: ExceptionCode=0xc005, reading address 0x0007010c

Registers:
EAX=0x07d405a8, EBX=0x003fc354, ECX=0x003fc318, EDX=0x00070100
ESP=0x0abbf624, EBP=0x003fc2c8, ESI=0x0799f3a0, EDI=0x0799f3a0
EIP=0x6d9eaa8f, EFLAGS=0x00010293

Top of Stack: (sp=0x0abbf624)
0x0abbf624:   0799f3a0 6d88bbcb 0799f3a0 0abbf674
0x0abbf634:   0abbf674 0002 003f9ba8 6d9129e1
0x0abbf644:   0799f580 003fc120 6d9127b1 003fc318
0x0abbf654:   6d8e35c3 0abbf674  003f9c00
0x0abbf664:   0799f580 6d9125f7 0abbf674 
0x0abbf674:   6da4efac 0799f580  6d90d1e3
0x0abbf684:   0799f580 0799f580  0abbf7a4
0x0abbf694:    6d9ad343 0799f580 6d88c404 

Instructions: (pc=0x6d9eaa8f)
0x6d9eaa7f:   cc 8b 41 34 56 8b 74 24 08 3b f0 73 38 8b 56 04
0x6d9eaa8f:   8b 42 0c 83 c2 08 85 c0 7f 33 7d 1d 83 c9 ff 2b 


Stack: [0x0ab7,0x0abc),  sp=0x0abbf624,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x17aa8f]

VM_Operation (0x0b77f21c): generation collection for allocation, mode:
safepoint, requested by thread 0x0b2fc400


---  P R O C E S S  ---

Java Threads: ( = current thread )
  0x0b4e4400 
[error occurred during error reporting, step 170, id 0xc005]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x003f6258/0x2714] Threads_lock - owner thread: 0x0aae0c00
[0x003f63f8/0x26d4] Heap_lock - owner thread: 0x0b2fc400

Heap
 def new generation   total 1088K, used 46K [0x029d, 0x02af, 0x02eb)
  eden space 1024K,   0% used [0x029d, 0x029d, 0x02ad)
  from space 64K,  73% used [0x02ae, 0x02aebb98, 0x02af)
  to   space 64K,   0% used [0x02ad, 0x02ad, 0x02ae)
 tenured generation   total 13364K, used 13361K [0x02eb, 0x03bbd000, 
0x069d)
   the space 13364K,  99% used [0x02eb, 0x03bbc428, 0x036b8000, 0x03bbd000)
 compacting perm gen  total 19968K, used 19905K [0x069d, 0x07d5, 
0x0a9d)
   the space 19968K,  99% used [0x069d, 0x07d405a8, 0x07c8ae00, 0x07d5)
No shared spaces configured.

Dynamic libraries:
0x0040 - 0x00423000 C:\Program Files\Java\jdk1.6.0_03\bin\javaw.exe
0x7c92 - 0x7c9b4000 C:\WINDOWS\system32\ntdll.dll
0x7c80 - 0x7c91d000 C:\WINDOWS\system32\kernel32.dll
0x77da - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e5 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x77d1 - 0x77d9f000 C:\WINDOWS\system32\USER32.dll
0x77ef - 0x77f37000 C:\WINDOWS\system32\GDI32.dll
0x7630 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL
0x62c2 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL
0x73fa - 0x7400b000 C:\WINDOWS\system32\USP10.dll
0x77be - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll
0x7c34 - 0x7c396000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll
0x6d87 - 0x6daba000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
0x76b1 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll
0x6d3c - 0x6d3c8000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
0x76bc - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d4b - 0x6d4d9000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\jdwp.dll
0x6d77 - 0x6d776000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\npt.dll
0x6d82 - 0x6d82c000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\verify.dll
0x6d46 - 0x6d47f000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\java.dll
0x6d86 - 

Re: svn commit: r593943 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread Mladen Turk

[EMAIL PROTECTED] wrote:

Author: rjung
Date: Sun Nov 11 11:22:23 2007
New Revision: 593943

URL: http://svn.apache.org/viewvc?rev=593943view=rev
Log:
Undo revision 593927.
This produced a mem leak for vhosts with private JkMounts.
No idea why.



Because uw_map is now allocated *only* if uri_to_context is
allocated. In other cases uw_map is pointer to the parent
allocated uw_map. So if you free uw_map with uri_to_context equals
NULL, you'll actually have a double free of the same pointer.

Regards,
Mladen


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



Bug report for Tomcat 5 [2007/11/11]

2007-11-11 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|27122|Opn|Enh|2004-02-20|IE plugins cannot access components through Tomcat|
|28039|Opn|Enh|2004-03-30|Cluster Support for SingleSignOn  |
|29160|Ver|Enh|2004-05-23|precompile problem: _jspx_meth_* (javax.servlet.js|
|29494|Inf|Enh|2004-06-10|No way to set PATH when running as a service on Wi|
|29936|Opn|Blk|2004-07-06|XML parser loading problems by container  |
|30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c|
|33262|Inf|Enh|2005-01-27|Service Manager autostart should check for adminis|
|33453|Opn|Enh|2005-02-08|Jasper should recompile JSP files whose datestamps|
|33650|Inf|Enh|2005-02-19|Jasper performance for multiple files processing  |
|33671|Opn|Enh|2005-02-21|Manual Windows service installation with custom na|
|34801|New|Enh|2005-05-08|PATCH: CGIServlet does not terminate child after a|
|34805|Ass|Enh|2005-05-08|warn about invalid security constraint url pattern|
|34868|Ass|Enh|2005-05-11|allow to register a trust store for a session that|
|35054|Inf|Enh|2005-05-25|warn if appBase is not existing as a File or direc|
|35869|Inf|Enh|2005-07-26|Can't run as a service on Windows Server 2003 64-B|
|36133|Inf|Enh|2005-08-10|Support JSS SSL implementation|
|36169|New|Enh|2005-08-12|[PATCH] Enable chunked encoding for requests in II|
|36362|New|Enh|2005-08-25|missing check for Java reserved keywords in tag fi|
|36569|Inf|Enh|2005-09-09|Redirects produce illegal URL's   |
|36837|Inf|Enh|2005-09-28|Looking for ProxyHandler implementation of Http re|
|36922|Inf|Enh|2005-10-04|setup.sh file mis-advertised and missing  |
|36923|New|Nor|2005-10-05|Deactivated EL expressions are not parsed for jsp |
|37018|Ass|Enh|2005-10-11|Document how to use tomcat-SSL with a pkcs11 token|
|37072|Ass|Nor|2005-10-13|Encoding mismatch in error condition  |
|37084|Opn|   |2005-10-14|JspC from ant fails on JSPs that use custom taglib|
|37334|Inf|Enh|2005-11-02|Realm digest property not aligned with the adminis|
|37449|Opn|Enh|2005-11-10|Two UserDatabaseRealm break manager user  |
|37485|Inf|Enh|2005-11-14|I'd like to run init SQL after JDBC Connection cre|
|37498|Inf|Nor|2005-11-14|[PATCH] NPE in org.apache.catalina.core.ContainerB|
|37515|Inf|Nor|2005-11-15|smap not generated by JspC when used from Ant for |
|37627|Opn|Nor|2005-11-24|Slow and incomplete dynamic content generation aft|
|37785|Inf|Nor|2005-12-05|Changing startup type via Tomcat Monitor does not |
|37794|Opn|Nor|2005-12-05|getParameter() fails on POST with transfer-encodin|
|37797|Inf|Maj|2005-12-05|Configure Tomcat utility truncates classpath to 96|
|37822|Opn|Nor|2005-12-07|WebappClassLoader interfering with Catalina core c|
|37847|Ass|Enh|2005-12-09|Allow User To Optionally Specify Catalina Output F|
|37869|Opn|Nor|2005-12-12|Cannot obtain client certificate with SSL / client|
|37918|Inf|Nor|2005-12-15|EL cannot find valid getter from object when using|
|37984|New|Nor|2005-12-21|JNDIRealm.java not able to handle MD5 password|
|38001|Inf|Nor|2005-12-22|TruncatedClassFile when loadind applets   |
|38046|Ass|   |2005-12-27|apache-tomcat-5.5.14-deployer doesn't work (Illega|
|38131|New|Enh|2006-01-05|WatchedResource does not work if app is outside w|
|38216|Inf|Enh|2006-01-10|Extend Jmxproxy to allow call of MBean Operations |
|38268|Inf|Enh|2006-01-13|User friendly: Need submit button on adding/deleti|
|38352|Inf|Nor|2006-01-22|Additional Entries for Default catalina.policy fil|
|38360|Inf|Enh|2006-01-24|Domain for session cookies|
|38367|Inf|Nor|2006-01-24|Executing any Catalina Ant task results in an exce|
|38372|Inf|Cri|2006-01-25|tcnative-1.dll response overflow corruption, parti|
|38427|Inf|Nor|2006-01-27|ServletContextListener Notified Multiple Times Whe|
|38483|Inf|Nor|2006-02-01|access log valve uses simpledateformat in tread-un|
|38484|New|Min|2006-02-01|webapps Admin: Invalid path /login was requested  |