PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-24846

WSRP between two LR 6.1ga1 causes "Unable to find <liferay-wsrp-portlet>" Exception

    Details

    • Similar Issues:
      Show 5 results 

      Description

      Connecting two LR 6.1ga1 via WSRP does not work.
      It causes the following Exception on producer side:

      09:01:09,148 ERROR [V2MarkupServiceImpl:104] com.liferay.portal.kernel.exception.SystemException: Unable to find <liferay-wsrp-portlet>
      com.liferay.portal.kernel.exception.SystemException: Unable to find <liferay-wsrp-portlet>
      at com.liferay.wsrp.bind.V2MarkupServiceImpl.getContent(V2MarkupServiceImpl.java:556)
      at com.liferay.wsrp.bind.V2MarkupServiceImpl.doGetMarkup(V2MarkupServiceImpl.java:244)
      at com.liferay.wsrp.bind.V2MarkupServiceImpl.getMarkup(V2MarkupServiceImpl.java:96)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
      at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
      at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
      at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
      at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
      at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
      at com.liferay.util.axis.AxisServlet.service(AxisServlet.java:122)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      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:72)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
      at com.liferay.util.axis.AxisCleanUpFilter.processFilter(AxisCleanUpFilter.java:48)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
      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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      1. Add a producer for a build-in portlet (i.e. Unit Converter) in one instance of LR 6.1GA1
      2. Add a consumer for the URL given in step 1 in another instance of LR 6.1GA1
      3. Configure a portlet for the consumer in step 2
      4. Add portlet from step 3 to the frontpage
      5. Get the message "Portlet is temporarily unavailable."
      6. Find the Exception in producer logfile

      This might be a Regression to LPS-10127.

        Activity

        Hide
        Arne v.Irmer added a comment -

        Hi Drew

        I went back to the beginning and installed two fresh LR6.1ga1 on my desktop. There I can't reproduce the problem, too. Now I used the last hours to go step by step back in the configuration to the constellation that has the problem. The reported exception occurs in that moment where I bound the tomcat-connectors to an interface different than localhost via tomcat/conf/server.xml . Switching back and for can turn on and of the exception on my server now.
        Now I went back to the initial installation on my desktop and tried to reproduce the exception there but it doesn't appear. I can switch the interface to what I want, it always run on my desktop.
        So here is what I've done on my Server:

        • JAVA_OPTS="-DproxySet=true -Dhttp.proxyHost=cache.uni-dortmund.de -Dhttp.proxyPort=1234 -DproxyHost=cache.uni-dortmund.de -DproxyPort=1234 -Dhttp.nonProxyHosts=lr-itmc|lr-bib|lr-verw|10.0.0.10|lr-bib.itmc.tu-dortmund.de -Djavax.net.ssl.trustStore=/home/portal/conf/jssecacerts"
        • Using an empty database and this portal-ext.properties
          ## MySQL
          jdbc.default.driverClassName=com.mysql.jdbc.Driver
          jdbc.default.url=jdbc:mysql://localhost:3306/foo?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
          jdbc.default.username=foo
          jdbc.default.password=foo
          
          # Hoks
          dl.hook.impl=com.liferay.documentlibrary.util.JCRHook
          image.hook.impl=com.liferay.portal.image.DatabaseHook
          
          
          ##
          ## JCR
          ##
          jcr.initialize.on.startup=true
          jcr.workspace.name=liferay
          jcr.node.documentlibrary=documentlibrary
          jcr.jackrabbit.repository.root=${liferay.home}/data/jackrabbit
          jcr.jackrabbit.config.file.path=${jcr.jackrabbit.repository.root}/repository.xml
          jcr.jackrabbit.repository.home=${jcr.jackrabbit.repository.root}/home
          jcr.jackrabbit.credentials.username=none
          jcr.jackrabbit.credentials.password=none
          
          #default.landing.page.path=/web/guest/logout
          
          ##
          ## Redirect
          ##
          
              #
              # Set this property to "ip" or "domain" for the redirect security method. If
              # set to "domain", the portal will only redirect users to domains listed in
              # the property "redirect.url.domain.allowed". If set to "ip", the portal
              # will only redirect to domains whose IP address resolve to an IP address
              # listed in the property "redirect.url.ip.allowed".
              #
              redirect.url.security.mode=domain
              #redirect.url.security.mode=ip
          
              #
              # Input a list of comma delimited domains which the portal is allowed to
              # redirect to. Input a blank list to allow any domain.
              #
              redirect.url.domains.allowed=
          
              #
              # Input a list of comma delimited IPs which the portal is allowed to
              # redirect to. Input a blank list to allow any IP. SERVER_IP will be
              # replaced with the IP of the host server.
              #
              redirect.url.ips.allowed=127.0.0.1,123.123.123.123
          
          layout.user.private.layouts.enabled=false   //activate Personal Community with *private* pages 
          layout.user.public.layouts.enabled=false
          admin.default.role.names=
          

        Something will cause the problem. I have a solution for me now and no more time to find out, what in my server-constellation causes the exception.

        Yours
        Arne

        Show
        Arne v.Irmer added a comment - Hi Drew I went back to the beginning and installed two fresh LR6.1ga1 on my desktop. There I can't reproduce the problem, too. Now I used the last hours to go step by step back in the configuration to the constellation that has the problem. The reported exception occurs in that moment where I bound the tomcat-connectors to an interface different than localhost via tomcat/conf/server.xml . Switching back and for can turn on and of the exception on my server now. Now I went back to the initial installation on my desktop and tried to reproduce the exception there but it doesn't appear. I can switch the interface to what I want, it always run on my desktop. So here is what I've done on my Server: JAVA_OPTS="-DproxySet=true -Dhttp.proxyHost=cache.uni-dortmund.de -Dhttp.proxyPort=1234 -DproxyHost=cache.uni-dortmund.de -DproxyPort=1234 -Dhttp.nonProxyHosts=lr-itmc|lr-bib|lr-verw|10.0.0.10|lr-bib.itmc.tu-dortmund.de -Djavax.net.ssl.trustStore=/home/portal/conf/jssecacerts" Using an empty database and this portal-ext.properties ## MySQL jdbc.default.driverClassName=com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql://localhost:3306/foo?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username=foo jdbc.default.password=foo # Hoks dl.hook.impl=com.liferay.documentlibrary.util.JCRHook image.hook.impl=com.liferay.portal.image.DatabaseHook ## ## JCR ## jcr.initialize.on.startup=true jcr.workspace.name=liferay jcr.node.documentlibrary=documentlibrary jcr.jackrabbit.repository.root=${liferay.home}/data/jackrabbit jcr.jackrabbit.config.file.path=${jcr.jackrabbit.repository.root}/repository.xml jcr.jackrabbit.repository.home=${jcr.jackrabbit.repository.root}/home jcr.jackrabbit.credentials.username=none jcr.jackrabbit.credentials.password=none #default.landing.page.path=/web/guest/logout ## ## Redirect ## # # Set this property to "ip" or "domain" for the redirect security method. If # set to "domain", the portal will only redirect users to domains listed in # the property "redirect.url.domain.allowed". If set to "ip", the portal # will only redirect to domains whose IP address resolve to an IP address # listed in the property "redirect.url.ip.allowed". # redirect.url.security.mode=domain #redirect.url.security.mode=ip # # Input a list of comma delimited domains which the portal is allowed to # redirect to. Input a blank list to allow any domain. # redirect.url.domains.allowed= # # Input a list of comma delimited IPs which the portal is allowed to # redirect to. Input a blank list to allow any IP. SERVER_IP will be # replaced with the IP of the host server. # redirect.url.ips.allowed=127.0.0.1,123.123.123.123 layout.user.private.layouts.enabled=false //activate Personal Community with *private* pages layout.user.public.layouts.enabled=false admin.default.role.names= Something will cause the problem. I have a solution for me now and no more time to find out, what in my server-constellation causes the exception. Yours Arne
        Hide
        Drew Blessing added a comment -

        Thanks for getting back to me, Arne. Sounds like this is not a Liferay bug.

        Recommending closure based on previous response.

        Show
        Drew Blessing added a comment - Thanks for getting back to me, Arne. Sounds like this is not a Liferay bug. Recommending closure based on previous response.
        Hide
        Vivek Srivastava added a comment -

        Hi Drew,

        In above scenario while adding consumer portlet if we enable parallel rendering then we able to reproduce the bug.
        please check at let me know is it reproducible in that scenario.

        yours
        Vivek

        Show
        Vivek Srivastava added a comment - Hi Drew, In above scenario while adding consumer portlet if we enable parallel rendering then we able to reproduce the bug. please check at let me know is it reproducible in that scenario. yours Vivek
        Hide
        Avadhoot Sawant added a comment -

        This issue still persists. It happens when you try to deploy liferay.war on tomcat with putting following entry for context file in tomcat 7

        <Context path="/liferay" docBase="C:/FASTAS_3.1.0/fcHome/deployment/tomcat01/apps/liferay"
        distributable="true" crossContext="true">

        Show
        Avadhoot Sawant added a comment - This issue still persists. It happens when you try to deploy liferay.war on tomcat with putting following entry for context file in tomcat 7 <Context path="/liferay" docBase="C:/FASTAS_3.1.0/fcHome/deployment/tomcat01/apps/liferay" distributable="true" crossContext="true">
        Hide
        Avadhoot Sawant added a comment -

        I resolved this by commenting lines
        V2MarkupServiceImpl.java in wsrp source code.

        line 742 -line 749

        Show
        Avadhoot Sawant added a comment - I resolved this by commenting lines V2MarkupServiceImpl.java in wsrp source code. line 742 -line 749

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 43 weeks, 6 days ago

              Development

                Structure Helper Panel