Hi guys!
I've run into prolem using a custom written UserManager.

I've put my own UserManager implementation inside a .jar wich I copied to
ORION_HOME/lib.

I've added this in ORION_HOME/config/application.xml:
        <!-- our nice usermanager -->
        <user-manager class="com.lektor.j2ee.orion.LektorUserManager">
                <property name="pooleddatasource"
value="jdbc/DefaultPooledDS" />
                <property name="fetchaccountsql" value="select * from
users where email = ?" />
        </user-manager>


Well this is what I get:

>>>java -jar orion.jar
Error initializing server: UserManager class
'com.lektor.j2ee.orion.LektorUserManager' not found

Ok, my class is not found, so I tried to put the jar into
JDK_HOME/jre/lib/ext....  then I get this:

>>>java -jar orion.jar
Error initializing server: Error initializing userManager
'com.lektor.j2ee.orion.LektorUserManager': java.lang.NoClassDefFoundError
(com/evermind/security/AbstractUserManager)


My class is not found, but different message... ok... 
The I put the classes INSIDE the orion.jar, just for fun (and because im
out of options)

Then it works!

Is there something wrong with orions classloading when starting server?

It seems to me that sometime during startup the CLASSPATH is narrowed to
only orion.jar or something. Seems wrong anyway.


Orion-people: mail me if you want my class files or application.xml or so.

/Rgrds. Jimmy

__________________________________________________________________________
Jimmy Larsson, Nätakademin AB, http://www.natakademin.se                 
  e-mail: [EMAIL PROTECTED]
  Tel: 08 - 751 00 40, 070 - 950 39 65


Reply via email to