Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » validating OCLs with API for UML models
validating OCLs with API for UML models [message #1450668] Wed, 22 October 2014 19:07 Go to next message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
Hi,

I am trying to use the OCL APIs for validating the UML models. Basically my OCLs are embeded in a UML profile as OpaqueExpressions and the profile and its stereotypes are applied to the UML models. I followed the approach that Ronan explained in :
https://www.eclipse.org/forums/index.php/t/505128/

I try to use it in an stand alone project instead of using the plugin. But when I run my application I receive the following error:
org.eclipse.uml2.uml.internal.resource.UMLResourceImpl@152e7cb6 uri='file:C:/models/modelWithOCL.uml'
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.eclipse.ocl.examples.pivot.utilities.PivotUtil.<clinit>(PivotUtil.java:106)

I would appreciate if you can help me with this.

Thanks,
Azadeh
Re: validating OCLs with API for UML models [message #1452831 is a reply to message #1450668] Sun, 26 October 2014 00:39 Go to previous messageGo to next message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
I added org.apache.log4j_1.2.15.v201012070815.jar into the project libraries and that error is resolved but now I am getting another error :

java.lang.IllegalStateException: No registration for content type 'org.eclipse.ocl.examples.oclas.uml'
Re: validating OCLs with API for UML models [message #1452982 is a reply to message #1452831] Sun, 26 October 2014 06:40 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

As I replied before (accidentally off-list) see

http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.ocl.doc%2Fhelp%2FPivotStandalone.html

Regards

Ed Willink


On 26/10/2014 01:39, azadeh jb wrote:
> I added org.apache.log4j_1.2.15.v201012070815.jar into the project
> libraries and that error is resolved but now I am getting another error :
>
> java.lang.IllegalStateException: No registration for content type
> 'org.eclipse.ocl.examples.oclas.uml'
>
Re: validating OCLs with API for UML models [message #1455384 is a reply to message #1452982] Wed, 29 October 2014 10:05 Go to previous message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
Hi,

Thanks Ed. It worked!

Thanks & Regards,
Azadeh
Previous Topic:Luna Problem with derived properties
Next Topic:Enabling direct OCL-to-Java code generation in Indigo / eclipse 3.7.2
Goto Forum:
  


Current Time: Wed Apr 24 22:09:26 GMT 2024

Powered by FUDForum. Page generated in 0.03321 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top