留言板

Liferay7-runtime dependencies

mahesh gade,修改在6 年前。

Liferay7-runtime dependencies

Junior Member 帖子: 44 加入日期: 13-12-5 最近的帖子
Hi All,

I have developed One portlet in Liferay7. when this portlet is loaded on a page its giving below issue

Caused by: java.lang.ClassNotFoundException: com.liferay.taglib.theme.DefineObjectsTei
at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspBundleClassloader.findClass(JspBundleClassloader.java:98)
at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspBundleClassloader.loadClass(JspBundleClassloader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:554)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:374)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:254)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:502)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:582)

and

build.gradle
---------------------------
dependencies {
compile group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compile group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
compile group: "javax.portlet", name: "portlet-api", version: "2.0"
compile group: "javax.servlet", name: "servlet-api", version: "2.5"
compile group: "jstl", name: "jstl", version: "1.2"
compile group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
compile group: "com.liferay.portal", name:"com.liferay.util.bridges", version:"2.0.0"
compile group: "org.osgi", name:"org.osgi.service.component.annotations", version:"1.3.0"


}

am able to compile and deploy into server ,and this issue is being raised in runtime.

Thanks & regards,
Mahesh.
thumbnail
Andy Wu,修改在6 年前。

RE: Liferay7-runtime dependencies

Regular Member 帖子: 195 加入日期: 15-5-5 最近的帖子
hey mahesh , could you share your sample source code to this thread, so we can reproduce it. Thanks.
mahesh gade,修改在6 年前。

RE: Liferay7-runtime dependencies

Junior Member 帖子: 44 加入日期: 13-12-5 最近的帖子
Here is sample code attached.
thumbnail
Andy Wu,修改在6 年前。

RE: Liferay7-runtime dependencies

Regular Member 帖子: 195 加入日期: 15-5-5 最近的帖子
hey , I think you don't need the

-includeresource: \
	@com.liferay.util.bridges-2.0.0.jar!/com/liferay/util/bridges/freemarker/FreeMarkerPortlet.class,\
	@com.liferay.util.taglib-2.0.0.jar!/META-INF/*.tld


in bnd.bnd file.

If you remove such config , it will be ok.

see
mahesh gade,修改在6 年前。

RE: Liferay7-runtime dependencies

Junior Member 帖子: 44 加入日期: 13-12-5 最近的帖子
Thanks Wue,it worked.