[Wicket-user] Objects.cloneObject

2006-07-11 Thread Ittay Dror
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, 
RD, 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Objects.cloneObject

2006-07-11 Thread Johan Compagner
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 takeWhen 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 ClassNotFoundI 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,RD, 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user