4 Replies Latest reply on Feb 21, 2013 6:18 PM by Richard Allen

    Pluto in JBoss AS 7.1 Final

    Richard Allen Newbie

      Hi All,

       

      Long time reader, first time poster.

       

      I'm trying to get the pluto portlet container running in JBoss AS 7.1. I've added the dependencies as JBoss modules and the portlet container starts and I can login into the portal but then I run into issues. From what I can tell, Pluto can not find any of the portlets it has configured to run. Below is an extract from the JBoss server log.

       

      11:13:13,953 WARN  [org.apache.pluto.driver.container.PortletContextManager] (http-draco.inter-systems.com-192.168.201.70-8080-1) Unable to retrieve portlet: '/pluto/AboutPortlet'

      11:13:13,953 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1) org.apache.pluto.container.PortletContainerException: Unable to retrieve portlet: '/pluto/AboutPortlet'

      11:13:13,954 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.pluto.driver.container.PortletContextManager.getPortlet(PortletContextManager.java:220)

      11:13:13,954 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.pluto.driver.core.PortletWindowImpl.<init>(PortletWindowImpl.java:62)

      11:13:13,955 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:133)

      11:13:13,955 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:81)

      11:13:13,956 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

      11:13:13,956 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      11:13:13,956 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

      11:13:13,957 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

      11:13:13,957 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

      11:13:13,957 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      11:13:13,958 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

      11:13:13,958 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      11:13:13,959 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840)

      11:13:13,959 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720)

      11:13:13,959 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657)

      11:13:13,960 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)

      11:13:13,960 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspx_meth_c_005fforEach_005f1(pluto_002ddefault_002dtheme_jsp.java:523)

      11:13:13,961 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspx_meth_c_005fotherwise_005f0(pluto_002ddefault_002dtheme_jsp.java:467)

      11:13:13,961 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspx_meth_c_005fchoose_005f0(pluto_002ddefault_002dtheme_jsp.java:328)

      11:13:13,962 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspService(pluto_002ddefault_002dtheme_jsp.java:161)

      11:13:13,962 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

      11:13:13,962 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      11:13:13,963 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

      11:13:13,963 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

      11:13:13,963 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

      11:13:13,964 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      11:13:13,964 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

      11:13:13,965 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      11:13:13,965 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840)

      11:13:13,965 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622)

      11:13:13,966 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560)

      11:13:13,966 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488)

      11:13:13,967 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:189)

      11:13:13,967 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      11:13:13,967 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      11:13:13,968 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

      11:13:13,968 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      11:13:13,968 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

      11:13:13,969 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

      11:13:13,969 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)

      11:13:13,970 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

      11:13:13,970 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

      11:13:13,970 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      11:13:13,971 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      11:13:13,971 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

      11:13:13,971 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      11:13:13,972 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

      11:13:13,972 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

      11:13:13,973 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1)           at java.lang.Thread.run(Thread.java:680)

      11:13:13,973 ERROR [org.apache.pluto.driver.core.PortletWindowImpl] (http-draco.inter-systems.com-192.168.201.70-8080-1) Unable to load Portlet App Deployment Descriptor:Unable to retrieve portlet: '/pluto/AboutPortlet': org.apache.pluto.container.PortletContainerException: Unable to retrieve portlet: '/pluto/AboutPortlet'

                at org.apache.pluto.driver.container.PortletContextManager.getPortlet(PortletContextManager.java:220) [pluto-portal-driver-2.0.3.jar:2.0.3]

                at org.apache.pluto.driver.core.PortletWindowImpl.<init>(PortletWindowImpl.java:62) [pluto-portal-driver-2.0.3.jar:2.0.3]

                at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:133) [pluto-portal-driver-2.0.3.jar:2.0.3]

                at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:81)

                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]

                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]

                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]

                at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) [jbossweb-7.0.13.Final.jar:]

                at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspx_meth_c_005fforEach_005f1(pluto_002ddefault_002dtheme_jsp.java:523)

                at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspx_meth_c_005fotherwise_005f0(pluto_002ddefault_002dtheme_jsp.java:467)

                at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspx_meth_c_005fchoose_005f0(pluto_002ddefault_002dtheme_jsp.java:328)

                at org.apache.jsp.WEB_002dINF.themes.pluto_002ddefault_002dtheme_jsp._jspService(pluto_002ddefault_002dtheme_jsp.java:161)

                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]

                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]

                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488) [jbossweb-7.0.13.Final.jar:]

                at org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:189) [pluto-portal-driver-2.0.3.jar:2.0.3]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]

       

      Any pointers you could provide would be very appreicated.

       

      Cheers,

       

      Rich

        • 1. Re: Pluto in JBoss AS 7.1 Final
          jaikiran pai Master

          Richard Allen wrote:

           

          Hi All,

           

          Long time reader, first time poster.

          Welcome!

           

           

          Richard Allen wrote:

           

           

          11:13:13,953 WARN  [org.apache.pluto.driver.container.PortletContextManager] (http-draco.inter-systems.com-192.168.201.70-8080-1) Unable to retrieve portlet: '/pluto/AboutPortlet'

          11:13:13,953 ERROR [stderr] (http-draco.inter-systems.com-192.168.201.70-8080-1) org.apache.pluto.container.PortletContainerException: Unable to retrieve portlet: '/pluto/AboutPortlet'

          The entire exception stacktrace doesn't tell why it isn't able to retrieve tha portlet. I guess the only way to figure that out will be to debug the portlet container (Pluto) code or maybe enable TRACE or DEBUG logging of that package and see if it has more info.

          1 of 1 people found this helpful
          • 2. Re: Pluto in JBoss AS 7.1 Final
            Richard Allen Newbie

            Hey Jaikiran,

             

            Thank you for the welcome and your reply.

             

            I would like to try and enable logging, can you please describe that a little more? Is the logging something I enable in the WAR or something I turn on in the module? I will try and read up a little more on JBoss modules as I beilieve this is where I need to enable the extra logging.

             

            Cheers,

             

            Rich

            • 3. Re: Pluto in JBoss AS 7.1 Final
              jaikiran pai Master

              Logging related configurations go under the logging subsystem of standalone/domain.xml files. See this chapter for more details https://docs.jboss.org/author/display/AS71/Admin+Guide#AdminGuide-Logging

               

              In your case, adding a new category to enable the TRACE logging for those packages should be simple enough. Just include the following in the logging subsystem section:

              <logger category="org.apache.pluto">
                              <level name="TRACE"/>
                          </logger>
              

               

              You should then start seeing TRACE and above logs from that category, in server.log.

              1 of 1 people found this helpful
              • 4. Re: Pluto in JBoss AS 7.1 Final
                Richard Allen Newbie

                Thanks Jaikiran,

                 

                I was able to enable tracing as you suggested but the problem was when pluto was built using maven, the version number was appended to the WAR file name. E.g. pluto-2.0.1.war. Renaming the file to just pluto.war solved the problem. However, there are still issues running pluto in JBoss AS 7, but these are related to pluto and not JBoss.

                 

                Thanks again for your help.