ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | January 2005 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [enhydra] Custom session manager



Hi Slobodan,

I think I solved it.  I created a jonas-web.xml file in the WEB-INF directory with the java2 delegation model set to false.
Thanks for your help.

Regards
Robert




Robert.Farrugia@xxxxxxxxx

12/01/2005 11:52

Please respond to
enhydra@xxxxxxxxxxxxx

To
enhydra@xxxxxxxxxxxxx
cc
Subject
Re: [enhydra] Custom session manager






Hi Slobodan,


Is there a way to force the application class loader to ignore the commons classes and reload the class again from a new jar file ?


Regards
Robert


"Slobodan Vujasinovic" <slobodan@xxxxxxxxxxxxx>

12/01/2005 11:29

Please respond to
enhydra@xxxxxxxxxxxxx

To
<enhydra@xxxxxxxxxxxxx>
cc
Subject
Re: [enhydra] Custom session manager







Hi,

 

Classes loaded by 'commons class loader' are not able to see your application classes (binaries placed in 'WEB-INF'/lib). Common class loader (loads <ENHYDRA_ROOT>/multiserver/lib/ext binaries) is a parent class loader of application classloader (loads WEB-INF/lib binaries). Therefore, your session home class, naturally, doesn't see your application classes.

 

Your session home (and related classes) is (basically) a part of EAF implementation (should not be connected to your application implementation). So, my advice is to 'split' your session home and application related implementations - session home implementation to be loaded by common classloader and application implementation to be loaded by application class loader.

 

The quick solution would be to place EAF (and only eaf) implementation (together with your session home implementation) in WEB-INF/lib and get them loaded by application class loader also (this way the same (application) class loader will load EAF, your session home and application implementation).

 

Regards,

   Slobodan

----- Original Message -----
From:
Robert.Farrugia@xxxxxxxxx
To:
enhydra@xxxxxxxxxxxxx
Sent:
Wednesday, January 12, 2005 10:33 AM
Subject:
Re: [enhydra] Custom session manager


Hi,


Thanks for the reply.  I put the jar files into the
<ENHYDRA_ROOT>/multiserver/lib/ext/enhydra directory. The session home class is being found correctly.  

The problem now is occuring when loading the application.  When I use a class (whose jar file was put in the
<ENHYDRA_ROOT>/multiserver/lib/ext/enhydra directory) and it uses classes from the application, the application classes are throwing a ClassNotFound exception, even though the class jar file is in the WEB-INF/lib directory.  If I use the basic session manager (not CUSTOM) and I remove my jar files from <ENHYDRA_ROOT>/multiserver/lib/ext/enhydra, the application works correctly, so I am assuming that the problem is somewhere in the class loading ...

Regards
Robert


"Slobodan Vujasinovic" <slobodan@xxxxxxxxxxxxx>

12/01/2005 08:23

Please respond to
enhydra@xxxxxxxxxxxxx


To
<enhydra@xxxxxxxxxxxxx>
cc
Subject
Re: [enhydra] Custom session manager









Hi,


All EAF binaries are placed in '<ENHYDRA_ROOT>/multiserver/lib/ext/enhydra' so I'm suggesting this location (not application WEB-INF/lib).


Note that all binaries placed in '<ENHYDRA_ROOT>/multiserver/lib/ext' will be loaded by commons class loader (shared between all applications) as a JOnAS-specific class loader that will load all classes required to start the JOnAS server (all jars in subordinate directories will also be loaded ).


Hope this helps,

  Slobodan Vujasinovic

Enhydra Development Team


----- Original Message -----
From:
Robert.Farrugia@xxxxxxxxx
To:
enhydra@xxxxxxxxxxxxx
Sent:
Tuesday, January 11, 2005 6:58 PM
Subject:
[enhydra] Custom session manager



Hi,


I am trying to use the CUSTOM feature of the SessionManager to load my own SessionHome class.  I have added the class name to the conf file under the CUSTOM subsection.


The problem is where to put the session code jar file, since it is giving a class not found exception.  I am currently putting it in the webapp WEB-INF/lib directory.

Do I need to add something to the classpath or any other setting for Jonas ?


BTW I am using enhydra enterprise 6.0.1.  Any pointers on this issue would be greatly appreciated.


Regards
Robert



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.