Re: Extensible wicket application

2009-03-26 Thread Daniel Dominik Holúbek
gt;>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>  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
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>
> >>>>>>>>

Re: Extensible wicket application

2009-03-26 Thread reiern70
t;>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>  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
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>&

Re: Extensible wicket application

2009-03-26 Thread Daniel Dominik Holúbek
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  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 
> 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  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  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  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/
>

Re: Extensible wicket application

2009-03-22 Thread Brill Pappin

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

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

Re: Extensible wicket application

2009-03-22 Thread Ernesto Reinaldo Barreiro
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



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

Re: Extensible wicket application

2009-03-21 Thread Martijn Dashorst
surround your img tags with 

Martijn

On Sat, Mar 21, 2009 at 10:29 PM, Daniel Dominik Holúbek
 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  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  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 
 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

Re: Extensible wicket application

2009-03-21 Thread Daniel Dominik Holúbek
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  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  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 
>>> 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 co

Re: Extensible wicket application

2009-03-21 Thread Brill Pappin
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  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 >

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:
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.equi

Re: Extensible wicket application

2009-03-21 Thread Ernesto Reinaldo Barreiro
You are welcome.

Sorry, I can no longer help with your new problems...  Just one more thing:
if you are going to ask different questions maybe is better if you start a
new thread.

Best,

Ernesto

On Sat, Mar 21, 2009 at 2:38 PM, 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
> 

Re: Extensible wicket application

2009-03-21 Thread Ernesto Reinaldo Barreiro
useless thread?

On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin  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 
> 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

Re: Extensible wicket application

2009-03-21 Thread Brill Pappin
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  
 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:
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


Re: Extensible wicket application

2009-03-21 Thread Daniel Dominik Holúbek
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.eclip

Re: Extensible wicket application

2009-03-20 Thread Ernesto Reinaldo Barreiro
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
>> > > > > > > 17RESOLVEDcom.antilia.wstarter.demo_1.0.0
>> > > > > > >
>> > > > > > > do you have any clue? :)
>> > > > > > >
>> > > > > > > big thanks for your help!
>> > > > > > >
>>

Re: Extensible wicket application

2009-03-20 Thread Ernesto Reinaldo Barreiro
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
> > > > > > > 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 

Re: Extensible wicket application

2009-03-19 Thread Daniel Dominik Holúbek
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 ad

Re: Extensible wicket application

2009-03-19 Thread Ernesto Reinaldo Barreiro
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...
> > > > > >
> > > > > > Er

Re: Extensible wicket application

2009-03-19 Thread Daniel Dominik Holúbek
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, 

Re: Extensible wicket application

2009-03-19 Thread Ernesto Reinaldo Barreiro
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 it to launch your application and then browse at
> > >

Re: Extensible wicket application

2009-03-19 Thread Daniel Dominik Holúbek
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 :)
> > > > > >
> > > >

Re: Extensible wicket application

2009-03-18 Thread Ernesto Reinaldo Barreiro
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 tha

Re: Extensible wicket application

2009-03-17 Thread Daniel Dominik Holúbek
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 

Re: Extensible wicket application

2009-03-13 Thread Ernesto Reinaldo Barreiro
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 

Re: Extensible wicket application

2009-03-13 Thread Daniel Dominik Holúbek
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

2009-03-12 Thread Ernesto Reinaldo Barreiro
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-
>


Re: Extensible wicket application

2009-03-12 Thread Daniel Dominik Holúbek
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-


Re: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
Add this to your list:

http://code.google.com/p/antilia/

Ernesto

On Thu, Mar 12, 2009 at 1:06 PM, Richard Allen wrote:

> Here is a good intro to OSGi:
> http://www.javaworld.com/javaworld/jw-03-2008/jw-03-osgi1.html
> Here is one framework for running Wicket in OSGi:
> http://www.ops4j.org/projects/pax/wicket/
> Here is a project that integrates Guice, Wicket, Hibernate, and OSGi:
> http://code.google.com/p/modulefusion/
>
> -Richard
>
>
> On Thu, Mar 12, 2009 at 5: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/
> >
>


Re: Extensible wicket application

2009-03-12 Thread Richard Allen
Here is a good intro to OSGi:
http://www.javaworld.com/javaworld/jw-03-2008/jw-03-osgi1.html
Here is one framework for running Wicket in OSGi:
http://www.ops4j.org/projects/pax/wicket/
Here is a project that integrates Guice, Wicket, Hibernate, and OSGi:
http://code.google.com/p/modulefusion/

-Richard


On Thu, Mar 12, 2009 at 5: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/
>


Re: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
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/


Re: Extensible wicket application

2009-03-12 Thread Daniel Dominik Holúbek
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

2009-03-11 Thread Fabrizio Giudici

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



Extensible wicket application

2009-03-10 Thread Daniel Dominik Holúbek
Hello everyone!
For couple a weeks now, I am trying to develop an extensible application in
Wicket.
The goal is simple. We have a "core" deployed tothe java web server, and
then we create only "modules", which consist of some classes, html files and
maybe some styles or other resources. We tried to package modules in jars,
but it seems to be better when we upload them only as directories.
But there is a problem I am trying to solve.
If the module uses a library, which is loaded directly in webapps classpath,
everything works ok.
But not if I want to use a different library. For example, wicket-rome.
I have tried several things. In the module's directory structure I have
created a directory named "lib" and I placed the jar there. It did'nt work.
Then I tried to load the library jar directly via classloader's addURL
method, but id did not work either.
If I try to do similar desktop application (the same libraries, the same
classloader) the library loads perfectly. The difference though is, that in
the desktop app I am using File(), which I cannot use in a webapp when
modules are located on remote location.

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

Thanks a lot for every answer!

-- 
-danoh-