Hot deploy of portlets that uses modular javascript in development mode in JPP 6.0 results in errors

Solution Verified - Updated -

Issue

  • We have portlets that uses the javascript modular feature and errors were encountered when deploying it in a JPP started in development mode (using the parameter –Dexo.product.developing=true). The container seems to be reloaded and then the following error is thrown:
ERROR [org.exoplatform.web.application.javascript.JavascriptConfigDeployer] (MSC service thread 1-8) An error occurs while processing 'Javascript in gatein-resources.xml' from the context 'Context': java.lang.IllegalStateException: Duplicate ResourceId : PORTLET/my-deployment/MyPortlet, later resource definition will be ignored
        at org.gatein.portal.controller.resource.script.ScriptGraph.addResource(ScriptGraph.java:223) [exo.portal.component.web.resources-3.5.2.Final-redhat-4.jar:3.5.2.Final-redhat-4]
        at org.exoplatform.web.application.javascript.JavascriptTask.execute(JavascriptTask.java:49) [exo.portal.component.web.resources-3.5.2.Final-redhat-4.jar:3.5.2.Final-redhat-4]

Environment

  • JBoss Portal Platform (JPP)
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content