You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jonathan Gallimore <jo...@gmail.com> on 2010/08/09 21:40:35 UTC

Jetty Integration

Hi All,

David and I did a bit of coding on integrating OpenEJB with Jetty a while
back at the meetup in Milan. I've done a bit of work on this on and off
recently, and have just committed what I've got. Currently we can run Jetty
in a test and get one of our sample war files deployed. A fair bit is
working, but httpejbd and webservices are both missing, as is support for
ear files etc. I'll be playing around with it some more to try and build on
the functionality, but if anyone else gives it a go I'd love to know how you
get on.

It should be pretty self contained, and so it shouldn't break anything for
anyone else, but if it does cause any problems, please shout.

Cheers

Jon

Re: Build Failure

Posted by Ivan <xh...@gmail.com>.
I will fix these, think I missed to update some codes.

2011/5/26 Ranga S <sr...@yahoo.com>:
>
> Hi
>
> I just checked out the source code using SVN from:  http://svn.apache.org/repos/asf/openejb/trunk/openejb3/
> When I try to build using Maven (2.2.1), three tests are failing. Output from the failed tests is as follows:
>
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.core.webservices.HandlerResolverImplTest
> -------------------------------------------------------------------------------
> Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.574 sec <<< FAILURE!
> testServiceMatching(org.apache.openejb.core.webservices.HandlerResolverImplTest)  Time elapsed: 0.008 sec  <<< ERROR!
> org.apache.openejb.OpenEJBException: Cannot unmarshall the webservices.xml file: file:/Users/sranga/TomEE/openejb3/container/openejb-core/target/test-classes/handlers_service.xml: java.lang.NullPointerException
> at org.apache.openejb.config.ReadDescriptors.readHandlerChains(ReadDescriptors.java:456)
> at org.apache.openejb.core.webservices.HandlerResolverImplTest.readHandlerChains(HandlerResolverImplTest.java:170)
> at org.apache.openejb.core.webservices.HandlerResolverImplTest.testServiceMatching(HandlerResolverImplTest.java:56)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> ...
> testPortMatching(org.apache.openejb.core.webservices.HandlerResolverImplTest)  Time elapsed: 0.056 sec  <<< ERROR!
> org.apache.openejb.OpenEJBException: Cannot unmarshall the webservices.xml file: file:/Users/sranga/TomEE/openejb3/container/openejb-core/target/test-classes/handlers_port.xml: java.lang.NullPointerException
> at org.apache.openejb.config.ReadDescriptors.readHandlerChains(ReadDescriptors.java:456)
> at org.apache.openejb.core.webservices.HandlerResolverImplTest.readHandlerChains(HandlerResolverImplTest.java:170)
> at org.apache.openejb.core.webservices.HandlerResolverImplTest.testPortMatching(HandlerResolverImplTest.java:109)
> ...
> ...
> testMixedMatching(org.apache.openejb.core.webservices.HandlerResolverImplTest)  Time elapsed: 0.004 sec  <<< ERROR!
> org.apache.openejb.OpenEJBException: Cannot unmarshall the webservices.xml file: file:/Users/sranga/TomEE/openejb3/container/openejb-core/target/test-classes/handlers_mixed.xml: java.lang.NullPointerException
> at org.apache.openejb.config.ReadDescriptors.readHandlerChains(ReadDescriptors.java:456)
> at org.apache.openejb.core.webservices.HandlerResolverImplTest.readHandlerChains(HandlerResolverImplTest.java:170)
> at org.apache.openejb.core.webservices.HandlerResolverImplTest.testMixedMatching(HandlerResolverImplTest.java:139)
> ...
> ...
> Caused by: java.lang.NullPointerException
> at org.apache.openejb.jee.HandlerChainsStringQNameAdapter.unmarshal(HandlerChainsStringQNameAdapter.java:44)
> at org.apache.openejb.jee.HandlerChainsStringQNameAdapter.unmarshal(HandlerChainsStringQNameAdapter.java:29)
> at com.sun.xml.internal.bind.v2.runtime.reflect.AdaptedAccessor.set(AdaptedAccessor.java:70)
>
>
> - Ranga



-- 
Ivan

Re: Build Failure

Posted by Ranga S <sr...@yahoo.com>.
      
Hi

I just checked out the source code using SVN from:  http://svn.apache.org/repos/asf/openejb/trunk/openejb3/
When I try to build using Maven (2.2.1), three tests are failing. Output from the failed tests is as follows:

