where i must to add new annotation

2008-01-09 Thread Andi Kusnadi
dear tomcat,

i see @ejb , @Resource for datasource injection , 
so i want to made my own annotation , like @XMLFasilitas to be 
1. read by jasper compiler and 
2. compiled accordingly, and doing some other task. 

, where i can find your code that read @ejb, and @resource ? 


Thank you very much ? 




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



Windows Server 2008 Application Compatability Lab Invitation

2008-01-09 Thread GarrettSerack

Howdy,

(William Rowe from the ASF suggested I post this to your dev@ list)

My name is Garrett Serack, and I am the Community Program Manager in the
Open 
Source Software Labs here at Microsoft.

I would like to extend an official invitation to the Apache Software
Foundation
to participate in the Microsoft Windows Server 2008 Compatibility Labs here 
in Redmond. The Compatibility lab is scheduled for

   Monday February 25 2008 through Wednesday JANUARY 28 2008.  

(the lab is actually booked thru Thurs the 29th, so an extra day is
possible)

WHAT IS IT?
---
The Windows Server 2008 Application Compatibility Lab is an event where we 
invite companies to bring their applications into our lab, and have the 
opportunity to perform compatibility testing with Windows Server 2008. In 
addition to gaining insight into Windows Server 2008, this also includes 
unprecedented access to various product groups (developers, architects and
PMs)
inside of Microsoft, who can lend their assistance, give technical
information
and answer design questions you may have.

Normally, we request companies send 3-4 attendees, and we usually have 3-4 
companies in the lab in a given week. Given the ASF's size and breadth,
we've 
reserved the entire lab for the week for the Apache Foundation, and we'd
like
to see somewhere in the range of 15-18 people from a wide variety of
projects 
attend. 


WHO SHOULD COME?

We would be very interested in having several people from the Tomcat, HTTPD
and 
Axis groups attend.  Other projects including APR, Apache C++ Standard
Library 
project, Harmony, and Maven.NET also come to mind.  Any project that is
impacted 
by the release of Windows 2008, or is looking to solve Windows-specific
project 
issues, may profit from this opportunity.

We are interested in having each project who deals with Microsoft Windows 
compatibility or portability to bring small contingent of 1 or 2 developers
to 
the table, so please chat within your own PMC or even your dev@ list first
to 
determine who is most interested in attending this camp on behalf of your 
project.  Space is constrained, and we'd like to ensure that specific
attention 
can be given to projects that need it.


WHAT'S THE COST?

The cost of the event itself is being handled by our team (the Open Source 
Software Lab), all you have to do is actually get here.  Some travel
assistance 
by Microsoft will be available (hotel/airfare), *if* your employer can't 
pick up such costs.  As my budget is limited, how much travel assistance we
can 
provide is linked to how many need to avail themselves of it.  If you don't 
need a subsidy, hotels can still be booked at MS's corp rate at most nearby, 
saving some money.


WHAT IS THE PROCESS?

To track interest, please register for this event in the subversion file

 
https://svn.apache.org/repos/private/committers/hackathons/port25-08/attending.txt

and send me an email with the following information:

   Full Name:
   Street Address:
   Phone Number:
   Email Address:
   ASF Projects Involved in:
   Travel Assistance Required: (full/part/none)
   Product Groups you wish to get access to:
   Any technical aspects you'd like to address:

INSIGHT
---
You might be interested in the "political" rational of why we value this
chance 
to meet some of the ASF developers and help them work through Windows 
compatibility issues. You can see Sam Ramji's blog entry about why we asked 
Mozilla out:

  http://port25.technet.com/archive/2006/09/20/Why-I-invited-Mozilla.aspx

Garrett Serack | Open Source Community Lead | Microsoft Corporation 
Office:(425)706-7939
email/messenger: [EMAIL PROTECTED]
blog: http://fearthecowboy.com 


-- 
View this message in context: 
http://www.nabble.com/Windows-Server-2008-Application-Compatability-Lab-Invitation-tp14715813p14715813.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



DO NOT REPLY [Bug 44192] New: - Problem with cookies and IE 6.0.3790

2008-01-09 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=44192

   Summary: Problem with cookies and IE 6.0.3790
   Product: Tomcat 6
   Version: 6.0.14
  Platform: PC
OS/Version: Windows Server 2003
Status: NEW
  Keywords: APIBug
  Severity: normal
  Priority: P2
 Component: Servlet & JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


Using IE6 I disable all kind of cookie. When IE6 make a request to Tomcat the
method HttpServletRequest.isRequestedSessionIdFromCookie() returns true, but
cookies is disable. I test this with Firefox and IE7 and works OK (return 
false).

I cleaned all the cookies before test this.

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

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



DO NOT REPLY [Bug 42347] - getParameter does not return parameter value when submitted as post method occassionally

2008-01-09 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=42347


[EMAIL PROTECTED] changed:

   What|Removed |Added

 OS/Version|other   |Windows XP
Version|5.0.0   |5.5.25




--- Additional Comments From [EMAIL PROTECTED]  2008-01-09 10:22 ---
(In reply to comment #3)
> This looks similar to bug 40860. The additional logging in 5.5.21 onwards may
> shed some light on this. Can you test with 5.5.25?
> Please provide the full source for AttributeConfigServlet or better yet a
> minimal Servlet with which you can re-produce the same issue.
> Could you also update this bug with OS info and whether or nor you are using 
the
> native connector.


Ok I ran under 5.5.25 was able to reproduce with a TestServlet as requested.
Also, as with bug 40860 request.getQueryString does show the id=66644 at 
failure

web.xml registrations

  
TestServlet

  com.aprisma.spectrum.app.web.servlet.TestServlet

  

  
TestServlet
/common/attrConfig/mytestpath
  

// TestServlet

package com.aprisma.spectrum.app.web.servlet;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class TestServlet extends HttpServlet
{
public void init( )
{
}

public void doPost( HttpServletRequest request,
   HttpServletResponse response )
throws ServletException, IOException
{
doGet( request, response ) ;
}

public void doGet( HttpServletRequest request,
   HttpServletResponse response )
throws ServletException, IOException
{

try
{
Object result = null ;
String servletPath = request.getServletPath () ;

if ( servletPath.endsWith ( "mytestpath" ) )
{
String paramValue = request.getParameter ( "id" ) ;
System.out.println( (new Date()).toString() + ": " +
Thread.currentThread().getName() + ": paramValue = " + paramValue );

// as if the if/else did some work...
Thread.currentThread().sleep( 100 );

if ( paramValue != null && paramValue.length () > 0 )
{
result = new ArrayList();
}
else
{
result = new HashMap();

System.out.println( "QueryString: " +
   request.getQueryString() );
new Exception().printStackTrace();
}
}
else
{
response.setStatus (
  HttpServletResponse.SC_BAD_REQUEST ) ;
}

response.setContentType ( "application/octet-stream" ) ;

ObjectOutputStream oos =
   new ObjectOutputStream( response.getOutputStream () ) ;

oos.writeObject ( result );
oos.flush();
oos.close();
}
catch ( Throwable e )
{
e.printStackTrace();
}
}
}

Wed Jan 09 12:07:24 EST 2008: http-80-Processor21: paramValue = null
QueryString: id=66644
java.lang.Exception
at com.aprisma.spectrum.app.web.servlet.TestServlet.doGet
(TestServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
at org.apache.catalina.valves.FastCommonAccessLogValve.invoke
(FastCommonAccessLogValve.java:482)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)

DO NOT REPLY [Bug 44187] - create new session when refresh browser after submit to the other service at 80 port

2008-01-09 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=44187


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2008-01-09 11:21 ---
The server sets the session ID, not the client. And you certainly can't share
sessions across services by default.

There should be ways of doing what you want with some configuration and possibly
a little code but Bugzilla isn't the place to discuss this. Please use the users
list.

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

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



svn commit: r610534 - /tomcat/connectors/trunk/jk/native/common/jk_map.c

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 11:54:10 2008
New Revision: 610534

URL: http://svn.apache.org/viewvc?rev=610534&view=rev
Log:
Don't overwrite references in workers.properties
after resolving them. That way we keep the
original information and will be able to dump
it as a new feature of the status worker.
Reference resolution will be a little less efficient,
but that doesn't matter, because it's only done
during startup.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_map.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_map.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_map.c?rev=610534&r1=610533&r2=610534&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_map.c Wed Jan  9 11:54:10 2008
@@ -807,7 +807,6 @@
 if (rc == JK_FALSE) {
 break;
 }
-*v = '\0';
 }
 }
 }



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



svn commit: r610561 - in /tomcat/connectors/trunk/jk: native/common/jk_lb_worker.c native/common/jk_lb_worker.h xdocs/miscellaneous/changelog.xml

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 12:59:01 2008
New Revision: 610561

URL: http://svn.apache.org/viewvc?rev=610561&view=rev
Log:
Refactor "route" return value from LB to httpd note JK_WORKER_ROUTE.

1) Our code always returned the worker route, except when the worker
was chosen via the domain. Then it returns the domain name.
2) We used a member of the worker_record, as an intermediate store,
but the worker_record is not thread safe, only the service record is.

So we only need to return the information, if the balancer used the
domain to find the worker and set the service route to the domain
in this case, otherwise to the worker route.
Use an int pointer argument to return the info and remove the
worker_record member "r".

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/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=610561&r1=610560&r2=610561&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Wed Jan  9 12:59:01 
2008
@@ -586,7 +586,6 @@
 for (i = 0; i < p->num_of_workers; i++) {
 if (strcmp(p->lb_workers[i].s->route, name) == 0) {
 rc = &p->lb_workers[i];
-rc->r = rc->s->route;
 break;
 }
 }
@@ -623,10 +622,6 @@
 }
 }
 
-if (candidate) {
-candidate->r = candidate->s->domain;
-}
-
 return candidate;
 }
 
