Hey i am using the above xml(5th post of this thread). I am getting following errors in cmd:
Users cannot be resolved to a typeWhen i check java file i find user is import as-
import org.xmlportletfactory.goodclient.xmlpfexamplee.model.Users;
And my directory structure there is no model folder
Likewise some more errors :
The import org.xmlportletfactory.goodclient.xmlpfexamplee.model cannot be resolved
resourceLocalService cannot be resolved
usersPersistence cannot be resolved
UsersLocalServiceUtil cannot be resolved1) I have my directory structure as :E:\Liferay-6.1.0-ga1\
....|
....+-------liferay-plugins-sdk-6.1.0-ce-ga1
....|...............|
....|...............+---------..clients
....|...............+---------..ext
....|...............+---------..hooks
....|...............+---------..layouttpl
....|...............+---------..lib
....|...............+---------..misc
....|...............+---------..portlets
....|...............+---------..themes
....|...............+---------..tools
....|...............+---------..webs
....|...............+---------..XMLPortletFactory(XMLPortletFactory-6.x-v2.1)
....|...............+---------..build.properties
....|...............+---------..build.sonam.properties
....|...............+---------..build.xml
....|...............+---------..build-common.xml
....|...............+---------..build-common-plugin.xml
....|...............+---------..build-common-plugins.xml
....+-------bundles
....................|
....................+---------..data
....................+---------..license
....................+---------..tomcat-7.0.23
2)Changes done in build.sonam.properties:( # commented lines are removed here)
##
Specify the paths to an unzipped Tomcat bundle. app.server.type=tomcat
#app.server.dir=${project.dir}/../bundles/tomcat-7.0.23
(Path where in bundle is located) app.server.dir=E:/Liferay-6.1.0-ga1/bundles/tomcat-7.0.23
app.server.deploy.dir=${app.server.dir}/webapps
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.portal.dir=${app.server.dir}/webapps/ROOT
##
Auto Deploy auto.deploy.dir=${app.server.dir}/../deploy
auto.deploy.unpack.war=true
auto.deploy.custom.portlet.xml=false
##
Compiler ant.build.javac.source=1.5
ant.build.javac.target=1.5
#javac.compiler=modern
javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
javac.debug=on
javac.deprecation=off
javac.encoding=ISO-8859-1
javac.nowarn=on
----------------------------------------------------------------------------------------
##
Database # Set the database name used by the SQL scripts.
database.name=lportal
database.types=db2,derby,firebird,hypersonic,informix,ingres,interbase,jdatastore,mysql,oracle,postgresql,sap,sqlserver,sybase
#database.types=mysql
## JUnit
junit.debug.jpda=
#junit.debug.jpda=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y
## Libraries
required.portal.jars=commons-logging.jar,log4j.jar,util-bridges.jar,util-java.jar,util-taglib.jar
## Operating Systems
os.apple=Mac OS X
os.unix=Linux,FreeBSD,Solaris,SunOS
os.windows=Windows 95,Windows 98,Windows NT,Windows 2000,Windows 2003,Windows XP,Windows Vista,Windows 7
##
## Plugins
##
plugins.excludes=
plugins.includes=*
plugins.ear.excludes=
plugins.ear.includes=tunnel-web
## Version
lp.version=6.1.0
:
---------------------------------------------------------------------------
3)My ant variable is set to as:ANT_HOME: C:\Program Files\apache-ant-1.8.2
(Is this because of difference in ant version in environment variable & build.properties. Please help)