Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Andreas S
Liferay with Glassfish Full Profile
May 14, 2012 6:46 AM
Answer

Andreas S

Rank: New Member

Posts: 20

Join Date: October 26, 2010

Recent Posts

I have a little problem. The Glassfish that comes with Liferay is only web profile so I can't deploy my EAR with webservices.

Do you see any problem with using two different glassfish domain instances on the same host (different ports)? One only for webservices/EAR and one only for Liferay portal. For example, if something happens with Liferay which causes the server to go down my webservices will also be offline and they're used by other applications in addition to Liferay. Or it it bad practice to do this?

Or is it better if I try to find a way to make Liferay and EAR deployment work together in one glassfish?

Thank you.
Juan Gonzalez
RE: Liferay with Glassfish Full Profile
May 14, 2012 7:11 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1235

Join Date: October 28, 2008

Recent Posts

Andreas S:
I have a little problem. The Glassfish that comes with Liferay is only web profile so I can't deploy my EAR with webservices.

Do you see any problem with using two different glassfish domain instances on the same host (different ports)? One only for webservices/EAR and one only for Liferay portal. For example, if something happens with Liferay which causes the server to go down my webservices will also be offline and they're used by other applications in addition to Liferay. Or it it bad practice to do this?

Or is it better if I try to find a way to make Liferay and EAR deployment work together in one glassfish?

Thank you.


What problem do you have in deploying Liferay and your EAR in the same glassfish?

You can deploy Liferay WAR in your Full EE Glassfish profile, you don't have to use bundled one. Only thing here is to place shared libs in glassfish classpath dir (<GLASSFISH>domains/domain1/lib and that's all.
Andreas S
RE: Liferay with Glassfish Full Profile
May 14, 2012 11:07 PM
Answer

Andreas S

Rank: New Member

Posts: 20

Join Date: October 26, 2010

Recent Posts

I get this problem when trying to deploy Liferay on an already existing Glassfish: http://stackoverflow.com/questions/8078307/errors-when-deploying-liferay-6-0-6-on-glassfish-3-1-1

And as I wrote before the Liferay + Glassfish bundle from Liferay only comes with web profile Glassfish.

So I was wondering if I could use two glassfishes on the same host on different ports. One with my webservices where I could keep the Glassfish up-to-date and another one with liferay. But maybe it's bad practice to use two.
Juan Gonzalez
RE: Liferay with Glassfish Full Profile
May 14, 2012 11:16 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1235

Join Date: October 28, 2008

Recent Posts

Yep I agree it's a bad practice.

About your error, seems you've deployed liferay in other contextPath different to root ("/"). You should deploy in that context path by default, if you wanna change yo'll have to change some other things.
Juan Gonzalez
RE: Liferay with Glassfish Full Profile
May 14, 2012 11:18 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1235

Join Date: October 28, 2008

Recent Posts

Remember to put the shared libs (portlet.jar, portal-service.jar and hsql.jar) in glassfish classpath (<GLASSFISH>/lib ).
Andreas S
RE: Liferay with Glassfish Full Profile
May 14, 2012 11:38 PM
Answer

Andreas S

Rank: New Member

Posts: 20

Join Date: October 26, 2010

Recent Posts

Thanks, I'm gonna try it again with Liferay 6.1 and Glassfish 3.1.1.

"Note, on GlassFish 3.0.1, you will need to extract commons-codec.jar from the Liferay Portal WAR file, rename it to commons-codec-repackaged.jar, and copy it into [Liferay Home]/glassfish/modules/, overwriting GlassFish's version of the file."

Do I need to do this for Glassfish 3.1.1?
Juan Gonzalez
RE: Liferay with Glassfish Full Profile
May 14, 2012 11:41 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1235

Join Date: October 28, 2008

Recent Posts

Guess it isn't mandatory. Test with your current config and then we'll see emoticon.
Andreas S
RE: Liferay with Glassfish Full Profile
May 15, 2012 12:39 AM
Answer

Andreas S

Rank: New Member

Posts: 20

Join Date: October 26, 2010

Recent Posts

Thanks for all your help, it worked!

I think the user guide has additional instructions now that weren't there before (like the patch stuff).
Juan Gonzalez
RE: Liferay with Glassfish Full Profile
May 15, 2012 1:59 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1235

Join Date: October 28, 2008

Recent Posts

Glad it worked. Please mark the correct answer as answer for this post so others can see it quickly.