1 Reply Latest reply on May 17, 2016 9:17 AM by Scott A Johnson

    JSP in custom plugins

    akhila

      Hi Everyone,

       

      I am trying to creating a custom plugin on 8.0.3 but I want to have JSP as the UI component instead of ftl/soy .

       

      <package name="apple-connect-sso-plugin-actions" extends="community-default">

         <action name="index" class="com.apple.jivesoftware.plugin.sso.action.AppleIndexAction">

              <result name="success" >/plugins/apple-connect-sso-plugin/resources/templates/issue/viewissue.ftl</result>

         </action>

       

      </package>

      But Jive implicitly recognises ftl files and incorporates but if I provide JSP files it gives me exception that it cannot find the JSP file

      2016-05-16 12:16:37,376 [http-bio-8443-exec-10] [2003:akhila_shivakumar@apple.com:REGULAR] ERROR com.jivesoftware.community.web.servlet.ResourceLoaderServlet - Error processing get request for path *****/resources/templates/issue/viewissue.jsp

      java.io.IOException: Plugin[****] resource cannot be read or does not exist at path: /Users/*****/web/../*****/target/****/resources/templates/issue/viewissue.jsp

        at com.jivesoftware.community.web.resource.impl.ResourceManagerImpl.getPluginResource(ResourceManagerImpl.java:803)

        at com.jivesoftware.community.web.resource.impl.ResourceManagerImpl.loadPluginResource(ResourceManagerImpl.java:790)

        at com.jivesoftware.community.web.servlet.ResourceLoaderServlet.getFileBytesStream(ResourceLoaderServlet.java:453)

        at com.jivesoftware.community.web.servlet.ResourceLoaderServlet.doGet(ResourceLoaderServlet.java:150)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at com.jivesoftware.community.web.filter.NoCacheDevModeFilter.doFilterInternal(NoCacheDevModeFilter.java:36)

        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:90)

        at com.jivesoftware.community.web.struts.JiveStrutsExecuteFilter.doFilter(JiveStrutsExecuteFilter.java:85)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at com.jivesoftware.community.web.filter.SetResponseCharacterEncodingFilter.doFilter(SetResponseCharacterEncodingFilter.java:63)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

       

       

      So is it some configuration I am missing to make JSP work with struts as UI component.

       

       

      Thanks,

      Akhila