Foren
environment set up liferay Portlets + spring MVC + maven setup
Mahidhar kundella, geändert vor 10 Jahren.
environment set up liferay Portlets + spring MVC + maven setup
New Member Beiträge: 10 Beitrittsdatum: 28.01.13 Neueste Beiträge
Hi Experts,
Here I have a requirement like create basic project setup by using the liferay + spring MVC + Maven and created like below
1. Created portlet with maven artifacts (mvn archetype:generate)
2. changes done according to the Spring MVC portlet
up to now everything is fine building everything is fine
when I tried to add sample spring controller getting build failure error
symbol: class Controller
@Controller(value="ProfileController")
D:\Softwares\liferay-plugins-sdk-6.1.1\portlets\xxx\main\java\com\xxx\xxx\controllers\Profile.java:[30,1] cannot find symbol
though I added the spring jar files.
Could you please help me out on this how to point the local repository where all the jars are located or how solve the above issue
Thanks in advance,
Mahidhar Kundela
Here I have a requirement like create basic project setup by using the liferay + spring MVC + Maven and created like below
1. Created portlet with maven artifacts (mvn archetype:generate)
2. changes done according to the Spring MVC portlet
up to now everything is fine building everything is fine
when I tried to add sample spring controller getting build failure error
symbol: class Controller
@Controller(value="ProfileController")
D:\Softwares\liferay-plugins-sdk-6.1.1\portlets\xxx\main\java\com\xxx\xxx\controllers\Profile.java:[30,1] cannot find symbol
though I added the spring jar files.
Could you please help me out on this how to point the local repository where all the jars are located or how solve the above issue
Thanks in advance,
Mahidhar Kundela
David H Nebinger, geändert vor 10 Jahren.
RE: environment set up liferay Portlets + spring MVC + maven setup
Liferay Legend Beiträge: 14914 Beitrittsdatum: 02.09.06 Neueste Beiträge
Um, you did fix up the imports so javac knows where to find Spring's Controlller annotation class, right?
Pradeep Kumar Badhai, geändert vor 10 Jahren.
RE: environment set up liferay Portlets + spring MVC + maven setup
Junior Member Beiträge: 50 Beitrittsdatum: 06.09.11 Neueste Beiträge
Hello Mahindhar,
As David suggested, you might be missing jars files, Please see the attached Image and verify all the spring dependencies are listed in your pom.xml
Hope this will help.
As David suggested, you might be missing jars files, Please see the attached Image and verify all the spring dependencies are listed in your pom.xml
Hope this will help.
Anhänge: