Re: classloader status?

2001-01-10 Thread Craig R. McClanahan

OK, I've been playing with the scenario below ... and as far as I can tell,
session reloading works correctly.  To aid in experimentation, I've added some
instrumentation so that you can log debugging detail messages related to it.  The
attached log file is what I get when executing your steps below against Scarab
with the following server.xml entry:

Context path="/scarab" docBase="scarab" debug="0"
 reloadable="true"
  Logger className="org.apache.catalina.logger.FileLogger"
 prefix="scarab_log." suffix=".txt"
  timestamp="true"/
  Manager debug="99"/
/Context

As you can see from the log, the session attribute "turbine.user" is saved and
then reloaded, but nothing else.  What else would you expect to see here?

Craig


Jon Stevens wrote:

 Hi Craig, any status?

 Maybe you can point me at the right place to look?

 thanks,

 -jon

 --
 From: Jon Stevens [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 05 Jan 2001 21:37:41 -0800
 To: [EMAIL PROTECTED]
 Subject: Re: cvs commit: jakarta-tomcat-4.0/webapps/ROOT index.html

 on 1/5/2001 8:52 PM, "Craig R. McClanahan" [EMAIL PROTECTED]
 wrote:

  That is not a provably correct assertion, given that it works on every test
  case
  I have concocted so far.
 
  Even if there is something in Turbine that makes it not work, that can be
  dealt
  with subsequent to b1.  It's not like this is the last release or anything
  :-).

 Ok, I have found like 4 bugs in as many days and you still don't believe me
 on these things. :-)

 here we go again:

 #1. check out scarab
 #2. build it; start tomcat
 #3. goto: http://localhost:8080/scarab/servlet/scarab/template/Register.vm
 #4. hit "Register"
 #5. edit scarab/target/webapps/scarab/templates/Register.vm
 Add anywhere in the template:
 $data.getUser().setTemp("foo", "bar")

 #6. hit "Register"
 #7. touch
 scarab/target/webapps/scarab/WEB-INF/classes/org/tigris/scarab/actions/*.cla
 ss
 #7. change the above line to:
 $data.getUser().getTemp("foo")
 #8. hit "Register"

 Notice that you see the data you entered in #7. That is because Velocity
 wasn't able to introspect and find a result for "foo" because it doesn't
 exist in the session any longer.

 $data.getUser() returns an object that has been placed into the HttpSession

 This isn't Turbine that is broken as this same stuff worked fine in JServ
 and Tomcat 3.x. It is definitely Catalina.

 love,

 -jon

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

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


2001-01-10 18:50:49 StandardLoader[/scarab]: Reloading checks are enabled for this 
Context
2001-01-10 18:50:49 Manager[/scarab]: Starting
2001-01-10 18:50:49 Manager[/scarab]: Force random number initialization starting
2001-01-10 18:50:49 Manager[/scarab]: Seeding random number generator class 
java.security.SecureRandom
2001-01-10 18:50:49 Manager[/scarab]: Seeding of random number generator has been 
completed
2001-01-10 18:50:49 Manager[/scarab]: Getting message digest component for algorithm 
MD5
2001-01-10 18:50:49 Manager[/scarab]: Completed getting message digest component
2001-01-10 18:50:49 Manager[/scarab]: Force random number initialization completed
2001-01-10 18:50:50 ContextConfig[/scarab]: Added certificates - request attribute 
Valve
2001-01-10 18:50:50 ContextConfig[/scarab]: Configured an authenticator for method 
BASIC
2001-01-10 18:50:51 Manager[/scarab]: Loading persisted sessions
2001-01-10 18:50:51 Manager[/scarab]: Loading persisted sessions from SESSIONS.ser
2001-01-10 18:50:51 Manager[/scarab]: No persisted data file found
2001-01-10 18:50:51 StandardWrapper[/scarab:default]: Loading container servlet default
2001-01-10 18:50:51 default: init
2001-01-10 18:50:51 StandardWrapper[/scarab:invoker]: Loading container servlet invoker
2001-01-10 18:50:51 invoker: init
2001-01-10 18:50:51 jsp: init
2001-01-10 18:51:35 scarab: init
2001-01-10 18:51:37 scarab: Turbine: init() Ready to Rumble!
2001-01-10 18:51:37 scarab: Turbine: doGet() Start Initializing Services!
2001-01-10 18:51:37 scarab: Turbine: doGet() Finish Initializing Services!
2001-01-10 18:56:08 StandardContext[/scarab]: Reloading this Context has started
2001-01-10 18:56:08 scarab: Turbine: Done shutting down!
2001-01-10 18:56:08 Manager[/scarab]: Unloading persisted sessions
2001-01-10 18:56:08 Manager[/scarab]: Saving persisted sessions to SESSIONS.ser
2001-01-10 18:56:08 Manager[/scarab]: Unloading 1 sessions
2001-01-10 18:56:08 Manager[/scarab]: writeObject() storing session 
F51410925838E0F5666257A405E4A200
2001-01-10 18:56:08 Manager[/scarab]:   storing attribute 'turbine.user' with value 
'org.apache.turbine.om.security.TurbineUser@8ebd435b'
2001-01-10 

classloader status?

2001-01-09 Thread Jon Stevens

Hi Craig, any status?

Maybe you can point me at the right place to look?

thanks,

-jon


--
From: Jon Stevens [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Fri, 05 Jan 2001 21:37:41 -0800
To: [EMAIL PROTECTED]
Subject: Re: cvs commit: jakarta-tomcat-4.0/webapps/ROOT index.html

on 1/5/2001 8:52 PM, "Craig R. McClanahan" [EMAIL PROTECTED]
wrote:

 That is not a provably correct assertion, given that it works on every test
 case
 I have concocted so far.
 
 Even if there is something in Turbine that makes it not work, that can be
 dealt
 with subsequent to b1.  It's not like this is the last release or anything
 :-).

Ok, I have found like 4 bugs in as many days and you still don't believe me
on these things. :-)

here we go again:

#1. check out scarab
#2. build it; start tomcat
#3. goto: http://localhost:8080/scarab/servlet/scarab/template/Register.vm
#4. hit "Register"
#5. edit scarab/target/webapps/scarab/templates/Register.vm
Add anywhere in the template:
$data.getUser().setTemp("foo", "bar")

#6. hit "Register"
#7. touch 
scarab/target/webapps/scarab/WEB-INF/classes/org/tigris/scarab/actions/*.cla
ss
#7. change the above line to:
$data.getUser().getTemp("foo")
#8. hit "Register"

Notice that you see the data you entered in #7. That is because Velocity
wasn't able to introspect and find a result for "foo" because it doesn't
exist in the session any longer.

$data.getUser() returns an object that has been placed into the HttpSession

This isn't Turbine that is broken as this same stuff worked fine in JServ
and Tomcat 3.x. It is definitely Catalina.

love,

-jon


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



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