@@ -668,6 +663,7 @@
 
 static worker_record_t *find_bysession_route(lb_worker_t *p,
  const char *name,
+ int *route_is_domain,
  jk_logger_t *l)
 {
 int uses_domain  = 0;
@@ -677,6 +673,7 @@
 if (!candidate) {
 uses_domain = 1;
 candidate = find_best_bydomain(p, name, l);
+*route_is_domain = JK_TRUE;
 }
 if (candidate) {
 if (!JK_WORKER_USABLE_STICKY(candidate->s)) {
@@ -688,11 +685,13 @@
  */
 if (p->sticky_session_force)
 candidate = NULL;
-else if (*candidate->s->redirect)
+else if (*candidate->s->redirect) {
 candidate = find_by_session(p, candidate->s->redirect, l);
+*route_is_domain = JK_FALSE;
+}
 else if (*candidate->s->domain && !uses_domain) {
-uses_domain = 1;
 candidate = find_best_bydomain(p, candidate->s->domain, l);
+*route_is_domain = JK_TRUE;
 }
 if (candidate && !JK_WORKER_USABLE_STICKY(candidate->s))
 candidate = NULL;
@@ -702,6 +701,7 @@
 }
 
 static worker_record_t *find_failover_worker(lb_worker_t * p,
+ int *route_is_domain,
  jk_logger_t *l)
 {
 worker_record_t *rc = NULL;
@@ -715,27 +715,26 @@
 }
 }
 if (redirect)
-rc = find_bysession_route(p, redirect, l);
+rc = find_bysession_route(p, redirect, route_is_domain, l);
 return rc;
 }
 
 static worker_record_t *find_best_worker(lb_worker_t * p,
+ int *route_is_domain,
  jk_logger_t *l)
 {
 worker_record_t *rc = NULL;
 
 rc = find_best_byvalue(p, l);
 /* By default use worker route as session route */
-if (rc)
-rc->r = rc->s->route;
-else
-rc = find_failover_worker(p, l);
+if (!rc)
+rc = find_failover_worker(p, route_is_domain, l);
 return rc;
 }
 
 static worker_record_t *get_most_suitable_worker(lb_worker_t * p,
  char *sessionid,
- jk_ws_service_t *s,
+ int *route_is_domain,
  jk_logger_t *l)
 {
 worker_record_t *rc = NULL;
@@ -748,7 +747,6 @@
  */
 if (JK_WORKER_USABLE_STICKY(p->lb_workers[0].s)) {
 if (p->lb_workers[0].s->activation != JK_LB_ACTIVATION_DISABLED) {
-p->lb_workers[0].r = p->lb_workers[0].s->route;
 JK_TRACE_EXIT(l);
 return p->lb_workers;
 }
@@ -789,7 +787,7 @@
session_route);
 
 /* We have a session route. Whow! */
-rc = find_bysession_route(p, session_route, l);
+rc = find_bysession_route(p, session_route, route_is_domain, 
l);
 if (rc) {
 if (p->lblock == JK_LB_LOCK_PESSIMISTI

svn commit: r610566 - in /tomcat/connectors/trunk/jk: native/common/jk_service.h native/common/jk_worker.c xdocs/miscellaneous/changelog.xml

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 13:12:29 2008
New Revision: 610566

URL: http://svn.apache.org/viewvc?rev=610566&view=rev
Log:
Include original configuration map in worker_env
to make it available for workers, e.g. the status worker.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_service.h
tomcat/connectors/trunk/jk/native/common/jk_worker.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_service.h
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_service.h?rev=610566&r1=610565&r2=610566&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_service.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_service.h Wed Jan  9 13:12:29 
2008
@@ -51,6 +51,9 @@
 struct jk_worker_env
 {
 
+/* The original configuration map */
+jk_map_t *init_data;
+
 /* The URI to WORKER map, will be feeded by AJP14 autoconf feature */
 jk_uri_worker_map_t *uri_to_worker;
 

Modified: tomcat/connectors/trunk/jk/native/common/jk_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_worker.c?rev=610566&r1=610565&r2=610566&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_worker.c Wed Jan  9 13:12:29 
2008
@@ -63,6 +63,7 @@
 }
 
 jk_map_dump(init_data, l);
+we->init_data = init_data;
 if (!jk_get_worker_list(init_data, &(we->worker_list),
 &we->num_of_workers)) {
 JK_TRACE_EXIT(l);

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?rev=610566&r1=610565&r2=610566&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Wed Jan  9 
13:12:29 2008
@@ -44,6 +44,10 @@
   
 
   
+Common: Include original configuration map in worker_env
+to make it available for workers, e.g. the status worker. (rjung)
+  
+  
 LB: Refactor "route" return for httpd note. Don't use a
 member of the worker_record, because that's not thread safe. (rjung)
   



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



DO NOT REPLY [Bug 44192] - Problem with cookies and IE 6.0.3790

2008-01-09 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=44192


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2008-01-09 14:59 ---
The only way that this can happen is if the client sent a cookie. You can use
ieHttpHeaders to confirm this is happening in IE6.

-- 
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 43529] - Tomcat 6 invoker no longer loads unless privileged

2008-01-09 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=43529


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2008-01-09 15:11 ---
The FAQs are now on the wiki so you are free to add this using your preferred
wording.

http://wiki.apache.org/tomcat/FAQ/Miscellaneous

I am marking this as FIXED since this seems the most appropriate resolution.

-- 
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: r610607 - in /tomcat/connectors/trunk/jk: native/common/jk_status.c xdocs/miscellaneous/changelog.xml

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 15:19:00 2008
New Revision: 610607

URL: http://svn.apache.org/viewvc?rev=610607&view=rev
Log:
Use property table to decide which status worker cmd action
uses which output elements.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=610607&r1=610606&r2=610607&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Wed Jan  9 15:19:00 
2008
@@ -121,6 +121,17 @@
 #define JK_STATUS_CMD_TEXT_RECOVER ("recover")
 #define JK_STATUS_CMD_TEXT_DEF (JK_STATUS_CMD_TEXT_LIST)
 
+#define JK_STATUS_CMD_PROP_CHECK_WORKER0x0001
+#define JK_STATUS_CMD_PROP_READONLY0x0002
+#define JK_STATUS_CMD_PROP_HEAD0x0004
+#define JK_STATUS_CMD_PROP_REFRESH 0x0008
+#define JK_STATUS_CMD_PROP_BACK_LINK   0x0010
+#define JK_STATUS_CMD_PROP_BACK_LIST   0x0020
+#define JK_STATUS_CMD_PROP_FMT 0x0040
+#define JK_STATUS_CMD_PROP_SWITCH_RO   0x0080
+#define JK_STATUS_CMD_PROP_LINK_HELP   0x0100
+#define JK_STATUS_CMD_PROP_LEGEND  0x0200
+
 #define JK_STATUS_MIME_UNKNOWN (0)
 #define JK_STATUS_MIME_HTML(1)
 #define JK_STATUS_MIME_XML (2)
@@ -807,6 +818,40 @@
 return JK_STATUS_MIME_UNKNOWN;
 }
 
+static jk_uint32_t status_cmd_props(int cmd)
+{
+  jk_uint32_t props = 0;
+
+  if (cmd == JK_STATUS_CMD_LIST ||
+  cmd == JK_STATUS_CMD_SHOW)
+  props |= JK_STATUS_CMD_PROP_REFRESH |
+   JK_STATUS_CMD_PROP_SWITCH_RO |
+   JK_STATUS_CMD_PROP_LINK_HELP |
+   JK_STATUS_CMD_PROP_LEGEND;
+  if (cmd == JK_STATUS_CMD_LIST ||
+  cmd == JK_STATUS_CMD_SHOW ||
+  cmd == JK_STATUS_CMD_VERSION)
+  props |= JK_STATUS_CMD_PROP_HEAD |
+   JK_STATUS_CMD_PROP_FMT;
+  if (cmd == JK_STATUS_CMD_SHOW ||
+  cmd == JK_STATUS_CMD_VERSION)
+  props |= JK_STATUS_CMD_PROP_BACK_LIST;
+  if (cmd == JK_STATUS_CMD_SHOW ||
+  cmd == JK_STATUS_CMD_EDIT ||
+  cmd == JK_STATUS_CMD_VERSION)
+  props |= JK_STATUS_CMD_PROP_BACK_LINK;
+  if (cmd != JK_STATUS_CMD_EDIT &&
+  cmd != JK_STATUS_CMD_UPDATE &&
+  cmd != JK_STATUS_CMD_RESET &&
+  cmd != JK_STATUS_CMD_RECOVER)
+  props |= JK_STATUS_CMD_PROP_READONLY;
+  if (cmd != JK_STATUS_CMD_LIST &&
+  cmd != JK_STATUS_CMD_VERSION)
+  props |= JK_STATUS_CMD_PROP_CHECK_WORKER;
+  
+return props;
+}
+
 static void status_start_form(jk_ws_service_t *s,
   status_endpoint_t *p,
   const char *method,
@@ -2824,8 +2869,6 @@
 list_workers_type(s, p, 0, ajp_cnt, l);
 }
 
-display_legend(s, p, l);
-
 JK_TRACE_EXIT(l);
 return JK_TRUE;
 }
@@ -2845,7 +2888,6 @@
 return JK_FALSE;
 }
 display_worker(s, p, jw, l);
