Brix: need a hint :)
hello, i have recently started to get interested in Brix ( http://code.google.com/p/brix-cms/), and I have some questions regarding this thing... for example, on the page JCR is mentioned. as I never heard about it before, could someone explain briefly, what is its purpose in Brix (i already read some overall information)? i would like to know, for example, if it could be used on top of a normal database (postgre) - so i would use it to work with comments, blogposts etc... or just some core brix things, and then I would work with my data normally (hibernate). Thanks for every answer :) -- -danoh-
Re: Brix: need a hint :)
Thanks, and sorry, I found out about Brix mailing list shortly after writing this question :) On Mon, Mar 29, 2010 at 5:22 PM, Jeremy Thomerson jer...@wickettraining.com wrote: First, there is a Brix mailing list for these sort of questions. But, nonetheless, here are some answers that may help: JCR (Java Content Repository). You can Google for what this is, but it is basically a replacement for a database for storing content-based things. Brix uses it to store your site. You can right Brix plugins that also store things in the JCR, or they can read/write from your existing database - it's up to you. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 29, 2010 at 10:06 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: hello, i have recently started to get interested in Brix ( http://code.google.com/p/brix-cms/), and I have some questions regarding this thing... for example, on the page JCR is mentioned. as I never heard about it before, could someone explain briefly, what is its purpose in Brix (i already read some overall information)? i would like to know, for example, if it could be used on top of a normal database (postgre) - so i would use it to work with comments, blogposts etc... or just some core brix things, and then I would work with my data normally (hibernate). Thanks for every answer :) -- -danoh- -- -danoh-
wicketstuff-push question
hello everybody, has anyone here any experience with wicketstuff-push? i am trying to use it in my app, but it behaves somewhat strangely. when i call cometdService.publish(event) method from form's onSubmit method, it works like a charm. but when i call it from another method - for example ListView's onModelChanged, then nothing happens. the reason i need to call it that way is, that i am using xmpp protocol for a chat application. in form's onSubmit method, i send the message via xmpp's sendMessage method. When received, the message is processed in a jabber listener. that is the place for publishing cometd event. if i publish it in onSubmit, clients often refresh themselves before the message actually arrives, and that's a problem. thank you for any help with this. :) -- -danoh-
Question regarding file uploading
Hello,i've got just one question. I would like to make a photo gallery, and thus I need to let users upload their images. But if I redeploy my webapp afterwards, would I loose those images? If yes, is there any workaround? Thanks :) -- -danoh-
Re: Question regarding file uploading
thanks,and can you give me a hint on storing images in database? i can't quite imagine that :) On Fri, Sep 4, 2009 at 9:34 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: store the uploaded images in a permanent store such as a database or a dir on the server. -igor On Fri, Sep 4, 2009 at 12:25 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,i've got just one question. I would like to make a photo gallery, and thus I need to let users upload their images. But if I redeploy my webapp afterwards, would I loose those images? If yes, is there any workaround? Thanks :) -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh-
Re: Question regarding file uploading
yes,but what i can't imagine is how to retrieve those objects from db. what to use? Resource? ResourceReference? On Fri, Sep 4, 2009 at 4:15 PM, Edward Zarecor wic...@indeterminate.orgwrote: Google your database of choice and blob (binary large objects), e.g., postgres blob; oracle blob, etc. Ed. On Fri, Sep 4, 2009 at 10:11 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: thanks,and can you give me a hint on storing images in database? i can't quite imagine that :) On Fri, Sep 4, 2009 at 9:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: store the uploaded images in a permanent store such as a database or a dir on the server. -igor On Fri, Sep 4, 2009 at 12:25 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,i've got just one question. I would like to make a photo gallery, and thus I need to let users upload their images. But if I redeploy my webapp afterwards, would I loose those images? If yes, is there any workaround? Thanks :) -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh- -- -danoh-
Re: Question regarding file uploading
thanks, that is exactly what i was looking for :) On Fri, Sep 4, 2009 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: there is a page on our wiki that demonstrates eaxctly this -igor On Fri, Sep 4, 2009 at 7:11 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: thanks,and can you give me a hint on storing images in database? i can't quite imagine that :) On Fri, Sep 4, 2009 at 9:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: store the uploaded images in a permanent store such as a database or a dir on the server. -igor On Fri, Sep 4, 2009 at 12:25 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,i've got just one question. I would like to make a photo gallery, and thus I need to let users upload their images. But if I redeploy my webapp afterwards, would I loose those images? If yes, is there any workaround? Thanks :) -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh-
Re: Problems with session after modifying code
Ok,i've found out that i need to delete the JSESSIONID cookie after refreshing bundles. is there any way to do that programatically? thx On Mon, Aug 10, 2009 at 5:40 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello,i'm developing a webapp combining osgi (equinox) and wicket. it works fine, except of this case: let's say we've got two bundles - core and chat. the chat bundle depends on core bundle. now, i've made some modifications to the chat bundle, exported it and deployed it to osgi container, leaving the core bundle unchanged. because i need the changes to be seen by the core, i have to refresh it. and here is the problem. when i now access the webapp, i get an exception which says - MySession can not be cast to org.apache.wicket.Session. i think the problem is that the old session, containing old classes (in some Page store maybe? i'm still a newbie :)) is saved to disk before actually refreshing core classes and then loaded again - but confliting with new, freshly loaded classes. the exception goes away and webapp loads correctly after i restart my browser :) so my question is: do you know about some workaround for this problem? the best scenario would be that the Session will load correctly, but it's not necessary - it can be dropped. i know there's a lot of osgi, but i think this is a wicket problem - but correct me if i'm mistaken. :) thanks for your answers! -- -danoh- -- -danoh-
Re: Problems with session after modifying code
Dominik Holúbek wrote: Ok,i've found out that i need to delete the JSESSIONID cookie after refreshing bundles. is there any way to do that programatically? thx On Mon, Aug 10, 2009 at 5:40 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello,i'm developing a webapp combining osgi (equinox) and wicket. it works fine, except of this case: let's say we've got two bundles - core and chat. the chat bundle depends on core bundle. now, i've made some modifications to the chat bundle, exported it and deployed it to osgi container, leaving the core bundle unchanged. because i need the changes to be seen by the core, i have to refresh it. and here is the problem. when i now access the webapp, i get an exception which says - MySession can not be cast to org.apache.wicket.Session. i think the problem is that the old session, containing old classes (in some Page store maybe? i'm still a newbie :)) is saved to disk before actually refreshing core classes and then loaded again - but confliting with new, freshly loaded classes. the exception goes away and webapp loads correctly after i restart my browser :) so my question is: do you know about some workaround for this problem? the best scenario would be that the Session will load correctly, but it's not necessary - it can be dropped. i know there's a lot of osgi, but i think this is a wicket problem - but correct me if i'm mistaken. :) thanks for your answers! -- -danoh- -- -danoh- -- View this message in context: http://www.nabble.com/Problems-with-session-after-modifying-code-tp24902109p24915768.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh-
Problems with session after modifying code
Hello,i'm developing a webapp combining osgi (equinox) and wicket. it works fine, except of this case: let's say we've got two bundles - core and chat. the chat bundle depends on core bundle. now, i've made some modifications to the chat bundle, exported it and deployed it to osgi container, leaving the core bundle unchanged. because i need the changes to be seen by the core, i have to refresh it. and here is the problem. when i now access the webapp, i get an exception which says - MySession can not be cast to org.apache.wicket.Session. i think the problem is that the old session, containing old classes (in some Page store maybe? i'm still a newbie :)) is saved to disk before actually refreshing core classes and then loaded again - but confliting with new, freshly loaded classes. the exception goes away and webapp loads correctly after i restart my browser :) so my question is: do you know about some workaround for this problem? the best scenario would be that the Session will load correctly, but it's not necessary - it can be dropped. i know there's a lot of osgi, but i think this is a wicket problem - but correct me if i'm mistaken. :) thanks for your answers! -- -danoh-
invoking an ajax refresh
hello everybody,i am wondering how to invoke refresh of a component with ajax. the situation: i have a listener listening for incoming messages. if a message is fetched, a method is executed, and I add the message text into a List object. I then want to refresh the ListView (or the parent WebMarkupContainer), so that it shows the latest message up. So basically, it's a sort of asynchronous chat. Thanks! :) -- -danoh-
Re: Wicket + Spring DM + Hibernate
Okay, but I still don't understand the reason of doing this stuff :)I've already created the Application bean, and implemented ApplicationContextAware. Then the setApplicationContext method gets called, so I created ApplictionContext variable in that class and set it it that method. But if I try to access it in another bundle via Application.get(), it is still null. But even if it wasn't, I think that the DAO bean, declared in other bundle (database-bundle) would not be there. Just to make it clear - we've got three bundles. The database bundle has everything needed to operate with DB. It creates DAO beans and makes OSGi sevices from them. Then, there is an Application bundle. And the last bundle is Panel bundle, which is loaded into the App bundle via an extension point. I need to access the DAO in the Panel bundle, and there comes the problem mentioned above. That's why I do not understand why should I change the Application bundle (except the Panel complaining about Application not being in Spring Extender thread). Thanks for your help :) On Mon, Jun 22, 2009 at 11:38 PM, James Carman jcar...@carmanconsulting.com wrote: Sorry, that's IWebApplicationFactory, not IWicketApplicationFactory. Long day. On Mon, Jun 22, 2009 at 5:05 PM, James Carmanjcar...@carmanconsulting.com wrote: You will probably need to make your application class a singleton (with a getInstance() method and stuff) and specify that in the spring configuration: bean id=wicketApplication class=com.myco.myapp.MyWicketApplication factory-method=getInstance / Also, you will probably need to implement your own IWicketApplicationFactory to return the singleton instance since you won't have access to the Spring ApplicationContext to lookup your application object. On Mon, Jun 22, 2009 at 3:57 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: you have to create wicketapplication instance as a spring bean in order for setapplicationcontext to be called. -igor On Mon, Jun 22, 2009 at 12:47 PM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: I tried implementing the ApplicationContextAware interface, it looked like a good idea, but the setApplicationContext method is never called. On Mon, Jun 22, 2009 at 8:25 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: For now, only in eclipse. But when it goes to production (or further testing) it will run in equinox bridge. On Mon, Jun 22, 2009 at 5:14 PM, James Carman jcar...@carmanconsulting.com wrote: That's what I'd try, perhaps. How are you starting this application? Only in eclipse? On Mon, Jun 22, 2009 at 11:09 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Well, I don't know :)I On Mon, Jun 22, 2009 at 12:32 PM, James Carman jcar...@carmanconsulting.com wrote: Can you have your Application object created as a Spring bean and make it context aware and let the container inject the context into it? On Mon, Jun 22, 2009 at 2:02 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: But as far as I understand this, Spring DM is built upon the idea that I can't build ApplicationContext, as it is built by Spring DM Extender. Am I right? On Mon, Jun 22, 2009 at 12:37 AM, James Carman jcar...@carmanconsulting.com wrote: Try using the other SpringComponentInjector constructor (the one that takes an ApplicationContext object). Construct your ApplicationContext however you want. On Sun, Jun 21, 2009 at 2:09 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, no.I'll explain: It's an OSGi app running in equinox-bridge. In my bundles there is no web.xml, and that's why I can't configure ContextLoaderListener. And because of this, when i add @SpringBean into my code, then add addComponentInstantiationListener(new SpringComponentInjector(this)) into WebApplication's init method and then run the application, the only thing I get is this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? But if there is a way how to set up that listener, I would be happy :) On Sun, Jun 21, 2009 at 7:28 PM, James Carman jcar...@carmanconsulting.comwrote: You can't use @SpringBean? On Sun, Jun 21, 2009 at 11:03 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello everyone :)So, I solved the Spring DM problems successfully... but there is still one problem left, and this time I am absolutely sure that it's a Wicket related problem :) I want to inject my userDao bean into Panel class. To do that, I nead to create a bean from that Panel class - like this: bean name=consumer class=sk.ziwhat.megaweb.loginpanels.prvy.lPanel init
Re: Wicket + Spring DM + Hibernate
I appreciate your help, of course :)You know, I'm trying to create a web app consisting of independent modules. Then if I change something in one module, I don't have to redeploy whole application. This can be achieved of course, the only problem is this thing we are currently speaking of. :) But if there is no way to do it, I think that putting the whole database stuff into application bundle and then treating it normally would be okay, even if I will have to redeploy the application bundle if I change something in database. Thanks! :) On Tue, Jun 23, 2009 at 12:41 PM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Jun 23, 2009 at 4:05 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Okay, but I still don't understand the reason of doing this stuff :)I've already created the Application bean, and implemented ApplicationContextAware. Then the setApplicationContext method gets called, so I created ApplictionContext variable in that class and set it it that method. But if I try to access it in another bundle via Application.get(), it is still null. But even if it wasn't, I think that the DAO bean, declared in other bundle (database-bundle) would not be there. None of us have experience with this environment, so we're trying to help as best we can. This stuff wasn't designed for this environment. Why, exactly, do you feel it's necessary to architect your application this way, if you don't mind me asking? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh-
Re: Wicket + Spring DM + Hibernate
Yes, that's the way it's meant to work :) On Tue, Jun 23, 2009 at 3:25 PM, James Carman jcar...@carmanconsulting.comwrote: On Tue, Jun 23, 2009 at 8:26 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: I appreciate your help, of course :)You know, I'm trying to create a web app consisting of independent modules. Then if I change something in one module, I don't have to redeploy whole application. This can be achieved of course, the only problem is this thing we are currently speaking of. :) So, you are going to redeploy the individual modules live, while the application is running, in production? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh-
Re: Wicket + Spring DM + Hibernate
But as far as I understand this, Spring DM is built upon the idea that I can't build ApplicationContext, as it is built by Spring DM Extender. Am I right? On Mon, Jun 22, 2009 at 12:37 AM, James Carman jcar...@carmanconsulting.com wrote: Try using the other SpringComponentInjector constructor (the one that takes an ApplicationContext object). Construct your ApplicationContext however you want. On Sun, Jun 21, 2009 at 2:09 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, no.I'll explain: It's an OSGi app running in equinox-bridge. In my bundles there is no web.xml, and that's why I can't configure ContextLoaderListener. And because of this, when i add @SpringBean into my code, then add addComponentInstantiationListener(new SpringComponentInjector(this)) into WebApplication's init method and then run the application, the only thing I get is this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? But if there is a way how to set up that listener, I would be happy :) On Sun, Jun 21, 2009 at 7:28 PM, James Carman jcar...@carmanconsulting.comwrote: You can't use @SpringBean? On Sun, Jun 21, 2009 at 11:03 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello everyone :)So, I solved the Spring DM problems successfully... but there is still one problem left, and this time I am absolutely sure that it's a Wicket related problem :) I want to inject my userDao bean into Panel class. To do that, I nead to create a bean from that Panel class - like this: bean name=consumer class=sk.ziwhat.megaweb.loginpanels.prvy.lPanel init-method=init property name=userDao ref=userDao / /bean But when I try this, I get an exception: Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread SpringOsgiExtenderThread-4 This happens when Spring is trying to instantiate the Panel class. I tried this with ordinary class and everything worked fine. The idea was that I will instantiate a normal class, and then I will access it from the Panel class, but when I do: ServiceConsumer sc = new ServiceConsumer(); and then access userDao, I'll get a NullPointerException of course. So has anybody done this before? I think I need your help :) Thanks a lot! On Tue, Jun 16, 2009 at 2:01 AM, djo mos djo.mli...@gmail.com wrote: Hi, On Mon, Jun 15, 2009 at 9:28 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, may be, but won't they send me back to this mailinglist? :)To be honest, I have only a little problem with Spring DM itself (there are couple of tutorials out there), I was only curious about whether somebody has successfully tried this. For example, now it seems that the dependency is not being injected in my code. And I can't do that via @SpringBean, because that needs to be set in web.xml, and I have no web.xml in my OSGi bundle. Actually with Spring DM you do have web.xml in web bundles, as described in their reference documentation. I'v been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance that the problem has nothing to do with Wicket itself. On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,has anybody here successfully used Spring DM with Hibernate (the OSGi way) in Wicket? I am totally hopeless about this... The goal is to create modular app with this features: - every module (bundle) has its own applicationContext and DAO classes. - i.e. if I have a module which loads blogs, I want to include the Blog entity with corresponding DAO in the bundle and nowhere else. Thanks in advance. -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh- -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail
Re: Wicket + Spring DM + Hibernate
Well, I don't know :)I On Mon, Jun 22, 2009 at 12:32 PM, James Carman jcar...@carmanconsulting.com wrote: Can you have your Application object created as a Spring bean and make it context aware and let the container inject the context into it? On Mon, Jun 22, 2009 at 2:02 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: But as far as I understand this, Spring DM is built upon the idea that I can't build ApplicationContext, as it is built by Spring DM Extender. Am I right? On Mon, Jun 22, 2009 at 12:37 AM, James Carman jcar...@carmanconsulting.com wrote: Try using the other SpringComponentInjector constructor (the one that takes an ApplicationContext object). Construct your ApplicationContext however you want. On Sun, Jun 21, 2009 at 2:09 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, no.I'll explain: It's an OSGi app running in equinox-bridge. In my bundles there is no web.xml, and that's why I can't configure ContextLoaderListener. And because of this, when i add @SpringBean into my code, then add addComponentInstantiationListener(new SpringComponentInjector(this)) into WebApplication's init method and then run the application, the only thing I get is this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? But if there is a way how to set up that listener, I would be happy :) On Sun, Jun 21, 2009 at 7:28 PM, James Carman jcar...@carmanconsulting.comwrote: You can't use @SpringBean? On Sun, Jun 21, 2009 at 11:03 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello everyone :)So, I solved the Spring DM problems successfully... but there is still one problem left, and this time I am absolutely sure that it's a Wicket related problem :) I want to inject my userDao bean into Panel class. To do that, I nead to create a bean from that Panel class - like this: bean name=consumer class=sk.ziwhat.megaweb.loginpanels.prvy.lPanel init-method=init property name=userDao ref=userDao / /bean But when I try this, I get an exception: Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread SpringOsgiExtenderThread-4 This happens when Spring is trying to instantiate the Panel class. I tried this with ordinary class and everything worked fine. The idea was that I will instantiate a normal class, and then I will access it from the Panel class, but when I do: ServiceConsumer sc = new ServiceConsumer(); and then access userDao, I'll get a NullPointerException of course. So has anybody done this before? I think I need your help :) Thanks a lot! On Tue, Jun 16, 2009 at 2:01 AM, djo mos djo.mli...@gmail.com wrote: Hi, On Mon, Jun 15, 2009 at 9:28 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, may be, but won't they send me back to this mailinglist? :)To be honest, I have only a little problem with Spring DM itself (there are couple of tutorials out there), I was only curious about whether somebody has successfully tried this. For example, now it seems that the dependency is not being injected in my code. And I can't do that via @SpringBean, because that needs to be set in web.xml, and I have no web.xml in my OSGi bundle. Actually with Spring DM you do have web.xml in web bundles, as described in their reference documentation. I'v been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance that the problem has nothing to do with Wicket itself. On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,has anybody here successfully used Spring DM with Hibernate (the OSGi way) in Wicket? I am totally hopeless about this... The goal is to create modular app with this features: - every module (bundle) has its own applicationContext and DAO classes. - i.e. if I have a module which loads blogs, I want to include the Blog entity with corresponding DAO in the bundle and nowhere else. Thanks in advance
Re: Wicket + Spring DM + Hibernate
I don't know :)I can create a Spring bean from Application object, but I don't know what does it mean - make it context aware. That's why I am asking whether somebody has already tried this... On Mon, Jun 22, 2009 at 5:09 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, I don't know :)I On Mon, Jun 22, 2009 at 12:32 PM, James Carman jcar...@carmanconsulting.com wrote: Can you have your Application object created as a Spring bean and make it context aware and let the container inject the context into it? On Mon, Jun 22, 2009 at 2:02 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: But as far as I understand this, Spring DM is built upon the idea that I can't build ApplicationContext, as it is built by Spring DM Extender. Am I right? On Mon, Jun 22, 2009 at 12:37 AM, James Carman jcar...@carmanconsulting.com wrote: Try using the other SpringComponentInjector constructor (the one that takes an ApplicationContext object). Construct your ApplicationContext however you want. On Sun, Jun 21, 2009 at 2:09 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, no.I'll explain: It's an OSGi app running in equinox-bridge. In my bundles there is no web.xml, and that's why I can't configure ContextLoaderListener. And because of this, when i add @SpringBean into my code, then add addComponentInstantiationListener(new SpringComponentInjector(this)) into WebApplication's init method and then run the application, the only thing I get is this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? But if there is a way how to set up that listener, I would be happy :) On Sun, Jun 21, 2009 at 7:28 PM, James Carman jcar...@carmanconsulting.comwrote: You can't use @SpringBean? On Sun, Jun 21, 2009 at 11:03 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello everyone :)So, I solved the Spring DM problems successfully... but there is still one problem left, and this time I am absolutely sure that it's a Wicket related problem :) I want to inject my userDao bean into Panel class. To do that, I nead to create a bean from that Panel class - like this: bean name=consumer class=sk.ziwhat.megaweb.loginpanels.prvy.lPanel init-method=init property name=userDao ref=userDao / /bean But when I try this, I get an exception: Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread SpringOsgiExtenderThread-4 This happens when Spring is trying to instantiate the Panel class. I tried this with ordinary class and everything worked fine. The idea was that I will instantiate a normal class, and then I will access it from the Panel class, but when I do: ServiceConsumer sc = new ServiceConsumer(); and then access userDao, I'll get a NullPointerException of course. So has anybody done this before? I think I need your help :) Thanks a lot! On Tue, Jun 16, 2009 at 2:01 AM, djo mos djo.mli...@gmail.com wrote: Hi, On Mon, Jun 15, 2009 at 9:28 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, may be, but won't they send me back to this mailinglist? :)To be honest, I have only a little problem with Spring DM itself (there are couple of tutorials out there), I was only curious about whether somebody has successfully tried this. For example, now it seems that the dependency is not being injected in my code. And I can't do that via @SpringBean, because that needs to be set in web.xml, and I have no web.xml in my OSGi bundle. Actually with Spring DM you do have web.xml in web bundles, as described in their reference documentation. I'v been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance that the problem has nothing to do with Wicket itself. On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,has anybody here successfully used Spring DM with Hibernate (the OSGi way) in Wicket? I am totally hopeless about this... The goal is to create modular app with this features
Re: Wicket + Spring DM + Hibernate
For now, only in eclipse. But when it goes to production (or further testing) it will run in equinox bridge. On Mon, Jun 22, 2009 at 5:14 PM, James Carman jcar...@carmanconsulting.comwrote: That's what I'd try, perhaps. How are you starting this application? Only in eclipse? On Mon, Jun 22, 2009 at 11:09 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Well, I don't know :)I On Mon, Jun 22, 2009 at 12:32 PM, James Carman jcar...@carmanconsulting.com wrote: Can you have your Application object created as a Spring bean and make it context aware and let the container inject the context into it? On Mon, Jun 22, 2009 at 2:02 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: But as far as I understand this, Spring DM is built upon the idea that I can't build ApplicationContext, as it is built by Spring DM Extender. Am I right? On Mon, Jun 22, 2009 at 12:37 AM, James Carman jcar...@carmanconsulting.com wrote: Try using the other SpringComponentInjector constructor (the one that takes an ApplicationContext object). Construct your ApplicationContext however you want. On Sun, Jun 21, 2009 at 2:09 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, no.I'll explain: It's an OSGi app running in equinox-bridge. In my bundles there is no web.xml, and that's why I can't configure ContextLoaderListener. And because of this, when i add @SpringBean into my code, then add addComponentInstantiationListener(new SpringComponentInjector(this)) into WebApplication's init method and then run the application, the only thing I get is this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? But if there is a way how to set up that listener, I would be happy :) On Sun, Jun 21, 2009 at 7:28 PM, James Carman jcar...@carmanconsulting.comwrote: You can't use @SpringBean? On Sun, Jun 21, 2009 at 11:03 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello everyone :)So, I solved the Spring DM problems successfully... but there is still one problem left, and this time I am absolutely sure that it's a Wicket related problem :) I want to inject my userDao bean into Panel class. To do that, I nead to create a bean from that Panel class - like this: bean name=consumer class=sk.ziwhat.megaweb.loginpanels.prvy.lPanel init-method=init property name=userDao ref=userDao / /bean But when I try this, I get an exception: Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread SpringOsgiExtenderThread-4 This happens when Spring is trying to instantiate the Panel class. I tried this with ordinary class and everything worked fine. The idea was that I will instantiate a normal class, and then I will access it from the Panel class, but when I do: ServiceConsumer sc = new ServiceConsumer(); and then access userDao, I'll get a NullPointerException of course. So has anybody done this before? I think I need your help :) Thanks a lot! On Tue, Jun 16, 2009 at 2:01 AM, djo mos djo.mli...@gmail.com wrote: Hi, On Mon, Jun 15, 2009 at 9:28 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, may be, but won't they send me back to this mailinglist? :)To be honest, I have only a little problem with Spring DM itself (there are couple of tutorials out there), I was only curious about whether somebody has successfully tried this. For example, now it seems that the dependency is not being injected in my code. And I can't do that via @SpringBean, because that needs to be set in web.xml, and I have no web.xml in my OSGi bundle. Actually with Spring DM you do have web.xml in web bundles, as described in their reference documentation. I'v been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance that the problem has nothing to do with Wicket itself. On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo
Re: Wicket + Spring DM + Hibernate
I tried implementing the ApplicationContextAware interface, it looked like a good idea, but the setApplicationContext method is never called. On Mon, Jun 22, 2009 at 8:25 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: For now, only in eclipse. But when it goes to production (or further testing) it will run in equinox bridge. On Mon, Jun 22, 2009 at 5:14 PM, James Carman jcar...@carmanconsulting.com wrote: That's what I'd try, perhaps. How are you starting this application? Only in eclipse? On Mon, Jun 22, 2009 at 11:09 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Well, I don't know :)I On Mon, Jun 22, 2009 at 12:32 PM, James Carman jcar...@carmanconsulting.com wrote: Can you have your Application object created as a Spring bean and make it context aware and let the container inject the context into it? On Mon, Jun 22, 2009 at 2:02 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: But as far as I understand this, Spring DM is built upon the idea that I can't build ApplicationContext, as it is built by Spring DM Extender. Am I right? On Mon, Jun 22, 2009 at 12:37 AM, James Carman jcar...@carmanconsulting.com wrote: Try using the other SpringComponentInjector constructor (the one that takes an ApplicationContext object). Construct your ApplicationContext however you want. On Sun, Jun 21, 2009 at 2:09 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, no.I'll explain: It's an OSGi app running in equinox-bridge. In my bundles there is no web.xml, and that's why I can't configure ContextLoaderListener. And because of this, when i add @SpringBean into my code, then add addComponentInstantiationListener(new SpringComponentInjector(this)) into WebApplication's init method and then run the application, the only thing I get is this exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? But if there is a way how to set up that listener, I would be happy :) On Sun, Jun 21, 2009 at 7:28 PM, James Carman jcar...@carmanconsulting.comwrote: You can't use @SpringBean? On Sun, Jun 21, 2009 at 11:03 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello everyone :)So, I solved the Spring DM problems successfully... but there is still one problem left, and this time I am absolutely sure that it's a Wicket related problem :) I want to inject my userDao bean into Panel class. To do that, I nead to create a bean from that Panel class - like this: bean name=consumer class=sk.ziwhat.megaweb.loginpanels.prvy.lPanel init-method=init property name=userDao ref=userDao / /bean But when I try this, I get an exception: Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread SpringOsgiExtenderThread-4 This happens when Spring is trying to instantiate the Panel class. I tried this with ordinary class and everything worked fine. The idea was that I will instantiate a normal class, and then I will access it from the Panel class, but when I do: ServiceConsumer sc = new ServiceConsumer(); and then access userDao, I'll get a NullPointerException of course. So has anybody done this before? I think I need your help :) Thanks a lot! On Tue, Jun 16, 2009 at 2:01 AM, djo mos djo.mli...@gmail.com wrote: Hi, On Mon, Jun 15, 2009 at 9:28 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, may be, but won't they send me back to this mailinglist? :)To be honest, I have only a little problem with Spring DM itself (there are couple of tutorials out there), I was only curious about whether somebody has successfully tried this. For example, now it seems that the dependency is not being injected in my code. And I can't do that via @SpringBean, because that needs to be set in web.xml, and I have no web.xml in my OSGi bundle. Actually with Spring DM you do have web.xml in web bundles, as described in their reference documentation. I'v been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance that the problem has nothing to do with Wicket itself. On Mon, Jun 15, 2009 at 4:38 PM, Igor
Re: Wicket + Spring DM + Hibernate
Hello everyone :)So, I solved the Spring DM problems successfully... but there is still one problem left, and this time I am absolutely sure that it's a Wicket related problem :) I want to inject my userDao bean into Panel class. To do that, I nead to create a bean from that Panel class - like this: bean name=consumer class=sk.ziwhat.megaweb.loginpanels.prvy.lPanel init-method=init property name=userDao ref=userDao / /bean But when I try this, I get an exception: Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread SpringOsgiExtenderThread-4 This happens when Spring is trying to instantiate the Panel class. I tried this with ordinary class and everything worked fine. The idea was that I will instantiate a normal class, and then I will access it from the Panel class, but when I do: ServiceConsumer sc = new ServiceConsumer(); and then access userDao, I'll get a NullPointerException of course. So has anybody done this before? I think I need your help :) Thanks a lot! On Tue, Jun 16, 2009 at 2:01 AM, djo mos djo.mli...@gmail.com wrote: Hi, On Mon, Jun 15, 2009 at 9:28 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, may be, but won't they send me back to this mailinglist? :)To be honest, I have only a little problem with Spring DM itself (there are couple of tutorials out there), I was only curious about whether somebody has successfully tried this. For example, now it seems that the dependency is not being injected in my code. And I can't do that via @SpringBean, because that needs to be set in web.xml, and I have no web.xml in my OSGi bundle. Actually with Spring DM you do have web.xml in web bundles, as described in their reference documentation. I'v been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance that the problem has nothing to do with Wicket itself. On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,has anybody here successfully used Spring DM with Hibernate (the OSGi way) in Wicket? I am totally hopeless about this... The goal is to create modular app with this features: - every module (bundle) has its own applicationContext and DAO classes. - i.e. if I have a module which loads blogs, I want to include the Blog entity with corresponding DAO in the bundle and nowhere else. Thanks in advance. -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh- -- -danoh-
Wicket + Spring DM + Hibernate
Hello,has anybody here successfully used Spring DM with Hibernate (the OSGi way) in Wicket? I am totally hopeless about this... The goal is to create modular app with this features: - every module (bundle) has its own applicationContext and DAO classes. - i.e. if I have a module which loads blogs, I want to include the Blog entity with corresponding DAO in the bundle and nowhere else. Thanks in advance. -- -danoh-
Re: Wicket + Spring DM + Hibernate
Well, may be, but won't they send me back to this mailinglist? :)To be honest, I have only a little problem with Spring DM itself (there are couple of tutorials out there), I was only curious about whether somebody has successfully tried this. For example, now it seems that the dependency is not being injected in my code. And I can't do that via @SpringBean, because that needs to be set in web.xml, and I have no web.xml in my OSGi bundle. But yes, there is a chance that the problem has nothing to do with Wicket itself. On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,has anybody here successfully used Spring DM with Hibernate (the OSGi way) in Wicket? I am totally hopeless about this... The goal is to create modular app with this features: - every module (bundle) has its own applicationContext and DAO classes. - i.e. if I have a module which loads blogs, I want to include the Blog entity with corresponding DAO in the bundle and nowhere else. Thanks in advance. -- -danoh- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh-
Re: Extensible wicket application
Hi, I'm still trying to solve the database problem... I think it could be useful to mention, that I get an exception at these lines: HibernateTemplate ht = new HibernateTemplate(sessionFactory); ht.save(msg); -- HERE! and if I change the code to this: Session session = sessionFactory.openSession(); session.getTransaction().begin(); session.save(msg); session.getTransaction().commit(); -- HERE! I have read something regarding OSGi having problems with Session - isn't this exactly that problem? Thanks! :) On Sun, Mar 22, 2009 at 2:10 AM, Brill Pappin br...@pappin.ca wrote: I'm assuming your using the 1.4 snapshot... I think that images will be relative to the component (or at least one if them up the tree). The image component uses a resource that will use the arc attribute to look for the images, so if the arc attribute is bogus, then one of the other methods of locating it better be correct. - Brill Pappin Sent from my mobile. On 21-Mar-09, at 5:29 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ernesto, thank you very much :) If my application ever goes to the production, it will be thanks to you :) Regarding the images problem: I think I did not explain it well. I'm not asking where to place them. I placed them almost everywhere, but I still can't access them - in the bundle. You see, I have an images directory, and in HTML files, I am accessing them as img src=images/blah.jpg, but I still can't get this working. I am expecting only a hint - how are you doing this? And the database problem - I have the same application deployed as standard webapp, and there it works. I only wanted to know if it isn't some specific Wicket-Hibernate-OSGi problem you might have solved before :) But thank you all again! On Sat, Mar 21, 2009 at 6:06 PM, Brill Pappin br...@pappin.ca wrote: Yah, the whole argument about where the resources should go or the one before that about top posting or bottom posting. You'd think we didn't have any actual work to do :) - Brill On 21-Mar-09, at 12:39 PM, Ernesto Reinaldo Barreiro wrote: useless thread? On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin br...@pappin.ca wrote: At the risk of starting another useless thread, this is what I do for images and other non HTML resources that are shared: - if the project is small, they can just sit with the HTML. - if the project is larger then it might be useful to keep them more separate, under an images directory and use the base page to ref them or even create a loader to manage them. Ether way, you use them the same way, only prefix the resource name with the subdir if you have separated them out. As for your db error, that looks like something out side the scope of wicket. - Brill Pappin Sent from my mobile. On 21-Mar-09, at 9:38 AM, Daniel Dominik Holúbek dankodo...@gmail.co m wrote: Thanks a lot, it works now. However, two more questions. Where should I place images folder and how should I access it in my html files (or style.css as well)? And the second one: when i try to insert a record with hibernate into my database, i get this exception: Batch entry 0 insert into forum.anim_forum (autor, email, title, text, datum, ip, id) values (...) was aborted. and org.hibernate.exception.DataException: Could not execute JDBC batch update Could you (or possibly anyone else) help me with this? :) Thanks! On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: One more thing. As far as I remember the servlet bridge makes a 'work copy' of the plugins folder if you see you make changes, export the plugins, and changes do not 'propagate' to the application, try deleting works/Catalina folder. On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, I found some time to get it working! The key to the problem was http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html So, if you synchronize the projects com.antilia.wstarter com.antilia.wstarter.demo exports them to you bridge it should work. I attach copy of bridge.zip, containing a bridge folder, which is working for me. If you unzip it to your tomcat webapps, restart tomcat and go to http://localhost:8080/bridge/demo-app/ Then you should see the example working. Best, Ernesto On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Right click - Export - Plugin development - Deployable plug-ins and fragments Have a nice day :) On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time for trying this out myself... Best, Ernesto On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote
Re: Extensible wicket application
Your application works, but it seems a bit complicated to me :) I would like to know the exact exception, but I do not know how, it tells me to call getNextException to see the cause, but ho do I do that? Have a nice day! On Thu, Mar 26, 2009 at 12:22 PM, reiern70 reier...@gmail.com wrote: Can you provide an stack trace or some more info? Is this happening when you run your application in eclipse or just on the bridge setting? Right now I'm using hibernate+OSGi on some project and it works just fine... provided Hibernate can load you entity classes by name. Best, Ernesto Daniel Dominik Holúbek wrote: Hi, I'm still trying to solve the database problem... I think it could be useful to mention, that I get an exception at these lines: HibernateTemplate ht = new HibernateTemplate(sessionFactory); ht.save(msg); -- HERE! and if I change the code to this: Session session = sessionFactory.openSession(); session.getTransaction().begin(); session.save(msg); session.getTransaction().commit(); -- HERE! I have read something regarding OSGi having problems with Session - isn't this exactly that problem? Thanks! :) On Sun, Mar 22, 2009 at 2:10 AM, Brill Pappin br...@pappin.ca wrote: I'm assuming your using the 1.4 snapshot... I think that images will be relative to the component (or at least one if them up the tree). The image component uses a resource that will use the arc attribute to look for the images, so if the arc attribute is bogus, then one of the other methods of locating it better be correct. - Brill Pappin Sent from my mobile. On 21-Mar-09, at 5:29 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ernesto, thank you very much :) If my application ever goes to the production, it will be thanks to you :) Regarding the images problem: I think I did not explain it well. I'm not asking where to place them. I placed them almost everywhere, but I still can't access them - in the bundle. You see, I have an images directory, and in HTML files, I am accessing them as img src=images/blah.jpg, but I still can't get this working. I am expecting only a hint - how are you doing this? And the database problem - I have the same application deployed as standard webapp, and there it works. I only wanted to know if it isn't some specific Wicket-Hibernate-OSGi problem you might have solved before :) But thank you all again! On Sat, Mar 21, 2009 at 6:06 PM, Brill Pappin br...@pappin.ca wrote: Yah, the whole argument about where the resources should go or the one before that about top posting or bottom posting. You'd think we didn't have any actual work to do :) - Brill On 21-Mar-09, at 12:39 PM, Ernesto Reinaldo Barreiro wrote: useless thread? On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin br...@pappin.ca wrote: At the risk of starting another useless thread, this is what I do for images and other non HTML resources that are shared: - if the project is small, they can just sit with the HTML. - if the project is larger then it might be useful to keep them more separate, under an images directory and use the base page to ref them or even create a loader to manage them. Ether way, you use them the same way, only prefix the resource name with the subdir if you have separated them out. As for your db error, that looks like something out side the scope of wicket. - Brill Pappin Sent from my mobile. On 21-Mar-09, at 9:38 AM, Daniel Dominik Holúbek dankodo...@gmail.co m wrote: Thanks a lot, it works now. However, two more questions. Where should I place images folder and how should I access it in my html files (or style.css as well)? And the second one: when i try to insert a record with hibernate into my database, i get this exception: Batch entry 0 insert into forum.anim_forum (autor, email, title, text, datum, ip, id) values (...) was aborted. and org.hibernate.exception.DataException: Could not execute JDBC batch update Could you (or possibly anyone else) help me with this? :) Thanks! On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: One more thing. As far as I remember the servlet bridge makes a 'work copy' of the plugins folder if you see you make changes, export the plugins, and changes do not 'propagate' to the application, try deleting works/Catalina folder. On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, I found some time to get it working! The key to the problem was http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html So, if you synchronize the projects com.antilia.wstarter com.antilia.wstarter.demo exports them to you bridge
Re: Extensible wicket application
Thanks a lot, it works now. However, two more questions. Where should I place images folder and how should I access it in my html files (or style.css as well)? And the second one: when i try to insert a record with hibernate into my database, i get this exception: Batch entry 0 insert into forum.anim_forum (autor, email, title, text, datum, ip, id) values (...) was aborted. and org.hibernate.exception.DataException: Could not execute JDBC batch update Could you (or possibly anyone else) help me with this? :) Thanks! On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: One more thing. As far as I remember the servlet bridge makes a 'work copy' of the plugins folder if you see you make changes, export the plugins, and changes do not 'propagate' to the application, try deleting works/Catalina folder. On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, I found some time to get it working! The key to the problem was http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html So, if you synchronize the projects com.antilia.wstarter com.antilia.wstarter.demo exports them to you bridge it should work. I attach copy of bridge.zip, containing a bridge folder, which is working for me. If you unzip it to your tomcat webapps, restart tomcat and go to http://localhost:8080/bridge/demo-app/ Then you should see the example working. Best, Ernesto On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Right click - Export - Plugin development - Deployable plug-ins and fragments Have a nice day :) On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time for trying this out myself... Best, Ernesto On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Yes, that's exactly what I did :) I checked out the bundles, then exported them from eclipse. And then installed those bundles along with javax.servlet into the bridge application, bud I got the error when I tried to install wstarter-demo. Thanks a lot! On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I couldn't try today to build the example using servlet bridge, to busy over here;-), let me see if I can find some time tomorrow to get it working. But normally what I would do is use eclipse for development and then export the jar to a bridge/plugins for deployment... Did you read this page http://www.eclipse.org/equinox/server/http_in_container.php Best, Ernesto On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those bundles (*wstarter*)... Did you tried running them with eclipse and the starter demo contains? Ernesto On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My bundles are: idState Bundle 0ACTIVE org.eclipse.osgi_3.3.0.200704022148 Fragments=12 1ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 2ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 3ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 4ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148 5ACTIVE http_console_1.0.0 6ACTIVE javax.servlet_2.4.0.200903171653 9ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148 11ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 12RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0 Master=0 13RESOLVED org.eclipse.osgi.services_3.1.100.200704022148 16ACTIVE com.antilia.wstarter_1.0.0 17RESOLVED
Re: Extensible wicket application
Ernesto, thank you very much :) If my application ever goes to the production, it will be thanks to you :) Regarding the images problem: I think I did not explain it well. I'm not asking where to place them. I placed them almost everywhere, but I still can't access them - in the bundle. You see, I have an images directory, and in HTML files, I am accessing them as img src=images/blah.jpg, but I still can't get this working. I am expecting only a hint - how are you doing this? And the database problem - I have the same application deployed as standard webapp, and there it works. I only wanted to know if it isn't some specific Wicket-Hibernate-OSGi problem you might have solved before :) But thank you all again! On Sat, Mar 21, 2009 at 6:06 PM, Brill Pappin br...@pappin.ca wrote: Yah, the whole argument about where the resources should go or the one before that about top posting or bottom posting. You'd think we didn't have any actual work to do :) - Brill On 21-Mar-09, at 12:39 PM, Ernesto Reinaldo Barreiro wrote: useless thread? On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin br...@pappin.ca wrote: At the risk of starting another useless thread, this is what I do for images and other non HTML resources that are shared: - if the project is small, they can just sit with the HTML. - if the project is larger then it might be useful to keep them more separate, under an images directory and use the base page to ref them or even create a loader to manage them. Ether way, you use them the same way, only prefix the resource name with the subdir if you have separated them out. As for your db error, that looks like something out side the scope of wicket. - Brill Pappin Sent from my mobile. On 21-Mar-09, at 9:38 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Thanks a lot, it works now. However, two more questions. Where should I place images folder and how should I access it in my html files (or style.css as well)? And the second one: when i try to insert a record with hibernate into my database, i get this exception: Batch entry 0 insert into forum.anim_forum (autor, email, title, text, datum, ip, id) values (...) was aborted. and org.hibernate.exception.DataException: Could not execute JDBC batch update Could you (or possibly anyone else) help me with this? :) Thanks! On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: One more thing. As far as I remember the servlet bridge makes a 'work copy' of the plugins folder if you see you make changes, export the plugins, and changes do not 'propagate' to the application, try deleting works/Catalina folder. On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, I found some time to get it working! The key to the problem was http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html So, if you synchronize the projects com.antilia.wstarter com.antilia.wstarter.demo exports them to you bridge it should work. I attach copy of bridge.zip, containing a bridge folder, which is working for me. If you unzip it to your tomcat webapps, restart tomcat and go to http://localhost:8080/bridge/demo-app/ Then you should see the example working. Best, Ernesto On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Right click - Export - Plugin development - Deployable plug-ins and fragments Have a nice day :) On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time for trying this out myself... Best, Ernesto On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Yes, that's exactly what I did :) I checked out the bundles, then exported them from eclipse. And then installed those bundles along with javax.servlet into the bridge application, bud I got the error when I tried to install wstarter-demo. Thanks a lot! On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I couldn't try today to build the example using servlet bridge, to busy over here;-), let me see if I can find some time tomorrow to get it working. But normally what I would do is use eclipse for development and then export the jar to a bridge/plugins for deployment... Did you read this page http://www.eclipse.org/equinox/server/http_in_container.php Best, Ernesto On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going
Re: Extensible wicket application
Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those bundles (*wstarter*)... Did you tried running them with eclipse and the starter demo contains? Ernesto On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My bundles are: idState Bundle 0ACTIVE org.eclipse.osgi_3.3.0.200704022148 Fragments=12 1ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 2ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 3ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 4ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148 5ACTIVE http_console_1.0.0 6ACTIVE javax.servlet_2.4.0.200903171653 9ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148 11ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 12RESOLVEDorg.eclipse.equinox.servletbridge.extensionbundle_1.0.0 Master=0 13RESOLVEDorg.eclipse.osgi.services_3.1.100.200704022148 16ACTIVE com.antilia.wstarter_1.0.0 17RESOLVEDcom.antilia.wstarter.demo_1.0.0 do you have any clue? :) big thanks for your help! On Fri, Mar 13, 2009 at 11:30 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the underlaying http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on the bridge war then you will be able to run your wicket application on any server. That is, if you mount the bridge servlet at *bridge*, then accessing the URL localhost:8080/bridge/demo-app should re-direct you to the previous wicket application. Of course, this is just the big picture, and you will have to figure out the (sometime nasty) details by yourself. So in development you can use eclipse and for deployment you will to export any bundles you use to the a bridge war. This could be automated with an ANT file. There are some additional caveats, for some application servers, concerning class-loading if you plan to access things via JNDI from within the OSGi runtime... About the console I think there is flag -console or similar that allows you to disable/enable the console or even tell which port to use. I do not recall the details right now... Ernesto On Fri, Mar 13, 2009 at 10:21 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello, this seems to be helpful, thanks. But still it does not solve the main problem. How do I put OSGi on the Sun Java Application Server and then how do I install bundles in it? (preferably with no console available) Thanks again :) On Thu, Mar 12, 2009 at 10:24 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, I just created a very simple starting project for OSGi and wicket at: http://code.google.com/p/antilia/source/browse/#svn/trunk check out projects com.antilia.wstarter com.antilia.wstarter.demo Then you will have a equinox launcher called wicket-app (for eclipse 3.4). Use it to launch your application and then browse at localhost:8080/demo-app Hope this helps. Ernesto On Thu, Mar 12, 2009 at 3:36 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello :) I looked at the links listed below, seemed interesting, but the main problem (how to set up such a project) remains unsolved. So I think I really do need help :) It seems to me, though, that this whole thing is much too complicated. I need only some simple loading of multiple jars :) But if it would work, I don't care how :) Thanks again! On Thu, Mar 12, 2009 at 10:07 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Some comments inlined. On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Firstly, thanks for you reply :) I have already read that document regarding wicket and OSGi, but I think
Re: Extensible wicket application
Yes, that's exactly what I did :) I checked out the bundles, then exported them from eclipse. And then installed those bundles along with javax.servlet into the bridge application, bud I got the error when I tried to install wstarter-demo. Thanks a lot! On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I couldn't try today to build the example using servlet bridge, to busy over here;-), let me see if I can find some time tomorrow to get it working. But normally what I would do is use eclipse for development and then export the jar to a bridge/plugins for deployment... Did you read this page http://www.eclipse.org/equinox/server/http_in_container.php Best, Ernesto On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those bundles (*wstarter*)... Did you tried running them with eclipse and the starter demo contains? Ernesto On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My bundles are: idState Bundle 0ACTIVE org.eclipse.osgi_3.3.0.200704022148 Fragments=12 1ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 2ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 3ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 4ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148 5ACTIVE http_console_1.0.0 6ACTIVE javax.servlet_2.4.0.200903171653 9ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148 11ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 12RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0 Master=0 13RESOLVEDorg.eclipse.osgi.services_3.1.100.200704022148 16ACTIVE com.antilia.wstarter_1.0.0 17RESOLVEDcom.antilia.wstarter.demo_1.0.0 do you have any clue? :) big thanks for your help! On Fri, Mar 13, 2009 at 11:30 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the underlaying http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on the bridge war then you will be able to run your wicket application on any server. That is, if you mount the bridge servlet at *bridge*, then accessing the URL localhost:8080/bridge/demo-app should re-direct you to the previous wicket application. Of course, this is just the big picture, and you will have to figure out the (sometime nasty) details by yourself. So in development you can use eclipse and for deployment you will to export any bundles you use to the a bridge war. This could be automated with an ANT file. There are some additional caveats, for some application servers, concerning class-loading if you plan to access things via JNDI from within the OSGi runtime... About the console I think there is flag -console or similar that allows you to disable/enable the console or even tell which port to use. I do not recall the details right now... Ernesto On Fri, Mar 13, 2009 at 10:21 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello, this seems to be helpful, thanks. But still it does not solve the main problem. How do I put OSGi on the Sun Java Application Server and then how do I install bundles in it? (preferably with no console available) Thanks again :) On Thu, Mar 12, 2009 at 10:24 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, I just created a very simple starting project for OSGi and wicket at: http://code.google.com/p/antilia/source/browse/#svn/trunk check out projects com.antilia.wstarter com.antilia.wstarter.demo Then you will have a equinox launcher called wicket-app (for eclipse 3.4). Use
Re: Extensible wicket application
Right click - Export - Plugin development - Deployable plug-ins and fragments Have a nice day :) On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time for trying this out myself... Best, Ernesto On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Yes, that's exactly what I did :) I checked out the bundles, then exported them from eclipse. And then installed those bundles along with javax.servlet into the bridge application, bud I got the error when I tried to install wstarter-demo. Thanks a lot! On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I couldn't try today to build the example using servlet bridge, to busy over here;-), let me see if I can find some time tomorrow to get it working. But normally what I would do is use eclipse for development and then export the jar to a bridge/plugins for deployment... Did you read this page http://www.eclipse.org/equinox/server/http_in_container.php Best, Ernesto On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those bundles (*wstarter*)... Did you tried running them with eclipse and the starter demo contains? Ernesto On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My bundles are: idState Bundle 0ACTIVE org.eclipse.osgi_3.3.0.200704022148 Fragments=12 1ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 2ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 3ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 4ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148 5ACTIVE http_console_1.0.0 6ACTIVE javax.servlet_2.4.0.200903171653 9ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148 11ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 12RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0 Master=0 13RESOLVEDorg.eclipse.osgi.services_3.1.100.200704022148 16ACTIVE com.antilia.wstarter_1.0.0 17RESOLVEDcom.antilia.wstarter.demo_1.0.0 do you have any clue? :) big thanks for your help! On Fri, Mar 13, 2009 at 11:30 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the underlaying http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on the bridge war then you will be able to run your wicket application on any server. That is, if you mount the bridge servlet at *bridge*, then accessing the URL localhost:8080/bridge/demo-app should re-direct you to the previous wicket application. Of course, this is just the big picture, and you will have to figure out the (sometime nasty) details by yourself. So in development you can use eclipse and for deployment you will to export any bundles you use to the a bridge war. This could be automated with an ANT file. There are some additional caveats, for some application servers, concerning class-loading if you plan to access things via JNDI from within the OSGi runtime... About the console I think there is flag -console or similar that allows you to disable/enable the console or even tell which port to use. I do not recall the details right now... Ernesto On Fri, Mar 13, 2009 at 10:21 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello, this seems to be helpful, thanks. But still
Re: Extensible wicket application
Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My bundles are: idState Bundle 0ACTIVE org.eclipse.osgi_3.3.0.200704022148 Fragments=12 1ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 2ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 3ACTIVE org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 4ACTIVE org.eclipse.equinox.http.registry_1.0.0.200704022148 5ACTIVE http_console_1.0.0 6ACTIVE javax.servlet_2.4.0.200903171653 9ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200704022148 11ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 12RESOLVEDorg.eclipse.equinox.servletbridge.extensionbundle_1.0.0 Master=0 13RESOLVEDorg.eclipse.osgi.services_3.1.100.200704022148 16ACTIVE com.antilia.wstarter_1.0.0 17RESOLVEDcom.antilia.wstarter.demo_1.0.0 do you have any clue? :) big thanks for your help! On Fri, Mar 13, 2009 at 11:30 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the underlaying http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on the bridge war then you will be able to run your wicket application on any server. That is, if you mount the bridge servlet at *bridge*, then accessing the URL localhost:8080/bridge/demo-app should re-direct you to the previous wicket application. Of course, this is just the big picture, and you will have to figure out the (sometime nasty) details by yourself. So in development you can use eclipse and for deployment you will to export any bundles you use to the a bridge war. This could be automated with an ANT file. There are some additional caveats, for some application servers, concerning class-loading if you plan to access things via JNDI from within the OSGi runtime... About the console I think there is flag -console or similar that allows you to disable/enable the console or even tell which port to use. I do not recall the details right now... Ernesto On Fri, Mar 13, 2009 at 10:21 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello, this seems to be helpful, thanks. But still it does not solve the main problem. How do I put OSGi on the Sun Java Application Server and then how do I install bundles in it? (preferably with no console available) Thanks again :) On Thu, Mar 12, 2009 at 10:24 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, I just created a very simple starting project for OSGi and wicket at: http://code.google.com/p/antilia/source/browse/#svn/trunk check out projects com.antilia.wstarter com.antilia.wstarter.demo Then you will have a equinox launcher called wicket-app (for eclipse 3.4). Use it to launch your application and then browse at localhost:8080/demo-app Hope this helps. Ernesto On Thu, Mar 12, 2009 at 3:36 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello :) I looked at the links listed below, seemed interesting, but the main problem (how to set up such a project) remains unsolved. So I think I really do need help :) It seems to me, though, that this whole thing is much too complicated. I need only some simple loading of multiple jars :) But if it would work, I don't care how :) Thanks again! On Thu, Mar 12, 2009 at 10:07 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Some comments inlined. On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Firstly, thanks for you reply :) I have already read that document regarding wicket and OSGi, but I think it is written for more experienced users at OSGi. As I wrote before, I even do not know how to build a simple web OSGi project (what should I deploy, how to install those bundles - I can't access any console..) In my experience getting used to do things the OSGi way is difficult at the beginning but latter on the effort will pay off... In fact it is relatively easy to set up a Wicket-OSGi project if you are using Eclipse for development and you don't mind using equinox as your OSGi implementation. You could easily build a WEB console to manage plug-ins (bundles) on your application. I imagine this application like this: I visit some
Re: Extensible wicket application
Hello, this seems to be helpful, thanks. But still it does not solve the main problem. How do I put OSGi on the Sun Java Application Server and then how do I install bundles in it? (preferably with no console available) Thanks again :) On Thu, Mar 12, 2009 at 10:24 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, I just created a very simple starting project for OSGi and wicket at: http://code.google.com/p/antilia/source/browse/#svn/trunk check out projects com.antilia.wstarter com.antilia.wstarter.demo Then you will have a equinox launcher called wicket-app (for eclipse 3.4). Use it to launch your application and then browse at localhost:8080/demo-app Hope this helps. Ernesto On Thu, Mar 12, 2009 at 3:36 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Hello :) I looked at the links listed below, seemed interesting, but the main problem (how to set up such a project) remains unsolved. So I think I really do need help :) It seems to me, though, that this whole thing is much too complicated. I need only some simple loading of multiple jars :) But if it would work, I don't care how :) Thanks again! On Thu, Mar 12, 2009 at 10:07 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Some comments inlined. On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Firstly, thanks for you reply :) I have already read that document regarding wicket and OSGi, but I think it is written for more experienced users at OSGi. As I wrote before, I even do not know how to build a simple web OSGi project (what should I deploy, how to install those bundles - I can't access any console..) In my experience getting used to do things the OSGi way is difficult at the beginning but latter on the effort will pay off... In fact it is relatively easy to set up a Wicket-OSGi project if you are using Eclipse for development and you don't mind using equinox as your OSGi implementation. You could easily build a WEB console to manage plug-ins (bundles) on your application. I imagine this application like this: I visit some administration page, where can I upload a jar file containing the extension. The jar file then installs into running application and creates some records in database. I can then decide where in the page should this extension appear. The main problem is this. I think my application should have some OSGi container. I have already tried some bridge.war from some webpage (I don't remember now, which one was it), it is running correctly, but I really do not know what to do now. Add some bundles? Where? How? :) Btw, I am running Sun Java System Application Server. Probably yo are reffering to [1] ? You will have to export your bundles into the plug-ins section inside this war. This war is just a WEB application that starts an OSGi runtime (an equinox) and uses a Servlet to manage it and to redirect requests to your application to the servlets you mount using the HTTP service provided by the equinox runtime. If you need more help I could help you set up such a project (although currently I do not have much spare time;-) Best, Ernesto References 1-http://www.eclipse.org/equinox/server/ -- -danoh- -- -danoh-
Re: Extensible wicket application
Firstly, thanks for you reply :) I have already read that document regarding wicket and OSGi, but I think it is written for more experienced users at OSGi. As I wrote before, I even do not know how to build a simple web OSGi project (what should I deploy, how to install those bundles - I can't access any console..) I imagine this application like this: I visit some administration page, where can I upload a jar file containing the extension. The jar file then installs into running application and creates some records in database. I can then decide where in the page should this extension appear. The main problem is this. I think my application should have some OSGi container. I have already tried some bridge.war from some webpage (I don't remember now, which one was it), it is running correctly, but I really do not know what to do now. Add some bundles? Where? How? :) Btw, I am running Sun Java System Application Server. Could you (or anybody else) help me with this? :) Thanks a lot. On Wed, Mar 11, 2009 at 9:37 PM, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: Daniel Dominik Holúbek wrote: I have looked at OSGi a bit, but I do not understand it (basically I do not even now how to build a project with it :) ) Does anybody have any clue? I hope I have written this clearly enough. If not, feel free to ask :) Daniel, designing modular applications using classloader is not easy as it might seem. Your specific problem could be even simple, but soon you'll find more complex cases. So, if modules are important to you, I suggest you look at what others have done or to existing framework. You have cited OSGi an if you search a few weeks ago back in the archive of this mailing list there was a guy that linked a paper about how to use OSGi and Wicket. I've done something similar with the NetBeans Platform. You might also have a look at Glassfish v3 which is extensible by means of OSGi and could be a starting point. -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -danoh-
Re: Extensible wicket application
Hello :) I looked at the links listed below, seemed interesting, but the main problem (how to set up such a project) remains unsolved. So I think I really do need help :) It seems to me, though, that this whole thing is much too complicated. I need only some simple loading of multiple jars :) But if it would work, I don't care how :) Thanks again! On Thu, Mar 12, 2009 at 10:07 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Some comments inlined. On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Firstly, thanks for you reply :) I have already read that document regarding wicket and OSGi, but I think it is written for more experienced users at OSGi. As I wrote before, I even do not know how to build a simple web OSGi project (what should I deploy, how to install those bundles - I can't access any console..) In my experience getting used to do things the OSGi way is difficult at the beginning but latter on the effort will pay off... In fact it is relatively easy to set up a Wicket-OSGi project if you are using Eclipse for development and you don't mind using equinox as your OSGi implementation. You could easily build a WEB console to manage plug-ins (bundles) on your application. I imagine this application like this: I visit some administration page, where can I upload a jar file containing the extension. The jar file then installs into running application and creates some records in database. I can then decide where in the page should this extension appear. The main problem is this. I think my application should have some OSGi container. I have already tried some bridge.war from some webpage (I don't remember now, which one was it), it is running correctly, but I really do not know what to do now. Add some bundles? Where? How? :) Btw, I am running Sun Java System Application Server. Probably yo are reffering to [1] ? You will have to export your bundles into the plug-ins section inside this war. This war is just a WEB application that starts an OSGi runtime (an equinox) and uses a Servlet to manage it and to redirect requests to your application to the servlets you mount using the HTTP service provided by the equinox runtime. If you need more help I could help you set up such a project (although currently I do not have much spare time;-) Best, Ernesto References 1-http://www.eclipse.org/equinox/server/ -- -danoh-