Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-86856

WELD-001524 reported when trying to render the "PathInfo" demo portlet from Apache Pluto

    Details

      Description

      Steps to Reproduce:

      1. Deploy the WAR attached to this issue to Liferay Portal:
      cp PortletV3AnnotatedDemo.war $LIFERAY_HOME/deploy

      *OR*

      1. Clone the Liferay fork of the Apache Pluto git repo
      git clone https://github.com/liferay/portals-pluto.git

      2. Checkout the "tck3" branch
      cd portals-pluto
      git checkout tck3

      3. Build Apache Pluto with the "liferay" profile:
      mvn -P liferay,all clean install

      4. Deploy the PortletV3AnnotatedDemo WAR to Liferay Portal:
      cp PortletV3AnnotatedDemo/target/PortletV3AnnotatedDemo.war $LIFERAY_HOME/deploy

      5. Add the "PathInfo" portlet to a portal page.

      Expected Results

      The "PathInfo" portlet is rendered on the portal page with no errors.

      Actual Results

      The "PathInfo" portlet reports "Portlet is temporarily unavailable" and the following is output in the console log:

      Caused by: org.jboss.weld.exceptions.WeldException:
      WELD-001524: Unable to load proxy class for bean Producer Method [MimeResponse] with qualifiers [@Default @Any @Named]
      declared as [[UnbackedAnnotatedMethod] @PortletRequestScoped @Produces @Named @Typed public com.liferay.bean.portlet.cdi.extension.internal.scope.JSR362BeanProducer.getMimeResponse()] with class class java.lang.Object using classloader org.apache.aries.cdi.container.internal.loader.BundleClassLoader@2646a306
      
      java.lang.LinkageError: loader (instance of  org/apache/aries/cdi/container/internal/loader/BundleClassLoader):
      attempted  duplicate class definition for name: "org/jboss/weldx/portlet/MimeResponse$1454759041$Proxy$_$$_WeldClientProxy"
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      	at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:120)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 weeks, 1 day ago