Hi Daniel,

Comments in-lined.

On Sat, Mar 21, 2009 at 10: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 :)
>

You are welcome.


>
> 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?
>
Wicket can read your images from the class-path. If you put them in a
package (e.g. add a file mylogo.jpg to that package) create a class
Images.class on that package and then

public class Images {

public static final ResourceReference MY_LOGO = new
ResourceReference(Images.class,"mylogo.jpg");

}

then you can do

<img wicket:id="logo' src=""/>

and

add(new Image("logo",Images.MY_LOGO);


> 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 :)
>

Ah, sorry, I didn't get the essence of your question on your previous
e-mail. Can you give me a bit more details about the problem?

Just one thing: if you are trying to access things via JNDI you might find
some problems with class-loading in certain application servers (e.g. with
WebSphere). For solving this you have to use a technique consisting in
replacing the OSGi classloader with the WEB-application classloader at the
moment of accesing JNDI object (buddy classloading I think is called). I
can't remember the details by hart but I can try to come up with an example
if need be.

Another thing that might be useful is put a system property, e.g.
"myapp.isin.bridge=true", whe executing the bridge servlet and then have an
utility:

OsgiUtils {
   public static boolean isDeployment() {
       try {
            return Boolean.parse(System.getProperty("myapp.isin.bridge"));
       } catch( ) {
        return false;
       }
   }
}

So, that you can do:

if(OsgiUtils.isDeployment()) {
   initialize deplayment
} else{
   initialize development
}

e.g. at configuring Wicket application.

Do you think it would be useful to others if I create a Wicky page explaing
the whole settting?

Best

Ernesto



> 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
> >>>>>>>>>>>>
> >>>>>>>>>>>>  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:
> >>>>>>>>>>>>> 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
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>  <
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>  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
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>
> >>>>>  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-
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> -danoh-
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>> --
> >>>> -danoh-
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> -danoh-
>

Reply via email to