Ticket #845 (closed Defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Plugins should not need declare Servlet API as dependency

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.7
Component: DeepaMehta Standard Distribution Version: 4.6.1
Keywords: Cc: dgf, Malte
Complexity: 2 Area:
Module:

Description

In particular if they don't import anything from javax.servlet but rely on it only indirectly, e.g. when using dms.getAccessControl(). When not declaring the dependency an error occurs:

[ERROR] [...] Compilation failure
[ERROR] [...] cannot access javax.servlet.http.HttpServletRequest
[ERROR] class file for javax.servlet.http.HttpServletRequest not found

Thanks to Malte for reporting!

Change History

comment:1 Changed 5 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 5 years ago by Jörg Richter <jri@…>

In 3bdbb9de52470b85c110cf2f82fa30d2984835c3/deepamehta:

Parent POM: Servlet API available for all (#845).

3rd-party plugins deriving from deepamehta-plugin-parent must not declare the Servlet API dependency anymore. In particular when using dms.getAccessControl().

See #845.

comment:3 Changed 5 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.