Yea, I have proof AND a way to test it in 10 easy steps! :-)

    (but no idea on how to fix it :-()

What I did to confirm and test it was this:
(sorry Craig, it is going to require installing MySQL and loading the Scarab
schema...it isn't hard and directions are provided below):

#1. Install MySQL. Set it up so that connections from localhost with no
username/password can connect to it.

INSERT INTO user VALUES
('localhost%','','','Y','Y','Y','Y','Y','Y','Y','Y','Y',
'Y','Y','Y','Y','Y');

#2. Get Scarab from CVS.
    <http://scarab.tigris.org/>

    Further path references start with the top level "scarab" directory.

#3. Create and import the database.
    cd scarab/src/sql
    ./create-mysql-database.sh
    (this will drop a database called "scarab" and re-create it.)

#4. Build the scarab/target directory.
    cd scarab/build
    ./build.sh

#5. Start Tomcat...
    cd scarab/target
    ./bin/catalina.sh run

#6. go to:
    <http://localhost:8080/scarab/servlet/scarab/template/Login.vm>
    login username: [EMAIL PROTECTED]
    login password: 1
    click login button

    [this establishes a Turbine User object in the HTTP Session. without
        this object there, a request to a "privileged" page will return you
        to the login page again.]

#7. edit url and make this request:
<http://localhost:8080/scarab/servlet/scarab/template/admin,ModifyProject.vm
>
    make sure to keep the logged in session id if it is there still. this
    page is a "privileged" page and cannot be accessed directly without a
    "logged in" session id.

#8. click on the popup menu to select a different project (there are only
    two projects) and then click "Refresh". that will demonstrate that the
    session id is being carried through extra requests properly by allowing
    you to perform this action. make sure to keep this window open.

#9. 
cd scarab/target/webapps/scarab/WEB-INF/classes/org/tigris/scarab/actions
touch *.class
    [this will cause the classloader to reload. simulating the recompiling
        of the classes.]

#10. Now, try to select the other project in the popup. you will be returned
to the login page again. obviously showing that the User object was not
persisted.


The server.xml file is in:
    scarab/src/tomcat-4.0/conf/server.xml

You *may* wish to replace the catalina.jar in:
    scarab/src/tomcat-4.0/server

If you do that, make sure to re-build the "target" directory by
re-executing:

    cd scarab/build
    ./build.sh

Please let me know if there is anything else you need from me. I'm doing
this on OSX with JDK 1.3 and Hotspot client VM, but I doubt that that is the
problem.


Here is the log of things that I got...


[ things start up]

2001-02-22 13:47:09 scarab: init
2001-02-22 13:47:11 scarab: Turbine: init() Ready to Rumble!
2001-02-22 13:47:12 scarab: Turbine: doGet() Start Initializing Services!
2001-02-22 13:47:12 scarab: Turbine: doGet() Finish Initializing Services!

[this is when step #9 is performed]

2001-02-22 13:59:44 StandardContext[/scarab]: Reloading this Context has
started
2001-02-22 13:59:44  -- INFO -- Shutting down service: ResourceService
2001-02-22 13:59:44  -- INFO -- Shutting down service:
TurbineUniqueIdService
2001-02-22 13:59:44  -- INFO -- Turbine instance running at
http://localhost:8080/scarab/servlet/scarab shutting down.
2001-02-22 13:59:44  -- INFO -- Shutting down service:
TurbineSecurityService
2001-02-22 13:59:44  -- INFO -- Shutting down service:
TurbineTemplateService
2001-02-22 13:59:44  -- INFO -- Shutting down service: TurbineServletService
2001-02-22 13:59:44  -- INFO -- Shutting down service: TurbineFactoryService
2001-02-22 13:59:44  -- INFO -- Shutting down service:
TurbineGlobalCacheService
2001-02-22 13:59:44  -- INFO -- Shutting down service:
TurbineResourceService
2001-02-22 13:59:44  -- INFO -- Shutting down service: TurbineUploadService
2001-02-22 13:59:44 scarab: Turbine: Done shutting down!
2001-02-22 13:59:44 Manager[/scarab]: Unloading persisted sessions
2001-02-22 13:59:44 Manager[/scarab]: Stopping

[ this is when step #10 is performed]

2001-02-22 13:59:44  -- INFO -- Initializing service (late):
TurbineSecurityService
2001-02-22 13:59:44 StandardLoader[/scarab]: Reloading checks are enabled
for this Context
2001-02-22 13:59:44 Manager[/scarab]: Starting
2001-02-22 13:59:44 Manager[/scarab]: Force random number initialization
starting
2001-02-22 13:59:44 Manager[/scarab]: Seeding random number generator class
java.security.SecureRandom
2001-02-22 13:59:44 Manager[/scarab]: Seeding of random number generator has
been completed
2001-02-22 13:59:44 Manager[/scarab]: Force random number initialization
completed
2001-02-22 13:59:44 Manager[/scarab]: Loading persisted sessions
2001-02-22 13:59:44 StandardContext[/scarab]: Reloading this Context is
completed
2001-02-22 13:59:53 scarab: init
2001-02-22 13:59:55 scarab: Turbine: init() Ready to Rumble!
2001-02-22 13:59:55 scarab: Turbine: doGet() Start Initializing Services!
2001-02-22 13:59:55 scarab: Turbine: doGet() Finish Initializing Services!
2001-02-22 14:00:16  -- INFO -- IDBroker thread finished.


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

Reply via email to