Re: wicket osgi (not Pax)

2010-10-12 Thread kugaprakash
Hi, I have multiple Wicket Applications running on different servers, each of them runs on OSGI/Jetty, and a Master Wicket Application also runs on OSGI/Jetty. Master wicket application, has its own server, where it gets the data from the sub servers. Do you recommend Pax Wicket for such

Re: wicket osgi (not Pax)

2010-10-12 Thread David Leangen
If you're already using Wicket successfully in OSGi, then I don't see what benefit using pax-wicket will add for you. pax-wicket is useful to help get you going in OSGi, since the class loading / serialization stuff can be tricky. Sounds like you're doing ok, though. =David On Oct 12,

Re: wicket osgi (not Pax)

2010-01-29 Thread Eelco Hillenius
In any case, this is getting REALLY off topic... ;-) On the contrary; this is really helpful for OSGi n00bs like me. Thanks for replying everyone. Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: wicket osgi (not Pax)

2010-01-28 Thread Ernesto Reinaldo Barreiro
Hi David, Antilia simply use equinox extensions for class-loading that way you can use normal Wicket components... No need to modify Wicket or your components. There I just create the extensions points I need to allow extending components at some places (e.g. toolbars). The projects I mentioned

Re: wicket osgi (not Pax)

2010-01-28 Thread David Leangen
Hi Ernesto, Antilia simply use equinox extensions for class-loading that way you can use normal Wicket components... No need to modify Wicket or your components. Ok, do you mean buddy classloading? If so, that's not real OSGi. :-) What I wanted to says is that you not always have to face

Re: wicket osgi (not Pax)

2010-01-28 Thread Ernesto Reinaldo Barreiro
Yes I mean buddy class-loading. It might not be real OSGi but it works:-) as far as you only use equinox. I also do like a lot OSGi. But I know from experience that it might take some time for newbies to get the full grasp of it Cheers, Ernesto On Thu, Jan 28, 2010 at 9:47 AM, David

Re: wicket osgi (not Pax)

2010-01-28 Thread Jochen Mader
Buddy-class loading is real OSGi since 4.1 ;) The new MANIFEST.MF entry is named Bundle- *BuddyPolicy.* Cheers, Jochen On Thu, Jan 28, 2010 at 9:55 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes I mean buddy class-loading. It might not be real OSGi but it works:-) as far

Re: wicket osgi (not Pax)

2010-01-28 Thread David Leangen
Buddy-class loading is real OSGi since 4.1 ;) The new MANIFEST.MF entry is named Bundle- *BuddyPolicy.* Ok, thanks for letting me know. I haven't looked at 4.1 at all. I'll have to look into the buddy thing. I'm wondering if it was some kind of compromise for the Equinox people, or if there

Re: wicket osgi (not Pax)

2010-01-28 Thread Jochen Mader
I ran into a lot of use-cases for it. Just take a look at esper and drools. They are packaged as OSGi and need to be able to work with classes provided by people using them. But yes, we are getting a little off topic here :D

Re: wicket osgi (not Pax)

2010-01-28 Thread Ernesto Reinaldo Barreiro
I did not know about it being included on the standard... Thanks for the update. Ernesto On Thu, Jan 28, 2010 at 11:18 AM, Jochen Mader pflanzenmoer...@gmail.comwrote: Buddy-class loading is real OSGi since 4.1 ;) The new MANIFEST.MF entry is named Bundle- *BuddyPolicy.* Cheers, Jochen

Re: wicket osgi (not Pax)

2010-01-28 Thread Jan Juno
Thank you very much On Thu, Jan 28, 2010 at 12:08 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I did not know about it being included on the standard... Thanks for the update. Ernesto On Thu, Jan 28, 2010 at 11:18 AM, Jochen Mader pflanzenmoer...@gmail.com wrote:

Re: wicket osgi (not Pax)

2010-01-27 Thread David Leangen
Is there a How-to for OSGI and wicket, not from pax I managed to install jetty servlet api in equinox...now I have to install wicket somehow Good luck! Due to serialization issues, it's not an easy problem to solve. I don't know of any how-to. All I can say is that you have a long road

Re: wicket osgi (not Pax)

