Forums de discussion

Fragment host usage gives issue

thumbnail
Jignesh Vachhani, modifié il y a 7 années.

Fragment host usage gives issue

Liferay Master Publications: 803 Date d'inscription: 10/03/08 Publications récentes
Hi all,

I am actually overriding liferay oob module functionality using fragment host feature of OSGi where i am able to face one strange issue to override jsps.
Actually JSPs could not be able to find/load custom classes which we have created as a part of separate module.
I already exported those packages from source bundle and also imported those packages in my module where i am overriding jsps.
Does it liferay DXP issue ?
thumbnail
Milen Dyankov, modifié il y a 7 années.

RE: Fragment host usage gives issue

Expert Publications: 310 Date d'inscription: 30/10/12 Publications récentes
Can you provide some more details? Where do you export your packages from? Where do you import them? How do you access the classes? What errors you see in the log?
thumbnail
Jignesh Vachhani, modifié il y a 7 années.

RE: Fragment host usage gives issue

Liferay Master Publications: 803 Date d'inscription: 10/03/08 Publications récentes
Milen,

Here is the detail.

Where do you export your packages from?
From my custom module where i created and exposed serializable model class .

Where do you import them? How do you access the classes?
Importing into bnd file and accessing in custom fragment host bundle/module where i am using classes with i exposed from other module as i mentioned in above statement.

What errors you see in the log?
Caused by: org.apache.jasper.JasperException: : Error in Javac compilation for JSP_PWC6199: Generated servlet error:_cannot find symbol symbol: class CustomPollConstants_ location: package com.abc.portal.base.community.util_PWC6199: Generated servlet error:_cannot find symbol symbol: class CustomPollUtil_ location: package com.abc.portal.base.community.util_
thumbnail
Abhishek Jain, modifié il y a 7 années.

RE: Fragment host usage gives issue

Regular Member Publications: 226 Date d'inscription: 20/08/16 Publications récentes
In liferay ce, there occurs some problem in making fragments in some version..you should try some other version like ce ga1 or ee ga1. Hope that helps!!