-------------------------------------------------------------------------------
Test set: org.apache.openejb.core.webservices.HandlerResolverImplTest
-------------------------------------------------------------------------------
Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.574 sec <<< FAILURE!
testServiceMatching(org.apache.openejb.core.webservices.HandlerResolverImplTest)  Time elapsed: 0.008 sec  <<< ERROR!
org.apache.openejb.OpenEJBException: Cannot unmarshall the webservices.xml file: file:/Users/sranga/TomEE/openejb3/container/openejb-core/target/test-classes/handlers_service.xml: java.lang.NullPointerException 
at org.apache.openejb.config.ReadDescriptors.readHandlerChains(ReadDescriptors.java:456) 
at org.apache.openejb.core.webservices.HandlerResolverImplTest.readHandlerChains(HandlerResolverImplTest.java:170) 
at org.apache.openejb.core.webservices.HandlerResolverImplTest.testServiceMatching(HandlerResolverImplTest.java:56) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
...
testPortMatching(org.apache.openejb.core.webservices.HandlerResolverImplTest)  Time elapsed: 0.056 sec  <<< ERROR!
org.apache.openejb.OpenEJBException: Cannot unmarshall the webservices.xml file: file:/Users/sranga/TomEE/openejb3/container/openejb-core/target/test-classes/handlers_port.xml: java.lang.NullPointerException 
at org.apache.openejb.config.ReadDescriptors.readHandlerChains(ReadDescriptors.java:456) 
at org.apache.openejb.core.webservices.HandlerResolverImplTest.readHandlerChains(HandlerResolverImplTest.java:170) 
at org.apache.openejb.core.webservices.HandlerResolverImplTest.testPortMatching(HandlerResolverImplTest.java:109) 
...
...
testMixedMatching(org.apache.openejb.core.webservices.HandlerResolverImplTest)  Time elapsed: 0.004 sec  <<< ERROR!
org.apache.openejb.OpenEJBException: Cannot unmarshall the webservices.xml file: file:/Users/sranga/TomEE/openejb3/container/openejb-core/target/test-classes/handlers_mixed.xml: java.lang.NullPointerException 
at org.apache.openejb.config.ReadDescriptors.readHandlerChains(ReadDescriptors.java:456) 
at org.apache.openejb.core.webservices.HandlerResolverImplTest.readHandlerChains(HandlerResolverImplTest.java:170) 
at org.apache.openejb.core.webservices.HandlerResolverImplTest.testMixedMatching(HandlerResolverImplTest.java:139) 
...
...
Caused by: java.lang.NullPointerException 
at org.apache.openejb.jee.HandlerChainsStringQNameAdapter.unmarshal(HandlerChainsStringQNameAdapter.java:44) 
at org.apache.openejb.jee.HandlerChainsStringQNameAdapter.unmarshal(HandlerChainsStringQNameAdapter.java:29) 
at com.sun.xml.internal.bind.v2.runtime.reflect.AdaptedAccessor.set(AdaptedAccessor.java:70) 


- Ranga

Re: Jetty Integration

Posted by David Blevins <da...@gmail.com>.
On May 25, 2011, at 1:37 AM, gkorland wrote:

> We're interested in integrating an EJB container and we're testing now with
> EasyBeans,  JBoss Embeddable EJB and OpenEJB.
> 
> We prefer OpenEJB but currently we only managed to run EasyBeans on our
> Jetty.
> Obviously just deploying the war on the Jetty didn't work.
> We might be interested in hacking it.
> Can you estimate the work for adapting the Tomcat support to support Jetty?

It needs a solid push to get it over the hump.  One very focused person-month would be my estimate.  After that point it would be way easier for others to hack on odds and ends in spare time.  There are plenty of people interested in that, just no one with the time to dedicate to that first sprint.

Tomcat and Jetty think differently, so much of the task is redo-ing the same work the Jetty way.  Overall the milestones are:

  - Hooking into the Jetty Deploy cycle
  - Scanning all the web components
  - Merging JNDI/Injection
  - Leveraging Jetty Security
  - Hooking up Atomikos for Transactions and DB Conncetions

There's a rough prototype of some of this here: http://svn.apache.org/repos/asf/openejb/trunk/openejb3/assembly/openejb-jetty/openejb-jetty-common/src/main/java/org/apache/openejb/jetty/common

The related tests started failing and no one had the time to investigate so they've been disabled.  But progress was made at one point.  As I say it needs someone to get it over the hump and with a handful more of tests this time.  Ideally to the point where we can add some examples and really get it it locked in.

I would be more than happy to give as much OpenEJB insight as needed.  List, IRC, and few skype sessions would be fine as well.


