svn commit: r406308 - in /tomcat/connectors/trunk/jk/native: apache-1.3/Makefile.apxs.in apache-1.3/Makefile.in apache-2.0/Makefile.apxs.in apache-2.0/Makefile.in common/Makefile.in jni/Makefile.in

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 03:47:47 2006
New Revision: 406308

URL: http://svn.apache.org/viewcvs?rev=406308&view=rev
Log:
Add missing suffixes to "make clean" and
make it work the same way in all relevant dirs.

Modified:
tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.apxs.in
tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.in
tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.apxs.in
tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.in
tomcat/connectors/trunk/jk/native/common/Makefile.in
tomcat/connectors/trunk/jk/native/jni/Makefile.in

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.apxs.in
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.apxs.in?rev=406308&r1=406307&r2=406308&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.apxs.in (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.apxs.in Sun May 14 
03:47:47 2006
@@ -21,4 +21,5 @@
$(APXS) -c -o $@ -Wc,"${APXSCFLAGS} ${JK_INCL}" ${JAVA_INCL} 
"${APXSLDFLAGS}" mod_jk.c ${APACHE_OBJECTS} 
 
 clean:
-   rm *.o *.so
+   rm -f *.o *.lo *.a *.la *.so *.so.* *.slo
+   rm -rf .libs

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.in
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.in?rev=406308&r1=406307&r2=406308&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.in (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/Makefile.in Sun May 14 
03:47:47 2006
@@ -73,8 +73,8 @@
 # Clean part.
 #
 clean:
-   rm -rf *.lo *.la *.a
-   rm -rf *.o .libs *.so
+   rm -f *.o *.lo *.a *.la *.so *.so.* *.slo
+   rm -rf .libs
 
 #
 # Compile part.

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.apxs.in
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.apxs.in?rev=406308&r1=406307&r2=406308&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.apxs.in (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.apxs.in Sun May 14 
03:47:47 2006
@@ -24,5 +24,5 @@
$(APXS) -i mod_jk.la
  
 clean:
-   rm -f *.o *.so *.lo *.la *.slo
+   rm -f *.o *.lo *.a *.la *.so *.so.* *.slo
rm -rf .libs

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.in
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.in?rev=406308&r1=406307&r2=406308&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.in (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/Makefile.in Sun May 14 
03:47:47 2006
@@ -77,5 +77,5 @@
@echo ""
 
 clean:
-   rm -f *.o *.so *.lo *.la *.slo *.a
+   rm -f *.o *.lo *.a *.la *.so *.so.* *.slo
rm -rf .libs

Modified: tomcat/connectors/trunk/jk/native/common/Makefile.in
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/Makefile.in?rev=406308&r1=406307&r2=406308&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/Makefile.in (original)
+++ tomcat/connectors/trunk/jk/native/common/Makefile.in Sun May 14 03:47:47 
2006
@@ -28,4 +28,5 @@
 install:
 
 clean:
-   rm -f *.o *.slo *.lo
+   rm -f *.o *.lo *.a *.la *.so *.so.* *.slo
+   rm -rf .libs

Modified: tomcat/connectors/trunk/jk/native/jni/Makefile.in
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/jni/Makefile.in?rev=406308&r1=406307&r2=406308&view=diff
==
--- tomcat/connectors/trunk/jk/native/jni/Makefile.in (original)
+++ tomcat/connectors/trunk/jk/native/jni/Makefile.in Sun May 14 03:47:47 2006
@@ -26,4 +26,5 @@
 install:
 
 clean:
-   rm -f *.o *.slo *.lo *.so *.la .libs/*
+   rm -f *.o *.lo *.a *.la *.so *.so.* *.slo
+   rm -rf .libs



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



DO NOT REPLY [Bug 39577] New: - JSPs in subdirectories can't access classes

2006-05-14 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=39577

   Summary: JSPs in subdirectories can't access classes
   Product: Tomcat 5
   Version: 5.5.17
  Platform: PC
   URL: http://www.mslinn.com/includes/test.jsp
OS/Version: Linux
Status: NEW
  Severity: major
  Priority: P3
 Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


JSPs in subdirectories can't access classes in WEB-INF/classes or WEB-INF/lib. 
For example, if webapps/ROOT/x.jsp contains:
<% com.mslinn.util.Test test = new com.mslinn.util.Test(); %>
<%=test.test()%>
and Test is very short:
package com.mslinn.util; 
public class Test {
   public Test() {}
   public String test() { return "Ya varmint!";}
}
Then the JSP will compile and run properly.  If, however, the JSP is moved to
/webapps/ROOT/blah/x.jsp then errors result:
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from
fulfilling this request.

exception

org.apache.jasper.JasperException: Exception in JSP: /x.jsp:2

1: <% com.mslinn.util.Test test = new com.mslinn.util.Test(); %>
2: <%=test.test()%>


Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.ServletException: com.mslinn.util.Test.test()Ljava/lang/String;

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.x_jsp._jspService(x_jsp.java:51)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoSuchMethodError: com.mslinn.util.Test.test()Ljava/lang/String;
org.apache.jsp.x_jsp._jspService(x_jsp.java:44)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

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

-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 11:51 ---
This works for me (with a default configuration).

Please make sure, that 

- your compiled class com.mslinn.util.Test is up to date, so that it really
includes a method with the signature 
   com.mslinn.util.Test.test()Ljava/lang/String;
Note that the class could be found, but there was no method with the right
signature in there: java.lang.NoSuchMethodError.

- you called the right URL: your excepton stack indicates, that tomcat didn't
call /blah/x.jsp instead it called /x.jsp. So maybe the log entry does not
belong to the observed error. Try again with a clean setup.

- you don't have a context "blah" defined somewhere

- you inspect the Java source file jasper produced for /blah/x.jsp.
The file is located in
$CATALINA_BASE/work///_/org/apache/jsp/blah/x_jsp.java

If you want to reopen the issue, please attach a self-contained war file.

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

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 08:15:36 2006
New Revision: 406355

URL: http://svn.apache.org/viewcvs?rev=406355&view=rev
Log:
Remove duplicate '\n' from request log.
Line endings had been moved into the logger
in an earliert release.

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

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?rev=406355&r1=406354&r2=406355&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun May 14 08:15:36 
2006
@@ -1306,9 +1306,6 @@
 }
 }
 
-s = "\n";
-parse_request_log_item(p, (request_log_format_item *) ap_push_array(a),
-   &s);
 return a;
 }
 

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=406355&r1=406354&r2=406355&view=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 May 14 08:15:36 
2006
@@ -1327,9 +1327,6 @@
 }
 }
 
-s = "\n";
-parse_request_log_item(p, (request_log_format_item *) apr_array_push(a),
-   &s);
 return a;
 }
 



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



svn commit: r406360 - in /tomcat/connectors/trunk/jk/native/common: jk_logger.h jk_util.c

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 08:27:20 2006
New Revision: 406360

URL: http://svn.apache.org/viewcvs?rev=406360&view=rev
Log:
A couple of logging improvements:
- need to flush after each line.
  Streams are buffered and the log files get
  corrupt otherwise. This can be easily observed in reality.
- Remove seperate write of '\n', because under load this
  leads to corrupt log lines. Move the '\n' to jk_log.
- Log PID for each log level apart from REQUEST.
  This helps a lot in correlating lines from different logs.
  Not really a performance problem.
- Rename constant for WARNING verb, so that it's easier
  in the code to check for the correct length.
- Use return value of strftime() directly.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_logger.h
tomcat/connectors/trunk/jk/native/common/jk_util.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_logger.h
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/jk_logger.h?rev=406360&r1=406359&r2=406360&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_logger.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_logger.h Sun May 14 08:27:20 
2006
@@ -62,7 +62,7 @@
 #define JK_LOG_TRACE_VERB   "trace"
 #define JK_LOG_DEBUG_VERB   "debug"
 #define JK_LOG_INFO_VERB"info"
-#define JK_LOG_WARNING_VERB "warn"
+#define JK_LOG_WARN_VERB"warn"
 #define JK_LOG_ERROR_VERB   "error"
 #define JK_LOG_EMERG_VERB   "emerg"
 

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=406360&r1=406359&r2=406360&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Sun May 14 08:27:20 2006
@@ -114,11 +114,12 @@
 extern long _ftol2(double dblSource) { return _ftol(dblSource); }
 #endif
 
-static const char *jk_level_werbs[] = {
+/* All entries need to have fixed length 8 chars! */
+static const char *jk_level_verbs[] = {
 "[" JK_LOG_TRACE_VERB "] ",
 "[" JK_LOG_DEBUG_VERB "] ",
-"[" JK_LOG_INFO_VERB  "]  ",
-"[" JK_LOG_WARNING_VERB  "]  ",
+"[" JK_LOG_INFO_VERB "]  ",
+"[" JK_LOG_WARN_VERB "]  ",
 "[" JK_LOG_ERROR_VERB "] ",
 "[" JK_LOG_EMERG_VERB "] ",
 NULL
@@ -126,7 +127,7 @@
 
 const char *jk_log_fmt = JK_TIME_FORMAT;
 
-static void set_time_str(char *str, int len)
+static size_t set_time_str(char *str, int len)
 {
 time_t t = time(NULL);
 struct tm *tms;
@@ -184,10 +185,8 @@
 if (sz) {
 file_logger_t *p = l->logger_private;
 fwrite(what, 1, sz, p->logfile);
-fputc('\n', p->logfile);
 /* [V] Flush the dam' thing! */
-if (l->level < JK_LOG_INFO_LEVEL)
-fflush(p->logfile);
+fflush(p->logfile);
 }
 
 return JK_TRUE;
@@ -210,7 +209,7 @@
 return JK_LOG_INFO_LEVEL;
 }
 
-if (0 == strcasecmp(level, JK_LOG_WARNING_VERB)) {
+if (0 == strcasecmp(level, JK_LOG_WARN_VERB)) {
 return JK_LOG_WARNING_LEVEL;
 }
 
@@ -278,6 +277,8 @@
const char *fmt, ...)
 {
 int rc = 0;
+/* Need to reserve space for newline and terminating zero byte. */
+static size_t usable_size = HUGE_BUFFER_SIZE-2;
 if (!l || !file || !fmt) {
 return -1;
 }
@@ -306,51 +307,61 @@
 if (NULL == buf)
 return -1;
 #endif
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+used = set_time_str(buf, usable_size);
 
-/* Log [pid:threadid] for debug and trace levels */
-if (l->level < JK_LOG_INFO_LEVEL) {
+if (line) {
+/* Log [pid:threadid] for all levels except REQUEST. */
+/* This information helps to correlate lines from different logs. 
*/
+/* Performance is no issue, because with production log levels */
+/* we only call it often, if we have a lot of errors */
 #ifdef USE_SPRINTF  /* until we get a snprintf function */
-used += sprintf(&buf[used], "[%04d:%04d] ", getpid(),
+rc = sprintf(&buf[used], "[%04d:%04d] ", getpid(),
 jk_gettid());
 #else
-used += snprintf(&buf[used], HUGE_BUFFER_SIZE - used,
+rc = snprintf(&buf[used], usable_size - used,
  "[%04d:%04d] ", getpid(), jk_gettid());
 #endif
-if (used < 0) {
+used += rc;
+if (rc < 0 || usable_size - used < 8) {
 return 0;
 }
-}
-if (line) {
-strcat(buf, jk_level_werbs[level]);
+strcat(buf, jk_level_verbs[level]);
 used += 8;
 
 if (funcname) {
-strcat(buf, funcname);
-  

DO NOT REPLY [Bug 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |




--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:40 ---
My sample code with 'blah' in it were intended to be generic; the example was
concrete using the 'includes' directory.  Apologies for the confusion.  (I wrote
the bug report at 4am after a long struggle.)

I know that the method signature is correct because test.jsp works when in the
root directory, but not in a subdirectory, as previously stated.

I am not using a war file.  I will upload the files in question.

The configuration includes several CATALINA_BASE instances; this bug pertains to
CATALINA_BASE=/var/home/www/mslinn.com/www/production, using Engine=msp.  I see
test_jsp.java in two subdirectories, corresponding to the two subdirectories
that I have tried to load from:
/var/home/www/mslinn.com/www/production/work/msp/www.mslinn.com/_/org/apache/jsp/test_jsp.java
/var/home/www/mslinn.com/www/production/work/msp/www.mslinn.com/includes/org/apache/jsp/test_jsp.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]



DO NOT REPLY [Bug 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:41 ---
Created an attachment (id=18271)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18271&action=view)
Demonstrates JSP problem

This file works when in webapps/ROOT/, but not when in
webapps/ROOT/someOtherDirectory.

-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #18271|application/octet-stream|text/html
  mime type||




-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:43 ---
(From update of attachment 18271)
<% com.mslinn.util.Test test = new com.mslinn.util.Test(); %>
<%=test.test()%>


-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #18271|Demonstrates JSP problem|struggling with posting this
description||file




-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #18271|struggling with posting this|ignore this file
description|file|




-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:45 ---
Created an attachment (id=18272)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18272&action=view)
Demonstrates JSP problem

<% com.mslinn.util.Test test = new com.mslinn.util.Test(); %>
<%=test.test()%>

-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:49 ---
Created an attachment (id=18273)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18273&action=view)
Generated source for
/var/home/www/mslinn.com/www/production/work/msp/www.mslinn.com/_/org/apache/jsp/test_jsp.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]



DO NOT REPLY [Bug 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #18271|0   |1
is obsolete||




-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:52 ---
(From update of attachment 18273)
This file is not created when test.jsp is placed in a subdirectory


-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:53 ---
Created an attachment (id=18274)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18274&action=view)
custom server.xml


-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 15:55 ---
Created an attachment (id=18275)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18275&action=view)
Class demonstrating problem

When referencing a class that did not have a method which returned a String,
the problem did not manifest.  This attachment does have a method returning a
String.

-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #18274|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 16:07 ---
Created an attachment (id=18276)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18276&action=view)
custom server.xml


-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 16:09 ---
(From update of attachment 18276)
I wonder if the Host appBase="webapps/ROOT" is a problem.  Note that the
Context docBase is ""


-- 
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 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577





--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 16:17 ---
Discovered the problem, and a workaround.

In server.xml, I had Host appBase="webapps/ROOT" and Context docBase="".  When I
changed the two attributes back to their default values the problem went away.
(appBase="webapps" and docBase="ROOT")

I used the nonstandard values because in another webapp I have three contexts:
 1) webapps/ROOT
 2) webapps/secondContext
 3) webapps/thirdContext

Tomcat 5.5.17 did not like the above, and generated an error message.  I'll post
a separate bug on this issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r406365 - in /tomcat/connectors/trunk/jk: native/apache-1.3/mod_jk.c native/common/jk_logger.h xdocs/config/apache.xml xdocs/howto/apache.xml

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 09:25:14 2006
New Revision: 406365

URL: http://svn.apache.org/viewcvs?rev=406365&view=rev
Log:
Implement piped logging for Apache 1.3 mod_jk.
Implementation borrowed from Apache 2.0.
Apache 2.0 could already do this since mod_jk 1.2.3.

Modified:
tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
tomcat/connectors/trunk/jk/native/common/jk_logger.h
tomcat/connectors/trunk/jk/xdocs/config/apache.xml
tomcat/connectors/trunk/jk/xdocs/howto/apache.xml

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?rev=406365&r1=406364&r2=406365&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun May 14 09:25:14 
2006
@@ -82,6 +82,14 @@
 extern module dir_module;
 #endif
 
+static int xfer_flags = (O_WRONLY | O_APPEND | O_CREAT);
+#if defined(OS2) || defined(WIN32) || defined(NETWARE)
+/* OS/2 dosen't support users and groups */
+static mode_t xfer_mode = (S_IREAD | S_IWRITE);
+#else
+static mode_t xfer_mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+#endif
+
 /*
  * Configuration object for the mod_jk module.
  */
@@ -92,6 +100,7 @@
  * Log stuff
  */
 char *log_file;
+int log_fd;
 int log_level;
 jk_logger_t *log;
 
@@ -880,17 +889,7 @@
   &jk_module);
 
 /* we need an absolut path */
-conf->log_file = ap_server_root_relative(cmd->pool, log_file);
-
-#ifdef CHROOTED_APACHE
-ap_server_strip_chroot(conf->log_file, 0);
-#endif
-
-if (conf->log_file == log_file)
-conf->log_file = ap_pstrdup(cmd->pool, log_file);
-
-if (conf->log_file == NULL)
-return "JkLogFile file_name invalid";
+conf->log_file = log_file;
 
 return NULL;
 }
@@ -1874,6 +1873,7 @@
 c->worker_file = NULL;
 c->mount_file = NULL;
 c->log_file = NULL;
+c->log_fd = -1;
 c->log_level = -1;
 c->log = NULL;
 c->alias_dir = NULL;
@@ -1977,12 +1977,6 @@
 ap_overlay_tables(p, overrides->envvars, base->envvars);
 }
 
-if (overrides->log_file && overrides->log_level >= 0) {
-if (!jk_open_file_logger
-(&(overrides->log), overrides->log_file, overrides->log_level)) {
-overrides->log = NULL;
-}
-}
 if (!uri_worker_map_alloc
 (&(overrides->uw_map), overrides->uri_to_context, overrides->log)) {
 jk_error_exit(APLOG_MARK, APLOG_EMERG, overrides->s, p,
@@ -1995,28 +1989,93 @@
 return overrides;
 }
 
-static void jk_init(server_rec * s, ap_pool * p)
+static int JK_METHOD jk_log_to_file(jk_logger_t *l,
+int level, const char *what)
 {
-int rc;
+if (l &&
+(l->level <= level || level == JK_LOG_REQUEST_LEVEL) && 
+ l->logger_private && what) {
+file_logger_t *flp = l->logger_private;
+int log_fd = flp->log_fd;
+size_t sz = strlen(what);
+if (log_fd >= 0 && sz) {
+if ( write(log_fd, what, sz) < 0 )
+{
+ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO,
+ NULL,
+ "mod_jk: jk_log_to_file %s failed",
+ what);
+}
+}
+
+return JK_TRUE;
+}
+
+return JK_FALSE;
+}
+
+static void open_jk_log(server_rec *s, pool *p)
+{
+jk_logger_t *jkl;
+file_logger_t *flp;
 jk_server_conf_t *conf =
 (jk_server_conf_t *) ap_get_module_config(s->module_config,
   &jk_module);
-jk_map_t *init_map = conf->worker_properties;
 
-/* Open up log file */
-if (conf->log_file && conf->log_level >= 0) {
-if (!jk_open_file_logger
-(&(conf->log), conf->log_file, conf->log_level)) {
-#ifdef CHROOTED_APACHE
-conf->log = main_log;
-#else
-conf->log = NULL;
-#endif
+if (!conf->log_file || conf->log_fd >= 0)
+return;   /* virtual log shared w/main server */
+
+if (*conf->log_file == '|') {
+piped_log *pl;
+
+pl = ap_open_piped_log(p, conf->log_file + 1);
+if (pl == NULL) {
+ap_log_error(APLOG_MARK, APLOG_ERR, s,
+ "mod_jk: could not open reliable pipe "
+ "to jk log %s", conf->log_file + 1);
+exit(1);
+}
+conf->log_fd = ap_piped_log_write_fd(pl);
+}
+else if (*conf->log_file != '\0') {
+char *log_file = ap_server_root_relative(p, conf->log_file);
+if ((conf->log_fd = ap_popenf_ex(p, log_file, xfer_flags, xfer_mode, 
1))
+ < 0) {
+ap_log_error(APLOG_MARK, APLOG_ERR, s,
+ "mod_jk: could not open JkLog " "f

svn commit: r406380 - in /tomcat/connectors/trunk/jk/native: common/jk_global.h common/jk_global.h.in common/jk_lb_worker.c common/jk_md5.c common/jk_md5.h common/jk_shm.h common/jk_status.c common/po

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 10:16:50 2006
New Revision: 406380

URL: http://svn.apache.org/viewcvs?rev=406380&view=rev
Log:
Use autoconf in a consistent way to detect
32-bit and 64-bit integer types.
Borrowed from APR.
Detect types and printf formats in configure,
and add information to common/jk_global.h.
Use this in common/jk_md5.[ch], common/jk_status.c
common/jk_shm.h and common/jk_lb_worker.c.

Added:
tomcat/connectors/trunk/jk/native/common/jk_global.h.in
  - copied, changed from r406377, 
tomcat/connectors/trunk/jk/native/common/jk_global.h
Removed:
tomcat/connectors/trunk/jk/native/common/jk_global.h
Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/native/common/jk_md5.c
tomcat/connectors/trunk/jk/native/common/jk_md5.h
tomcat/connectors/trunk/jk/native/common/jk_shm.h
tomcat/connectors/trunk/jk/native/common/jk_status.c
tomcat/connectors/trunk/jk/native/common/portable.h.sample
tomcat/connectors/trunk/jk/native/configure.in

Copied: tomcat/connectors/trunk/jk/native/common/jk_global.h.in (from r406377, 
tomcat/connectors/trunk/jk/native/common/jk_global.h)
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/jk_global.h.in?p2=tomcat/connectors/trunk/jk/native/common/jk_global.h.in&p1=tomcat/connectors/trunk/jk/native/common/jk_global.h&r1=406377&r2=406380&rev=406380&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_global.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_global.h.in Sun May 14 10:16:50 
2006
@@ -24,6 +24,12 @@
 #ifndef JK_GLOBAL_H
 #define JK_GLOBAL_H
 
+/* GENERATED FILE WARNING!  DO NOT EDIT jk_global.h
+ *
+ * You must modify jk_global.h.in instead.
+ *
+ */
+
 #ifndef NETWARE
 #if !defined(WIN32) && !defined(AS400)
 #include "portable.h"
@@ -242,6 +248,57 @@
 
 #endif  /* APR_CHARSET_EBCDIC */
 
+/* jk_uint32_t defines a four byte word */
+#if defined (WIN32)
+typedef UINT32 jk_uint32_t;
+#define JK_INT32_T_FMT "I32d"
+#define JK_UINT32_T_FMT "I32u"
+#define JK_UINT32_T_HEX_FMT "I32x"
+#elif defined(NETWARE) && !defined(__NOVELL_LIBC__)
+typedef unsigned int jk_uint32_t;
+#else
+typedef unsigned @int32_value@ jk_uint32_t;
+
+/* And JK_INT32_T_FMT */
[EMAIL PROTECTED]@
+
+/* And JK_UINT32_T_FMT */
[EMAIL PROTECTED]@
+
+/* And JK_UINT32_T_HEX_FMT */
[EMAIL PROTECTED]@
+#endif
+#define JK_INT32_T_FMT_LEN  (sizeof(JK_INT32_T_FMT) - 1)
+#define JK_UINT32_T_FMT_LEN  (sizeof(JK_UINT32_T_FMT) - 1)
+#define JK_UINT32_T_HEX_FMT_LEN  (sizeof(JK_UINT32_T_HEX_FMT) - 1)
+
+/* jk_uint64_t defines a four byte word */
+#if defined (WIN32)
+typedef UINT64 jk_uint64_t;
+#define JK_INT64_T_FMT "I64d"
+#define JK_UINT64_T_FMT "I64u"
+#define JK_UINT64_T_HEX_FMT "I64x"
+#elif defined(AS400)
+typedef unsigned long long jk_uint64_t;
+#define JK_INT64_T_FMT "lld"
+#define JK_UINT64_T_FMT "llu"
+#define JK_UINT64_T_HEX_FMT "llx"
+#else
+typedef unsigned @int64_value@ jk_uint64_t;
+
+/* And JK_INT64_T_FMT */
[EMAIL PROTECTED]@
+
+/* And JK_UINT64_T_FMT */
[EMAIL PROTECTED]@
+
+/* And JK_UINT64_T_HEX_FMT */
[EMAIL PROTECTED]@
+#endif
+#define JK_INT64_T_FMT_LEN  (sizeof(JK_INT64_T_FMT) - 1)
+#define JK_UINT64_T_FMT_LEN  (sizeof(JK_UINT64_T_FMT) - 1)
+#define JK_UINT64_T_HEX_FMT_LEN  (sizeof(JK_UINT64_T_HEX_FMT) - 1)
+
 #ifdef WIN32
 /* For WIN32, emulate gettimeofday() using _ftime() */
 #define gettimeofday(tv,tz) { struct _timeb tb; _ftime(&tb); (tv)->tv_sec = 
tb.time; (tv)->tv_usec = tb.millitm * 1000; }
@@ -253,15 +310,6 @@
 #define snprintf _snprintf
 #define vsnprintf _vsnprintf
 #endif
-typedef unsigned __int64 jk_u64_t;
-#elif defined(HAVE_LONG_LONG64) || defined(AS400)
-typedef unsigned long long jk_u64_t;
-#elif defined(HAVE_LONGLONG64)
-typedef unsigned longlong jk_u64_t;
-#elif defined(HAVE_LONG64)
-typedef unsigned long jk_u64_t;
-#else
-typedef unsigned int jk_u64_t; /* HAVE_INT64 ! */
 #endif
 
 /* Use apr snprintf() and vsnprintf() when needed */

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=406380&r1=406379&r2=406380&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sun May 14 10:16:50 
2006
@@ -221,8 +221,8 @@
 {
 unsigned int i;
 int total_factor = 0;
-jk_u64_t mytraffic = 0;
-jk_u64_t curmin = 0;
+jk_uint64_t mytraffic = 0;
+jk_uint64_t curmin = 0;
 int bfn = 1;
 int bfd = 1;
 
@@ -329,8 +329,8 @@
  jk_logger_t *l)
 {
 unsigned int i;
-jk_u64_t mytraffic = 0;
-jk_u64_t curmin = 0;
+jk_uint64_t mytraffic = 0;
+jk_uint64_t curmin = 0;
 worker_record_t *c

DO NOT REPLY [Bug 39577] - JSPs in subdirectories can't access classes

2006-05-14 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=39577


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-05-14 17:25 ---
(In reply to comment #12)
> Tomcat 5.5.17 did not like the above, and generated an error message.  I'll 
> post
> a separate bug on this issue.

Cool, so this bug is invalid since it is caused by the setup that Tomcat doesn't
like (most likely the file abstraction doesn't get set up properly, or Tomcat
ignores your docBase since it's inside appBase). Most likely this is not
something that will get fixed.

Thanks for not flooding, BTW.


-- 
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: r406411 - in /tomcat/connectors/trunk/jk/native/common: jk_lb_worker.c jk_lb_worker.h jk_shm.h jk_status.c

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 13:08:24 2006
New Revision: 406411

URL: http://svn.apache.org/viewcvs?rev=406411&view=rev
Log:
Rework load balancer:
- add a global maintenance method, that is
  cyclically called in only one process.
- Only check for recovery during global maintenance
- Use lb_value for all strategies, change to 64-bit
- Decay lb_value during global maintenance
  for Request and Traffic strategies
- Use lb_mult to reflect balancing factors
- Add lb_mult to status worker
- Make all strategies use the same function find_best_byvalue()
- Set lb_value to max, when a worker recovers or
  is being started/enabled in the status worker
- Improve locking

Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h
tomcat/connectors/trunk/jk/native/common/jk_shm.h
tomcat/connectors/trunk/jk/native/common/jk_status.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=406411&r1=406410&r2=406411&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sun May 14 13:08:24 
2006
@@ -51,6 +51,73 @@
 typedef struct lb_endpoint lb_endpoint_t;
 
 
+/* Calculate the greatest common divisor of two positive integers */
+static int gcd(int a, int b)
+{
+int r;
+if (b > a) {
+r = a;
+a = b;
+b = r;
+}
+while (b > 0) {
+r = a % b;
+a = b;
+b = r;
+}
+return a;
+}
+
+/* Calculate the smallest common multiple of two positive integers */
+static jk_uint64_t scm(jk_uint64_t a, jk_uint64_t b)
+{
+return a*b/gcd(a,b);
+}
+
+/* Update the load multipliers wrt. lb_factor */
+void update_mult(lb_worker_t *p, jk_logger_t *l)
+{
+int i = 0;
+jk_uint64_t s = 1;
+JK_TRACE_ENTER(l);
+for (i = 0; i < p->num_of_workers; i++) {
+s = scm(s, p->lb_workers[i].s->lb_factor);
+}
+for (i = 0; i < p->num_of_workers; i++) {
+p->lb_workers[i].s->lb_mult = s / p->lb_workers[i].s->lb_factor;
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "worker %s gets multiplicity %"
+   JK_UINT64_T_FMT,
+   p->lb_workers[i].s->name,
+   p->lb_workers[i].s->lb_mult);
+}
+JK_TRACE_EXIT(l);
+}
+
+/* Get the correct lb_value when recovering/starting/enabling a worker */
+/* This function needs to be externally synchronized! */
+jk_uint64_t restart_value(lb_worker_t *p, jk_logger_t *l)
+{
+int i = 0;
+jk_uint64_t curmax = 0;
+JK_TRACE_ENTER(l);
+if (p->lbmethod != JK_LB_BYBUSYNESS) {
+for (i = 0; i < p->num_of_workers; i++) {
+if (p->lb_workers[i].s->lb_value > curmax) {
+curmax = p->lb_workers[i].s->lb_value;
+}
+}
+}
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "restarting worker with lb_value %"
+   JK_UINT64_T_FMT,
+   curmax);
+JK_TRACE_EXIT(l);
+return curmax;
+}
+
 /* Retrieve the parameter with the given name*/
 static char *get_path_param(jk_ws_service_t *s, const char *name)
 {
@@ -159,42 +226,116 @@
 }
 }
 
-static int JK_METHOD maintain_workers(jk_worker_t *p, jk_logger_t *l)
+/* If the worker is in error state run
+ * retry on that worker. It will be marked as
+ * operational if the retry timeout is elapsed.
+ * The worker might still be unusable, but we try
+ * anyway.
+ */
+static void recover_workers(lb_worker_t *p,
+jk_uint64_t curmax,
+jk_logger_t *l)
 {
-unsigned int i = 0;
-lb_worker_t *lb = (lb_worker_t *)p->worker_private;
-for (i = 0; i < lb->num_of_workers; i++) {
-if (lb->lb_workers[i].w->maintain) {
-lb->lb_workers[i].w->maintain(lb->lb_workers[i].w, l);
+int i;
+time_t now = time(NULL);
+int elapsed;
+worker_record_t *w = NULL;
+JK_TRACE_ENTER(l);
+
+for (i = 0; i < p->num_of_workers; i++) {
+w = &p->lb_workers[i];
+if (JK_WORKER_IN_ERROR(w->s)) {
+elapsed = (int)difftime(now, w->s->error_time);
+if (elapsed <= p->s->recover_wait_time) {
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "worker %s will recover in %d seconds",
+   w->s->name, p->s->recover_wait_time - elapsed);
+}
+else {
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "worker %s is marked for recovery",
+   w->s->name);
+w->s->lb_value = curmax;
+w->s

svn commit: r406423 - /tomcat/connectors/trunk/jk/native/TODO

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 13:42:42 2006
New Revision: 406423

URL: http://svn.apache.org/viewcvs?rev=406423&view=rev
Log:
Adding a list of further TODOs and ideas.

Added:
tomcat/connectors/trunk/jk/native/TODO

Added: tomcat/connectors/trunk/jk/native/TODO
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/TODO?rev=406423&view=auto
==
--- tomcat/connectors/trunk/jk/native/TODO (added)
+++ tomcat/connectors/trunk/jk/native/TODO Sun May 14 13:42:42 2006
@@ -0,0 +1,230 @@
+TODO for tomcat-connectors
+
+$Id$
+
+1) Counter types in shm
+===
+
+Why are elected and errors of type size_t?
+
+/* Number of times the worker was elected */
+volatile size_t  elected;
+/* Number of non 200 responses */
+volatile size_t  errors;
+
+Shouldn't they be jk_uint64_t?
+
+2) Implement "distance"
+===
+
+Add a new attribut "distance" to balanced workers.
+Without session Id or stickyness the lb worker will
+choose between al usable workers of the smallest distance.
+
+3) Reduce number of string comparisons in most_suitable
+
+
+a) redirect/domains
+
+It would be easy to improve the redirect string b an integer, giving the
+index of the worker in the lb. Then lb would not need to search for the 
redirect worker.
+
+The same way, one could add a list with indizes to workers in the same domain.
+Whenever domain names are managed (init and status worker update) one would
+scan the worker list and update the index list.
+
+Finally one could have a list of workers, whose domain is the same as the 
redirect
+attribute of the worker, because that's also something we consider.
+
+What I'm not sure about, even in the existing code, is the locking between 
updates
+by the status worker and the process local information about the workers,
+especially in the case, when status updates a redirect or domain attribute.
+
+I would like to keep these attributes and the new index arrays process local,
+and the processes should find out about changes made by status to shm 
(redirect/domain)
+and then rebuild their data. No need to get these on every request from the 
shm,
+only the check for up-to-date should be made.
+
+b) exact matches for jvmRoutes
+
+Could we use hashes instead of string comparisons all the time?
+I'm not sure, if a good enough hash takes longer than a string comparison 
though.
+
+4) Optimization of JK_WORKER_USABLE
+
+
+We use that one quite a lot. Since it is now a combination of four
+ANDs of negated values, we could also do
+
+#define JK_WORKER_USABLE(w)   (!((w)->in_error_state || ($w)->is_stopped || 
(w)->is_disabled || (w)->is_busy))
+
+I think it we should consider combining the flags into an additional
+is_usable (makes checks easier, but of course we would have to set it
+every time we change one of the four other flags). But in terms of
+performance that happens rarely.
+
+5) Code separation between factory, validate and init in lb
+
+
+The factory contains:
+
+private_data->worker.retries = JK_RETRIES;
+private_data->s->recover_wait_time = WAIT_BEFORE_RECOVER;
+
+I think, this should move to validate() or init().
+It might even be obsolete, because in init, we already have:
+
+pThis->retries = jk_get_worker_retries(props, p->s->name,
+p->s->retries = pThis->retries;
+p->s->recover_wait_time = jk_get_worker_recover_timeout(props, p->s->name, 
WAIT_BEFORE_RECOVER);
+if (p->s->recover_wait_time < WAIT_BEFORE_RECOVER)
+p->s->recover_wait_time = WAIT_BEFORE_RECOVER;
+
+Then: In validate there is
+
+p->lb_workers[i].s->error_time = 0;
+
+So shouldn't there also be
+
+p->lb_workers[i].s->maintain_time = time(NULL);
+
+6) Refactor Logging
+
+
+a) Use the same code files for the request logging functions in Apache 1.3 and 
2.0.
+
+b) Use the same code files for piped logging in Apache 1.3 and 2.0.
+
+7) ajpget
+==
+
+Combine ajplib and Apache ab to an ajp13 commandline client ajpget.
+
+8) Parsing workers.properties
+=
+
+Parsing of workers.properties aditionally to just looking up attributes
+would help users to detect syntax errors in the file. At the moment
+no information will be logged, e.g. when attributes contain typos.
+
+9) Persisting workers.properties
+=
+
+Make workers.properties persist from inside status worker.
+
+10) Reduce number of uses of time(NULL)
+===
+
+We use time(NULL) a lot. Since it only has resolution of a second,
+I'm asking myself, if we could update the actual time in only a few
+places and get time out of some variables when needed. The same does
+not hold true for millisecond time, but in seve

