Uploaded image for project: 'PUBLIC - Liferay BLADE'
  1. PUBLIC - Liferay BLADE
  2. BLADE-192

IllegalArgumentException: Patterns, regex or servletNames must contain a value

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: blade-samples
    • Labels:
      None

      Description

      1. Clone the Liferay Blade Samples project:
      git clone https://github.com/liferay/liferay-blade-samples.git

      2. Add the resteasy-jaxrs dependency to the maven/apps/jsp-war-portlet/pom.xml:

      <dependency>
      <groupId>org.jboss.resteasy</groupId>
      <artifactId>resteasy-jaxrs</artifactId>
      <version>3.1.4.Final</version>
      </dependency>

      Note: the customer is actually using resteasy-multipart-provider with the same version, but resteasy-jaxrs is a transitive dependency of resteasy-multipart-provider and is the dependency that is actually causing the issue.

      3. Build the full maven/ project:

      cd liferay-blade-samples/maven && mvn clean install

      4. Add the Blade basic-api artifact to Liferay's modules:

      cp ~/.m2/repository/blade/basic-api/1.0.0/basic-api-1.0.0.jar $LIFERAY_HOME/osgi/modules/.

      5. Deploy the JSP war portlet:

      cp apps/jsp-war-portlet/target/jsp-war-portlet-1.0.0.war $LIFERAY_HOME/deploy/.

      Result: the following error will appear in the logs:

      09-Nov-2017 19:35:34.367 SEVERE [fileinstall-/home/kylestiemann/Portals/liferay.com/7.0/osgi/war] org.apache.catalina.core.ApplicationContext.log Patterns, regex or servletNames must contain a value.
       java.lang.IllegalArgumentException: Patterns, regex or servletNames must contain a value.
              at org.eclipse.equinox.http.servlet.internal.context.ContextController.doAddFilterRegistration(ContextController.java:245)

      ...
      and I could not find the portlet on the UI.
      Expected: the exception will not appear in the logs, and the portlet can be found and placed on a page.
      Whatever causes this error was first introduced in version 3.0.20.Final of resteasy-jaxrs. Version 3.0.19.Final does not produce this error.

      basic-api.jar and jsp-war-portlet is attached.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            zalan.szakolci Zalán Szakolci
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package