Forums de discussion

Override and add new methods to VelocityTaglibImpl

sandeep g, modifié il y a 8 années.

Override and add new methods to VelocityTaglibImpl

Junior Member Publications: 29 Date d'inscription: 18/11/14 Publications récentes
I am trying to override and add new methods to VelocityTaglibImpl using ext plugin on jboss, but liferay is not loading my changes. Am I missing anything,

I created ext plugin and added class VelocityTaglibImpl.java with my new class with exact package structure and exported war and deployed on jboss.

My Jboss deployment structure is as below:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<deployment>
<dependencies>
<module name="deployment.util-taglib"></module>
<module name="com.liferay.portal"></module>
</dependencies>
</deployment>
<module name="deployment.util-taglib">
<resources>
<resource-root path="WEB-INF/ext-util-taglib/ext-util-taglib.jar" />
<resource-root path="WEB-INF/lib/util-taglib.jar"></resource-root>
<resource-root path="WEB-INF/lib/util-java.jar"></resource-root>
</resources>
<dependencies>
<module name="javax.faces.api"></module>
<module name="javax.servlet.api" />
<module name="javax.servlet.jsp.api" />
<module name="com.liferay.portal"></module>
</dependencies>
</module>
</jboss-deployment-structure>


plugin is deployed successfully in jboss, but liferay is not loading it. I don't see any log refering to the ext plugin. Am I missing something ?

I am trying to overwrite VelocityTaglibImpl.java in util-taglib.jar, using EXT plugin on jboss EAP6.1 in domain mode. But it is not working Please share details if anyone able to do it.