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
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