migration of websphere portlet factory to liferay portal

Sonam Burde, modified 13 Years ago. Junior Member Posts: 25 Join Date: 7/30/12 Recent Posts
Hey Hi,
I am new to liferay.I am trying to migrate portlets developed in websphere 6.1(JSR 286) to liferay 6.1. For time being i have developed a portal(PA_test.war) displaying some text,which i deployed on liferay.

.war file was choosen to-"Upload a WAR file to install a layout template, portlet, or theme."

After processing following messages were shown- "Your request completed successfully." "The plugin was uploaded successfully and is now being installed."

When i tried looking for portal in plugins installed,i could not find the portal.
I saw logs where it says :
INFO: Undeploying context [/PA_test]
Jul 30, 2012 7:54:05 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory E:\life\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\webapps\PA_test


My folder structure was created on the above path specified for PA_test


i want to know :
1)How the portlet is adhering to JSR specifications.
2)What are the major dependency (technology wise) without which the porlet cannot be migrated,
or whether liferay offers an alternative or a bridge to do so
or whats the equialent for websphere 6.1(JSR 286) in liferay. Please help!!
------------------------------------------------------------------------------------------------------------------------------------
portlet.xml

<!--?xml version="1.0"?-->

<!--AUTOMATICALLY GENERATED DEPLOYMENT DESCRIPTOR - DO NOT EDIT-->
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemalocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" id="com.bowstreet.portlet.WebAppRunner2_test">
	<portlet>
		<description xml:lang="en">Portlet to test migration from wpf to xmlpf</description>
		<portlet-name>Test Portlet</portlet-name>
		<display-name xml:lang="en">Test Portlet</display-name>
		<portlet-class>com.bowstreet.portlet.adapter.WebAppRunnerPortlet286</portlet-class>
		<init-param>
			<name>model</name>
			<value>test</value>
		</init-param>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
		</supports>
		<supported-locale>en</supported-locale>
		<resource-bundle>nls.test</resource-bundle>
		<portlet-info>
			<title>Test Portlet</title>
			<short-title>Test Portlet</short-title>
			<keywords>Test Portlet</keywords>
		</portlet-info>
		<portlet-preferences></portlet-preferences>
	</portlet>
	<custom-portlet-mode>
		<portlet-mode>config</portlet-mode>
	</custom-portlet-mode>
	<custom-portlet-mode>
		<portlet-mode>edit_defaults</portlet-mode>
	</custom-portlet-mode>
	<user-attribute>
		<description xml:lang="en">User Given Name</description>
		<name>user.name.given</name>
	</user-attribute>
	<user-attribute>
		<description xml:lang="en">User Last Name</description>
		<name>user.name.family</name>
	</user-attribute>
</portlet-app>
thumbnail
Hitoshi Ozawa, modified 13 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
One question, is your websphere portlet 100% JSR 286 comformant? WebSphere add their own "features" as do liferay. Sometimes, it may be easier to just rewrite the porlet using Liferay IDE.
Sonam Burde, modified 13 Years ago. Junior Member Posts: 25 Join Date: 7/30/12 Recent Posts
I cannot recreate portals in liferay IDE, the reason being I have some existing portals(JSR286 specified) already created in websphere, which i want to use in liferay.

Now to do that i created a portal in websphere portlet factory 6.1 and tried deploying it in liferay environment. Here i am not 100% sure whether it is JSR286 ,

and the other problems is when (war file) portal of websphere is created it has .model files created .Which has com.bowstreet.portlet.adapter.WebAppRunnerPortlet286 , websphere specific portlet class.

So if anybody over here tried doing this or some basic explaination as how it is to be done.