Foren

RE: unpack portlet-impl.jar and use that under tomcat lib dir

thumbnail
mokh man, geändert vor 13 Jahren.

unpack portlet-impl.jar and use that under tomcat lib dir

Junior Member Beiträge: 31 Beitrittsdatum: 27.12.07 Neueste Beiträge
hi
i want unpack portlet-impl.jar under tomcat lib dir and use this.
because when portlet-impl.jar been packed when i change one class, i should use ant to compile many classes that this take time.

if portlet-impl.jar be unpack, only one class that i changed must be compiled and deployed under tomcat lib directory.

but when i unpack portlet-impl.jar under tomcat, portal not none and browser not bring site.

please help me!
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: unpack portlet-impl.jar and use that under tomcat lib dir

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
When you build Liferay from source the first time, it will compile all the source code. However, on the second time, it will only compile the source you've modified.

Tomcat used to allow replacement of class files. JBoss has a stricter restriction and may cause an error especially if the Java version that you're using is different from the Java version Liferay.com used to compile.

That said, you should be using EXT plugin and HOOK. This way, you only have to compile the class you've created.
thumbnail
mokhtar hatampoor, geändert vor 13 Jahren.

RE: unpack portlet-impl.jar and use that under tomcat lib dir

Junior Member Beiträge: 31 Beitrittsdatum: 27.12.07 Neueste Beiträge
Hitoshi Ozawa:
When you build Liferay from source the first time, it will compile all the source code. However, on the second time, it will only compile the source you've modified.

hi.
you said correct. but my purpose is that with ant, compile take time.
for example when i change one class and compile with my editor (intellij), time to compile is 3 second.
but when i run "ant deploy" under portal-impl for compile and deploy my one class , this is 55 second.
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: unpack portlet-impl.jar and use that under tomcat lib dir

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
you said correct. but my purpose is that with ant, compile take time.


You mean build takes time.

Well, you should then create hook or ext plugin because it's may not work otherwise.
A hook or an ext plugin just creates a war file with your changed class. It's probably easier than opening up a jar file and overwriting the class file and restarting Liferay.
thumbnail
Manish Kumar Gupta, geändert vor 13 Jahren.

RE: unpack portlet-impl.jar and use that under tomcat lib dir

Liferay Master Beiträge: 535 Beitrittsdatum: 16.05.08 Neueste Beiträge
I agree with Hitoshi that you should use Ext.

If you want to unpack portal-impl, you should use WEB-INF/lib of portal and not tomcat lib.
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: unpack portlet-impl.jar and use that under tomcat lib dir

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
FYI: Information on Hook and Ext plugin is available on the following pages:

Hook:
http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins

Ext Plugin
http://www.liferay.com/community/wiki/-/wiki/Main/Ext+Plugin
thumbnail
mokhtar hatampoor, geändert vor 13 Jahren.

RE: unpack portlet-impl.jar and use that under tomcat lib dir

Junior Member Beiträge: 31 Beitrittsdatum: 27.12.07 Neueste Beiträge
tanks alot
i develop my code in liferay core not ext.

Manish Kumar Gupta:
If you want to unpack portal-impl, you should use WEB-INF/lib of portal and not tomcat lib.

what is your purpose from above . please explain more.