You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2005/07/13 01:28:28 UTC

Hivemind 1.1 + Tapestry 4.0

Hello there! I'm deploying my first Tapestry 4.0 + Hivemind app and
I'm getting this error:


org.apache.hivemind.ApplicationRuntimeException: Unable to construct
service hivemind.Startup: Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
line 597, column 43: Unable to process attribute autowire-services (of
element construct): Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
line 32, column 79: Translator 'deferred-object' duplicates a previous
definition at jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2.jar!/META-INF/hivemodule.xml,
line 234, column 79 and has been ignored.
   location: jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
line 597, column 43

org.apache.hivemind.ApplicationRuntimeException: Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
line 597, column 43: Unable to process attribute autowire-services (of
element construct): Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
line 32, column 79: Translator 'deferred-object' duplicates a previous
definition at jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2.jar!/META-INF/hivemodule.xml,
line 234, column 79 and has been ignored.
   location: jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
line 597, column 43

org.apache.hivemind.ApplicationRuntimeException: Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
line 32, column 79: Translator 'deferred-object' duplicates a previous
definition at jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2.jar!/META-INF/hivemodule.xml,
line 234, column 79 and has been ignored.
   location: jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
line 32, column 79

I've just started with hivemind and hiveutils with Tapestry but I know
I have some services duplicated. How can I solve this problem?

Regards

Vinicius

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


Re: Hivemind 1.1 + Tapestry 4.0

Posted by Howard Lewis Ship <hl...@gmail.com>.
I beleieve some code moved back and forth between the two code bases. 
Try HiveMind 1.1-beta-2.

On 7/12/05, Vinicius Carvalho <ja...@gmail.com> wrote:
> Hello there! I'm deploying my first Tapestry 4.0 + Hivemind app and
> I'm getting this error:
> 
> 
> org.apache.hivemind.ApplicationRuntimeException: Unable to construct
> service hivemind.Startup: Error at
> jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
> line 597, column 43: Unable to process attribute autowire-services (of
> element construct): Error at
> jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
> line 32, column 79: Translator 'deferred-object' duplicates a previous
> definition at jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2.jar!/META-INF/hivemodule.xml,
> line 234, column 79 and has been ignored.
>    location: jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
> line 597, column 43
> 
> org.apache.hivemind.ApplicationRuntimeException: Error at
> jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
> line 597, column 43: Unable to process attribute autowire-services (of
> element construct): Error at
> jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
> line 32, column 79: Translator 'deferred-object' duplicates a previous
> definition at jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2.jar!/META-INF/hivemodule.xml,
> line 234, column 79 and has been ignored.
>    location: jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1.jar!/META-INF/hivemodule.xml,
> line 597, column 43
> 
> org.apache.hivemind.ApplicationRuntimeException: Error at
> jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
> line 32, column 79: Translator 'deferred-object' duplicates a previous
> definition at jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2.jar!/META-INF/hivemodule.xml,
> line 234, column 79 and has been ignored.
>    location: jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META-INF/hivemodule.xml,
> line 32, column 79
> 
> I've just started with hivemind and hiveutils with Tapestry but I know
> I have some services duplicated. How can I solve this problem?
> 
> Regards
> 
> Vinicius
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


RE: Hivemind 1.1 + Tapestry 4.0

Posted by Jean-Francois Poilpret <jf...@hcm.vnn.vn>.
Hi,

That problem is "funny", I just downloaded Tapestry 4 beta-2 and after
checking its hivemodule.xml, discovered that it defines a "deferred-object"
translator. However, in HiveMind Utilities hiveutils module, I also defined
such a "deferred-object" translator!!!

This means 2 things:
1- one of us (Howard or me) will have to change the name of this translator
(I suggest I'll do but only at a later time, since I soon take off for my
holidays and need to prepare;-)
2- we should find one way to avoid this kind of problem (same names of
translators, the same goes as well for ObjectProviders in fact) in the
future. Maybe having a simple "registry" of "official names" so that when
someone develops new ones, he can check their names don't already exist
first, and then register new names so that nobody will reuse in the future.

For point 1, while waiting for me to prepare a new delivery, what is
possible is to search, in hivemodule.xml of hiveutils.jar, all occurrences
of "deferred-object" and replace with another -less common- name. That
should be enough to work around your problem. As far as I remember, there is
no reference to this "deferred-object" translator anywhere else in HiveMind
Utilities.

For point 2, discussion is open to solve this kind of problem (that will
probably occur more in the future as we -hopefully- see utility modules for
hivemind appear...) The problem with my solution is the potential work for
the maintainer of this "Translator/ObejctProvider Names Registry" which
should be, I believe, hosted on hivemind web site (so this would be a job
for a hivemind committer ;-))

Cheers

	Jean-Francois

-----Original Message-----
From: Vinicius Carvalho [mailto:java.vinicius@gmail.com] 
Sent: Wednesday, July 13, 2005 6:28 AM
To: hivemind-user@jakarta.apache.org; Tapestry users
Subject: Hivemind 1.1 + Tapestry 4.0

Hello there! I'm deploying my first Tapestry 4.0 + Hivemind app and
I'm getting this error:


org.apache.hivemind.ApplicationRuntimeException: Unable to construct
service hivemind.Startup: Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1
.jar!/META-INF/hivemodule.xml,
line 597, column 43: Unable to process attribute autowire-services (of
element construct): Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META
-INF/hivemodule.xml,
line 32, column 79: Translator 'deferred-object' duplicates a previous
definition at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2
.jar!/META-INF/hivemodule.xml,
line 234, column 79 and has been ignored.
   location:
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1
.jar!/META-INF/hivemodule.xml,
line 597, column 43

org.apache.hivemind.ApplicationRuntimeException: Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1
.jar!/META-INF/hivemodule.xml,
line 597, column 43: Unable to process attribute autowire-services (of
element construct): Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META
-INF/hivemodule.xml,
line 32, column 79: Translator 'deferred-object' duplicates a previous
definition at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2
.jar!/META-INF/hivemodule.xml,
line 234, column 79 and has been ignored.
   location:
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivemind-1.1-beta-1
.jar!/META-INF/hivemodule.xml,
line 597, column 43

org.apache.hivemind.ApplicationRuntimeException: Error at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META
-INF/hivemodule.xml,
line 32, column 79: Translator 'deferred-object' duplicates a previous
definition at
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/tapestry-4.0-beta-2
.jar!/META-INF/hivemodule.xml,
line 234, column 79 and has been ignored.
   location:
jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hiveutils.jar!/META
-INF/hivemodule.xml,
line 32, column 79

I've just started with hivemind and hiveutils with Tapestry but I know
I have some services duplicated. How can I solve this problem?

Regards

Vinicius

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




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