tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gauthier Libéral <liberal.gauth...@gmail.com>
Subject Re: OpenEJB and OSGi
Date Tue, 19 May 2009 14:17:34 GMT

It works well ^_^

For information, if you want to run this openejb-bundle inside tomcat via
the bridge.war, your ejb will need 2 more lines in the MANIFEST.MF:
Eclipse-RegisterBuddy: org.apache.openejb.server
Eclipse-BuddyPolicy: registered

For french people I will write a french tutorial in 3 or 4 weeks about
Equinox, OpenEJB and Tomcat on my website.

See ya
--
Gauthier
Website: http://www.gauthier.neo.cx


Jonathan Gallimore-2 wrote:
> 
> I've updated the POMs to use 3.1 OpenEJB jars instead of snapshot ones. I
> deleted my Maven repository directory and run a clean build and it seems
> to
> work, so if you take an update hopefully it'll now work for you.
> 
> Jon
> 
> 2009/5/11 Gauthier Libéral <liberal.gauthier@gmail.com>
> 
>>
>> Hi,
>>
>> The builded OpenEJB bundle work fine but the compilation of the eclipse
>> plugin doesn't work for me due to dependancy for these packages:
>>
>> - openejb-jee 3.1-SNAPSHOT
>> - openejb-core 3.1-SNAPSHOT
>> - openejb-loader 3.1-SNAPSHOT
>>
>> I tried, as maven said to do, to install 3.1-SNAPSHOT versions of the
>> jars
>> files (downloaded from
>>
>> https://repository.apache.org/content/repositories/public/org/apache/openejb/
>> )
>> manually with respectually
>>
>> - openejb-jee-3.1.1-SNAPSHOT.jar
>> - openejb-core-3.1.1-SNAPSHOT.jar
>> - openejb-loader-3.1.1-SNAPSHOT.jar
>>
>> But doesn't work:
>>
>> ------------------------------ Part of the error message
>> -------------------------------------
>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] Copying 2 resources
>> Downloading:
>>
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/openejb/openejb-jee/3.1-SNAPSHOT/openejb-jee-3.1-SNAPSHOT.pom
>> [INFO] Unable to find resource
>> 'org.apache.openejb:openejb-jee:pom:3.1-SNAPSHOT' in repository
>> apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>> Downloading:
>>
>> http://snapshots.repository.codehaus.org/org/apache/openejb/openejb-jee/3.1-SNAPSHOT/openejb-jee-3.1-SNAPSHOT.pom
>> [INFO] Unable to find resource
>> 'org.apache.openejb:openejb-jee:pom:3.1-SNAPSHOT' in repository
>> codehaus-snapshots (http://snapshots.repository.codehaus.org)
>> Downloading:
>>
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/openejb/openejb-core/3.1-SNAPSHOT/openejb-core-3.1-SNAPSHOT.pom
>> [INFO] Unable to find resource
>> 'org.apache.openejb:openejb-core:pom:3.1-SNAPSHOT' in repository
>> apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>> Downloading:
>>
>> http://snapshots.repository.codehaus.org/org/apache/openejb/openejb-core/3.1-SNAPSHOT/openejb-core-3.1-SNAPSHOT.pom
>> [INFO] Unable to find resource
>> 'org.apache.openejb:openejb-core:pom:3.1-SNAPSHOT' in repository
>> codehaus-snapshots (http://snapshots.repository.codehaus.org)
>> Downloading:
>>
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/openejb/openejb-loader/3.1-SNAPSHOT/openejb-loader-3.1-SNAPSHOT.pom
>> [INFO] Unable to find resource
>> 'org.apache.openejb:openejb-loader:pom:3.1-SNAPSHOT' in repository
>> apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>> Downloading:
>>
>> http://snapshots.repository.codehaus.org/org/apache/openejb/openejb-loader/3.1-SNAPSHOT/openejb-loader-3.1-SNAPSHOT.pom
>> [INFO] Unable to find resource
>> 'org.apache.openejb:openejb-loader:pom:3.1-SNAPSHOT' in repository
>> codehaus-snapshots (http://snapshots.repository.codehaus.org)
>> [INFO] [compiler:compile]
>> [INFO] Compiling 13 source files to D:\Documents and
>> Settings\A175726\Bureau\openejb-eclipse-plugin\common\target\classes
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>>
>> ------------------------------------------------------------------------------------------------
>>
>> And I think it's logical because there is no openejb directory at this
>> URL:
>> http://snapshots.repository.codehaus.org/org/apache/
>>
>> So how can I build the plugin ?
>>
>> ---
>> Gauthier
>>
>>
>> Jonathan Gallimore-2 wrote:
>> >
>> > Hi
>> >
>> > Sorry for the delay. I've had a bit of a play around and created a
>> sample
>> > Equinox directory with the bundles needed for OpenEJB, and added some
>> > basic
>> > instructions to the Wiki. The sample zip is available from
>> >
>> http://people.apache.org/~jgallimore/openejb-osgi.zip<http://people.apache.org/%7Ejgallimore/openejb-osgi.zip>and
>> the source code
>> > is
>> > available from
>> http://people.apache.org/~jgallimore/projects.zip<http://people.apache.org/%7Ejgallimore/projects.zip>
>> >
>> > The page I added to the Wiki is here:
>> > http://cwiki.apache.org/confluence/x/qMkB - please let me know if you
>> have
>> > any comments.
>> >
>> > To build the projects I pointed you at, you'll need to run Maven at the
>> > openejb-eclipse-plugin level the first time, this will go an download
>> the
>> > necessary Eclipse projects and add these to your local Maven
>> repository.
>> >
>> > Issuing the following at the openejb-eclipse-plugin level should work
>> and
>> > do
>> > what you're after:
>> >
>> > mvn -Dassemble clean install eclipse:clean eclipse:eclipse
>> >
>> > See here:
>> > http://cwiki.apache.org/confluence/display/OPENEJB/Building+from+source
>> > for
>> > more details. If you do encounter any issues with building the plugin,
>> > please do post and let us know.
>> >
>> > A couple of issues I noticed when putting this together:
>> >
>> > * I encountered a ConcurrentModificationException caused by adding
>> > System.getProperties() to a IStringVariableManager, commenting out line
>> > 44:
>> > addPropertyVariables(System.getProperties()); in OpenEjbPlugin resolved
>> > this, and everything seemed to work, but I don't know what the effect
>> of
>> > this will be - Deryck, do you have any thoughts on this?
>> >
>> > * We make a fair bit of use org.eclipse.core.runtime.FileLocator which
>> > converts URLs of resources in OSGi bundles to URLs on the file system -
>> I
>> > think I'm right in thinking that this is an Equinox / Eclipse specific
>> > thing
>> > and probably won't work in other OSGi implementations. I think it would
>> be
>> > nice if we can find a way of not requiring org.eclipse.core.runtime or
>> > org.eclipse.core.variables.
>> >
>> > Jon
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/OpenEJB-and-OSGi-tp23423565p23480595.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/OpenEJB-and-OSGi-tp23423565p23617331.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message