-display_legend(s, p, l);
 
 JK_TRACE_EXIT(l);
 return JK_TRUE;
@@ -3077,6 +3119,7 @@
  jk_logger_t *l, int *is_error)
 {
 int cmd;
+jk_uint32_t cmd_props;
 int mime;
 int refresh;
 int read_only = 0;
@@ -3132,6 +3175,7 @@
 }
 status_get_string(p, JK_STATUS_ARG_CMD, NULL, &arg, l);
 cmd = status_cmd_int(arg);
+cmd_props = status_cmd_props(cmd);
 status_get_string(p, JK_STATUS_ARG_MIME, NULL, &arg, l);
 mime = status_mime_int(arg);
 refresh = status_get_int(p, JK_STATUS_ARG_REFRESH, 0, l);
@@ -3204,11 +3248,7 @@
 }
 
 if (!err) {
-if (read_only &&
-(cmd == JK_STATUS_CMD_EDIT ||
-cmd == JK_STATUS_CMD_UPDATE ||
-cmd == JK_STATUS_CMD_RESET ||
-cmd == JK_STATUS_CMD_RECOVER)) {
+if (read_only && !(cmd_props & JK_STATUS_CMD_PROP_READONLY)) {
 err = "This command is not allowed in read only mode.";
 }
 }
@@ -3220,8 +3260,7 @@
 else if (mime == JK_STATUS_MIME_UNKNOWN) {
 err = "Invalid mime type.";
 }
-else if (cmd != JK_STATUS_CMD_LIST &&
- cmd != JK_STATUS_CMD_VERSION &&
+else if (cmd_props & JK_STATUS_CMD_PROP_CHECK_WORKER &&
  (check_worker(s, p, l) != JK_TRUE)) {
 err = p->msg;
 }
@@ -3311,9 +3350,7 @@
 jk_print_xml_att_string(s, 2, "name", s->server_name);
 jk_print_xml_att_int(s, 2, "port", s->server_port);
 jk_print_xml_stop_elt(s, 0, 1);
-if ((cmd == JK_STATUS_CMD_LIST) ||
-(cmd == JK_STATUS_CMD_SHOW) ||
-(cmd == JK_STATUS_CMD_VERSION)) {
+if (cmd_props & 

svn commit: r610611 - in /tomcat/connectors/trunk/jk: native/common/jk_status.c xdocs/miscellaneous/changelog.xml xdocs/reference/status.xml

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 15:26:35 2008
New Revision: 610611

URL: http://svn.apache.org/viewvc?rev=610611&view=rev
Log:
Add "dump" action to status worker, which dumps
our initial configuration.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
tomcat/connectors/trunk/jk/xdocs/reference/status.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=610611&r1=610610&r2=610611&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Wed Jan  9 15:26:35 
2008
@@ -109,8 +109,9 @@
 #define JK_STATUS_CMD_RESET(5)
 #define JK_STATUS_CMD_VERSION  (6)
 #define JK_STATUS_CMD_RECOVER  (7)
+#define JK_STATUS_CMD_DUMP (8)
 #define JK_STATUS_CMD_DEF  (JK_STATUS_CMD_LIST)
-#define JK_STATUS_CMD_MAX  (JK_STATUS_CMD_RECOVER)
+#define JK_STATUS_CMD_MAX  (JK_STATUS_CMD_DUMP)
 #define JK_STATUS_CMD_TEXT_UNKNOWN ("unknown")
 #define JK_STATUS_CMD_TEXT_LIST("list")
 #define JK_STATUS_CMD_TEXT_SHOW("show")
@@ -119,6 +120,7 @@
 #define JK_STATUS_CMD_TEXT_RESET   ("reset")
 #define JK_STATUS_CMD_TEXT_VERSION ("version")
 #define JK_STATUS_CMD_TEXT_RECOVER ("recover")
+#define JK_STATUS_CMD_TEXT_DUMP("dump")
 #define JK_STATUS_CMD_TEXT_DEF (JK_STATUS_CMD_TEXT_LIST)
 
 #define JK_STATUS_CMD_PROP_CHECK_WORKER0x0001
@@ -129,8 +131,9 @@
 #define JK_STATUS_CMD_PROP_BACK_LIST   0x0020
 #define JK_STATUS_CMD_PROP_FMT 0x0040
 #define JK_STATUS_CMD_PROP_SWITCH_RO   0x0080
-#define JK_STATUS_CMD_PROP_LINK_HELP   0x0100
-#define JK_STATUS_CMD_PROP_LEGEND  0x0200
+#define JK_STATUS_CMD_PROP_DUMP_LINK   0x0100
+#define JK_STATUS_CMD_PROP_LINK_HELP   0x0200
+#define JK_STATUS_CMD_PROP_LEGEND  0x0400
 
 #define JK_STATUS_MIME_UNKNOWN (0)
 #define JK_STATUS_MIME_HTML(1)
@@ -319,6 +322,7 @@
 JK_STATUS_CMD_TEXT_RESET,
 JK_STATUS_CMD_TEXT_VERSION,
 JK_STATUS_CMD_TEXT_RECOVER,
+JK_STATUS_CMD_TEXT_DUMP,
 NULL
 };
 
@@ -795,6 +799,8 @@
 return JK_STATUS_CMD_VERSION;
 else if (!strcmp(cmd, JK_STATUS_CMD_TEXT_RECOVER))
 return JK_STATUS_CMD_RECOVER;
+else if (!strcmp(cmd, JK_STATUS_CMD_TEXT_DUMP))
+return JK_STATUS_CMD_DUMP;
 return JK_STATUS_CMD_UNKNOWN;
 }
 
@@ -831,14 +837,21 @@
   if (cmd == JK_STATUS_CMD_LIST ||
   cmd == JK_STATUS_CMD_SHOW ||
   cmd == JK_STATUS_CMD_VERSION)
+  props |= JK_STATUS_CMD_PROP_DUMP_LINK;
+  if (cmd == JK_STATUS_CMD_LIST ||
+  cmd == JK_STATUS_CMD_SHOW ||
+  cmd == JK_STATUS_CMD_VERSION ||
+  cmd == JK_STATUS_CMD_DUMP)
   props |= JK_STATUS_CMD_PROP_HEAD |
JK_STATUS_CMD_PROP_FMT;
   if (cmd == JK_STATUS_CMD_SHOW ||
-  cmd == JK_STATUS_CMD_VERSION)
+  cmd == JK_STATUS_CMD_VERSION ||
+  cmd == JK_STATUS_CMD_DUMP)
   props |= JK_STATUS_CMD_PROP_BACK_LIST;
   if (cmd == JK_STATUS_CMD_SHOW ||
   cmd == JK_STATUS_CMD_EDIT ||
-  cmd == JK_STATUS_CMD_VERSION)
+  cmd == JK_STATUS_CMD_VERSION ||
+  cmd == JK_STATUS_CMD_DUMP)
   props |= JK_STATUS_CMD_PROP_BACK_LINK;
   if (cmd != JK_STATUS_CMD_EDIT &&
   cmd != JK_STATUS_CMD_UPDATE &&
@@ -846,7 +859,8 @@
   cmd != JK_STATUS_CMD_RECOVER)
   props |= JK_STATUS_CMD_PROP_READONLY;
   if (cmd != JK_STATUS_CMD_LIST &&
-  cmd != JK_STATUS_CMD_VERSION)
+  cmd != JK_STATUS_CMD_VERSION &&
+  cmd != JK_STATUS_CMD_DUMP)
   props |= JK_STATUS_CMD_PROP_CHECK_WORKER;
   
 return props;
