Fórum

Deploying the ext environment with custom tld in LIferay 6.1 on JBoss AS 7

thumbnail
Suchit Khobarekar, modificado 12 Anos atrás.

Deploying the ext environment with custom tld in LIferay 6.1 on JBoss AS 7

New Member Postagens: 7 Data de Entrada: 11/04/12 Postagens Recentes
We are creating an ext environment for our portal installation where in we have pushed a few customizations. It was working fine until we implemented some custom TLD's.

To implement the same we have done the following:

1) Created package com.ext.taglib.ui at the location docroot/WEB-INF/ext-util-taglib/src
2) Added three classes to it DiscussionTag.java, FlagsTagExt.java and IconTag.java
3) Created a tld file liferay-ogilvy.tld (attached) and placed it in WEB-INF/ext-web/docroot/WEB-INF/tld

After this when we deploy the ext to the JBoss AS 7 we get the following error:

vice.StartException in service jboss.deployment.unit."XXXXXX-ext.war".INSTALL: Failed to process phase INSTALL of deployment "XXXXXX-ext.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]
Caused by: java.lang.RuntimeException: Failed to load class com.ext.taglib.ui.DiscussionTag
at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:141)
at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:122)
at org.jboss.as.ee.component.LazyValue.get(LazyValue.java:40)
at org.jboss.as.ee.component.EEApplicationDescription.getClassConfiguration(EEApplicationDescription.java:183)
at org.jboss.as.ee.component.ComponentDescription.createConfiguration(ComponentDescription.java:153)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:70)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
... 5 more
Caused by: java.lang.ClassNotFoundException: com.ext.taglib.ui.DiscussionTag from [Module "deployment.XXXXX-ext.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
at java.lang.Class.forName0(Native Method) [:1.6.0_29]
at java.lang.Class.forName(Class.java:247) [:1.6.0_29]
at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:139)
... 11 more

The Ext environment does not deploy after this. I am not so sure on why it is not able to locate the com.ext.taglib.ui.DiscussionTag since it exists in the XXXXX-ext.war

NOTE: The same works fine in a Tomcat server.

I understand that there are some changes regarding class loading in the JBoss AS7 server. Are there any changes related to the ext deployment for the JBoss AS 7 server so as to over come this class loading error

Thanks