留言板

liferay spring mvc

thumbnail
meera prince,修改在11 年前。

liferay spring mvc

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
http://www.liferaysavvy.com/2013/01/liferay-spring-portlet-mvc-portlet.html
thumbnail
Vishal Panchal,修改在11 年前。

RE: liferay spring mvc

Expert 帖子: 289 加入日期: 12-5-20 最近的帖子
Hi Meera,

Great Article.!
Thanks for contributing.

Regards,
Vishal R. Panchal
thumbnail
meera prince,修改在11 年前。

RE: liferay spring mvc

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
Thank you
thumbnail
sheela mk,修改在11 年前。

RE: liferay spring mvc

Regular Member 帖子: 111 加入日期: 12-2-17 最近的帖子
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..
thumbnail
meera prince,修改在11 年前。

RE: liferay spring mvc

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
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
thumbnail
sheela mk,修改在11 年前。

RE: liferay spring mvc

Regular Member 帖子: 111 加入日期: 12-2-17 最近的帖子
Ya..I did the same..as u explained..But..portlet is not in the list of along with Out of Box portlets..


sourceone@sourceone-ThinkCentre-M71e-sheela:~/Desktop/liferayga2/portletinaction/ch1_HelloWorld$ ant build

Buildfile: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/build.xml

clean:

compile:
    [mkdir] Created dir: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/WEB-INF/classes/content
  [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 

 //Let me knw..whether any problem with this line.[/color]


    [javac] Compiling 1 source file to /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/WEB-INF/classes
     [copy] Copying 1 file to /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/WEB-INF/classes/content

build:
    [mkdir] Created dir: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/build
      [war] Building war: /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/build/ch1_HelloWorld.war
     [copy] Copying 1 file to /home/sourceone/Desktop/liferayga2/portletinaction/ch1_HelloWorld/C:/liferay-portal-6.0.1/deploy

BUILD SUCCESSFUL
Total time: 1 second
sourceone@sourceone-ThinkCentre-M71e-sheela:~/Desktop/liferayga2/portletinaction/ch1_HelloWorld$ 



thumbnail
Masroor Khan,修改在11 年前。

RE: liferay spring mvc

Regular Member 帖子: 124 加入日期: 08-9-9 最近的帖子
Hi,

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



Regards,

Masroor Khan
thumbnail
sheela mk,修改在11 年前。

RE: liferay spring mvc

Regular Member 帖子: 111 加入日期: 12-2-17 最近的帖子
hai..Is it possible to put those example of Portlet Manning in Action in liferay sdk..for making changes.. emoticon
thumbnail
meera prince,修改在11 年前。

RE: liferay spring mvc

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
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.
thumbnail
sheela mk,修改在11 年前。

RE: liferay spring mvc

Regular Member 帖子: 111 加入日期: 12-2-17 最近的帖子
K..Meera Prince..I got it..Thanks You.. emoticon