PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-25123

ERROR [BasePortalLifecycle:45] java.lang.IllegalArgumentException: Error initializing WicketFilter - you have no <filter-mapping> element with a url-pattern that uses filter: wicket.LiferayWicketApp

    Details

    • Similar Issues:
      Show 5 results 

      Description

      Filter mapping and fiter path is not able to recognized. Given my Web.xml and portlet.xml.
      Kindly let me know the issue where i mistake?

      Thanks.

      Web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app id="WebApp_ID" version="3.0"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
      <display-name>LiferayWicketApp-portlet</display-name>
      <context-param>
      <param-name>configuration</param-name>
      <param-value>deployment</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.wicket.detectPortletContext</param-name>
      <param-value>true</param-value>
      </context-param>
      <filter>
      <filter-name>wicket.LiferayWicketApp</filter-name>
      <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
      <init-param>
      <param-name>applicationClassName</param-name>
      <param-value>com.poc.MyApplication</param-value>
      </init-param>
      </filter>
      <filter-mapping>
      <filter-name>wicket.LiferayWicketApp</filter-name>
      <url-pattern>/LiferayWicketApp/*</url-pattern>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
      <session-config>
      <session-timeout>30</session-timeout>
      </session-config>
      <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      </web-app>

      Portlet.xml

      <?xml version="1.0"?>

      <portlet-app
      version="2.0"
      xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
      >
      <portlet>
      <portlet-name>LiferayWicketApp</portlet-name>
      <display-name>LiferayWicketApp</display-name>
      <portlet-class>org.apache.wicket.protocol.http.portlet.WicketPortlet</portlet-class>
      <init-param>
      <name>wicketFilterPath</name>
      <value>/LiferayWicketApp-portlet/*</value>
      </init-param>
      <init-param>
      <name>view-jsp</name>
      <value>/view.jsp</value>
      </init-param>
      <expiration-cache>0</expiration-cache>
      <supports>
      <mime-type>text/html</mime-type>
      </supports>
      <portlet-info>
      <title>LiferayWicketApp</title>
      <short-title>LiferayWicketApp</short-title>
      <keywords>LiferayWicketApp</keywords>
      </portlet-info>
      <security-role-ref>
      <role-name>administrator</role-name>
      </security-role-ref>
      <security-role-ref>
      <role-name>guest</role-name>
      </security-role-ref>
      <security-role-ref>
      <role-name>power-user</role-name>
      </security-role-ref>
      <security-role-ref>
      <role-name>user</role-name>
      </security-role-ref>
      </portlet>
      <container-runtime-option>
      <name>javax.portlet.escapeXml</name>
      <value>false</value>
      </container-runtime-option>
      </portlet-app>

        Activity

        Hide
        Drew Blessing added a comment -

        Hi Senthilnath,

        Thank you for your report. Have you had an opportunity to discuss your issue on the community forums? If so, were others also experiencing the same issue? This issue will be closed since it is not a Liferay bug. Thanks!

        Show
        Drew Blessing added a comment - Hi Senthilnath, Thank you for your report. Have you had an opportunity to discuss your issue on the community forums? If so, were others also experiencing the same issue? This issue will be closed since it is not a Liferay bug. Thanks!
        Hide
        Michael Saechang added a comment -

        Closing ticket as per Drew's comment. Thank you for verifying.

        Show
        Michael Saechang added a comment - Closing ticket as per Drew's comment. Thank you for verifying.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 26 weeks, 3 days ago

              Development

                Structure Helper Panel