cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with designer 5.6 in rcp application

mbeicht
Champ in-the-making
Champ in-the-making
Hello.

I am developing a RCP application which uses the Activiti Designer.
Until today the app was working just fine with the version 5.5 of the designer.

Today I tryed to build a new release and maven fetches the new version 5.6 from the updatesite.
After that build I was not able to open the editor anymore and a class not found exception comes up.

"java.lang.ClassNotFoundException: org.eclipse.bpmn2.Bpmn2Package
   at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
   at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
…….
…….
"

I think that there is a dependency in my rcp target definition missing. But i can't figure out where to find the "org.eclipse.bpmn2" package?
In my target platform i am using sdk 3.6.2.M20110210-1200 from http://download.eclipse.org/eclipse/updates/3.6
and I have already tried to include all available plugins.

Does anyone knew about this problem and can give me a hint, how to solve the problem or how to switch back to 5.5?

regards
Marco
6 REPLIES 6

trademak
Star Contributor
Star Contributor
Hi,

You have to follow the development guide that you can find on the WIKI.
You have to generate the BPMN 2.0 model sources from the org.activiti.designer.model project with the EMF plugin.

Best regards,

mbeicht
Champ in-the-making
Champ in-the-making
Hello Tijs.

Thanks for the hint. Now i knew how to generate or better where to find the missing files.

But why aren't these files included in the p2 "org.activiti.designer.model (5.6)" I downloaded with mvn from "http://activiti.org/designer/update" ?
After your reply I have compared the org.activiti.designer.model_5.6.0.jar in my development Helios and in the Tycho build RCP.
The version used by tycho dosn't includes the ".class" files and has only a size of 57kb. The correct one I took from my development Helios is much bigger (700k)
and includes the files.

Do you have any Idea where the wrong version may come from? Or do you ever had a similar problem with tycho?

best regards
Marco

trademak
Star Contributor
Star Contributor
Hi Marco,

I don't think I understand your question. Which file was only 57 kb?
When you use the source code of the Activiti Designer, you always first have to generate the BPMN 2.0 model classes in the org.activiti.designer.model project, did you do this?

Best regards,

mbeicht
Champ in-the-making
Champ in-the-making
Hello Tijs.

The org.activiti.designer.model_5.6.0.jar that is included in the product I build with maven Tycho is only 57k big and dosen't containes the class files.
So i don't know where this file comes from, because in the target definition I defined  "http://activiti.org/designer/update" as activiti updatesite. And I thought, that I get a ready to run version when I include the activiti designer feature in my own application.

When i used that updatesite in my development Helios i never had to generate any files and I never had to check out the sourcecode.

regards
Marco

trademak
Star Contributor
Star Contributor
Hi Marco,

I've checked the model jar file in the activiti.org/designer/update site and it's above 700 kb, so I don't understand your problem.
It would be better to my opinion to build the JARs from the source code as you're building a RCP application.

Best regards,

mbeicht
Champ in-the-making
Champ in-the-making
Hello Tijs.

Thanks for your help.
Today I start a new build and don't know why, but the file fetched by tycho has now 700k and the app is working
properly again.

best regards
Marco