importing Petal BPM as project in Eclipse

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

importing Petal BPM as project in Eclipse

abahrami
Hi,
We have downloaded Petal BPM Version 1.0 alpha and run it. It works fine with Firefox but won’t run under IE8.   We would like to import it as project to Eclipse. Would appreciate any help in that. If not Eclipse is there any other IDE tool to work with Petal BPM.
Best regards
abahrami
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

jplorre
Hi abahrami,
As a web tool Petals BPM is more targeting Internet browser clients than Eclipse RCP as well as SaaS cloud model. 
Regarding IDE, do you try the new Eclipse / Orion (http://www.eclipse.org/orion/) web tool ? It should be more suited I guess and we would be interested to argue for such an integration.
Regards,
Jean-Pierre

------------
Jean-Pierre LORRE
Innovation & Research director Petals Link (a registered trademark of EBM WebSourcing) - SOA open-source company
4 rue Amélie, 31000 Toulouse, France
Phone: + 33 (0) 562 734 384
Mobile: + 33 (0) 688 346 385

http://www.petalslink.com
http://research.petalslink.com

De : "abahrami [via Petals Forums]" <[hidden email]>
Date : Sat, 14 Apr 2012 07:21:24 -0700 (PDT)
À : Jean-Pierre LORRE <[hidden email]>
Objet : importing Petal BPM as project in Eclipse

Hi,
We have downloaded Petal BPM Version 1.0 alpha and run it. It works fine with Firefox but won’t run under IE8.   We would like to import it as project to Eclipse. Would appreciate any help in that. If not Eclipse is there any other IDE tool to work with Petal BPM.
Best regards
abahrami



If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/importing-Petal-BPM-as-project-in-Eclipse-tp3910231p3910231.html
To unsubscribe from Petals Forums, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

abahrami
Hi Jean-Pierre,
Thanks for the reply. Sorry for the confusion I guess i wasn't very clear. We are not interested in Eclipse RCP We are looking for web based BPMN based modeling and simulation. That's why we are interested in Petals BPM. We are using Eclipse with GWT plugin. We would like to use Eclipse to extend or add to your based source code.  So My question was as how one can import Petal BPM source to Eclipse (for extending and debugging etc).  If there is a an easy what or hard way :) to import the Petal BPM source to Eclipse we are very interested.
Regards
abahrami
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

nfleury
In reply to this post by abahrami
Hi abahrami,

You can find how to import Petals BPM into eclipse here : http://research.petalslink.org/display/petalsbpm/How+to+import+Petals+BPM+in+eclipse

If you are still encountering some issues, please just tell us more about these.

Regards
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

petals_ez
Hi nfleury,

I followed the "mvn eclipse:eclipse" approach from Maven side, then open a java project from within eclipse IDE.

But, I still get one error on petalsbpm project, basically something wrong with javax.servlet.http.HttpServlet. However, as soon as I include those jar files containing javax.servlet.http.HttpServlet class, I am getting a lot more errors. Which jar file do I need to get rid of the error?
Thanks.

Below is the picture:

javax.servlet.http.HttpServlet error

Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

nfleury
Hi petals_ez,

I've added some details on the steps to follow here http://research.petalslink.org/display/petalsbpm/How+to+import+Petals+BPM+in+eclipse, please make sure you followed every steps.
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

petals_ez
Thanks, nfleury.

I tried your steps before, but somehow I am still unable to compile project like geasytools under Eclipse.

Here is the screen shoot of the classpath under Preference.



I have some errors related to missing jar files at beginning, but after I added the jar files, then I only created more compilation errors.
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

nfleury
I guess you checked out the sources and compile them with maven as mentioned here : http://research.petalslink.org/display/petalsbpm/Building+Petals+BPM+from+sources ?

You said that it doesn't compile under Eclipse, but does it compile with maven in command line ? If not, can you copy paste the compilation failure please ?

If the compilation succeed with maven on the following projects geasytools, geasywebeditor, petalsbpm, (the order must be respected) there shouldn't have any reason for the import to fail under eclipse.

If you can compile every projects with maven and the compilation still fails under eclipse, maybe that you can try to install maven plugin under eclipse ...
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

petals_ez
nfleury,


Yes, I checked out the sources and compile them with maven as mentioned in : http://research.petalslink.org/display/petalsbpm/Building+Petals+BPM+from+sources.

I was able to build geasytools and geasywebeditor with Maven: 'mvn install'
However, for petalsbpm project, I got build errors with tests. So, I had to run:
mvn clean install -DskipTests=true

After the build, I was able to launch petalsbpm-client with 'mvn gwt:run'

Now, come to eclipse:

I ran mvn:eclipse:eclipse on all three directories. Then, in eclipse go to File > Import > General > Existing projects into Workspace, click on "Next", then select those three source directories.

Following is the screen shoot:



Only petalsbpm-client and petalsbpm-client-demo projects have errors.
I think there are some relative path problem between petalsbpm projects and geasytools and geasywebeditor projects.  

I did edit, delete, link the geasytools and geasywebeditor source folders or projects to petalsbpm-client and petalsbpm-client-demo projects, but so far no luck.

Am I missing something or making mistake?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

nfleury
petals_ez,

Can you copy/paste or upload the test errors that you have while you are trying to compile PetalsBPM please ? It would be nice to do it in debug mode ('mvn install -X') so that we can have informations on your OS, java version etc ... Also consider doing a svn up on the sources you checked out.

I can see in you screenshot that some of the projects are Maven Projects (GeasyTools and Webeditor) and the others are just Java projects (that are the result of mvn eclipse:eclipse I assume ...).

I think that you should try to delete the eclipse projects generated with 'mvn eclipse:eclipse' with a 'mvn eclipse:clean' and then import those projects directly into eclipse as maven projects ...

You should not have to edit petalsbpmn-client or petalsbpmn-client-demo projects if you imported them as maven projects, the dependencies/classpath should automatically be resolved

Long story short, after you checked out geastytools, geasywebeditor and petalsbpm should import each projects as 'Maven existing projects', you should end up with something like the following screenshot and you should not have to edit anything else, otherwise we just did something wrong :) ...



Just notice that there is no "GeasyTools" or "GeasyWebeditor" project. The errors in "governance" project should not be a problem
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

petals_ez
nfleury,

Here is the build log file when I ran: mvn install -X:

petalsbpm_build.log

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

petals_ez
In reply to this post by nfleury
nfleury,

I deleted everything and re-do the checked out geastytools, geasywebeditor and petalsbpm, and import each projects as 'Maven existing projects'

Here is the screen shot:



Several projects still have errors (total 72), including petalsbpmn-client or petalsbpmn-client-demo projects.

I must miss something, but don't know what.

Thanks.

A few other errors encountered during the build:







Reply | Threaded
Open this post in threaded view
|

Re: importing Petal BPM as project in Eclipse

petals_ez
In reply to this post by nfleury
nfleury,

After adding a few libraries and projects to petalsbpm-client and petalsbpm-client-demo, the build errors (except for governance project) went away.

How can I run petalsbpm-client under eclipse? Which main class is the launching class for petalsbpm-client project?

Thanks.

Below is the eclipse build screen shoot: