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



      Steps to Reproduce:

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


      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)


          Issue Links



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


                • Created:
                  Days since last comment:
                  16 weeks ago