java.io.FileNotFoundException: The requested resource (/chr-backbone-web-portlet/check2plan/invoke) is not available

Liferay Issues | George Chao Li | 2 years ago
  1. 0

    I am using the ga2 & ga4 tomcat bundled version of CE. I am developing a portlet with structure as below: docroot/html/check2plan/view.jsp web.xml as: <servlet> <servlet-name>Check2PlanPortlet</servlet-name> <servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class> <init-param> <param-name> portlet-class</param-name> <param-value>com.lycenway.chr.backbone.check2plan.Check2PlanPortlet</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Check2PlanPortlet</servlet-name> <url-pattern>/chr-backbone-web-portlet/html/check2plan/*</url-pattern> </servlet-mapping> When deploy using the IDE drag & drop feature, it will show up error as attachment 1 and then The page with this plugin in portal will error and logs as below: 14:07:08,655 INFO [localhost-startStop-12][PortletHotDeployListener:497] 2 portlets for chr-backbone-web-portlet are available for use 14:13:40,594 ERROR [http-bio-8280-exec-90][render_portlet_jsp:132] null java.io.FileNotFoundException: The requested resource (/chr-backbone-web-portlet/check2plan/invoke) is not available at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:776) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:411) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:583) at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:656) at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:362) at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1242) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) 14:23:52,816 INFO [http-bio-8280-exec-90][DeployUtil:209] Undeploy /root/liferay-portal-6.2-ce-ga4 I need to right click and redeploy for some times (error in attachment 1 will not appear any more), somehow it works as last. But when I redeploy again, it will go back the error status (no error like attachment 1). I try search around and found one post related with web.xml fix. I already done that but it will not work for me. Thanks for the help.

    Liferay Issues | 2 years ago | George Chao Li
    java.io.FileNotFoundException: The requested resource (/chr-backbone-web-portlet/check2plan/invoke) is not available
  2. 0

    When I deploy Deploy orbeon Proxy-Portlet in Liferay, the deplay fails with the error: The moduleId /proxy-portlet/6.1.1/war is not correct

    Stack Overflow | 2 years ago
    java.io.FileNotFoundException: The requested resource (/proxy-portlet/orbeonformsproxyportlet/invoke) is not available
  3. 0

    Orbeon Forms community mailing list - When I deploy Deploy orbeon Proxy-Portlet in Liferay, the deplay fails with the error: The moduleId

    orbeon.com | 8 months ago
    java.io.FileNotFoundException: The requested resource (/proxy-portlet/orbeonformsproxyportlet/invoke) is not available
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Theme template code showing up and double headers - Forums

    liferay.com | 4 months ago
    java.io.FileNotFoundException: The requested resource (/html$tilesContent) is not available
  6. 0

    Strange Glassfish exception

    Stack Overflow | 6 years ago | Lurtz
    java.io.FileNotFoundException: /my-app/true

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.FileNotFoundException

      The requested resource (/chr-backbone-web-portlet/check2plan/invoke) is not available

      at org.apache.catalina.servlets.DefaultServlet.serveResource()
    2. Glassfish Core
      DefaultServlet.doGet
      1. org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:776)
      2. org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:411)
      2 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      2 frames
    4. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    5. Liferay Portal Service
      InvokerFilter.doFilter
      1. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:119)
      2 frames
    6. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
      5 frames
    7. Liferay Portal Service
      InvokerPortletImpl.render
      1. com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:583)
      2. com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:656)
      3. com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:362)
      3 frames
    8. org.apache.jsp
      render_005fportlet_jsp._jspService
      1. org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1242)
      1 frame
    9. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      1 frame
    11. GWT dev
      JspServletWrapper.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      1 frame