Fórumok

Java code in theme project can't find third party class

Tapio Kukkonen, módosítva 10 év-val korábban

Java code in theme project can't find third party class

New Member Bejegyzés: 1 Csatlakozás dátuma: 2013.07.03. Legújabb bejegyzések
Hi

I have created a custom taglib to a theme with these instructions: http://www.liferay.com/web/raymond.auge/blog/-/blogs/theme-jsp-overrides. The jsp-tag basicly shows or wont show stuff according to some logic it does.

The tag works fine when I only have a dummy method there, eg. hard coded it to skip body always. When I add some more complex logic there which requires a third party library I get ClassNotFound and/or ClassDefNotFound errors. I'm running liferay on Jboss 6.something and Liferay 6.something. Is there some limit in the class scope of themes or am I just been unable to include the required classes in the classpath? I have the required dependencies in my pom.xml of the theme and I've added the required module to the jboss-deployment-structure.xml under webapp/WEB-INF/. I have a similar jsp-tag on a portlet and it's working fine.

If there's any information you need to help, please ask.

Thank you in advance.