Hot deploy of portlets that uses modular javascript in development mode in JPP 6.0 results in errors
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
