|
List Info
Thread: Classloader problems
|
|
| Classloader problems |

|
2006-06-02 16:47:39 |
|
Hi all,
i'm trying to use hivemind in the TapIDEA plugin i'm developing but i'm hitting classloader problems.
So, the first problem i came agains was the already talked before "Service point hivemind.Startup
does not exist.". I checked the archives for answers and implemented the following to solve this:
ClassResolver classResolver = new DefaultClassResolver(MyClass.class.getClassLoader()); RegistryBuilder registryBuilder = new RegistryBuilder();
registryBuilder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(classResolver)); registry = registryBuilder.constructRegistry(Locale.getDefault());
This solved the hivemind.Startup problem but now i get another expection for which i can't find a solution:
org.apache.hivemind.ApplicationRuntimeException: Unable to add method java.lang.Object writeReplace() to class $Runnable_10b95a29c5e: [source error] no such class: org.apache.hivemind.internal.ser.ServiceSerializationHelper
at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:130) at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java
:57) at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:210) at org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223) at org.apache.hivemind.impl.RegistryInfrastructureImpl.getService
(RegistryInfrastructureImpl.java:207) at org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(RegistryInfrastructureImpl.java:434) at org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java
:154)
Any ideas on how to solve this would be great. Thanks in advance,
Hugo
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|