aspose file tools*
The moose likes Portals and Portlets and the fly likes InvokerFilter error in Liferay 6.1, please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "InvokerFilter error in Liferay 6.1, please help " Watch "InvokerFilter error in Liferay 6.1, please help " New topic
Author

InvokerFilter error in Liferay 6.1, please help

Vinod Vijay
Ranch Hand

Joined: Sep 13, 2011
Posts: 119

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

Vinod Vijay Nair
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InvokerFilter error in Liferay 6.1, please help
 
Similar Threads
NullPointerException in AutoScrollPhaseListener
richfaces and problems with navigation
Regarding struts 2.1.8 in weblogic
moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files
Odd problem with RichFaces and Servlet Filter