@@ -3108,6 +3122,63 @@
 return JK_FALSE;
 }
 
+static int dump_config(jk_ws_service_t *s,
+   status_endpoint_t *p,
+   int mime, jk_logger_t *l)
+{
+status_worker_t *w = p->worker;
+jk_worker_env_t *we = w->we;
+jk_map_t *init_data = we->init_data;
+
+JK_TRACE_ENTER(l);
+
+if (init_data) {
+int l = jk_map_size(init_data);
+int i;
+if (mime == JK_STATUS_MIME_HTML) {
+jk_puts(s, "Configuration Data\n");
+jk_puts(s, "This dump does not include any changes applied by the 
status worker\n");
+jk_puts(s, "to the configuration after the initial startup\n");
+jk_puts(s, "\n");
+}
+else if (mime == JK_STATUS_MIME_XML) {
+jk_print_xml_start_elt(s, w, 2, 0, "configuration");
+}
+else if (mime == JK_STATUS_MIME_TXT) {
+jk_puts(s, "Configuration:\n");
+}
+for (i=0;i\n");
+}
+else if (mime == JK_ST

Re: svn commit: r609294 - in /tomcat/tc6.0.x/trunk: STATUS.txt conf/catalina.policy webapps/docs/changelog.xml

2008-01-09 Thread Remy Maucherat
On Sun, 2008-01-06 at 11:43 +, [EMAIL PROTECTED] wrote:
>  // These permissions apply to the logging API
>  grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
> -permission java.security.AllPermission;
> +permission java.util.PropertyPermission 
> "java.util.logging.config.class", "read";
> +permission java.util.PropertyPermission 
> "java.util.logging.config.file", "read";
> +permission java.lang.RuntimePermission "shutdownHooks";
> +permission java.io.FilePermission 
> "${catalina.base}${file.separator}conf${file.separator}logging.properties", 
> "read";
> +permission java.util.PropertyPermission "catalina.base", "read";
> +permission java.util.logging.LoggingPermission "control";
> +permission java.io.FilePermission 
> "${catalina.base}${file.separator}logs", "read, write";
> +permission java.io.FilePermission 
> "${catalina.base}${file.separator}logs${file.separator}*", "read, write";
> +permission java.lang.RuntimePermission "getClassLoader";
> +// To enable per context logging configuration, permit read access 
> to the appropriate file.
> +// Be sure that the logging configuration is secure before enabling 
> such access
> +// eg for the examples web application:
> +// permission java.io.FilePermission 
> "${catalina.base}${file.separator}webapps${file.separator}examples${file.separator}WEB-INF${file.separator}classes${file.separator}logging.properties",
>  "read";
>  };

On my platform [Linux + IcedTea], with the new policy in place, I get an
error initializing a timestamp used by the FileHandler (why such a class
ends up using a file like this is a mystery):

Handler error
java.lang.NullPointerException
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:330)
at
java.security.AccessController.checkPermission(AccessController.java:556)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:550)
at java.lang.SecurityManager.checkRead(SecurityManager.java:889)
at java.io.File.exists(File.java:749)
at
sun.util.calendar.ZoneInfoFile.readZoneInfoFile(ZoneInfoFile.java:1034)
at
sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:575)
at
sun.util.calendar.ZoneInfoFile.getZoneInfo(ZoneInfoFile.java:545)
at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:600)
at java.util.TimeZone.getTimeZone(TimeZone.java:487)
at java.util.TimeZone.setDefaultZone(TimeZone.java:584)
at java.util.TimeZone.getDefaultRef(TimeZone.java:551)
at java.util.Date.normalize(Date.java:1194)
at java.util.Date.getYear(Date.java:650)
at java.sql.Timestamp.toString(Timestamp.java:291)
at org.apache.juli.FileHandler.configure(FileHandler.java:189)

