We already have something implemented that classes can be loaded from other places:

// This overide is required to resolve classess inside in
                    // different
                    // bundle, i.e.
                    // The classess can be resolved by OSGI classresolver
                    // implementation
                    protected Class resolveClass(ObjectStreamClass desc) throws IOException,
                            ClassNotFoundException
                    {
                        String className = desc.getName();
                        Application application = Application.get();
                        IApplicationSettings applicationSettings = application
                                .getApplicationSettings();
                        IClassResolver classResolver = applicationSettings.getClassResolver();

                        Class candidate = null;
                        try
                        {
                            candidate = classResolver.resolveClass(className);
                            if (candidate == null)
                            {
                                candidate = super.resolveClass(desc);
                            }
                        }
                        catch (WicketRuntimeException ex)
                        {
                            if (ex.getCause () instanceof ClassNotFoundException)
                            {
                                throw (ClassNotFoundException)ex.getCause();
                            }
                        }
                        return candidate;
                    }

So we could do there some extra steps i take
When the class is still not found do object.getClassLoader().loadClass(className)

johan




On 7/11/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
If i try to clone an object that is not in the ClassLoader of the wicket jar, this will fail on ClassNotFound

I don't know enough about serialization, but is there a way to use object.getClassLoader to do the deserialization?

Thanks,
ittay

--
===================================
Ittay Dror,
Chief architect, openQRM TL,
R&D, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to