Hi

I am trying to install Turbine on the Orion server
(http://www.orionserver.com/) and I having some progress, but...

It seem Orion has a problem with the line

            return user =
((User)Class.forName(userClassName).newInstance()).retrieveFromStorage( user
name );

When I change the line to ...

            return user =
((User)User.class.getClass().getClassLoader().loadClass(userClassName).newIn
stance()).retrieveFromStorage( username );


I having some progress until I hit the next problem.

I think the reason for that is: Class.forName() is using the global system
class loader to load the class, in a server environment there usually some
special ClassLoader to enable class reloading.

Turbine class and other are loaded correctly with the servlet class loader,
But Class.forName() break this logic as it goes directly to the Global
system class loader.

I guess it is possible to hide the problem by modify the server classpath
but this is a dirty hack :(

I know the Class.forName()  is the corner stone of Turbine but I think this
should be changed to a more server friendly class loading. I guess the load
class code become to long now and should be hidden somewhere like a  util
method.

I am not familiar with Turbine code and I am not sure what is the right
approach here, or if this is a problem. What do you think?

Regards,

Muly.



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to