Rémy



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



svn commit: r610617 - /tomcat/connectors/trunk/jk/native/common/jk_status.c

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 16:03:36 2008
New Revision: 610617

URL: http://svn.apache.org/viewvc?rev=610617&view=rev
Log:
Tab police.

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

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=610617&r1=610616&r2=610617&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Wed Jan  9 16:03:36 
2008
@@ -3152,7 +3152,7 @@
 if (name) {
 const char *value = jk_map_value_at(init_data, i);
 if (!value)
-   value = "(null)";
+value = "(null)";
 if (mime == JK_STATUS_MIME_HTML ||
 mime == JK_STATUS_MIME_PROP ||
 mime == JK_STATUS_MIME_TXT) {



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



svn commit: r610619 - in /tomcat/connectors/trunk/jk/native/common: jk_lb_worker.c jk_lb_worker.h jk_shm.h

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 16:09:41 2008
New Revision: 610619

URL: http://svn.apache.org/viewvc?rev=610619&view=rev
Log:
LB sub member dynamic management part 1:
Add attributes to worker_record and extend
shm push and pull from lb to lb sub workers.

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

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=610619&r1=610618&r2=610619&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Wed Jan  9 16:09:41 
2008
@@ -264,8 +264,12 @@
 }
 
 /* Syncing config values from shm */
-void jk_lb_pull(lb_worker_t * p, jk_logger_t *l) {
+void jk_lb_pull(lb_worker_t * p, jk_logger_t *l)
+{
+unsigned int i = 0;
+
 JK_TRACE_ENTER(l);
+
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"syncing mem for lb '%s' from shm",
@@ -278,12 +282,35 @@
 p->lbmethod = p->s->lbmethod;
 p->lblock = p->s->lblock;
 p->sequence = p->s->sequence;
+
+for (i = 0; i < p->num_of_workers; i++) {
+worker_record_t *w = &p->lb_workers[i];
+if (w->sequence != w->s->sequence) {
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "syncing mem for member '%s' of lb '%s' from shm",
+   w->s->name, p->s->name);
+strncpy(w->route, w->s->route, JK_SHM_STR_SIZ);
+strncpy(w->domain, w->s->domain, JK_SHM_STR_SIZ);
+strncpy(w->redirect, w->s->redirect, JK_SHM_STR_SIZ);
+w->distance = w->s->distance;
+w->activation = w->s->activation;
+w->lb_factor = w->s->lb_factor;
+w->lb_mult = w->s->lb_mult;
+w->sequence = w->s->sequence;
+}
+}
+
 JK_TRACE_EXIT(l);
 }
 
-/* Syncing config values from shm */
-void jk_lb_push(lb_worker_t * p, jk_logger_t *l) {
+/* Syncing config values to shm */
+void jk_lb_push(lb_worker_t * p, jk_logger_t *l)
+{
+unsigned int i = 0;
+
 JK_TRACE_ENTER(l);
+
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"syncing shm for lb '%s' from mem",
@@ -296,6 +323,25 @@
 p->s->lbmethod = p->lbmethod;
 p->s->lblock = p->lblock;
 p->s->sequence = p->sequence;
+
+for (i = 0; i < p->num_of_workers; i++) {
+worker_record_t *w = &p->lb_workers[i];
+if (w->sequence != w->s->sequence) {
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "syncing shm for member '%s' of lb '%s' from mem",
+   w->s->name, p->s->name);
+strncpy(w->s->route, w->route, JK_SHM_STR_SIZ);
+strncpy(w->s->domain, w->domain, JK_SHM_STR_SIZ);
+strncpy(w->s->redirect, w->redirect, JK_SHM_STR_SIZ);
+w->s->distance = w->distance;
+w->s->activation = w->activation;
+w->s->lb_factor = w->lb_factor;
+w->s->lb_mult = w->lb_mult;
+w->s->sequence = w->sequence;
+}
+}
+
 JK_TRACE_EXIT(l);
 }
 
@@ -798,7 +844,7 @@
 jk_log(l, JK_LOG_DEBUG,
"found worker %s (%s) for route %s and partial 
sessionid %s",
rc->s->name, rc->s->route, session_route, 
sessionid);
-JK_TRACE_EXIT(l);
+JK_TRACE_EXIT(l);
 return rc;
 }
 }
