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 < [email protected]> 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 < > [email protected]> 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 < > > [email protected]> 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 < > > > [email protected]> 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 < > > > > [email protected]> 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: > > > > > id State Bundle > > > > > 0 ACTIVE org.eclipse.osgi_3.3.0.200704022148 > > > > > Fragments=12 > > > > > 1 ACTIVE org.eclipse.equinox.common_3.3.0.200704022148 > > > > > 2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070322 > > > > > 3 ACTIVE > > > > org.eclipse.equinox.http.servletbridge_1.0.0.200704022148 > > > > > 4 ACTIVE > org.eclipse.equinox.http.registry_1.0.0.200704022148 > > > > > 5 ACTIVE http_console_1.0.0 > > > > > 6 ACTIVE javax.servlet_2.4.0.200903171653 > > > > > 9 ACTIVE > org.eclipse.equinox.http.servlet_1.0.0.200704022148 > > > > > 11 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070318 > > > > > 12 RESOLVED > > > org.eclipse.equinox.servletbridge.extensionbundle_1.0.0 > > > > > Master=0 > > > > > 13 RESOLVED org.eclipse.osgi.services_3.1.100.200704022148 > > > > > 16 ACTIVE com.antilia.wstarter_1.0.0 > > > > > 17 RESOLVED com.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 < > > > > > [email protected]> 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 < > > > > > > [email protected]> 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 < > > > > > > > [email protected]> 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 < > > > > > > > > [email protected]> 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 > < > > > > > > > > > [email protected]> wrote: > > > > > > > > > > > > > > > > > > > Hi Daniel, > > > > > > > > > > Some comments inlined. > > > > > > > > > > > > > > > > > > > > On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek < > > > > > > > > > > [email protected]> 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- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > -danoh- > > > > > > > > > > > > > > > > > > > > > -- > > > -danoh- > > > > > > > > > -- > -danoh- >
