A problem with such a registry would be that you can no longer give your 
translators, object providers, .. short and precise names because there is 
already a registered name. This would force you to pick a less descriptive name 
for your translator, ...
How about a concept which uses something like name spaces (like XML, Java, 
C++)? Maybe this direction could lead to a sufficent solution.
 
Stefan

________________________________

Von: Jean-Francois Poilpret [mailto:[EMAIL PROTECTED]
Gesendet: Mi 13.07.2005 02:45
An: [email protected]; 'Vinicius Carvalho'
Betreff: RE: Hivemind 1.1 + Tapestry 4.0



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:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 6:28 AM
To: [email protected]; 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to