@@ -905,6 +951,11 @@
 /* Set returned error to OK */
 *is_error = JK_HTTP_OK;
 
+jk_shm_lock();
+if (p->worker->sequence != p->worker->s->sequence)
+jk_lb_pull(p->worker, l);
+jk_shm_unlock();
+
 /* set the recovery post, for LB mode */
 s->reco_buf = jk_b_new(s->pool);
 if (!s->reco_buf) {
@@ -923,11 +974,6 @@
 }
 jk_b_reset(s->reco_buf);
 s->reco_status = RECO_INITED;
-
-jk_shm_lock();
-if (p->worker->sequence != p->worker->s->sequence)
-jk_lb_pull(p->worker, l);
-jk_shm_unlock();
 
 if (p->worker->sticky_session) {
 /* Use sessionid only if sticky_session is

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h?rev=610619&r1=610618&r2=610619&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h Wed Jan  9 16:09:41 
2008
@@ -123,6 +123,25 @@
 jk_worker_t   *w;
 /* Shared memory worker data */
 j

svn commit: r610623 - in /tomcat/connectors/trunk/jk: native/common/jk_lb_worker.c native/common/jk_status.c xdocs/miscellaneous/changelog.xml

2008-01-09 Thread rjung
Author: rjung
Date: Wed Jan  9 16:52:57 2008
New Revision: 610623

URL: http://svn.apache.org/viewvc?rev=610623&view=rev
Log:
LB sub member dynamic management part 2:
Use local memory copies of read mostly shm attributes
of lb sub workers in lb and status worker.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/native/common/jk_status.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=610623&r1=610622&r2=610623&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Wed Jan  9 16:52:57 
2008
@@ -40,8 +40,8 @@
  * The load balancing code in this
  */
 
-#define JK_WORKER_USABLE(w)   ((w)->state != JK_LB_STATE_ERROR && (w)->state 
!= JK_LB_STATE_PROBE && (w)->state != JK_LB_STATE_BUSY && (w)->activation != 
JK_LB_ACTIVATION_STOPPED && (w)->activation != JK_LB_ACTIVATION_DISABLED)
-#define JK_WORKER_USABLE_STICKY(w)   ((w)->state != JK_LB_STATE_ERROR && 
(w)->state != JK_LB_STATE_PROBE && (w)->activation != JK_LB_ACTIVATION_STOPPED)
+#define JK_WORKER_USABLE(w)   ((w)->s->state != JK_LB_STATE_ERROR && 
(w)->s->state != JK_LB_STATE_PROBE && (w)->s->state != JK_LB_STATE_BUSY && 
(w)->activation != JK_LB_ACTIVATION_STOPPED && (w)->activation != 
JK_LB_ACTIVATION_DISABLED)
+#define JK_WORKER_USABLE_STICKY(w)   ((w)->s->state != JK_LB_STATE_ERROR && 
(w)->s->state != JK_LB_STATE_PROBE && (w)->activation != 
JK_LB_ACTIVATION_STOPPED)
 
 static const char *lb_locking_type[] = {
 JK_LB_LOCK_TEXT_OPTIMISTIC,
@@ -211,7 +211,7 @@
 /* Return the string representation of the balance worker activation */
 const char *jk_lb_get_activation(worker_record_t *p, jk_logger_t *l)
 {
-return lb_activation_type[p->s->activation];
+return lb_activation_type[p->activation];
 }
 
 int jk_lb_get_activation_code(const char *v)
@@ -235,16 +235,16 @@
 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);
