framework icon indicating copy to clipboard operation
framework copied to clipboard

OSGi Servlet registration produces error from Vaadin-OSGi-Integration

Open ctliv opened this issue 9 years ago • 2 comments

Env used: Vaadin 8.1.6 + Liferay 7.0 GA5 (Equinox)

When deploying following Servlet (as suggested here):

@Component(service = VaadinServlet.class)
@WebServlet(urlPatterns = "/*", name = "VPortletUIServlet", asyncSupported = true)
@VaadinServletConfiguration(ui = VPortletUI.class, productionMode = false)
public class VPortletServlet extends VaadinServlet {

}

this is logged by Liferay/Equinox:

13:12:46,035 WARN  [Refresh Thread: Equinox Container: d0fd63d3-31d0-0017-187c-f9b7aed6fb8f][com_vaadin_osgi_integration:103] VaadinServlet Registration
13:12:46,036 ERROR [Refresh Thread: Equinox Container: d0fd63d3-31d0-0017-187c-f9b7aed6fb8f][com_vaadin_osgi_integration:97] The property 'osgi.http.whiteboard.servlet.pattern' must be set in a 'VaadinServlet' without the 'javax.servlet.annotation.WebServlet' annotation!

Code that registers servlet apparently should log the error only when WebServlet annotation is not found, but this is not the case.

The following is included in bundle MANIFEST.MF:

Web-ContextPath: /vportlet

but the Servlet does not respond to http://localhost:8080/o/vportlet/

Apparently the servlet does not get correctly registered.

ctliv avatar Nov 23 '17 13:11 ctliv

Hello there!

It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

  • Check if the issue is still valid for the latest version. There are dozens of duplicates in our issue tracker, so it is possible that the issue is already tackled. If it appears to be fixed, close the issue, otherwise report to the issue that it is still valid.
  • Provide more details how to reproduce the issue.
  • Explain why it is important to get this issue fixed and politely draw others attention to it e.g. via the forum or social media.
  • Add a reduced test case about the issue, so it is easier for somebody to start working on a solution.
  • Try fixing the issue yourself and create a pull request that contains the test case and/or a fix for it. Handling the pull requests is the top priority for the core team.
  • If the issue is clearly a bug, use the Warranty in your Vaadin subscription to raise its priority.

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!

stale[bot] avatar Apr 22 '18 14:04 stale[bot]

The issue was automatically closed due to inactivity. If you found some new details to it or started working on it, comment on the issue so that maintainers can re-open it.

stale[bot] avatar Oct 12 '20 00:10 stale[bot]