Fórumok

Deploy a Portlet ear

Martin Schlierf, módosítva 16 év-val korábban

Deploy a Portlet ear

New Member Bejegyzések: 3 Csatlakozás dátuma: 2007.12.07. Legújabb bejegyzések
Hello, I have a liferay-portal-jboss-tomcat-4.0-4.3.5

I have a running Web Application that I want to use with portlets.
This Web application can be deployed on a JBoss server and is running.

To deploy I copy the application.ear into JBoss deploy directory.

I added
liferay-display.xml
liferay-portlet.xml
and portlet.xml into WEB-INF directory into the application.ear/app.war/WEB-INF folder

What do I have to do to have my portlets be shown in the Add Content section?

I read something about the PortletDeploayer but I don't really understand how I can use it to deploy the ear file into liferay.

Just to be clear,
liferay is running and my application is running, I just have to show my application in liferay as portlet.


Can somebody help me or give me a hint?
Has somebody done something like this?
thumbnail
Roman Hoyenko, módosítva 16 év-val korábban

RE: Deploy a Portlet ear

Liferay Master Bejegyzések: 878 Csatlakozás dátuma: 2007.10.08. Legújabb bejegyzések
Portlet is a special application that needs to satisfy some requirements - JSR 168 spec. to be precise. So, if your application satisfies criteria in JSR 168 you can add it to liferay. You can't just drop any jar, ear, war, etc. into Liferay and expect it to pick it up.

You can start reading about portlet development here:
http://wiki.liferay.com/index.php/Roadmap_for_new_developers

You can read about deployment ow WARs here:
http://wiki.liferay.com/index.php/Hot_Deploy_Troubleshooting
Martin Schlierf, módosítva 16 év-val korábban

RE: Deploy a Portlet ear

New Member Bejegyzések: 3 Csatlakozás dátuma: 2007.12.07. Legújabb bejegyzések
Thanks for your answer.

I use MyFaces JSF as presentation layer in my app and have a business logic in the background that modifies data.

I thought that if I use the MyFaces bridge I can easily add my app to liferay.
Am I wrong?

I want to show some of the pages of my webapp as portlets in the portal.
I thought I can do this by adding the spezification xml files to my WEB-INF.

But I don't know how I can link my app with liferay in order to see my portlets under add content.

I have copied everything from the JSF example into my application and changed it to fit into my project.

But I can not deploy the ear with the PortletDeployer, this is normally done by throwing it into liferay deploy dir.

I'll read the links you sent me.
thumbnail
Roman Hoyenko, módosítva 16 év-val korábban

RE: Deploy a Portlet ear

Liferay Master Bejegyzések: 878 Csatlakozás dátuma: 2007.10.08. Legújabb bejegyzések
Do you really need it to be ear? Do you use EJBs?

Putting the required files into WEB-INF and correctly hot-deploying should make a portlet available in Add content menu.
Martin Schlierf, módosítva 16 év-val korábban

RE: Deploy a Portlet ear

New Member Bejegyzések: 3 Csatlakozás dátuma: 2007.12.07. Legújabb bejegyzések
Yes, I need ear.
And yes I use EJB in my Project.

Thats what I thought.
I can try to deploy everything as a war but that can only be done for testing not for release.
thumbnail
Roman Hoyenko, módosítva 16 év-val korábban

RE: Deploy a Portlet ear

Liferay Master Bejegyzések: 878 Csatlakozás dátuma: 2007.10.08. Legújabb bejegyzések
Can you try to do this first just to make sure that hot-deploy works?
thumbnail
Flávio Stutz, módosítva 12 év-val korábban

RE: Deploy a Portlet ear

New Member Bejegyzések: 4 Csatlakozás dátuma: 2006.09.08. Legújabb bejegyzések
I opened a request for this feature at http://issues.liferay.com/browse/LPS-19522
Please, vote for it.