2010-01-27 Thread Eelco Hillenius
Is there a How-to for OSGI and wicket, not from pax I managed to install jetty servlet api in equinox...now I have to install wicket somehow Good luck! Due to serialization issues, it's not an easy problem to solve. I don't know of any how-to. All I can say is that you have a long road

Re: wicket osgi (not Pax)

2010-01-27 Thread David Leangen
Hi Eelco, Is there a How-to for OSGI and wicket, not from pax I managed to install jetty servlet api in equinox...now I have to install wicket somehow Good luck! Due to serialization issues, it's not an easy problem to solve. I don't know of any how-to. All I can say is that you have

Re: wicket osgi (not Pax)

2010-01-27 Thread Ernesto Reinaldo Barreiro
I have seen OSGi successfully used with Wicket on production environments... With no problems with the serialization issues you mentioned. Best, Ernesto On Thu, Jan 28, 2010 at 1:08 AM, David Leangen wic...@leangen.net wrote: Is there a How-to for OSGI and wicket, not from pax I managed

Re: wicket osgi (not Pax)

2010-01-27 Thread Ernesto Reinaldo Barreiro
Take a look at http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter.demo

Re: wicket osgi (not Pax)

2010-01-27 Thread David Leangen
I have seen OSGi successfully used with Wicket on production environments... With no problems with the serialization issues you mentioned. Yes, I am using pax-wicket for this. What I meant was--as I understood from the original post--the person wanted to use wicket in OSGi without using a

Re: Wicket + OSGI + Session

2007-12-17 Thread Daniel Stoch
Hi, Thank you for your suggestion. I have no time to look at this earlier, but Wicket 1.3.0-rc2 is out now and after upgrade the error message I have has changed to: java.lang.IllegalStateException: spring application context locator returned null at

Re: Wicket + OSGI + Session

2007-11-26 Thread Daniel Stoch
Hi, You have written: This causes problems with session serialization/deserialization in an OSGI environment. I don't know is it a related problem, but I have the following situation (of course app is running in OSGi environment): I have a page with DataView displaying products list with images.

Re: Wicket + OSGI + Session

2007-11-26 Thread Sebastiaan van Erk
Yep, I've seen though before. It's probably a ClassNotFoundException on deserialization which gets eaten by ObjectInputStream (there's a bug report at Sun for this). To be sure you can debug trapping on ClassNotFoundException (caught and uncaught) when this problem occurs. However, since

Re: Wicket + OSGI + Session

2007-11-21 Thread Sebastiaan van Erk
Digging some more in the code, it seems to be the case that *pages* in the session are serialized like you say (writeObject in the Page class). However, this still leaves all the other objects in the session serialized by the container. Thus if I extend WebSession and add my own fields, they

Re: Wicket OSGi

2007-11-17 Thread igor . vaynberg
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 [EMAIL PROTECTED] wrote: Hi Igor, The main problem I see here is that there is not a single approach on building a

Re: Wicket OSGi

2007-11-17 Thread Edgar Poce
Hi, On Nov 16, 2007 6:12 PM, dado [EMAIL PROTECTED] 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,

Re: Wicket OSGi

2007-11-17 Thread dado
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

Re: Wicket OSGi

2007-11-16 Thread Edgar Poce
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:

Re: Wicket OSGi

2007-11-16 Thread Igor Vaynberg
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

Re: Wicket OSGi

2007-11-16 Thread dado
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

Re: Wicket OSGi

2007-11-16 Thread dado
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

Re: Wicket OSGi

2007-11-16 Thread Ernesto Reinaldo Barreiro
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

Re: Wicket OSGi

2007-11-16 Thread Ernesto Reinaldo Barreiro
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!

Re: Wicket OSGi

2007-11-14 Thread Edgar Poce
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

Re: Wicket OSGi

2007-11-14 Thread Ernesto Reinaldo Barreiro
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

Re: Wicket OSGi

2007-11-14 Thread Daniel Stoch
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

Re: Wicket OSGi

2007-11-14 Thread Serge Libotte
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 [EMAIL PROTECTED]: We have gather some experience on using wicket and OSGi: we have been using them together for almost a

Re: Wicket OSGi

2007-11-14 Thread Ernesto Reinaldo Barreiro
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