hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyson, Jimmi" <dys...@quindell.com>
Subject Deploying HiveMind app using JNLP
Date Wed, 03 Nov 2004 09:58:05 GMT
I am trying to deploy an application that uses HiveMind via JNLP. The
application works fine run locally, but throws exceptions as below when run
via JNLP. Has anyone had any success doing this?

I have stripped the app right down so that the main method is like this:

**************************************************************************
public static void main(String[] args) {
  Registry registry = RegistryBuilder.constructDefaultRegistry();
}
**************************************************************************

I have tried deploying the application with no permissions and with
all-permissions (obviously signed all the jars for this).

I specify the minimum required jars like this:

**************************************************************************
<jar href="dist/hivemind-jnlp-1.0.jar"/>
<jar href="ext-libs/hivemind-1.0.jar"/>
<jar href="ext-libs/javassist.jar"/>
<jar href="ext-libs/commons-logging-1.0.4.jar"/>
<jar href="ext-libs/oro-2.0.8.jar"/>
**************************************************************************

Without signing the jars I get the following:

**************************************************************************
#### Java Web Start Error:
#### Unable to construct service hivemind.ClassFactory: Failure invoking
constructor for class org.apache.hivemind.service.impl.ClassFactoryImpl:
java.lang.reflect.InvocationTargetException
**************************************************************************

Assuming this is a security error, I signed the jars and requested
all-permissions, then get the following stack trace:

**************************************************************************
03-Nov-2004 09:52:51 org.apache.hivemind.impl.DefaultErrorHandler error
SEVERE: Error at
jar:file:C:/Documents%20and%20Settings/dysonj/Application%20Data/Sun/Java/De
ployment/cache/javaws/http/Dlocalhost/P80/DMhivemindjnlp/DMext-libs/RMhivemi
nd-1.0.jar!/META-INF/hivemodule.xml, line 519, column 62: Unable to process
attribute service-id (of element translator): Unable to lookup
org.apache.hivemind.schema.Translator: org.apache.hivemind.schema.Translator
org.apache.hivemind.ApplicationRuntimeException: Unable to lookup
org.apache.hivemind.schema.Translator: org.apache.hivemind.schema.Translator
	at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonP
roxy(SingletonServiceModel.java:114)
	at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(Singl
etonServiceModel.java:58)
	at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:1
71)
	at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:1
84)
	at
org.apache.hivemind.impl.RegistryImpl.getService(RegistryImpl.java:151)
	at
org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:60)
	at
org.apache.hivemind.schema.rules.ServiceTranslator.translate(ServiceTranslat
or.java:44)
	at
org.apache.hivemind.schema.rules.ReadAttributeRule.begin(ReadAttributeRule.j
ava:80)
	at
org.apache.hivemind.impl.SchemaElement.fireBegin(SchemaElement.java:209)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.processElement(SchemaProcessorI
mpl.java:213)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement(SchemaProces
sorImpl.java:188)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.process(SchemaProcessorImpl.jav
a:176)
	at
org.apache.hivemind.impl.ConfigurationPointImpl.constructElementsList(Config
urationPointImpl.java:202)
	at
org.apache.hivemind.impl.ConfigurationPointImpl.constructElements(Configurat
ionPointImpl.java:150)
	at
org.apache.hivemind.impl.ElementsInnerProxyList.inner(ElementsInnerProxyList
.java:46)
	at
org.apache.hivemind.impl.ElementsInnerProxyList.size(ElementsInnerProxyList.
java:62)
	at
org.apache.hivemind.impl.ElementsProxyList.size(ElementsProxyList.java:60)
	at java.util.AbstractList$Itr.hasNext(Unknown Source)
	at
org.apache.hivemind.impl.TranslatorManager.loadTranslators(TranslatorManager
.java:159)
	at
org.apache.hivemind.impl.TranslatorManager.getTranslator(TranslatorManager.j
ava:83)
	at