+s = scm(s, p->lb_workers[i].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;
+p->lb_workers[i].lb_mult = s / p->lb_workers[i].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);
+   p->lb_workers[i].name,
+   p->lb_workers[i].lb_mult);
 }
 JK_TRACE_EXIT(l);
 }
@@ -273,7 +273,7 @@
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"syncing mem for lb '%s' from shm",
-   p->s->name);
+   p->name);
 p->sticky_session = p->s->sticky_session;
 p->sticky_session_force = p->s->sticky_session_force;
 p->recover_wait_time = p->s->recover_wait_time;
@@ -289,7 +289,7 @@
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"syncing mem for member '%s' of lb '%s' from shm",
-   w->s->name, p->s->name);
+   w->name, p->name);
 strncpy(w->route, w->s->route, JK_SHM_STR_SIZ);
 strncpy(w->domain, w->s->domain, JK_SHM_STR_SIZ);
 strncpy(w->redirect, w->s->redirect, JK_SHM_STR_SIZ);
@@ -314,7 +314,7 @@
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"syncing shm for lb '%s' from mem",
-   p->s->name);
+   p->name);
 p->s->sticky_session = p->sticky_session;
 p->s->sticky_session_force = p->sticky_session_force;
 p->s->recover_wait_time = p->recover_wait_time;
@@ -330,7 +330,7 @@
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"syncing shm for member '%s' of lb '%s' from mem",
-   w->s->name, p->s->name);
+   w->name, p->name);
 strncpy(w->s->route, w->route, JK_SHM_STR_SIZ);
 strncpy(w->s->domain, w->domain, JK_SHM_STR_SIZ);
 strncpy(w->s->redirect, w->redirect, JK_SHM_STR_SIZ);
@@ -492,17 +492,17 @@
 w = &p->lb_workers[i];
 if (w->s->state == JK_LB_STATE_ERROR) {
 elapsed = (int)difftime(now, w->s->error_time);
-if (elapsed <= p->s->recover_wait_time) {
+if (elapsed <= p->recover_wait_time) {
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"worker %s will recover in %d seconds",
-   w

DO NOT REPLY [Bug 44197] New: - NoClassDefFoundError:

2008-01-09 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=44197

   Summary: NoClassDefFoundError:
   Product: Tomcat 6
   Version: unspecified
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Servlet & JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


java.lang.NoClassDefFoundError: 
org/apache/jsp/WEB_002dINF/view/pehistory/eHistoryPage3_jsp (wrong name: 
org/apache/jsp/WEB_002dINF/view/pehistory/ehistoryPage3_jsp)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.apache.jasper.servlet.JasperLoader.loadClass
(JasperLoader.java:134)
at org.apache.jasper.servlet.JasperLoader.loadClass
(JasperLoader.java:66)
at org.apache.jasper.JspCompilationContext.load
(JspCompilationContext.java:598)
at org.apache.jasper.servlet.JspServletWrapper.getServlet
(JspServletWrapper.java:144)
at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:329)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:654)
at org.apache.catalina.core.ApplicationDispatcher.processRequest
(ApplicationDispatcher.java:445)
at org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:379)
at org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:292)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1085)
at 
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward
(RequestProcessor.java:1023)
at org.apache.struts.action.RequestProcessor.processValidate
(RequestProcessor.java:988)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:207)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at com.ehe.ctrl.TimeTrackFilter.doFilter(TimeTrackFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at com.ehe.ctrl.LoggerFilter.doFilter(LoggerFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at com.ehe.ctrl.URLFilter.doFilter(URLFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
a

DO NOT REPLY [Bug 44197] - NoClassDefFoundError:

2008-01-09 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=44197





--- Additional Comments From [EMAIL PROTECTED]  2008-01-09 23:46 ---
My jsp file name "eHistoryPage3.jsp" but somehow it becomes "ehistoryPage3.jsp" 
and "ehistoryPage3.jsp" under 
/work/catalina/com/org/apache/jsp//WEB_002dINF/view/pehistory/

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