Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Suchit Khobarekar
Deploying the ext environment with custom tld in LIferay 6.1 on JBoss AS 7
15 de abril de 2012 22:14

Suchit Khobarekar

Ranking: New Member

Mensajes: 7

Fecha de incorporación: 10 de abril de 2012

Mensajes recientes

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, and
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 [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService( [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$ [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$ [:1.6.0_29]
at [:1.6.0_29]
Caused by: java.lang.RuntimeException: Failed to load class com.ext.taglib.ui.DiscussionTag
at [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(
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(
at org.jboss.modules.ConcurrentClassLoader.loadClass(
at java.lang.Class.forName0(Native Method) [:1.6.0_29]
at java.lang.Class.forName( [:1.6.0_29]
... 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

archivos adjuntos: liferay-test.tld (4,3k)

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!