org.apache.hivemind.impl.RegistryImpl.getTranslator(RegistryImpl.java:420)
	at
org.apache.hivemind.impl.ModuleImpl.getTranslator(ModuleImpl.java:125)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.getTranslator(SchemaProcessorIm
pl.java:251)
	at
org.apache.hivemind.impl.SchemaElement.getTranslator(SchemaElement.java:244)
	at
org.apache.hivemind.impl.SchemaElement.getAttributeTranslator(SchemaElement.
java:251)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.getAttributeTranslator(SchemaPr
ocessorImpl.java:246)
	at
org.apache.hivemind.schema.rules.ReadAttributeRule.begin(ReadAttributeRule.j
ava:73)
	at
org.apache.hivemind.impl.SchemaElement.fireBegin(SchemaElement.java:209)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.processElement(SchemaProcessorI
mpl.java:213)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement(SchemaProces
sorImpl.java:188)
	at
org.apache.hivemind.impl.SchemaProcessorImpl.process(SchemaProcessorImpl.jav
a:176)
	at
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServic
eImplementation(InvokeFactoryServiceConstructor.java:82)
	at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCore
ServiceImplementation(AbstractServiceModelImpl.java:100)
	at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewS
erviceImplementation(AbstractServiceModelImpl.java:148)
	at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServ
iceImplementation(AbstractServiceModelImpl.java:130)
	at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualService
Implementation(SingletonServiceModel.java:69)
	at $InnerProxy_fffdd9d493_1._service($InnerProxy_fffdd9d493_1.java)
	at $InnerProxy_fffdd9d493_1.run($InnerProxy_fffdd9d493_1.java)
	at
$SingletonProxy_fffdd9d3b8_0.run($SingletonProxy_fffdd9d3b8_0.java)
	at
org.apache.hivemind.impl.RegistryImpl.startup(RegistryImpl.java:323)
	at
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.j
ava:417)
	at
org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(RegistryBu
ilder.java:711)
	at Main.main(Main.java:14)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
	at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
	at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to lookup
org.apache.hivemind.schema.Translator: org.apache.hivemind.schema.Translator
	at
org.apache.hivemind.service.impl.CtClassSource.getCtClass(CtClassSource.java
:50)
	at
org.apache.hivemind.service.impl.ClassFabImpl.addInterface(ClassFabImpl.java
:64)
	at
org.apache.hivemind.impl.ProxyBuilder.<init>(ProxyBuilder.java:62)
	at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonP
roxyClass(SingletonServiceModel.java:129)
	at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonP
roxy(SingletonServiceModel.java:89)
	... 53 more
Caused by: javassist.NotFoundException:
org.apache.hivemind.schema.Translator
	at javassist.ClassPoolTail.openClassfile(ClassPoolTail.java:300)
	at javassist.ClassPoolTail.checkClassName(ClassPoolTail.java:177)
	at javassist.ClassPool.checkClassName(ClassPool.java:709)
	at javassist.ClassPool.get0(ClassPool.java:572)
	at javassist.ClassPool.get(ClassPool.java:561)
	at
org.apache.hivemind.service.impl.CtClassSource.getCtClass(CtClassSource.java
:46)
	... 57 more
03-Nov-2004 09:52:51 org.apache.hivemind.impl.DefaultErrorHandler error
SEVERE: Error at
jar:file:C:/Documents%20and%20Settings/dysonj/Application%20Data/Sun/Java/De
ployment/cache/javaws/http/Dlocalhost/P80/DMhivemindjnlp/DMext-libs/RMhivemi
nd-1.0.jar!/META-INF/hivemodule.xml, line 519, column 62: Translator
contribution 'object' must specify either the service-id or class attribute.
#### Java Web Start Error:
#### Unable to construct configuration hivemind.Startup: No translator named
'object' has been registered in configuration point hivemind.Translators.
**************************************************************************

Any ideas?

Thanks,
Jim

---------------------------------------------------------------------
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