svn commit: r406453 - /tomcat/connectors/trunk/jk/native/TODO

2006-05-14 Thread rjung
Author: rjung
Date: Sun May 14 15:26:43 2006
New Revision: 406453

URL: http://svn.apache.org/viewcvs?rev=406453&view=rev
Log:
Update properties, hope I got it right...

Modified:
tomcat/connectors/trunk/jk/native/TODO   (props changed)

Propchange: tomcat/connectors/trunk/jk/native/TODO
--
svn:eol-style = native

Propchange: tomcat/connectors/trunk/jk/native/TODO
--
svn:keywords = Author Date Id Revision



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



Bug report for Tomcat 3 [2006/05/14]

2006-05-14 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  |
| |   |   |  |  |
| 2350|Ver|Nor|2001-06-27|ServletConfig.getInitParameter() requires url-patt|
| 2478|Opn|Cri|2001-07-06|Passing Session variables between JSP's and Servle|
| 4551|Opn|Nor|2001-10-31|Ctx( /tt01 ): IOException in: R( /tt01 + /com/abc/|
| 4980|New|Min|2001-11-20|Startup message indicates incorrect log file  |
| 4994|New|Nor|2001-11-21|Tomcat needs a mechanism for clean and certain shu|
| 5064|New|Cri|2001-11-25|Socket write error when include files is more than|
| 5108|New|Maj|2001-11-26|Docs for Tomcat 3.2.x appear to be for Tomcat 3.3 |
| 5137|New|Nor|2001-11-27|Null pointer in class loader after attempting to r|
| 5160|Unc|Maj|2001-11-28|'IllegalStateException'   |
| 5331|New|Nor|2001-12-09|getPathInfo vs URL normalization  |
| 5510|New|Blk|2001-12-19|How to call ejb deployed in JBoss from Tomcat serv|
| 5756|New|Nor|2002-01-08|jspc.bat exits with wrong ERRORLEVEL  |
| 5797|New|Nor|2002-01-10|UnCatched ? StringIndexOutOfBoundsException: Strin|
| 6027|New|Maj|2002-01-25|Tomcat  Automatically shuts down as service   |
| 6168|New|Blk|2002-02-01|IllegalStateException |
| 6451|New|Cri|2002-02-14|Stackoverflow |
| 6478|New|Enh|2002-02-14|Default Tomcat Encoding   |
| 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c|
| 6648|New|Nor|2002-02-25|jakarta-servletapi build with java 1.4 javadoc err|
| 6989|New|Maj|2002-03-08|Unable to read tld file during parallel JSP compil|
| 7013|New|Cri|2002-03-10|Entering a servlet path with non-ISO8859-1 charact|
| 7227|New|Nor|2002-03-19| directive don't work |
| 7626|New|Nor|2002-03-29|classloader not working properly  |
| 7652|New|Cri|2002-04-01|Tomcat stalls periodically|
| 7785|New|Blk|2002-04-06|tomcat bug in context reloading   |
| 7863|New|Maj|2002-04-09|I have a problem when running Tomcat with IIS |
| 8187|New|Cri|2002-04-17|Errors when Tomcat used with MS Access database   |
| 8239|New|Cri|2002-04-18|Resource temporary unavailable|
| 8263|New|Cri|2002-04-18|url-pattern easy to circumvent|
| 9250|New|Maj|2002-05-20|outOfMemoryError  |
| 9367|New|Maj|2002-05-23|HttpSessionBindingEvent not thrown for HttpSession|
| 9390|New|Nor|2002-05-24|jasper compilation error in tomcat|
| 9480|New|Nor|2002-05-29|Data connection pooling   |
| 9607|New|Maj|2002-06-04|precompile JSP|
| 9737|Ver|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p|
|10047|New|Cri|2002-06-20|IllegalStateException |
|10202|New|Maj|2002-06-25|Tomcat is not responding in time  |
|10357|Unc|Blk|2002-06-30|java.lang.IllegalArgumentException: Short Read|
|10406|New|Cri|2002-07-02|IllegalStateException |
|11087|New|Blk|2002-07-23|IllegalStateException |
|11286|New|Maj|2002-07-30|Tomcat threads not respond if increase JVM size   |
|11466|New|Nor|2002-08-05|ContextManager: SocketException reading request   |
|12156|New|Cri|2002-08-29|Apache and Tomcat 3.3.1 Interworking problem  |
|12194|New|Maj|2002-08-30|Tomcat does not send WWW-Authenticate header  |
|12852|New|Nor|2002-09-20|May be error in _jspService() -> out.flushBuffers(|
|14386|New|Maj|2002-11-08|Date headers corrupted using setDateHeader|
|15632|New|Nor|2002-12-23|Problem with the Tomcat Sessions Parameter on URL |
|16363|New|Cri|2003-01-23|Stack Overflow accessing compiled JSP - Tomcat 3.2|
|17915|New|Maj|2003-03-12|Jasper ignores manifest classpath |
|19114|New|Nor|2003-04-17|RequestDispatcherImpl does not set root cause exce|
|19143|New|Nor|2003-04-18|if TOMCAT_INSTALL differs from TOMCAT_HOME -sequri|
|20238|New|Maj|2003

Bug report for Tomcat 4 [2006/05/14]

2006-05-14 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  |
| |   |   |  |  |
| 3839|Opn|Enh|2001-09-26|Problem bookmarking login page|
| 4227|Opn|Enh|2001-10-17|Invalid CGI path  |
| 5329|New|Enh|2001-12-08|NT Service exits startup before Tomcat is finished|
| 5795|New|Enh|2002-01-10|Catalina Shutdown relies on localhost causing prob|
| 5829|New|Enh|2002-01-13|StandardManager needs to cope with sessions throwi|
| 5985|New|Enh|2002-01-23|Tomcat should perform a more restrictive validatio|
| 6600|Opn|Enh|2002-02-20|enodeURL adds 'jsession' when 'isRequestedSessionI|
| 6614|New|Enh|2002-02-21|Have Bootstrap and StandardClassLoader use the sam|
| 6671|New|Enh|2002-02-25|Simple custom tag example uses old declaration sty|
| 7043|New|Enh|2002-03-12|database user and password for JDBC Based Store   |
| 7374|New|Enh|2002-03-22|Apache Tomcat/4.0.1 message on standard output|
| 7676|New|Enh|2002-04-02|Allow name property to use match experssions in  without className in server.xml produces N|
|11069|Opn|Enh|2002-07-23|Tomcat not flag error if tld is outside of /WEB-IN|
|11129|New|Enh|2002-07-24|New valve for putting the sessionIDs in the reques|
|11248|New|Enh|2002-07-29|DefaultServlet doesn't send expires header|
|11754|Opn|Enh|2002-08-15|Synchronous shutdown script - shutdown.sh should w|
|12069|New|Enh|2002-08-27|Creation of more HttpSession objects for one previ|
|12658|New|Enh|2002-09-15|a proxy host and port at the  element level |
|12766|New|Enh|2002-09-18|Tomcat should use tld files in /WEB-INF/ over vers|
|13309|Opn|Enh|2002-10-04|Catalina calls System.exit()  |
|13634|New|Enh|2002-10-15|Allowing system properties to be substituted in co|
|13689|Opn|Enh|2002-10-16|Classloader paths for 'Common' classes and librari|
|13731|New|Enh|2002-10-17|Final request, response, session and other variabl|
|13941|New|Enh|2002-10-24|reload is VERY slow   |
|13965|New|Enh|2002-10-25|Catalina.sh correction request for Tru64 Unix |
|14097|New|Enh|2002-10-30|hardcoded registry value for vm lets tomcat servic|
|14416|New|Enh|2002-11-10|blank tag name in TLD cause NullPointerException  |
|14635|New|Enh|2002-11-18|Should be possible not to have -MM-DD in log f|
|14766|New|Enh|2002-11-22|Redirect Vavle|
|14993|New|Enh|2002-12-02|Possible obselete synchronized declaration|
|15115|New|Enh|2002-12-05|correct docs... XML parser *cannot* be overridden |
|15417|Opn|Enh|2002-12-16|Add port for forced compilation of JSP pages  |
|15688|New|Enh|2002-12-27|full-qualified names instead of imports   |
|15893|New|Enh|2003-01-08|Need a getPort() method on Connector or similar fu|
|15941|New|Enh|2003-01-10|Expose rootCause exceptions at deeper levels  |
|16294|New|Enh|2003-01-21|Configurable URL Decoding.|
|16357|New|Enh|2003-01-23|"connection timeout reached"  |
|16531|New|Enh|2003-01-29|Updating already deployed ".war" files in a single|
|16579|New|Enh|2003-01-30|documentation page layout/style breaks wrapping to|
|16596|New|Enh|2003-01-30|option for disabling log rotation |
|17070|New|Enh|2003-02-14|The Catalina Ant tasks do not allow for 'reusable'|
|17146|New|Enh|2003-02-18|Simplify build.xml using 

Bug report for Watchdog [2006/05/14]

2006-05-14 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  |
| |   |   |  |  |
|  278|Unc|Nor|2000-12-04|Bug in GetParameterValuesTestServlet.java file Bug|
|  279|Unc|Nor|2000-12-04|Logical Error in GetParameterValuesTestServlet Bug|
|  469|Unc|Nor|2001-01-17|in example-taglib.tld "urn" should be "uri" BugRat|
|  470|Unc|Nor|2001-01-17|FAIL positiveForward.jsp and positiveInclude.jsp B|
| 9634|New|Enh|2002-06-05|No tests exist for ServletContext.getResourcePaths|
|10703|New|Enh|2002-07-11|Need to test getRequestURI after RequestDispatcher|
|11336|New|Enh|2002-07-31|Test wrapped path methods with RD.foward()|
|11663|New|Maj|2002-08-13|JSP precompile tests rely on Jasper specific behav|
|11664|New|Maj|2002-08-13|A sweep is needed of all Watchdog 4.0 tag librarie|
|11665|New|Maj|2002-08-13|ServletToJSPErrorPageTest and ServletToServletErro|
|11666|New|Maj|2002-08-13|SetBufferSize_1TestServlet is invalid.|
|14004|New|Maj|2002-10-28|Incorrent behaviour of all attribute-related lifec|
|15504|New|Nor|2002-12-18|JSP positiveGetValues test relies on order preserv|
|24649|New|Nor|2003-11-12|getRemoteHost fails when agent has uppercase chara|
|29398|New|Nor|2004-06-04|Update site and note current status   |
+-+---+---+--+--+
| Total   15 bugs   |
+---+

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



Bug report for Tomcat 5 [2006/05/14]

2006-05-14 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  |
| |   |   |  |  |
|17310|Ver|Nor|2003-02-22|;jsessionid confuses StandardHostcan't find Co|
|19803|Ver|Maj|2003-05-09|manager reload fails and disables app - Incompatib|
|19958|Ver|Maj|2003-05-15|Problems reading ServletInputStream   |
|20268|Inf|Min|2003-05-27|Tomcat 5.0.2 takes 100% CPU   |
|21045|Ver|Nor|2003-06-24|Manager app does find resources   |
|21600|Ver|Nor|2003-07-15|'s lost after manager stop/start or rel|
|22679|Ver|Enh|2003-08-24|how to access ssl session ID out of tomcat to prev|
|22986|Ver|Nor|2003-09-08|Web apps with context XML file don't start if CATA|
|24413|Ver|Nor|2003-11-04|bundled JMX implementation not compliant to specif|
|24943|Ver|Nor|2003-11-24|Tomcat 5.0.14 / Windows 2000 Service does not star|
|25078|Ver|Nor|2003-11-29|Catalina Ant Serverinfo task always fails |
|27338|Ver|Maj|2004-03-01|Wrong mappings for JSP Documents (.jspx)  |
|28039|New|Enh|2004-03-30|Cluster Support for SingleSignOn  |
|28634|Ass|Enh|2004-04-27|Extend StandardManager/StandardSession for DeltaMa|
|28709|Ver|Nor|2004-04-30|javax.servlet.http.HttpServletRequest.isRequestedS|
|28875|Ver|Nor|2004-05-10|Multi-byte characters in default error page aren't|
|29091|Opn|Nor|2004-05-19|Non-ascii characters are not handled correctly... |
|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|
|29497|Unc|Nor|2004-06-10|Connection pool, redeployment |
|29521|Ver|Cri|2004-06-11|No destroy methods called on service shutdown |
|30155|Opn|Cri|2004-07-16|Problem with viewing mail session |
|30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c|
|30489|Opn|Cri|2004-08-05|removeAttribute: Session already invalidated  |
|30833|Ver|Nor|2004-08-24|request.getServerPort() returns wrong port (WAS: r|
|31339|Inf|Maj|2004-09-21|admin app throwing struts exceptions  |
|32180|New|Nor|2004-11-11|EL functions are executed in privileged context   |
|32280|Ver|Cri|2004-11-17|Problem clustering tomcat when a failed server is |
|32569|Ass|Nor|2004-12-07|ServletContextListener will not die   |
|32593|Inf|Maj|2004-12-09|Server (Apache 2.0.48) reached MaxClients setting |
|32754|Inf|Nor|2004-12-17|Can't modify thread configuration attributes of AJ|
|32832|Ver|Maj|2004-12-23|request.getSession(false) fails to return null.   |
|33180|Ver|Nor|2005-01-20|JSTL automatic type conversion gives unexpected re|
|33262|Inf|Nor|2005-01-27|Service Manager autostart should check for adminis|
|33356|Inf|Maj|2005-02-02|Incorrect parsing of tag attributes   |
|33407|Inf|Nor|2005-02-05|\$ is quoted even with el-ignored=true|
|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|
|33806|Opn|Min|2005-03-02|Session tracking using URL rewriting fails, if cli|
|33831|Ver|Nor|2005-03-03|RequestDispatcher.forward and resource missing|
|34006|Ver|Nor|2005-03-14|Undeploy of webapps with antiResourceLocking in ME|
|34016|Ver|Nor|2005-03-15|antiResourceLocking webapp fails to deploy on Tomc|
|34033|Ver|Nor|2005-03-16|Cannot delete users using Administration Tool weba|
|34076|Inf|Nor|2005-03-18|overriding content.xml docBase with manager webapp|
|34319|New|Nor|2005-04-06|StoreBase.processExpires() is very inefficient|
|34396|Inf|   |2005-04-11|security exception using datasource in|
|35635|New|Nor|2005-07-06|Tomcat service does not log startup error messages|
|35746|Inf|Nor|2005-07-14|session manager should be immune to system clock t|
|35765|New|Enh|2005-07-16|make the SSL cipher config in server.xml fail safe|
|35827|Inf|Blk|2005-07-22|Problem with POST forms with jk connector/IIS/Wind|
|35835|Inf

DO NOT REPLY [Bug 39581] New: - Maybe the Jasper translate jsp to wrong java code.

2006-05-14 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=39581

   Summary: Maybe the Jasper translate jsp to wrong java code.
   Product: Tomcat 5
   Version: 5.5.17
  Platform: PC
OS/Version: Windows 2000
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


1. In my first jsp, i write the the two lines code:




it works.

the translated code is:
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toStringcn.edu.zqu.SimpleBean)_jspx_page_context.findAttribute("simpleBean")).getUniversity(;



2. But, in my second jsp, i reuse the simpleBean:



the jsp dosen't work.


the translated code is:
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString(org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(_jspx_page_context.getAttribute("simpleBean",
PageContext.PAGE_SCOPE), "sex")));




*
exception

org.apache.jasper.JasperException: Attempted a bean operation on a null object.
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 

org.apache.jasper.JasperException: Attempted a bean operation on a null object.
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:601)
org.apache.jsp.studentInfo_jsp._jspService(studentInfo_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
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 39581] - Maybe the Jasper translate jsp to wrong java code.

2006-05-14 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=39581


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2006-05-15 03:28 ---
(In reply to comment #0)

> 2. But, in my second jsp, i reuse the simpleBean:
> 
> 
> 
> the jsp dosen't work.
> 
> 
> the translated code is:
>
out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString(org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(_jspx_page_context.getAttribute("simpleBean",
> PageContext.PAGE_SCOPE), "sex")));
> 

when i change to use el
${simpleBean.sex}
it's ok.


-- 
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 39581] - Maybe the Jasper translate jsp to wrong java code.

2006-05-14 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=39581





--- Additional Comments From [EMAIL PROTECTED]  2006-05-15 06:15 ---
> when i change to use el
> ${simpleBean.sex}
> it's ok.

Ok, so it looks like the EL translations are broken as well.  I'm leaving this 
open until the EL bug gets fixed, but the fix is the opposite of the one you 
are looking for :).




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