hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor A. Deruga" <ingva...@hotbox.ru>
Subject Problems with project
Date Sat, 06 Nov 2004 17:58:08 GMT
Good *, dear friends!

I have a question regarding my project that war written for hivemind. When I 
try to run it, I get this message (the full exceptions chain is listed at the 
end of this email):

		[java] Exception in thread "main"
		org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
		hivemind.ClassFactory: Failure invoking constructor for class
 		org.apache.hivemind.service.impl.ClassFactoryImpl:
		java.lang.reflect.InvocationTargetException

in the following code:

		Registry registry = RegistryBuilder.constructDefaultRegistry();

I have this in hivemodule.xml:
	<?xml version="1.0"?>
	<module id="src.server.api" version="1.0.0">
		<service-point id="SocketManager" interface="src.server.api.SocketManager">
			<create-instance class="src.server.impl.SocketManagerImpl"/>
			<interceptor service-id="hivemind.LoggingInterceptor"/>
		</service-point>
		<service-point id="IMServer" interface="src.server.api.IMServer">
	    <invoke-factory>
	      <!-- Autowires service properties based on interface! -->
	      <constuct class="src.server.impl.IMServerImpl"/>
	    </invoke-factory>
	    <interceptor service-id="hivemind.LoggingInterceptor"/>
	  </service-point>   
	
	<!--	<service-point id="IMServer" interface="src.server.api.IMServer">
			<create-instance class="src.server.impl.IMServerImpl"/>
			<interceptor service-id="hivemind.LoggingInterceptor"/>
		</service-point> -->
	</module>

Are there any ideas about the reason of this mistake?

P.S.: the full exceptions chain:

   [java] Exception in thread "main" 
org.apache.hivemind.ApplicationRuntimeException: Unable to construct service 
hivemind.ClassFactory: Failure invoking constructor for class 
org.apache.hivemind.service.impl.ClassFactoryImpl: 
java.lang.reflect.InvocationTargetException
     [java] at 
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:114)
     [java] at 
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:58)
     [java] at 
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:171)
     [java] at 
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:184)
     [java] at 
org.apache.hivemind.impl.RegistryImpl.getService(RegistryImpl.java:151)
     [java] at 
org.apache.hivemind.impl.RegistryImpl.startup(RegistryImpl.java:321)
     [java] at 
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:417)
     [java] at 
org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(RegistryBuilder.java:711)
     [java] at src.server.impl.Starter.main(Unknown Source)
     [java] Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable 
to construct service hivemind.ClassFactory: Failure invoking constructor for 
class org.apache.hivemind.service.impl.ClassFactoryImpl: 
java.lang.reflect.InvocationTargetException
     [java] at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:156)
     [java] at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:130)
     [java] at 
org.apache.hivemind.impl.servicemodel.PrimitiveServiceModel.getService(PrimitiveServiceModel.java:41)
     [java] at 
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:171)
     [java] at 
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:184)
     [java] at 
org.apache.hivemind.impl.RegistryImpl.getService(RegistryImpl.java:151)
     [java] at 
org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:60)
     [java] at 
org.apache.hivemind.impl.ProxyBuilder.<init>(ProxyBuilder.java:53)
     [java] at 
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:129)
     [java] at 
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:89)
     [java] ... 8 more
     [java] Caused by: org.apache.hivemind.ApplicationRuntimeException: 
Failure invoking constructor for class 
org.apache.hivemind.service.impl.ClassFactoryImpl: 
java.lang.reflect.InvocationTargetException
     [java] at 
org.apache.hivemind.util.ConstructorUtils.invoke(ConstructorUtils.java:140)
     [java] at 
org.apache.hivemind.util.ConstructorUtils.invokeMatchingConstructor(ConstructorUtils.java:87)
     [java] at 
org.apache.hivemind.util.ConstructorUtils.invokeConstructor(ConstructorUtils.java:72)
     [java] at 
org.apache.hivemind.impl.CreateClassServiceConstructor.constructCoreServiceImplementation(CreateClassServiceConstructor.java:40)
     [java] at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:100)
     [java] at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:148)
     [java] ... 17 more
     [java] Caused by: java.lang.reflect.InvocationTargetException
     [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
     [java] at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     [java] at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
     [java] at 
org.apache.hivemind.util.ConstructorUtils.invoke(ConstructorUtils.java:136)
     [java] ... 22 more
     [java] Caused by: java.lang.NoClassDefFoundError: javassist/ClassPool
     [java] at java.lang.ClassLoader.defineClass0(Native Method)
     [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
     [java] at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
     [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
     [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
     [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
     [java] at java.security.AccessController.doPrivileged(Native Method)
     [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
     [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
     [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
     [java] at 
org.apache.hivemind.service.impl.ClassFactoryImpl.<init>(ClassFactoryImpl.java:36)
     [java] ... 27 more
     [java] Java Result: 1

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message