Re: Some feedback about Jonas 5.2 M4 and Eclipse JEE 3.6.2 + JOPE 5.1
Daniel Le Berre SPAM <[email protected]> Tue, 15 Mar 2011 18:05:12 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
Hi, Answering to myself, to provide some information to people willing to use Jonas 5.2 and Eclipse: - The ear is not properly generated with the "run as" command, but is properly generated using the export ear command. As such, a simple workaround is to export the ear directly to $JONAS_HOME/deploy when Jonas is running. - JOPE uses its own command line for launching Jonas, i.e. does not rely on the settings of the scripts for the memory for instance (JAVA_OPTS variable in setenv). I had a lot of permgen space problems running Jonas with the default settings. Once can just change the memory settings directly in the Run configuration (JVM parameters). There is however something I did not find: how to prevent JOPE to try to redeploy the ear at each change in a file? I also noticed something strange: it looks like the message beans that were deployed in my ear are still attached to the topics after I redeploy an ear (I was expecting those beans to be cleaned up). As such, I got several copies of my message bean after several deployment. Is this a known issue? Cheers, Daniel On 08/03/2011 21:11, Daniel Le Berre wrote: > Dear all, > > I guess many of you are using ant or maven for deploying your apps on jonas. > > In my case, I use Eclipse as main environment for experimenting some > parts of the JEE specification on Jonas. > > Here are a few things I noticed regarding the integration of Jonas 5.2 > with Eclipse 3.6.2. > > a) deployment with recent releases of WTP (Eclipse JEE) > > WTP has changed last year the way the dependencies are described into > web projects. > > The dependencies are now expressed in the "Deployment Assembly" menu > item from the project properties. > > I noticed yesterday that utility jars (from an Eclipse "Utility > Project") are not correctly embedded in the ear to be deployed > in Jonas. > > Indeed, AFAIK, utility jars are supposed to be located in a lib > directory in the ear archive to be shared among all the components of > the ear. > > When creating an ear, the information regarding the lib directory is > correctly displayed in the ear project. However, when the ear file is > built for deployment in Jonas, the utility jar in added in the root of > the archive, not in the lib directory. > > As a consequence, the other modules (webapps in my case), are not able > to see the content of that jar. My only solution for now is to unzip the > produced ear, create the lib directory, move the utility jar in it and > create a new zip. > > I used the latest version of Eclipse JEE (3.6 SR2) + Jope 5.1 + Jonas > 5.2 M4 for my tests. > > It means for me that deploying an ear containing JPA entities shared > between webapps cannot be done within Eclipse :( > > b) Access to JPA 2.0 api in Eclipse > > The runtime of Jonas 5.x is defined as being the content of > $JONAS_HOME/lib/common + internal-ee-tld + java-ee-api. > > Jonas 5.2 is supposed to be JPA 2.0 friendly. However, the JPA 2.0 api > is not included in java-ee-api, which makes the use of JPA 2.0 a bit > painful inside eclipse (my workaround is for the moment to move the jpa > 2.0 api from the bootstrap directory to lib/common to have it seen from > Eclipse, not very nice :() > > I know that we already discussed that issue last year, and that passing > TCK for JEE 5 is at the origin of that organization of the API, but it > would be nice to have an easy way to pick those extra jars in Jope in > some ways. > > > I use Jonas in academia, just to demonstrate some features of EJB > programming, so a basic integration of Jonas and Eclipse is sufficient > for me. > > I think the current Jope WTP adapter is no far away from that right now. > However, Jope does not seem much active currently (no new release since > November 2009?). > > I wonder what kind of IDE integration people are using in this list? > > (Being a member of both OW2 and Eclipse communities drives me to use > those two tools together, so using another IDE is not an option ;)) > > Keep up the good work! > > Daniel > -- Daniel Le Berre mailto:[email protected] MCF-HDR, CRIL-CNRS UMR 8188, > Universite d'Artois http://www.cril.univ-artois.fr/~leberre >