Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

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

Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

jbc2
I'm looking for a simple way to Setup a local DEV environment in
Eclipse so that I can evaluate the source code (i.e. orbeon-src.zip ).

Here's what I've tried:

1. Downloaded orbeon-src.zip from nightly build repository (i.e.
http://forge.objectweb.org/nightlybuilds/ops/ops/)
2. Extracted to a temporary directory.
3. Fired up Eclipse.  New | Project...| Java Project From Existing Ant
Build File
4. When prompted to, navigated to build.xml in the extracted temp
directory (see step 2).
5. Clicked "Finish" & waited for Eclipse to finish "Building Workspace".

...sounds simple right?  Wrong:  After building I get approx. 65
errors in my "Problems" tab.

Some of which are just pathing issues.
-  Problem: SecureUtils.java refers to javax.crypto.* classes);
     - Resolution: adding an external Jar (i.e. jce.jar) to Project
Properties build path.

- Problem:  OrbeonPortlet2Delegate, OrbeonPortletDelegate,
OrbeonServletDelegate, OrbeonServletFilterDelegate,
PortalExternalConflict :  all had unimplemented methods (refactor
issue?)
     - Resolution: (cringe) added unimplemented method -- default return nulls.

6.  Errors are all gone (i think).

Is this the right way to setup a local environment of the source code
under Eclipse?  Has anyone found a better method??

I'm attaching an image of what the project/dir. structure ends up looking like.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

20100315_dirstructure.jpg (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

Alessandro  Vernet
Administrator
Joe,

We are using IntelliJ here, but the idea should be the same with Eclipse:

1) To create an "real build", the provided Ant's build.xml through
Eclipse Ant's support.
2) So you can quickly build files and so error checking works when
editing files, follow the step here:

http://wiki.orbeon.com/forms/doc/contributor-guide/java-development

Alex

On Tue, Mar 16, 2010 at 7:51 AM, Joe <[hidden email]> wrote:

> I'm looking for a simple way to Setup a local DEV environment in
> Eclipse so that I can evaluate the source code (i.e. orbeon-src.zip ).
>
> Here's what I've tried:
>
> 1. Downloaded orbeon-src.zip from nightly build repository (i.e.
> http://forge.objectweb.org/nightlybuilds/ops/ops/)
> 2. Extracted to a temporary directory.
> 3. Fired up Eclipse.  New | Project...| Java Project From Existing Ant
> Build File
> 4. When prompted to, navigated to build.xml in the extracted temp
> directory (see step 2).
> 5. Clicked "Finish" & waited for Eclipse to finish "Building Workspace".
>
> ...sounds simple right?  Wrong:  After building I get approx. 65
> errors in my "Problems" tab.
>
> Some of which are just pathing issues.
> -  Problem: SecureUtils.java refers to javax.crypto.* classes);
>     - Resolution: adding an external Jar (i.e. jce.jar) to Project
> Properties build path.
>
> - Problem:  OrbeonPortlet2Delegate, OrbeonPortletDelegate,
> OrbeonServletDelegate, OrbeonServletFilterDelegate,
> PortalExternalConflict :  all had unimplemented methods (refactor
> issue?)
>     - Resolution: (cringe) added unimplemented method -- default return nulls.
>
> 6.  Errors are all gone (i think).
>
> Is this the right way to setup a local environment of the source code
> under Eclipse?  Has anyone found a better method??
>
> I'm attaching an image of what the project/dir. structure ends up looking like.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

jbc2
Thanks for the info.

I've already checked out the link to the java-development page on the website, which conveniently has an "IntelliJ Setup" section in it.  Unfortunately, we're an Eclipse shop here.  I was actually hoping to have someone who uses Eclipse as their IDE respond to me and/or possibly update the java-development page w/ section(ex. "Eclipse Setup").

I'm assuming I'm not the only one who uses Eclipse and/or MyEclipse.   I've provided my attempt at setting up a project in Eclipse (as a starter), and I was hoping we could have open discussion among the Eclipse-users who might want to make any comments/suggestions on how they setup their environment (would be especially great to automate it some way, too).

Any Orbeon developers out their using Eclipse as their IDE?  Please respond.

Thanks.




Reply | Threaded
Open this post in threaded view
|

Re: Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

gino-m
Jbc2, all,

Today I got Orbeon working in Eclipse.  Here's what I did.  Note you will need Eclipse w/Java EE or similar, a working Tomcat instance configured in Eclipse, and Ant.

1) Check out Orbeon trunk from Git. I used EGit (update site: http://download.eclipse.org/egit/updates) and import from Git repository feature in Eclipse, but you won't have a valid project at the end.  Get the code however you like, but don't bother setting up the project yet.

2) Run ant orbeon-war with the skip.compilation=true Ant property set.  I did this through Eclipse's Ant support, but you may also use command line

3) Extract the attached ZIP to the root of the Orbeon forms project
eclipse-project.zip

4) In Eclipse, use File-->Import-->Existing projects and navigate to the root dir of the project

5) Make sure you have a Tomcat instance configured in Eclipse and add Orbeon webapp to it as you would and other webapp.  This implies you're using Eclipse's Java EE distro or similar.

6) Start Tomcat and start playing.

Can anyone confirm that this worked for them?  If enough people reply, maybe we can get the project files added to the Orbeon git repo so in the future we can import directly from Git into Eclipse?

HTH!!
Gino
Gino Miceli
Forest Information Systems Specialist
Food and Agriculture Organization of the United Nations
FAO-Finland Cooperation Programme
Sustainable Forest Management in a Changing Climate
Forest Management Division, Rm. D-406
Viale delle Terme di Caracalla, s.n.c.
00153 Rome, Italy
http://www.fao.org/forestry
Reply | Threaded
Open this post in threaded view
|

Re: Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

gino-m
Note to all: added corrections to my previous message; forgot to add Ant build step.  Please see the thread directly for update.
Gino Miceli
Forest Information Systems Specialist
Food and Agriculture Organization of the United Nations
FAO-Finland Cooperation Programme
Sustainable Forest Management in a Changing Climate
Forest Management Division, Rm. D-406
Viale delle Terme di Caracalla, s.n.c.
00153 Rome, Italy
http://www.fao.org/forestry
Reply | Threaded
Open this post in threaded view
|

Re: Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

lacco
Hi,

I just have executed your steps and - it works, even with debugging! I just had to do two adjustments:

1. Reimport all jars into build path (I think we are just using two different Orbeon versions)
2. Since I am on Java 5, I got the error "Project facet Java version 6.0 is not supported.". Solution: Project Properties => Project Facets => Change Version to "Java 5.0"

It would be great to put this into the wiki...
Reply | Threaded
Open this post in threaded view
|

RE: Re: Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse

rakesh parmar
Could anyone please let me know how to unsubscribe from this group >

Regards,
Rakesh

-----Original Message-----
From: lacco [mailto:[hidden email]]
Sent: Friday, April 23, 2010 3:08 PM
To: [hidden email]
Subject: [ops-users] Re: Is there a Simple Way to Setup an Orbeon Forms Project in Eclipse


Hi,

I just have executed your steps and - it works, even with debugging! I just had to do two adjustments:

1. Reimport all jars into build path (I think we are just using two different Orbeon versions) 2. Since I am on Java 5, I got the error "Project facet Java version 6.0 is not supported.". Solution: Project Properties => Project Facets => Change Version to "Java 5.0"

It would be great to put this into the wiki...
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Is-there-a-Simple-Way-to-Setup-an-Orbeon-Forms-Project-in-Eclipse-tp1594968p2040236.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws