This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InvokerFilter error in Liferay 6.1, please help

 
Vinod Vijay
Ranch Hand
Posts: 150
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic