Yep, its related to the OCL, you'll need to add the
andromda-validation-library dependency to your
project.  From below: "Caused by:
java.lang.NoClassDefFoundError: 
org/andromda/translation/validation/OCLCollections",

So add this:

<dependency>
    <groupId>andromda-translation-libraries</groupId>
   
<artifactId>andromda-validation-library</artifactId>
    <version>${pom.currentVersion}</version>
</dependency>

See the animal-quiz/mda/project.xml as an example.

Chad

--- Carlos Cuenca <[EMAIL PROTECTED]> wrote:
> I had just build the androMda from the CVS, and I
> have the following 
> error on a model that did not have errors before:
> 
> is this error related with the OCL??
> 
> Carlos
> 
> 16:45:42,767 ERROR [hibernate] Failed to construct a
> meta facade of type 
> 'class
>
org.andromda.metafacades.uml14.AttributeFacadeLogicImpl'
> with 
> metaobje
> ct of type --> 'class
> org.omg.uml.foundation.core.Attribute$Impl'
> java.lang.NoClassDefFoundError: 
> org/andromda/translation/validation/OCLCollections
> 
> 16:45:42,777 ERROR [hibernate] Failed to construct a
> meta facade of type 
> 'class
>
org.andromda.metafacades.uml14.AttributeFacadeLogicImpl'
> with 
> metaobje
> ct of type -->
> 'org.omg.uml.foundation.core.Attribute$Impl'
>
org.andromda.core.metafacade.MetafacadeFactoryException:
> Failed to 
> construct a meta facade of type 'class 
> org.andromda.metafacades.uml14.AttributeFaca
> deLogicImpl' with metaobject of type --> 'class 
> org.omg.uml.foundation.core.Attribute$Impl'
>         at 
>
org.andromda.core.metafacade.MetafacadeFactory.internalCreateMetafacade(MetafacadeFactory.java:271)
>         at 
>
org.andromda.core.metafacade.MetafacadeFactory.createFacadeImpl(MetafacadeFactory.java:313)
>         at 
>
org.andromda.metafacades.uml14.EntityAttributeFacadeLogic.<init>(EntityAttributeFacadeLogic.java:22)
>         at 
>
org.andromda.metafacades.uml14.EntityAttributeFacadeLogicImpl.<init>(EntityAttributeFacadeLogicImpl.java:24)
>         at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> 
> Method)
> 16:45:42,777 ERROR [hibernate] Failed to construct a
> meta facade of type 
> 'class
>
org.andromda.metafacades.uml14.EntityAttributeFacadeLogicImpl'
> 
> with me
> taobject of type --> 'class
> org.omg.uml.foundation.core.Attribute$Impl'
> java.lang.reflect.InvocationTargetException
> Caused by:
>
org.andromda.core.metafacade.MetafacadeFactoryException:
> 
> Failed to construct a meta facade of type 'class 
> org.andromda.metafacades.uml14.At
> tributeFacadeLogicImpl' with metaobject of type --> 
> 'org.omg.uml.foundation.core.Attribute$Impl'
>         at 
>
org.andromda.core.metafacade.MetafacadeFactory.createFacadeImpl(MetafacadeFactory.java:330)
>         at 
>
org.andromda.metafacades.uml14.EntityAttributeFacadeLogic.<init>(EntityAttributeFacadeLogic.java:22)
>         at 
>
org.andromda.metafacades.uml14.EntityAttributeFacadeLogicImpl.<init>(EntityAttributeFacadeLogicImpl.java:24)
>         ... 91 more
> Caused by:
>
org.andromda.core.metafacade.MetafacadeFactoryException:
> 
> Failed to construct a meta facade of type 'class 
> org.andromda.metafacades.uml14.At
> tributeFacadeLogicImpl' with metaobject of type -->
> 'class 
> org.omg.uml.foundation.core.Attribute$Impl'
>         at 
>
org.andromda.core.metafacade.MetafacadeFactory.internalCreateMetafacade(MetafacadeFactory.java:271)
>         at 
>
org.andromda.core.metafacade.MetafacadeFactory.createFacadeImpl(MetafacadeFactory.java:313)
>         ... 93 more
> Caused by: java.lang.NoClassDefFoundError: 
> org/andromda/translation/validation/OCLCollections
>         at 
>
org.andromda.metafacades.uml14.AttributeFacadeLogic.__handleInvariants(AttributeFacadeLogic.java:449)
>         at 
>
org.andromda.core.metafacade.MetafacadeBase.validate(MetafacadeBase.java:64)
>         at 
>
org.andromda.core.metafacade.MetafacadeFactory.internalCreateMetafacade(MetafacadeFactory.java:252)
>         ... 94 more
> 16:45:42,787 ERROR [Cartridge] Error performing 
> Cartridge.processWithTemplate with template 
> 'templates/HibernateEntity.vsl', template context
> '{class=
>
org.andromda.metafacades.uml14.ModelElementFacadeLogicImpl[com.hwsol.server.datos.generales.sujeto.NumeroIdentidad],
> 
> str=org.andromda.core.
> [EMAIL PROTECTED]' and cartridge
> 'hibernate'
>
org.apache.velocity.exception.MethodInvocationException:
> Invocation of 
> method 'getAttributes' in  class 
> org.andromda.metafacades.uml14.EntityFacadeLog
> icImpl threw exception class 
>
org.andromda.core.metafacade.MetafacadeFactoryException
> : Failed to 
> construct a meta facade of type 'class
> org.andromda.m
> etafacades.uml14.EntityAttributeFacadeLogicImpl'
> with metaobject of type 
> --> 'class
> org.omg.uml.foundation.core.Attribute$Impl'
> 

> ATTACHMENT part 2 application/x-pkcs7-signature
name=smime.p7s




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to