Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Meera Prince
liferay spring mvc
January 8, 2013 1:01 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 838

Join Date: February 8, 2011

Recent Posts

http://www.liferaysavvy.com/2013/01/liferay-spring-portlet-mvc-portlet.html
Vishal Panchal
RE: liferay spring mvc
January 8, 2013 1:31 AM
Answer

Vishal Panchal

Rank: Expert

Posts: 277

Join Date: May 20, 2012

Recent Posts

Hi Meera,

Great Article.!
Thanks for contributing.

Regards,
Vishal R. Panchal
Meera Prince
RE: liferay spring mvc
January 8, 2013 2:14 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 838

Join Date: February 8, 2011

Recent Posts

Thank you
sheela mk
RE: liferay spring mvc
February 14, 2013 4:00 AM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

Hai..Pls let me knw how to execute the project on Spring MVC..on Book Catalog example from Portlet Manning in Acton..

Existing Source code..Containing both build.xml file and pom.xml file..

For deploying..

Let me knw How to deploy it into portal..
Meera Prince
RE: liferay spring mvc
February 14, 2013 5:00 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 838

Join Date: February 8, 2011

Recent Posts

HI sheela mk
From dos command prompt please go to project directory there you can see build file.
after enter this command ant -p then you can see all targets. there you can find build target.
If you run ant build then portlet war file created in build directory /folder of project.
If you run maven then it will be created in dist folder. once you get war file copy this file to tomcat deploy directory.


Regards,
Meera Prince
sheela mk
RE: liferay spring mvc
February 14, 2013 10:38 PM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

Ya..I did the same..as u explained..But..portlet is not in the list of along with Out of Box portlets..

 1
 2sourceone@sourceone-ThinkCentre-M71e-sheela:~/Desktop/liferayga2/portletinaction/ch1_HelloWorld$ ant build
 3
 4Buildfile: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/build.xml
 5
 6clean:
 7
 8compile:
 9    [mkdir] Created dir: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/WEB-INF/classes/content
10  [color=#f72222]   [javac] /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/build.xml:60: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
11
12 //Let me knw..whether any problem with this line.[/color]
13
14
15    [javac] Compiling 1 source file to /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/WEB-INF/classes
16     [copy] Copying 1 file to /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/WEB-INF/classes/content
17
18build:
19    [mkdir] Created dir: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/build
20      [war] Building war: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/build/ch1_HelloWorld.war
21     [copy] Copying 1 file to /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/C:/liferay-portal-6.0.1/deploy
22
23BUILD SUCCESSFUL
24Total time: 1 second
25sourceone@sourceone-ThinkCentre-M71e-sheela:~/Desktop/liferayga2/portletinaction/ch1_HelloWorld$
Masroor Khan
RE: liferay spring mvc
February 14, 2013 10:49 PM
Answer

Masroor Khan

Rank: Regular Member

Posts: 117

Join Date: September 9, 2008

Recent Posts

Hi,

Please check server console, is it deploy successfully or any error.



Regards,

Masroor Khan
sheela mk
RE: liferay spring mvc
February 15, 2013 12:59 AM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

hai..Is it possible to put those example of Portlet Manning in Action in liferay sdk..for making changes.. emoticon
Meera Prince
RE: liferay spring mvc
February 15, 2013 1:26 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 838

Join Date: February 8, 2011

Recent Posts

Hi sheela mk,

First create One Portlet using Liferay SDK. Once you get default files then remove you docroot folder from created portlet and bring spring portlet docroot from war file. then you can deploy portlet from IDE.

Note: make sure portlet dtd versions.
sheela mk
RE: liferay spring mvc
February 14, 2013 10:48 PM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

K..Meera Prince..I got it..Thanks You.. emoticon