One thing that caught my eye was that you have defined two
configuration points with the id "Silver". That isn't allowed. I'm
surprised that this doesn't result in an error being reported. I'll
try to verify this.

--knut

On 5/23/05, belaran <[EMAIL PROTECTED]> wrote:
> Basicly , i want to create two distinct object :
>  one is SilverUser
>  the other is goldUser
>  
>  (Theirs configuration attribut are same just because i'm too lazy to make
> different one)
>  
>  here is the hivemodule.xml:
>  <?xml version="1.0"?>
>  <module id="UserProfilService" version="1.0.0">
>      <configuration-point id="Silver">
>          <schema>
>              <element name="profile">
>                  <attribute name="id" required="true"/>
>                  <attribute name="securityClearance" required="true"/>
>                      <conversion class="user.implementation.SilverUser"/>   
>             
>              </element>
>          </schema>
>      </configuration-point>
>  
>      <configuration-point id="User">
>          <schema>
>              <element name="profile">
>                  <attribute name="id" required="true"/>
>                  <attribute name="securityClearance" required="true"/>
>                      <conversion class="user.implementation.GoldUser"/>     
>           
>              </element>
>          </schema>
>      </configuration-point>
>  
>      <contribution configuration-id="hivemind.SymbolSources">
>          <source name="configurator"
> class="user.implementation.Configurator"/>
>      </contribution>
>      <contribution configuration-id="User">
>          <profile id="1"
> securityClearance="${firstLevel}"/>
>      </contribution>
>      <configuration-point id="Silver">
>          <schema>
>              <element name="profile">
>                  <attribute name="id" required="true"/>
>                  <attribute name="securityClearance" required="true"/>
>                      <conversion class="user.implementation.SilverUser"/>   
>             
>              </element>
>          </schema>
>      </configuration-point>
>          <contribution configuration-id="Silver">
>          <profile id="1"
> securityClearance="${secondLevel}"/>
>      </contribution>
>  </module>
> 
> 2005/5/23, Knut Wannheden <[EMAIL PROTECTED]>:
> > Belaran,
> > 
> > I think you've mixed up the concepts "configuration point" and
> > "contribution" in your problem description. Could you please supply
> > the contents of your hivemodule.xml and the Java code? 
> > 
> > --knut
> > 
> > On 5/23/05, belaran <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I want, inside the same module, to have two distinct configuration
> > > point, associated with a contribution point each one... 
> > > At the first call to the registry, i ask for the first contribution,
> > > no problem. Several lines of java later, when i ask for the second
> > > configuration, i have this :
> > >
> > > org.apache.hivemind.ApplicationRuntimeException :
> Configuration point
> > > Module.ConfigTwo does not exist
> > >
> > > Have i misunderstand something ? A configuration is unique in an
> > > module ? Or there a problem somewhere else ?
> > >
> > >
> ---------------------------------------------------------------------
> > > 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]

Reply via email to