• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

InvokerFilter error in Liferay 6.1, please help

 
Ranch Hand
Posts: 165
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm totally new to Liferay 6.1 and trying to learn and understand it. I have developed a simple portlet.
Please understand the scenario of doing.
At first time when i resume my work on this portlet. I right-click on build.xml and run ANT for 'build-service' & 'deploy-exploded'. Build-Service because I'm working at service/model layer also. It successfully builds up with out any issue. Then I can start with my Tomcat 7 app server and run my portlet successfully.
During this time, eclipse shows that your web.xml and liferay-web.xml have been modified and ask me whether to load the new contents on it or not. Now this is very interesting, I think it loads some filters mapping there on these files during server startup I guess. When I again try to run ANT and work on my portlet(keeping server up) I get the filter error on console which is shown below.

I get following error and web browser keeps on loading, 'Status - liferay.com' :-

at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
----------------------------------------------------------------------------
-----------------------------------------------------------------
---------------------------------------

Very interesting now,,, what I do usually to remove this problem(workaround), I stop the server first, removes liferay-web.xml file completely workspace and delete the filter code from web.xml like shown below and executes ANT on build.xml and start the server . It works but as soon as again I executes ANT on build.xml(keeping server up) the same problem arise. Please explain me what are all these, how can I get rid of this issue permanently.
<filter>
<filter-name>Invoker Filter - ERROR</filter-name>
<filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
<init-param>
<param-name>dispatcher</param-name>
<param-value>ERROR</param-value>
</init-param>
</filter>
<filter>
<filter-name>Invoker Filter - FORWARD</filter-name>
<filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
<init-param>
<param-name>dispatcher</param-name>
<param-value>FORWARD</param-value>
</init-param>
</filter>
<filter>
<filter-name>Invoker Filter - INCLUDE</filter-name>
<filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
<init-param>
<param-name>dispatcher</param-name>
<param-value>INCLUDE</param-value>
</init-param>
</filter>
<filter>
<filter-name>Invoker Filter - REQUEST</filter-name>
<filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
<init-param>
<param-name>dispatcher</param-name>
<param-value>REQUEST</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Invoker Filter - ERROR</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>Invoker Filter - FORWARD</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>Invoker Filter - INCLUDE</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>Invoker Filter - REQUEST</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>


Thank you
reply
    Bookmark Topic Watch Topic
  • New Topic