-David


> On Wed, May 25, 2011 at 2:37 AM, David Blevins-2 [via OpenEJB] <
> ml-node+3548547-2089689635-238670@n4.nabble.com> wrote:
> 
>> 
>> On May 18, 2011, at 2:39 PM, gkorland wrote:
>> 
>>> What is the status of this integration is there a formal timeline for its
>> 
>>> release?
>> 
>> No formal timeline, but the game plan so far has been to work on it after
>> TomEE is certified.  But of course anyone could work on it now if they
>> wanted to.
>> 
>>> Is it going to be like the Tomcat integration?
>> 
>> Ideally we'd be able to reuse as much of the code as possible, but it would
>> be awesome if the Jetty version was more embeddable.
>> 
>> Interested in hacking?
>> 
>> 
>> -David
>> 
>> 
>> 
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>> 
>> http://openejb.979440.n4.nabble.com/Jetty-Integration-tp2318962p3548547.html
>> To unsubscribe from Jetty Integration, click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2318962&code=Z2tvcmxhbmRAZ21haWwuY29tfDIzMTg5NjJ8NjQzOTkzNzIx>.
>> 
>> 
> 
> 
> --
> View this message in context: http://openejb.979440.n4.nabble.com/Jetty-Integration-tp2318962p3549172.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: Jetty Integration

Posted by gkorland <gk...@gmail.com>.
We're interested in integrating an EJB container and we're testing now with
EasyBeans,  JBoss Embeddable EJB and OpenEJB.

We prefer OpenEJB but currently we only managed to run EasyBeans on our
Jetty.
Obviously just deploying the war on the Jetty didn't work.
We might be interested in hacking it.
Can you estimate the work for adapting the Tomcat support to support Jetty?

Thanks,
Guy


On Wed, May 25, 2011 at 2:37 AM, David Blevins-2 [via OpenEJB] <
ml-node+3548547-2089689635-238670@n4.nabble.com> wrote:

>
> On May 18, 2011, at 2:39 PM, gkorland wrote:
>
> > What is the status of this integration is there a formal timeline for its
>
> > release?
>
> No formal timeline, but the game plan so far has been to work on it after
> TomEE is certified.  But of course anyone could work on it now if they
> wanted to.
>
> > Is it going to be like the Tomcat integration?
>
> Ideally we'd be able to reuse as much of the code as possible, but it would
> be awesome if the Jetty version was more embeddable.
>
> Interested in hacking?
>
>
> -David
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://openejb.979440.n4.nabble.com/Jetty-Integration-tp2318962p3548547.html
>  To unsubscribe from Jetty Integration, click here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2318962&code=Z2tvcmxhbmRAZ21haWwuY29tfDIzMTg5NjJ8NjQzOTkzNzIx>.
>
>


--
View this message in context: http://openejb.979440.n4.nabble.com/Jetty-Integration-tp2318962p3549172.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: Jetty Integration

Posted by David Blevins <da...@gmail.com>.
On May 18, 2011, at 2:39 PM, gkorland wrote:

> What is the status of this integration is there a formal timeline for its
> release?

No formal timeline, but the game plan so far has been to work on it after TomEE is certified.  But of course anyone could work on it now if they wanted to.

> Is it going to be like the Tomcat integration?

Ideally we'd be able to reuse as much of the code as possible, but it would be awesome if the Jetty version was more embeddable.

Interested in hacking?


-David


Re: Jetty Integration

Posted by gkorland <gk...@gmail.com>.
What is the status of this integration is there a formal timeline for its
release?
Is it going to be like the Tomcat integration?

--
View this message in context: http://openejb.979440.n4.nabble.com/Jetty-Integration-tp2318962p3534029.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: Jetty Integration

Posted by dsh <da...@googlemail.com>.
cool!

On Mon, Aug 9, 2010 at 9:40 PM, Jonathan Gallimore
<jo...@gmail.com> wrote:
> Hi All,
>
> David and I did a bit of coding on integrating OpenEJB with Jetty a while
> back at the meetup in Milan. I've done a bit of work on this on and off
> recently, and have just committed what I've got. Currently we can run Jetty
> in a test and get one of our sample war files deployed. A fair bit is
> working, but httpejbd and webservices are both missing, as is support for
> ear files etc. I'll be playing around with it some more to try and build on
> the functionality, but if anyone else gives it a go I'd love to know how you
> get on.
>
> It should be pretty self contained, and so it shouldn't break anything for
> anyone else, but if it does cause any problems, please shout.
>
> Cheers
>
> Jon
>