lunifera / lunifera-runtime-web

Web stuff for lunifera.org
Eclipse Public License 1.0
4 stars 4 forks source link

Problem with multiple servlets #6

Open aktion-hip opened 10 years ago

aktion-hip commented 10 years ago

Dear Florian

I've run into a problem when I use lunifera in an application with multiple servlets. In this case, org.lunifera.runtime.web.vaadin.osgi.webapp.VaadinApplication throws an error because the class tries to register the same resource /VAADIN multiple times to the httpService in VaadinApplication.registerWebArtifacts(). I've solved this problem using a singleton that counts the resource registrations and registers the resource only the first time. I've done this in my fork on aktion-hip/lunifera-runtime-web. Are you interested in this solution or do you propose an other solution?

Regards, Benno