You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thies Edeling <th...@rrm.net> on 2007/11/14 15:46:45 UTC
Wicket & OSGi
Hello all,
Does anyone have any experience with using Wicket and OSGi? I'm looking
for the most flexible way of composing an application and deploying
Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the
Pax Wicket project but am not sure how stable that is.
regards,
Thies
--
http://www.ehour.nl/
http://blog.ehour.nl/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by David Leangen <wi...@leangen.net>.
Sorry, been away for a few days and didn't catch this thread until now.
If you are new to Wicket+OSGi and don't have backporting issues like
Ernesto did, I suggest you take a look a Pax Wicket.
I've been generally very satisfied. It's also easy to jump in and make
changes if you need them.
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Wicket
The Pax projects are very strict about OSGi compliance, whereas Eclipse
sometimes is not due to their complex background.
Also, I feel safer not being depending on one OSGi implementation.
Anyway, there are examples there you can use. Normally, it should be
easy to get the demo app setup and running within minutes.
Best ask questions on the ops4j list if you run into any issues.
Cheers,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by Edgar Poce <ed...@gmail.com>.
Hi,
On Nov 16, 2007 6:12 PM, dado <dd...@daviddonohue.com> wrote:
>
> Edgar,
> I am curious: what version of Jetty are you using? Where did you get the
> appropriate bundles? Could you share your Activator code that starts Jetty?
> Thanks again,
>
I use the http service available in Apache Felix.
br,
Edgar
> David
>
>
> Edgar Poce wrote:
> >
> > Hi,
> >
> > In my spare time I'm building a CMS with wicket. I'm not developing it
> > actively, just playing with it in my spare time. So far I developed
> > the following bundles:
> >
> > Wicket as an osgi bundle:
> > http://mybundles.googlecode.com/svn/trunk/wicket/wicket-bundle/
> >
> > A simple wicket example application:
> > http://mybundles.googlecode.com/svn/trunk/wicket/wicket-example/
> >
> > JCR related bundles:
> > http://mybundles.googlecode.com/svn/trunk/jcr/
> >
> > A Pluto Container bundle that I plan to use to run portlets inside the
> > CMS:
> > http://mybundles.googlecode.com/svn/trunk/pluto/
> >
> > hope it helps,
> > edgar
> >
> > On Nov 16, 2007 1:16 PM, Igor Vaynberg <ig...@gmail.com> wrote:
> >> perhaps one of the groups who are using wicket and osgi successfully
> >> can put together an example project that demonstrates all these
> >> concepts so the community does not have to reinvent the wheel and
> >> solve problems that have already been solved by others...thats what
> >> this is all about afterall
> >>
> >> -igor
> >>
> >>
> >>
> >> On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
> >> >
> >> > Edgar and all,
> >> >
> >> > I am new to wicket but have built an application using Velocity and
> >> Equinox
> >> > OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code
> >> below is
> >> > most helpful! Do you or anyone have any other code to share? Bundles?
> >> For
> >> > example, this code would be helpful as well
> >> > "you have to register an OsgiWicketServlet instance in the
> >> HttpService".
> >> >
> >> > Thanks for your help!
> >> > David
> >> >
> >> >
> >> >
> >> > Edgar Poce wrote:
> >> > >
> >> > > Hi,
> >> > >
> >> > > I ran a helloworld application in osgi, the only problem I found was
> >> > > a classloader issue, I had to use a custom IWebApplicationFactory. I
> >> > > copy the code bellow.
> >> > > In order to make it work you have to register an OsgiWicketServlet
> >> > > instance in the HttpService.
> >> > >
> >> > > hope it helps,
> >> > > Edgar
> >> > >
> >> > >
> >> > > public class OsgiWebApplicationFactory implements
> >> IWebApplicationFactory {
> >> > >
> >> > > private Class webApplication;
> >> > >
> >> > > public OsgiWebApplicationFactory(Class webApplication) {
> >> > > super();
> >> > > this.webApplication = webApplication;
> >> > > }
> >> > >
> >> > > public WebApplication createApplication(WicketFilter filter) {
> >> > > try {
> >> > > return (WebApplication)
> >> this.webApplication.newInstance();
> >> > > } catch (Exception e) {
> >> > > throw new RuntimeException("unable to start
> >> application", e);
> >> > > }
> >> > > }
> >> > >
> >> > > }
> >> > >
> >> > > public class OsgiWicketFilter extends WicketFilter {
> >> > >
> >> > > private Class webApplication;
> >> > >
> >> > > public OsgiWicketFilter(Class webApplication) {
> >> > > super();
> >> > > this.webApplication = webApplication;
> >> > > }
> >> > >
> >> > > @Override
> >> > > protected IWebApplicationFactory getApplicationFactory() {
> >> > > return new
> >> OsgiWebApplicationFactory(this.webApplication);
> >> > > }
> >> > >
> >> > > }
> >> > >
> >> > > public class OsgiWicketServlet extends WicketServlet {
> >> > >
> >> > > private String name;
> >> > >
> >> > > private Class webApplication;
> >> > >
> >> > > public OsgiWicketServlet(Class webApplication) {
> >> > > super();
> >> > > this.webApplication = webApplication;
> >> > > }
> >> > >
> >> > > @Override
> >> > > protected WicketFilter newWicketFilter() {
> >> > > return new OsgiWicketFilter(this.webApplication);
> >> > > }
> >> > >
> >> > > /**
> >> > > * The servlet name can't contain * characters because Wicket
> >> uses the
> >> > > name
> >> > > * of the servlet to create a temporary folder.
> >> > > */
> >> > > public String getServletName() {
> >> > > if (name == null) {
> >> > > synchronized (this) {
> >> > > name = super.getServletName();
> >> > > if (name.endsWith("*")) {
> >> > > name = name.substring(0,
> >> name.length() - 1);
> >> > > }
> >> > > }
> >> > > }
> >> > > return name;
> >> > > }
> >> > >
> >> > > }
> >> > >
> >> > > On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
> >> > >> Hello all,
> >> > >>
> >> > >> Does anyone have any experience with using Wicket and OSGi? I'm
> >> looking
> >> > >> for the most flexible way of composing an application and deploying
> >> > >> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed
> >> the
> >> > >> Pax Wicket project but am not sure how stable that is.
> >> > >>
> >> > >> regards,
> >> > >> Thies
> >> > >>
> >> > >> --
> >> > >> http://www.ehour.nl/
> >> > >> http://blog.ehour.nl/
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> ---------------------------------------------------------------------
> >> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > >> For additional commands, e-mail: users-help@wicket.apache.org
> >> > >>
> >> > >>
> >> > >
> >> > > ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > > For additional commands, e-mail: users-help@wicket.apache.org
> >> > >
> >> > >
> >> > >
> >> >
> >> > --
> >> > View this message in context:
> >> http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
> >> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > For additional commands, e-mail: users-help@wicket.apache.org
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13801671
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by dado <dd...@daviddonohue.com>.
Ernesto,
I have gone there and tried this. However I wanted to use Jetty 6. I was
unable to get the equinox server bundle to work with jetty 6.
David
Ernesto Reinaldo Barreiro wrote:
>
> David,
>
> Take a look here.
>
> http://www.eclipse.org/equinox/server/
>
> They have bundled jetty as a pluging. So the only thing you have to do
> is start Jetty pluging as well. Don't know if other OSGi implementations
> offer something similar as well.
>
> Best regards,
>
> Ernesto
>
> dado wrote:
>> Edgar,
>> Cool! I have been thinking Java could at long last have a good CMS, if
>> someone were to do it using OSGi. I might want to be your first user.
>>
>> I am curious: what version of Jetty are you using? Where did you get the
>> appropriate bundles? Could you share your Activator code that starts
>> Jetty?
>> Thanks again,
>> David
>>
>>
>> Edgar Poce wrote:
>>
>>> Hi,
>>>
>>> In my spare time I'm building a CMS with wicket. I'm not developing it
>>> actively, just playing with it in my spare time. So far I developed
>>> the following bundles:
>>>
>>> Wicket as an osgi bundle:
>>> http://mybundles.googlecode.com/svn/trunk/wicket/wicket-bundle/
>>>
>>> A simple wicket example application:
>>> http://mybundles.googlecode.com/svn/trunk/wicket/wicket-example/
>>>
>>> JCR related bundles:
>>> http://mybundles.googlecode.com/svn/trunk/jcr/
>>>
>>> A Pluto Container bundle that I plan to use to run portlets inside the
>>> CMS:
>>> http://mybundles.googlecode.com/svn/trunk/pluto/
>>>
>>> hope it helps,
>>> edgar
>>>
>>> On Nov 16, 2007 1:16 PM, Igor Vaynberg <ig...@gmail.com> wrote:
>>>
>>>> perhaps one of the groups who are using wicket and osgi successfully
>>>> can put together an example project that demonstrates all these
>>>> concepts so the community does not have to reinvent the wheel and
>>>> solve problems that have already been solved by others...thats what
>>>> this is all about afterall
>>>>
>>>> -igor
>>>>
>>>>
>>>>
>>>> On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
>>>>
>>>>> Edgar and all,
>>>>>
>>>>> I am new to wicket but have built an application using Velocity and
>>>>>
>>>> Equinox
>>>>
>>>>> OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code
>>>>>
>>>> below is
>>>>
>>>>> most helpful! Do you or anyone have any other code to share?
>>>>> Bundles?
>>>>>
>>>> For
>>>>
>>>>> example, this code would be helpful as well
>>>>> "you have to register an OsgiWicketServlet instance in the
>>>>>
>>>> HttpService".
>>>>
>>>>> Thanks for your help!
>>>>> David
>>>>>
>>>>>
>>>>>
>>>>> Edgar Poce wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I ran a helloworld application in osgi, the only problem I found was
>>>>>> a classloader issue, I had to use a custom IWebApplicationFactory. I
>>>>>> copy the code bellow.
>>>>>> In order to make it work you have to register an OsgiWicketServlet
>>>>>> instance in the HttpService.
>>>>>>
>>>>>> hope it helps,
>>>>>> Edgar
>>>>>>
>>>>>>
>>>>>> public class OsgiWebApplicationFactory implements
>>>>>>
>>>> IWebApplicationFactory {
>>>>
>>>>>> private Class webApplication;
>>>>>>
>>>>>> public OsgiWebApplicationFactory(Class webApplication) {
>>>>>> super();
>>>>>> this.webApplication = webApplication;
>>>>>> }
>>>>>>
>>>>>> public WebApplication createApplication(WicketFilter filter) {
>>>>>> try {
>>>>>> return (WebApplication)
>>>>>>
>>>> this.webApplication.newInstance();
>>>>
>>>>>> } catch (Exception e) {
>>>>>> throw new RuntimeException("unable to start
>>>>>>
>>>> application", e);
>>>>
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> }
>>>>>>
>>>>>> public class OsgiWicketFilter extends WicketFilter {
>>>>>>
>>>>>> private Class webApplication;
>>>>>>
>>>>>> public OsgiWicketFilter(Class webApplication) {
>>>>>> super();
>>>>>> this.webApplication = webApplication;
>>>>>> }
>>>>>>
>>>>>> @Override
>>>>>> protected IWebApplicationFactory getApplicationFactory() {
>>>>>> return new
>>>>>>
>>>> OsgiWebApplicationFactory(this.webApplication);
>>>>
>>>>>> }
>>>>>>
>>>>>> }
>>>>>>
>>>>>> public class OsgiWicketServlet extends WicketServlet {
>>>>>>
>>>>>> private String name;
>>>>>>
>>>>>> private Class webApplication;
>>>>>>
>>>>>> public OsgiWicketServlet(Class webApplication) {
>>>>>> super();
>>>>>> this.webApplication = webApplication;
>>>>>> }
>>>>>>
>>>>>> @Override
>>>>>> protected WicketFilter newWicketFilter() {
>>>>>> return new OsgiWicketFilter(this.webApplication);
>>>>>> }
>>>>>>
>>>>>> /**
>>>>>> * The servlet name can't contain * characters because Wicket
>>>>>>
>>>> uses the
>>>>
>>>>>> name
>>>>>> * of the servlet to create a temporary folder.
>>>>>> */
>>>>>> public String getServletName() {
>>>>>> if (name == null) {
>>>>>> synchronized (this) {
>>>>>> name = super.getServletName();
>>>>>> if (name.endsWith("*")) {
>>>>>> name = name.substring(0,
>>>>>>
>>>> name.length() - 1);
>>>>
>>>>>> }
>>>>>> }
>>>>>> }
>>>>>> return name;
>>>>>> }
>>>>>>
>>>>>> }
>>>>>>
>>>>>> On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
>>>>>>
>>>>>>> Hello all,
>>>>>>>
>>>>>>> Does anyone have any experience with using Wicket and OSGi? I'm
>>>>>>>
>>>> looking
>>>>
>>>>>>> for the most flexible way of composing an application and deploying
>>>>>>> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed
>>>>>>>
>>>> the
>>>>
>>>>>>> Pax Wicket project but am not sure how stable that is.
>>>>>>>
>>>>>>> regards,
>>>>>>> Thies
>>>>>>>
>>>>>>> --
>>>>>>> http://www.ehour.nl/
>>>>>>> http://blog.ehour.nl/
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>> ---------------------------------------------------------------------
>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>> http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
>>>>
>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13808791
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by Ernesto Reinaldo Barreiro <re...@isencia.com>.
David,
Take a look here.
http://www.eclipse.org/equinox/server/
They have bundled jetty as a pluging. So the only thing you have to do
is start Jetty pluging as well. Don't know if other OSGi implementations
offer something similar as well.
Best regards,
Ernesto
dado wrote:
> Edgar,
> Cool! I have been thinking Java could at long last have a good CMS, if
> someone were to do it using OSGi. I might want to be your first user.
>
> I am curious: what version of Jetty are you using? Where did you get the
> appropriate bundles? Could you share your Activator code that starts Jetty?
> Thanks again,
> David
>
>
> Edgar Poce wrote:
>
>> Hi,
>>
>> In my spare time I'm building a CMS with wicket. I'm not developing it
>> actively, just playing with it in my spare time. So far I developed
>> the following bundles:
>>
>> Wicket as an osgi bundle:
>> http://mybundles.googlecode.com/svn/trunk/wicket/wicket-bundle/
>>
>> A simple wicket example application:
>> http://mybundles.googlecode.com/svn/trunk/wicket/wicket-example/
>>
>> JCR related bundles:
>> http://mybundles.googlecode.com/svn/trunk/jcr/
>>
>> A Pluto Container bundle that I plan to use to run portlets inside the
>> CMS:
>> http://mybundles.googlecode.com/svn/trunk/pluto/
>>
>> hope it helps,
>> edgar
>>
>> On Nov 16, 2007 1:16 PM, Igor Vaynberg <ig...@gmail.com> wrote:
>>
>>> perhaps one of the groups who are using wicket and osgi successfully
>>> can put together an example project that demonstrates all these
>>> concepts so the community does not have to reinvent the wheel and
>>> solve problems that have already been solved by others...thats what
>>> this is all about afterall
>>>
>>> -igor
>>>
>>>
>>>
>>> On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
>>>
>>>> Edgar and all,
>>>>
>>>> I am new to wicket but have built an application using Velocity and
>>>>
>>> Equinox
>>>
>>>> OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code
>>>>
>>> below is
>>>
>>>> most helpful! Do you or anyone have any other code to share? Bundles?
>>>>
>>> For
>>>
>>>> example, this code would be helpful as well
>>>> "you have to register an OsgiWicketServlet instance in the
>>>>
>>> HttpService".
>>>
>>>> Thanks for your help!
>>>> David
>>>>
>>>>
>>>>
>>>> Edgar Poce wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I ran a helloworld application in osgi, the only problem I found was
>>>>> a classloader issue, I had to use a custom IWebApplicationFactory. I
>>>>> copy the code bellow.
>>>>> In order to make it work you have to register an OsgiWicketServlet
>>>>> instance in the HttpService.
>>>>>
>>>>> hope it helps,
>>>>> Edgar
>>>>>
>>>>>
>>>>> public class OsgiWebApplicationFactory implements
>>>>>
>>> IWebApplicationFactory {
>>>
>>>>> private Class webApplication;
>>>>>
>>>>> public OsgiWebApplicationFactory(Class webApplication) {
>>>>> super();
>>>>> this.webApplication = webApplication;
>>>>> }
>>>>>
>>>>> public WebApplication createApplication(WicketFilter filter) {
>>>>> try {
>>>>> return (WebApplication)
>>>>>
>>> this.webApplication.newInstance();
>>>
>>>>> } catch (Exception e) {
>>>>> throw new RuntimeException("unable to start
>>>>>
>>> application", e);
>>>
>>>>> }
>>>>> }
>>>>>
>>>>> }
>>>>>
>>>>> public class OsgiWicketFilter extends WicketFilter {
>>>>>
>>>>> private Class webApplication;
>>>>>
>>>>> public OsgiWicketFilter(Class webApplication) {
>>>>> super();
>>>>> this.webApplication = webApplication;
>>>>> }
>>>>>
>>>>> @Override
>>>>> protected IWebApplicationFactory getApplicationFactory() {
>>>>> return new
>>>>>
>>> OsgiWebApplicationFactory(this.webApplication);
>>>
>>>>> }
>>>>>
>>>>> }
>>>>>
>>>>> public class OsgiWicketServlet extends WicketServlet {
>>>>>
>>>>> private String name;
>>>>>
>>>>> private Class webApplication;
>>>>>
>>>>> public OsgiWicketServlet(Class webApplication) {
>>>>> super();
>>>>> this.webApplication = webApplication;
>>>>> }
>>>>>
>>>>> @Override
>>>>> protected WicketFilter newWicketFilter() {
>>>>> return new OsgiWicketFilter(this.webApplication);
>>>>> }
>>>>>
>>>>> /**
>>>>> * The servlet name can't contain * characters because Wicket
>>>>>
>>> uses the
>>>
>>>>> name
>>>>> * of the servlet to create a temporary folder.
>>>>> */
>>>>> public String getServletName() {
>>>>> if (name == null) {
>>>>> synchronized (this) {
>>>>> name = super.getServletName();
>>>>> if (name.endsWith("*")) {
>>>>> name = name.substring(0,
>>>>>
>>> name.length() - 1);
>>>
>>>>> }
>>>>> }
>>>>> }
>>>>> return name;
>>>>> }
>>>>>
>>>>> }
>>>>>
>>>>> On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
>>>>>
>>>>>> Hello all,
>>>>>>
>>>>>> Does anyone have any experience with using Wicket and OSGi? I'm
>>>>>>
>>> looking
>>>
>>>>>> for the most flexible way of composing an application and deploying
>>>>>> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed
>>>>>>
>>> the
>>>
>>>>>> Pax Wicket project but am not sure how stable that is.
>>>>>>
>>>>>> regards,
>>>>>> Thies
>>>>>>
>>>>>> --
>>>>>> http://www.ehour.nl/
>>>>>> http://blog.ehour.nl/
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>> ---------------------------------------------------------------------
>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>>
>>> http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
>>>
>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>>
>
>
Re: Wicket & OSGi
Posted by dado <dd...@daviddonohue.com>.
Edgar,
Cool! I have been thinking Java could at long last have a good CMS, if
someone were to do it using OSGi. I might want to be your first user.
I am curious: what version of Jetty are you using? Where did you get the
appropriate bundles? Could you share your Activator code that starts Jetty?
Thanks again,
David
Edgar Poce wrote:
>
> Hi,
>
> In my spare time I'm building a CMS with wicket. I'm not developing it
> actively, just playing with it in my spare time. So far I developed
> the following bundles:
>
> Wicket as an osgi bundle:
> http://mybundles.googlecode.com/svn/trunk/wicket/wicket-bundle/
>
> A simple wicket example application:
> http://mybundles.googlecode.com/svn/trunk/wicket/wicket-example/
>
> JCR related bundles:
> http://mybundles.googlecode.com/svn/trunk/jcr/
>
> A Pluto Container bundle that I plan to use to run portlets inside the
> CMS:
> http://mybundles.googlecode.com/svn/trunk/pluto/
>
> hope it helps,
> edgar
>
> On Nov 16, 2007 1:16 PM, Igor Vaynberg <ig...@gmail.com> wrote:
>> perhaps one of the groups who are using wicket and osgi successfully
>> can put together an example project that demonstrates all these
>> concepts so the community does not have to reinvent the wheel and
>> solve problems that have already been solved by others...thats what
>> this is all about afterall
>>
>> -igor
>>
>>
>>
>> On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
>> >
>> > Edgar and all,
>> >
>> > I am new to wicket but have built an application using Velocity and
>> Equinox
>> > OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code
>> below is
>> > most helpful! Do you or anyone have any other code to share? Bundles?
>> For
>> > example, this code would be helpful as well
>> > "you have to register an OsgiWicketServlet instance in the
>> HttpService".
>> >
>> > Thanks for your help!
>> > David
>> >
>> >
>> >
>> > Edgar Poce wrote:
>> > >
>> > > Hi,
>> > >
>> > > I ran a helloworld application in osgi, the only problem I found was
>> > > a classloader issue, I had to use a custom IWebApplicationFactory. I
>> > > copy the code bellow.
>> > > In order to make it work you have to register an OsgiWicketServlet
>> > > instance in the HttpService.
>> > >
>> > > hope it helps,
>> > > Edgar
>> > >
>> > >
>> > > public class OsgiWebApplicationFactory implements
>> IWebApplicationFactory {
>> > >
>> > > private Class webApplication;
>> > >
>> > > public OsgiWebApplicationFactory(Class webApplication) {
>> > > super();
>> > > this.webApplication = webApplication;
>> > > }
>> > >
>> > > public WebApplication createApplication(WicketFilter filter) {
>> > > try {
>> > > return (WebApplication)
>> this.webApplication.newInstance();
>> > > } catch (Exception e) {
>> > > throw new RuntimeException("unable to start
>> application", e);
>> > > }
>> > > }
>> > >
>> > > }
>> > >
>> > > public class OsgiWicketFilter extends WicketFilter {
>> > >
>> > > private Class webApplication;
>> > >
>> > > public OsgiWicketFilter(Class webApplication) {
>> > > super();
>> > > this.webApplication = webApplication;
>> > > }
>> > >
>> > > @Override
>> > > protected IWebApplicationFactory getApplicationFactory() {
>> > > return new
>> OsgiWebApplicationFactory(this.webApplication);
>> > > }
>> > >
>> > > }
>> > >
>> > > public class OsgiWicketServlet extends WicketServlet {
>> > >
>> > > private String name;
>> > >
>> > > private Class webApplication;
>> > >
>> > > public OsgiWicketServlet(Class webApplication) {
>> > > super();
>> > > this.webApplication = webApplication;
>> > > }
>> > >
>> > > @Override
>> > > protected WicketFilter newWicketFilter() {
>> > > return new OsgiWicketFilter(this.webApplication);
>> > > }
>> > >
>> > > /**
>> > > * The servlet name can't contain * characters because Wicket
>> uses the
>> > > name
>> > > * of the servlet to create a temporary folder.
>> > > */
>> > > public String getServletName() {
>> > > if (name == null) {
>> > > synchronized (this) {
>> > > name = super.getServletName();
>> > > if (name.endsWith("*")) {
>> > > name = name.substring(0,
>> name.length() - 1);
>> > > }
>> > > }
>> > > }
>> > > return name;
>> > > }
>> > >
>> > > }
>> > >
>> > > On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
>> > >> Hello all,
>> > >>
>> > >> Does anyone have any experience with using Wicket and OSGi? I'm
>> looking
>> > >> for the most flexible way of composing an application and deploying
>> > >> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed
>> the
>> > >> Pax Wicket project but am not sure how stable that is.
>> > >>
>> > >> regards,
>> > >> Thies
>> > >>
>> > >> --
>> > >> http://www.ehour.nl/
>> > >> http://blog.ehour.nl/
>> > >>
>> > >>
>> > >>
>> > >>
>> ---------------------------------------------------------------------
>> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > >> For additional commands, e-mail: users-help@wicket.apache.org
>> > >>
>> > >>
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > > For additional commands, e-mail: users-help@wicket.apache.org
>> > >
>> > >
>> > >
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13801671
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by Edgar Poce <ed...@gmail.com>.
Hi,
In my spare time I'm building a CMS with wicket. I'm not developing it
actively, just playing with it in my spare time. So far I developed
the following bundles:
Wicket as an osgi bundle:
http://mybundles.googlecode.com/svn/trunk/wicket/wicket-bundle/
A simple wicket example application:
http://mybundles.googlecode.com/svn/trunk/wicket/wicket-example/
JCR related bundles:
http://mybundles.googlecode.com/svn/trunk/jcr/
A Pluto Container bundle that I plan to use to run portlets inside the CMS:
http://mybundles.googlecode.com/svn/trunk/pluto/
hope it helps,
edgar
On Nov 16, 2007 1:16 PM, Igor Vaynberg <ig...@gmail.com> wrote:
> perhaps one of the groups who are using wicket and osgi successfully
> can put together an example project that demonstrates all these
> concepts so the community does not have to reinvent the wheel and
> solve problems that have already been solved by others...thats what
> this is all about afterall
>
> -igor
>
>
>
> On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
> >
> > Edgar and all,
> >
> > I am new to wicket but have built an application using Velocity and Equinox
> > OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code below is
> > most helpful! Do you or anyone have any other code to share? Bundles? For
> > example, this code would be helpful as well
> > "you have to register an OsgiWicketServlet instance in the HttpService".
> >
> > Thanks for your help!
> > David
> >
> >
> >
> > Edgar Poce wrote:
> > >
> > > Hi,
> > >
> > > I ran a helloworld application in osgi, the only problem I found was
> > > a classloader issue, I had to use a custom IWebApplicationFactory. I
> > > copy the code bellow.
> > > In order to make it work you have to register an OsgiWicketServlet
> > > instance in the HttpService.
> > >
> > > hope it helps,
> > > Edgar
> > >
> > >
> > > public class OsgiWebApplicationFactory implements IWebApplicationFactory {
> > >
> > > private Class webApplication;
> > >
> > > public OsgiWebApplicationFactory(Class webApplication) {
> > > super();
> > > this.webApplication = webApplication;
> > > }
> > >
> > > public WebApplication createApplication(WicketFilter filter) {
> > > try {
> > > return (WebApplication) this.webApplication.newInstance();
> > > } catch (Exception e) {
> > > throw new RuntimeException("unable to start application", e);
> > > }
> > > }
> > >
> > > }
> > >
> > > public class OsgiWicketFilter extends WicketFilter {
> > >
> > > private Class webApplication;
> > >
> > > public OsgiWicketFilter(Class webApplication) {
> > > super();
> > > this.webApplication = webApplication;
> > > }
> > >
> > > @Override
> > > protected IWebApplicationFactory getApplicationFactory() {
> > > return new OsgiWebApplicationFactory(this.webApplication);
> > > }
> > >
> > > }
> > >
> > > public class OsgiWicketServlet extends WicketServlet {
> > >
> > > private String name;
> > >
> > > private Class webApplication;
> > >
> > > public OsgiWicketServlet(Class webApplication) {
> > > super();
> > > this.webApplication = webApplication;
> > > }
> > >
> > > @Override
> > > protected WicketFilter newWicketFilter() {
> > > return new OsgiWicketFilter(this.webApplication);
> > > }
> > >
> > > /**
> > > * The servlet name can't contain * characters because Wicket uses the
> > > name
> > > * of the servlet to create a temporary folder.
> > > */
> > > public String getServletName() {
> > > if (name == null) {
> > > synchronized (this) {
> > > name = super.getServletName();
> > > if (name.endsWith("*")) {
> > > name = name.substring(0, name.length() - 1);
> > > }
> > > }
> > > }
> > > return name;
> > > }
> > >
> > > }
> > >
> > > On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
> > >> Hello all,
> > >>
> > >> Does anyone have any experience with using Wicket and OSGi? I'm looking
> > >> for the most flexible way of composing an application and deploying
> > >> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the
> > >> Pax Wicket project but am not sure how stable that is.
> > >>
> > >> regards,
> > >> Thies
> > >>
> > >> --
> > >> http://www.ehour.nl/
> > >> http://blog.ehour.nl/
> > >>
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >> For additional commands, e-mail: users-help@wicket.apache.org
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by dado <dd...@daviddonohue.com>.
Ernesto,
Your Equinox-based sample app using wicket would be of great interest!
Many thanks,
David
Ernesto Reinaldo Barreiro wrote:
>
> Hi Igor,
>
> The main problem I see here is that there is not a single approach on
> building a wicket based OSGi application. For instance, we have taken a
> different approach to the one described in a previous e-mail. Moreover,
> as we had some code base already working when we decided go OSGi what we
> did was to look for a "fast" way to get that code base working on an
> OSGi environment: we simply couldn't go the PAX way because that would
> mean re-writing an existing code base. As we were using Eclipse as
> development tool the way we found to get back on track is eclipse
> dependent (in fact, equinox dependent, which is eclipses implementation
> of OSGi). As I mentioned before almost all problems we found boiled down
> to classloading issues. We have solved then using a "technique" called
> buddy class loading (equinox has an extension that makes it very easy to
> solve these problems). All this code is property of the company I work
> for, so it is not up to me to disclose it (or part of it).
>
> If you (and/or others) think it could be useful I could try to build a
> very simple (equinox depended) quick start sample application, maybe
> containing one or two bundles to illustrate how to solve classloading
> problems on equinox, as well as a README explaining how to get on track.
>
> Best regards,
>
> Ernesto
>
>
> Igor Vaynberg wrote:
>> perhaps one of the groups who are using wicket and osgi successfully
>> can put together an example project that demonstrates all these
>> concepts so the community does not have to reinvent the wheel and
>> solve problems that have already been solved by others...thats what
>> this is all about afterall
>>
>> -igor
>>
>>
>> On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
>>
>>> Edgar and all,
>>>
>>> I am new to wicket but have built an application using Velocity and
>>> Equinox
>>> OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code
>>> below is
>>> most helpful! Do you or anyone have any other code to share? Bundles?
>>> For
>>> example, this code would be helpful as well
>>> "you have to register an OsgiWicketServlet instance in the HttpService".
>>>
>>> Thanks for your help!
>>> David
>>>
>>>
>>>
>>> Edgar Poce wrote:
>>>
>>>> Hi,
>>>>
>>>> I ran a helloworld application in osgi, the only problem I found was
>>>> a classloader issue, I had to use a custom IWebApplicationFactory. I
>>>> copy the code bellow.
>>>> In order to make it work you have to register an OsgiWicketServlet
>>>> instance in the HttpService.
>>>>
>>>> hope it helps,
>>>> Edgar
>>>>
>>>>
>>>> public class OsgiWebApplicationFactory implements
>>>> IWebApplicationFactory {
>>>>
>>>> private Class webApplication;
>>>>
>>>> public OsgiWebApplicationFactory(Class webApplication) {
>>>> super();
>>>> this.webApplication = webApplication;
>>>> }
>>>>
>>>> public WebApplication createApplication(WicketFilter filter) {
>>>> try {
>>>> return (WebApplication)
>>>> this.webApplication.newInstance();
>>>> } catch (Exception e) {
>>>> throw new RuntimeException("unable to start
>>>> application", e);
>>>> }
>>>> }
>>>>
>>>> }
>>>>
>>>> public class OsgiWicketFilter extends WicketFilter {
>>>>
>>>> private Class webApplication;
>>>>
>>>> public OsgiWicketFilter(Class webApplication) {
>>>> super();
>>>> this.webApplication = webApplication;
>>>> }
>>>>
>>>> @Override
>>>> protected IWebApplicationFactory getApplicationFactory() {
>>>> return new
>>>> OsgiWebApplicationFactory(this.webApplication);
>>>> }
>>>>
>>>> }
>>>>
>>>> public class OsgiWicketServlet extends WicketServlet {
>>>>
>>>> private String name;
>>>>
>>>> private Class webApplication;
>>>>
>>>> public OsgiWicketServlet(Class webApplication) {
>>>> super();
>>>> this.webApplication = webApplication;
>>>> }
>>>>
>>>> @Override
>>>> protected WicketFilter newWicketFilter() {
>>>> return new OsgiWicketFilter(this.webApplication);
>>>> }
>>>>
>>>> /**
>>>> * The servlet name can't contain * characters because Wicket
>>>> uses the
>>>> name
>>>> * of the servlet to create a temporary folder.
>>>> */
>>>> public String getServletName() {
>>>> if (name == null) {
>>>> synchronized (this) {
>>>> name = super.getServletName();
>>>> if (name.endsWith("*")) {
>>>> name = name.substring(0,
>>>> name.length() - 1);
>>>> }
>>>> }
>>>> }
>>>> return name;
>>>> }
>>>>
>>>> }
>>>>
>>>> On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> Does anyone have any experience with using Wicket and OSGi? I'm
>>>>> looking
>>>>> for the most flexible way of composing an application and deploying
>>>>> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed
>>>>> the
>>>>> Pax Wicket project but am not sure how stable that is.
>>>>>
>>>>> regards,
>>>>> Thies
>>>>>
>>>>> --
>>>>> http://www.ehour.nl/
>>>>> http://blog.ehour.nl/
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13808793
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by ig...@gmail.com.
Well yeah. I never meant for you to put actual code out there. But
like you said a small quickstart with a readme would be great.
-igor
On 11/16/07, Ernesto Reinaldo Barreiro <re...@isencia.com> wrote:
> Hi Igor,
>
> The main problem I see here is that there is not a single approach on
> building a wicket based OSGi application. For instance, we have taken a
> different approach to the one described in a previous e-mail. Moreover,
> as we had some code base already working when we decided go OSGi what we
> did was to look for a "fast" way to get that code base working on an
> OSGi environment: we simply couldn't go the PAX way because that would
> mean re-writing an existing code base. As we were using Eclipse as
> development tool the way we found to get back on track is eclipse
> dependent (in fact, equinox dependent, which is eclipses implementation
> of OSGi). As I mentioned before almost all problems we found boiled down
> to classloading issues. We have solved then using a "technique" called
> buddy class loading (equinox has an extension that makes it very easy to
> solve these problems). All this code is property of the company I work
> for, so it is not up to me to disclose it (or part of it).
>
> If you (and/or others) think it could be useful I could try to build a
> very simple (equinox depended) quick start sample application, maybe
> containing one or two bundles to illustrate how to solve classloading
> problems on equinox, as well as a README explaining how to get on track.
>
> Best regards,
>
> Ernesto
>
>
> Igor Vaynberg wrote:
> > perhaps one of the groups who are using wicket and osgi successfully
> > can put together an example project that demonstrates all these
> > concepts so the community does not have to reinvent the wheel and
> > solve problems that have already been solved by others...thats what
> > this is all about afterall
> >
> > -igor
> >
> >
> > On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
> >
> >> Edgar and all,
> >>
> >> I am new to wicket but have built an application using Velocity and
> Equinox
> >> OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code below
> is
> >> most helpful! Do you or anyone have any other code to share? Bundles?
> For
> >> example, this code would be helpful as well
> >> "you have to register an OsgiWicketServlet instance in the HttpService".
> >>
> >> Thanks for your help!
> >> David
> >>
> >>
> >>
> >> Edgar Poce wrote:
> >>
> >>> Hi,
> >>>
> >>> I ran a helloworld application in osgi, the only problem I found was
> >>> a classloader issue, I had to use a custom IWebApplicationFactory. I
> >>> copy the code bellow.
> >>> In order to make it work you have to register an OsgiWicketServlet
> >>> instance in the HttpService.
> >>>
> >>> hope it helps,
> >>> Edgar
> >>>
> >>>
> >>> public class OsgiWebApplicationFactory implements IWebApplicationFactory
> {
> >>>
> >>> private Class webApplication;
> >>>
> >>> public OsgiWebApplicationFactory(Class webApplication) {
> >>> super();
> >>> this.webApplication = webApplication;
> >>> }
> >>>
> >>> public WebApplication createApplication(WicketFilter filter) {
> >>> try {
> >>> return (WebApplication)
> this.webApplication.newInstance();
> >>> } catch (Exception e) {
> >>> throw new RuntimeException("unable to start
> application", e);
> >>> }
> >>> }
> >>>
> >>> }
> >>>
> >>> public class OsgiWicketFilter extends WicketFilter {
> >>>
> >>> private Class webApplication;
> >>>
> >>> public OsgiWicketFilter(Class webApplication) {
> >>> super();
> >>> this.webApplication = webApplication;
> >>> }
> >>>
> >>> @Override
> >>> protected IWebApplicationFactory getApplicationFactory() {
> >>> return new OsgiWebApplicationFactory(this.webApplication);
> >>> }
> >>>
> >>> }
> >>>
> >>> public class OsgiWicketServlet extends WicketServlet {
> >>>
> >>> private String name;
> >>>
> >>> private Class webApplication;
> >>>
> >>> public OsgiWicketServlet(Class webApplication) {
> >>> super();
> >>> this.webApplication = webApplication;
> >>> }
> >>>
> >>> @Override
> >>> protected WicketFilter newWicketFilter() {
> >>> return new OsgiWicketFilter(this.webApplication);
> >>> }
> >>>
> >>> /**
> >>> * The servlet name can't contain * characters because Wicket uses
> the
> >>> name
> >>> * of the servlet to create a temporary folder.
> >>> */
> >>> public String getServletName() {
> >>> if (name == null) {
> >>> synchronized (this) {
> >>> name = super.getServletName();
> >>> if (name.endsWith("*")) {
> >>> name = name.substring(0,
> name.length() - 1);
> >>> }
> >>> }
> >>> }
> >>> return name;
> >>> }
> >>>
> >>> }
> >>>
> >>> On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
> >>>
> >>>> Hello all,
> >>>>
> >>>> Does anyone have any experience with using Wicket and OSGi? I'm looking
> >>>> for the most flexible way of composing an application and deploying
> >>>> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the
> >>>> Pax Wicket project but am not sure how stable that is.
> >>>>
> >>>> regards,
> >>>> Thies
> >>>>
> >>>> --
> >>>> http://www.ehour.nl/
> >>>> http://blog.ehour.nl/
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>>
> >>>
> >> --
> >> View this message in context:
> http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by Ernesto Reinaldo Barreiro <re...@isencia.com>.
Hi Igor,
The main problem I see here is that there is not a single approach on
building a wicket based OSGi application. For instance, we have taken a
different approach to the one described in a previous e-mail. Moreover,
as we had some code base already working when we decided go OSGi what we
did was to look for a "fast" way to get that code base working on an
OSGi environment: we simply couldn't go the PAX way because that would
mean re-writing an existing code base. As we were using Eclipse as
development tool the way we found to get back on track is eclipse
dependent (in fact, equinox dependent, which is eclipses implementation
of OSGi). As I mentioned before almost all problems we found boiled down
to classloading issues. We have solved then using a "technique" called
buddy class loading (equinox has an extension that makes it very easy to
solve these problems). All this code is property of the company I work
for, so it is not up to me to disclose it (or part of it).
If you (and/or others) think it could be useful I could try to build a
very simple (equinox depended) quick start sample application, maybe
containing one or two bundles to illustrate how to solve classloading
problems on equinox, as well as a README explaining how to get on track.
Best regards,
Ernesto
Igor Vaynberg wrote:
> perhaps one of the groups who are using wicket and osgi successfully
> can put together an example project that demonstrates all these
> concepts so the community does not have to reinvent the wheel and
> solve problems that have already been solved by others...thats what
> this is all about afterall
>
> -igor
>
>
> On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
>
>> Edgar and all,
>>
>> I am new to wicket but have built an application using Velocity and Equinox
>> OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code below is
>> most helpful! Do you or anyone have any other code to share? Bundles? For
>> example, this code would be helpful as well
>> "you have to register an OsgiWicketServlet instance in the HttpService".
>>
>> Thanks for your help!
>> David
>>
>>
>>
>> Edgar Poce wrote:
>>
>>> Hi,
>>>
>>> I ran a helloworld application in osgi, the only problem I found was
>>> a classloader issue, I had to use a custom IWebApplicationFactory. I
>>> copy the code bellow.
>>> In order to make it work you have to register an OsgiWicketServlet
>>> instance in the HttpService.
>>>
>>> hope it helps,
>>> Edgar
>>>
>>>
>>> public class OsgiWebApplicationFactory implements IWebApplicationFactory {
>>>
>>> private Class webApplication;
>>>
>>> public OsgiWebApplicationFactory(Class webApplication) {
>>> super();
>>> this.webApplication = webApplication;
>>> }
>>>
>>> public WebApplication createApplication(WicketFilter filter) {
>>> try {
>>> return (WebApplication) this.webApplication.newInstance();
>>> } catch (Exception e) {
>>> throw new RuntimeException("unable to start application", e);
>>> }
>>> }
>>>
>>> }
>>>
>>> public class OsgiWicketFilter extends WicketFilter {
>>>
>>> private Class webApplication;
>>>
>>> public OsgiWicketFilter(Class webApplication) {
>>> super();
>>> this.webApplication = webApplication;
>>> }
>>>
>>> @Override
>>> protected IWebApplicationFactory getApplicationFactory() {
>>> return new OsgiWebApplicationFactory(this.webApplication);
>>> }
>>>
>>> }
>>>
>>> public class OsgiWicketServlet extends WicketServlet {
>>>
>>> private String name;
>>>
>>> private Class webApplication;
>>>
>>> public OsgiWicketServlet(Class webApplication) {
>>> super();
>>> this.webApplication = webApplication;
>>> }
>>>
>>> @Override
>>> protected WicketFilter newWicketFilter() {
>>> return new OsgiWicketFilter(this.webApplication);
>>> }
>>>
>>> /**
>>> * The servlet name can't contain * characters because Wicket uses the
>>> name
>>> * of the servlet to create a temporary folder.
>>> */
>>> public String getServletName() {
>>> if (name == null) {
>>> synchronized (this) {
>>> name = super.getServletName();
>>> if (name.endsWith("*")) {
>>> name = name.substring(0, name.length() - 1);
>>> }
>>> }
>>> }
>>> return name;
>>> }
>>>
>>> }
>>>
>>> On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
>>>
>>>> Hello all,
>>>>
>>>> Does anyone have any experience with using Wicket and OSGi? I'm looking
>>>> for the most flexible way of composing an application and deploying
>>>> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the
>>>> Pax Wicket project but am not sure how stable that is.
>>>>
>>>> regards,
>>>> Thies
>>>>
>>>> --
>>>> http://www.ehour.nl/
>>>> http://blog.ehour.nl/
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>>
>> --
>> View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Wicket & OSGi
Posted by Igor Vaynberg <ig...@gmail.com>.
perhaps one of the groups who are using wicket and osgi successfully
can put together an example project that demonstrates all these
concepts so the community does not have to reinvent the wheel and
solve problems that have already been solved by others...thats what
this is all about afterall
-igor
On Nov 16, 2007 5:37 AM, dado <dd...@daviddonohue.com> wrote:
>
> Edgar and all,
>
> I am new to wicket but have built an application using Velocity and Equinox
> OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code below is
> most helpful! Do you or anyone have any other code to share? Bundles? For
> example, this code would be helpful as well
> "you have to register an OsgiWicketServlet instance in the HttpService".
>
> Thanks for your help!
> David
>
>
>
> Edgar Poce wrote:
> >
> > Hi,
> >
> > I ran a helloworld application in osgi, the only problem I found was
> > a classloader issue, I had to use a custom IWebApplicationFactory. I
> > copy the code bellow.
> > In order to make it work you have to register an OsgiWicketServlet
> > instance in the HttpService.
> >
> > hope it helps,
> > Edgar
> >
> >
> > public class OsgiWebApplicationFactory implements IWebApplicationFactory {
> >
> > private Class webApplication;
> >
> > public OsgiWebApplicationFactory(Class webApplication) {
> > super();
> > this.webApplication = webApplication;
> > }
> >
> > public WebApplication createApplication(WicketFilter filter) {
> > try {
> > return (WebApplication) this.webApplication.newInstance();
> > } catch (Exception e) {
> > throw new RuntimeException("unable to start application", e);
> > }
> > }
> >
> > }
> >
> > public class OsgiWicketFilter extends WicketFilter {
> >
> > private Class webApplication;
> >
> > public OsgiWicketFilter(Class webApplication) {
> > super();
> > this.webApplication = webApplication;
> > }
> >
> > @Override
> > protected IWebApplicationFactory getApplicationFactory() {
> > return new OsgiWebApplicationFactory(this.webApplication);
> > }
> >
> > }
> >
> > public class OsgiWicketServlet extends WicketServlet {
> >
> > private String name;
> >
> > private Class webApplication;
> >
> > public OsgiWicketServlet(Class webApplication) {
> > super();
> > this.webApplication = webApplication;
> > }
> >
> > @Override
> > protected WicketFilter newWicketFilter() {
> > return new OsgiWicketFilter(this.webApplication);
> > }
> >
> > /**
> > * The servlet name can't contain * characters because Wicket uses the
> > name
> > * of the servlet to create a temporary folder.
> > */
> > public String getServletName() {
> > if (name == null) {
> > synchronized (this) {
> > name = super.getServletName();
> > if (name.endsWith("*")) {
> > name = name.substring(0, name.length() - 1);
> > }
> > }
> > }
> > return name;
> > }
> >
> > }
> >
> > On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
> >> Hello all,
> >>
> >> Does anyone have any experience with using Wicket and OSGi? I'm looking
> >> for the most flexible way of composing an application and deploying
> >> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the
> >> Pax Wicket project but am not sure how stable that is.
> >>
> >> regards,
> >> Thies
> >>
> >> --
> >> http://www.ehour.nl/
> >> http://blog.ehour.nl/
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by dado <dd...@daviddonohue.com>.
Edgar and all,
I am new to wicket but have built an application using Velocity and Equinox
OSGi. I am hoping to switch from Velocity to Wicket. Edgar's code below is
most helpful! Do you or anyone have any other code to share? Bundles? For
example, this code would be helpful as well
"you have to register an OsgiWicketServlet instance in the HttpService".
Thanks for your help!
David
Edgar Poce wrote:
>
> Hi,
>
> I ran a helloworld application in osgi, the only problem I found was
> a classloader issue, I had to use a custom IWebApplicationFactory. I
> copy the code bellow.
> In order to make it work you have to register an OsgiWicketServlet
> instance in the HttpService.
>
> hope it helps,
> Edgar
>
>
> public class OsgiWebApplicationFactory implements IWebApplicationFactory {
>
> private Class webApplication;
>
> public OsgiWebApplicationFactory(Class webApplication) {
> super();
> this.webApplication = webApplication;
> }
>
> public WebApplication createApplication(WicketFilter filter) {
> try {
> return (WebApplication) this.webApplication.newInstance();
> } catch (Exception e) {
> throw new RuntimeException("unable to start application", e);
> }
> }
>
> }
>
> public class OsgiWicketFilter extends WicketFilter {
>
> private Class webApplication;
>
> public OsgiWicketFilter(Class webApplication) {
> super();
> this.webApplication = webApplication;
> }
>
> @Override
> protected IWebApplicationFactory getApplicationFactory() {
> return new OsgiWebApplicationFactory(this.webApplication);
> }
>
> }
>
> public class OsgiWicketServlet extends WicketServlet {
>
> private String name;
>
> private Class webApplication;
>
> public OsgiWicketServlet(Class webApplication) {
> super();
> this.webApplication = webApplication;
> }
>
> @Override
> protected WicketFilter newWicketFilter() {
> return new OsgiWicketFilter(this.webApplication);
> }
>
> /**
> * The servlet name can't contain * characters because Wicket uses the
> name
> * of the servlet to create a temporary folder.
> */
> public String getServletName() {
> if (name == null) {
> synchronized (this) {
> name = super.getServletName();
> if (name.endsWith("*")) {
> name = name.substring(0, name.length() - 1);
> }
> }
> }
> return name;
> }
>
> }
>
> On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
>> Hello all,
>>
>> Does anyone have any experience with using Wicket and OSGi? I'm looking
>> for the most flexible way of composing an application and deploying
>> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the
>> Pax Wicket project but am not sure how stable that is.
>>
>> regards,
>> Thies
>>
>> --
>> http://www.ehour.nl/
>> http://blog.ehour.nl/
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Wicket---OSGi-tf4805767.html#a13793200
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by Daniel Stoch <da...@gmail.com>.
Hi,
We are using Wicket as the UI layer in our OSGi application platform
project. The registration of WicketServlet (or filter) is done in the
very similar way like the Edgar wrote (even we have the same class
names :)). And it is quite simple.
The main problem is with Spring (precisely with spring bean
injection). In OSGi each bundle has its own ApplicationContext
(AppCtxt) and ClassLoader, so the standard Wicket mechanism
(wicket-spring & wicket-spring-annot) does not work when you want to
use more than one bundle in your app.
Problems:
1. There is one AppCtxt inside application (eg. SpringWebApplication),
so when each bundle with your Wicket pages (panels, components, etc.)
has its own AppCtxt you cannot get beans or inject beans in it.
2. InjectorHolder holds only one AppCtxt (it is used when you using
injection outside components).
I have to extend these mechanisms to support multiple AppCtxt. I only
mention here that we have added a new interface to provide a proper
injector:
public interface InjectorProvider {
ConfigurableInjector getInjector();
}
and instead of using default InjectorHolder we use a there similar
class ContextInjector, which is using InjectorProvider interface for
resolving current injector.
The simple implementation is (in apps outside OSGi - with only one AppCtxt):
public class DefaultInjectorProvider implements InjectorProvider {
public ConfigurableInjector getInjector() {
return InjectorHolder.getInjector();
}
}
But inside OSGi injectors are hold in context of bunldes' class
loaders. Maybe in the next versions of Wicket we should think about a
small refactorization to support multiple AppCtxt ;).
"I'm looking for the most flexible way of composing an application and
deploying Wicket pages/panels as OSGi bundles seems like a nice way."
We don't use Pax. We have our own visual plugins' system based on
pages and panels and we can use them to compose a pages or another
plugins. Plugins can be delivered in different bundles. But it is a
long story ;).
Best regards,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by Edgar Poce <ed...@gmail.com>.
Hi,
I ran a helloworld application in osgi, the only problem I found was
a classloader issue, I had to use a custom IWebApplicationFactory. I
copy the code bellow.
In order to make it work you have to register an OsgiWicketServlet
instance in the HttpService.
hope it helps,
Edgar
public class OsgiWebApplicationFactory implements IWebApplicationFactory {
private Class webApplication;
public OsgiWebApplicationFactory(Class webApplication) {
super();
this.webApplication = webApplication;
}
public WebApplication createApplication(WicketFilter filter) {
try {
return (WebApplication) this.webApplication.newInstance();
} catch (Exception e) {
throw new RuntimeException("unable to start application", e);
}
}
}
public class OsgiWicketFilter extends WicketFilter {
private Class webApplication;
public OsgiWicketFilter(Class webApplication) {
super();
this.webApplication = webApplication;
}
@Override
protected IWebApplicationFactory getApplicationFactory() {
return new OsgiWebApplicationFactory(this.webApplication);
}
}
public class OsgiWicketServlet extends WicketServlet {
private String name;
private Class webApplication;
public OsgiWicketServlet(Class webApplication) {
super();
this.webApplication = webApplication;
}
@Override
protected WicketFilter newWicketFilter() {
return new OsgiWicketFilter(this.webApplication);
}
/**
* The servlet name can't contain * characters because Wicket uses the name
* of the servlet to create a temporary folder.
*/
public String getServletName() {
if (name == null) {
synchronized (this) {
name = super.getServletName();
if (name.endsWith("*")) {
name = name.substring(0, name.length() - 1);
}
}
}
return name;
}
}
On Nov 14, 2007 11:46 AM, Thies Edeling <th...@rrm.net> wrote:
> Hello all,
>
> Does anyone have any experience with using Wicket and OSGi? I'm looking
> for the most flexible way of composing an application and deploying
> Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the
> Pax Wicket project but am not sure how stable that is.
>
> regards,
> Thies
>
> --
> http://www.ehour.nl/
> http://blog.ehour.nl/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket & OSGi
Posted by Ernesto Reinaldo Barreiro <re...@isencia.com>.
Hi Serge,
The main benefits I see are:
-modularity: now our applications are composed of small modules adding
specific functionality (e.g. scheduling, reporting,...). You don't need
to use the whole stack but just those needed for your particular
application (or those for which a customer has paid for;-).
-pluggability. For instance, just by "dropping" a new bundle into the
OSGi runtime all tables in our applications can suddenly export
themselves to excel or pdf, or by adding another bundle tables can save
snapshots of themselves, or a new bundle may add menu entries to the
main application flow. All this without the need to stop the
application. This is possible because many of our components consult
some services, acting as extension points, at the time of building
themselves. The bundles adding extra functionality can have also
"extension points" that you can use to configure them (e.g. you may
define exactly how you want to export to PDF or excel (headers,
colors, and so on). So it opens up a lot of possibilities...
Ernesto
Serge Libotte wrote:
> Hi Ernesto,
>
> You tell about some problems you met but could you summarize the benefits
> you had by adopting OSGI?
>
> Thanks,
>
> Serge.
>
>
> 2007/11/14, Ernesto Reinaldo Barreiro <re...@isencia.com>:
>
>> We have gather some experience on using wicket and OSGi: we have been
>> using them together for almost a year now. Instead of going the PAX way
>> we chose to tie ourselves to equinox implementation of OSGi and we use
>> some eclipse extensions to avoid class loading problems (look for
>> *Eclipse*-*RegisterBuddy* header on manifest files). We have encountered
>> all kinds of class loading related problems (e.g. when you want to
>> integrate Hibernate into the picture or deploying the applicition into a
>> "real" application server) but after having dealt with all these
>> problems we are quite happy with the decision of going OSGi.
>> Additionally, if you use eclipse 3.3. for development, it comes with a
>> plugin version of Jetty that is quite handy for development...
>>
>> AFAIK if you plan to deploy your application in a "real" application
>> server you will have to use equinox anyway because is the only
>> implementation providing a Bridge servlet (that allows to start an OSGi
>> runtime insede your application server). Here we have had class loading
>> problems well as (in some application servers) you cannot simply do a
>> JNDI lookup from withing a not WEB thread...
>>
>> Best regards,
>>
>> Ernesto
>>
>> Thies Edeling wrote:
>>
>>> Hello all,
>>>
>>> Does anyone have any experience with using Wicket and OSGi? I'm
>>> looking for the most flexible way of composing an application and
>>> deploying Wicket pages/panels as OSGi bundles seems like a nice way.I
>>> noticed the Pax Wicket project but am not sure how stable that is.
>>>
>>> regards,
>>> Thies
>>>
>>>
>>
>
>
Re: Wicket & OSGi
Posted by Serge Libotte <sl...@gmail.com>.
Hi Ernesto,
You tell about some problems you met but could you summarize the benefits
you had by adopting OSGI?
Thanks,
Serge.
2007/11/14, Ernesto Reinaldo Barreiro <re...@isencia.com>:
>
> We have gather some experience on using wicket and OSGi: we have been
> using them together for almost a year now. Instead of going the PAX way
> we chose to tie ourselves to equinox implementation of OSGi and we use
> some eclipse extensions to avoid class loading problems (look for
> *Eclipse*-*RegisterBuddy* header on manifest files). We have encountered
> all kinds of class loading related problems (e.g. when you want to
> integrate Hibernate into the picture or deploying the applicition into a
> "real" application server) but after having dealt with all these
> problems we are quite happy with the decision of going OSGi.
> Additionally, if you use eclipse 3.3. for development, it comes with a
> plugin version of Jetty that is quite handy for development...
>
> AFAIK if you plan to deploy your application in a "real" application
> server you will have to use equinox anyway because is the only
> implementation providing a Bridge servlet (that allows to start an OSGi
> runtime insede your application server). Here we have had class loading
> problems well as (in some application servers) you cannot simply do a
> JNDI lookup from withing a not WEB thread...
>
> Best regards,
>
> Ernesto
>
> Thies Edeling wrote:
> > Hello all,
> >
> > Does anyone have any experience with using Wicket and OSGi? I'm
> > looking for the most flexible way of composing an application and
> > deploying Wicket pages/panels as OSGi bundles seems like a nice way.I
> > noticed the Pax Wicket project but am not sure how stable that is.
> >
> > regards,
> > Thies
> >
>
>
Re: Wicket & OSGi
Posted by Ernesto Reinaldo Barreiro <re...@isencia.com>.
We have gather some experience on using wicket and OSGi: we have been
using them together for almost a year now. Instead of going the PAX way
we chose to tie ourselves to equinox implementation of OSGi and we use
some eclipse extensions to avoid class loading problems (look for
*Eclipse*-*RegisterBuddy* header on manifest files). We have encountered
all kinds of class loading related problems (e.g. when you want to
integrate Hibernate into the picture or deploying the applicition into a
"real" application server) but after having dealt with all these
problems we are quite happy with the decision of going OSGi.
Additionally, if you use eclipse 3.3. for development, it comes with a
plugin version of Jetty that is quite handy for development...
AFAIK if you plan to deploy your application in a "real" application
server you will have to use equinox anyway because is the only
implementation providing a Bridge servlet (that allows to start an OSGi
runtime insede your application server). Here we have had class loading
problems well as (in some application servers) you cannot simply do a
JNDI lookup from withing a not WEB thread...
Best regards,
Ernesto
Thies Edeling wrote:
> Hello all,
>
> Does anyone have any experience with using Wicket and OSGi? I'm
> looking for the most flexible way of composing an application and
> deploying Wicket pages/panels as OSGi bundles seems like a nice way.I
> noticed the Pax Wicket project but am not sure how stable that is.
>
> regards,
> Thies
>