Message Boards

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
war not generated
using xmlportletfactory
Answer
7/6/12 10:32 AM
hey i am new to liferay, i have tried some example where my folder structure is created through XMLPortletFactory.jar but my war file is not created. please help and guide what is to be done.I cannot see clearly in video in which folder war gets created but my search says no war created. Beside in my liferay-portal-6.1.0-ce-ga1 deploy and logs folder were also not there .

RE: war not generated
Answer
7/7/12 8:52 AM as a reply to sonam kanhaiya burde.
Can you see some errors in console? Did you tried using command line with ant?

RE: war not generated
Answer
7/9/12 7:56 AM as a reply to Juan G..
1) i see this in console when i use command line:

E:\tp\liferay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\liferay-plu
gins-sdk-6.1.0-ce-ga1-20120106155615760\XMLPortletFactory-6.x-v2.1\XMLPortletFac
tory>create.bat MyPortlet "My Portlet"

Buildfile: E:\tp\liferay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\
liferay-plugins-sdk-6.1.0-ce-ga1-20120106155615760\XMLPortletFactory-6.x-v2.1\XM
LPortletFactory\build.xml
It seems you are not installing under liferay plugins sdk folde

you wont be able to execute XMLPortletFactory create.bat or .sh

scripts.

You only will be able to execute by command line:

java -jar xmlportletfactory.jar

or in windows, double-click on xmlportletfactory.jar


2) when i use double-click on xmlportletfactory.jar :- .war is not created, though folder structure created.

The technologies i am using are:

liferay-portal-tomcat-6.1.0-ce which has tomcat 7.0
liferay-plugins-sdk-6.1.0-ce
XMLPortletFactory-6.x-v2.1
eclipse helio 3.6
apache-ant-1.8.2
Java 1.6

RE: war not generated
Answer
7/9/12 8:08 AM as a reply to sonam kanhaiya burde.
Hola Sonam,

Ok, now I understand. Creation script thinks you didn't install your SDK, correctly. Will have to look this later. You have some snapshots in the video tutorials on the folder structure he expects to find.

On the other side, if you managed to execute XMLPortletFactory.jar, it creates the skeleton of the portlet, you now just have to enter on console mode to the generated portlets folder and execute:

ant build-service ( This will create all the service layer and compile.) you can eclipse edit your portlet now.

and

ant war (this will compile the portlet and create the war you need)

Saludos, jack.

RE: war not generated
Answer
7/9/12 10:17 AM as a reply to Jack A. Rider.
i get this when i execute ant


E:\tp\liferay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\liferay-plu
gins-sdk-6.1.0-ce-ga1-20120106155615760\portlets>cd xmlpfexampleE-portlet

E:\tp\liferay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\liferay-plu
gins-sdk-6.1.0-ce-ga1-20120106155615760\portlets\xmlpfexampleE-portlet>ant

Buildfile: E:\tp\liferay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\
liferay-plugins-sdk-6.1.0-ce-ga1-20120106155615760\portlets\xmlpfexampleE-portle
t\build.xml

compile:

merge:

BUILD FAILED
E:\tp\liferay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\liferay-plu
gins-sdk-6.1.0-ce-ga1-20120106155615760\build-common-plugin.xml:314: E:\tp\lifer
ay-portal-tomcat-6.1.0-ce-ga1\liferay-portal-6.1.0-ce-ga1\bundles\tomcat-7.0.23\
webapps\ROOT\WEB-INF\lib does not exist.

Total time: 0 seconds



and my xml file:

<?xml version="1.0" encoding="UTF-8"?>
<definition xmlns="http://www.xmlportletfactory.org/xml/xmlportletfactory" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xmlportletfactory.org/xml/xmlportletfactory xmlportletfactory.xsd">
<commonData>
<client>goodclient</client>
<projectName>xmlpfexampleE</projectName>
<version>1</version>
</commonData>
<applications>
<application>
<classDef>
<name>Users</name>
<title>Users Maintenance</title>
<mode>
<add>true</add>
<delete>true</delete>
<modify>true</modify>
<browse>true</browse>
</mode>
</classDef>
<fileDef>
<name>users</name>
<fields>
<field>
<name>usersId</name>
<title>Id</title>
<type>
<long>
<length>5</length>
<signed>false</signed>
<nullable>false</nullable>
<order>true</order>
</long>
</type>
<showFieldInView>true</showFieldInView>
<required>true</required>
</field>
<field>
<name>userName</name>
<title>Name</title>
<type>
<varchar>
<length>30</length>
<filter>true</filter>
<order>true</order>
</varchar>
</type>
<showFieldInView>true</showFieldInView>
<required>false</required>
</field>
<field>
<name>userCity</name>
<title>City</title>
<type>
<varchar>
<length>30</length>
<filter>true</filter>
<order>true</order>
</varchar>
</type>
<showFieldInView>true</showFieldInView>
<required>false</required>
</field>
</fields>
</fileDef>
</application>
</applications>
</definition>

RE: war not generated
Answer
7/9/12 12:41 PM as a reply to sonam kanhaiya burde.
Hola Sonam,

Just tried your xml definition and work perfect. You are just having an installation problem, lets try to make a fresh new installation. follow the instructions bellow.

Lets say you are using drive E:

1.- create folder "E:\Liferay-6.1.0-ga1"
2.- unzip your SDK installation file inside the created folder (E:\Liferay-6.1.0-ga1)
3.- unzip your liferay- tomcat 6.1 bundle file file inside the created folder (E:\Liferay-6.1.0-ga1)
4.- unzip inside your SDK recently created folder (liferay-plugins-sdk-6.1.0-ce-ga1) your xmlportletfactory downloaded file

You now should have this folder structure:

E:\Liferay-6.1.0-ga1\
....|
....+-------liferay-plugins-sdk-6.1.0-ce-ga1
....|...............|
....|...............+---------..clients
....|...............+---------..dist
....|...............+---------..ext
....|...............+---------..hooks
....|...............+---------..layouttpl
....|...............+---------..lib
....|...............+---------..misc
....|...............+---------..portlets
....|...............+---------..themes
....|...............+---------..tools
....|...............+---------..webs
....|...............+---------..XMLPortletFactory
....+-------lifeFay-portal-6.1.0-ge-ga1
....................|
....................+---------..data
....................+---------..deploy
....................+---------..license
....................+---------..logs
....................+---------..tomcat-7.0.23


Make sure you have your build.YOURUSERNAME.properties of the liferay-plugins-sdk folder correctly configured (see http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/installing-the-sdk)


Now try to work as you did before, it should generate everything ok.

Saludos, Jack.

RE: war not generated
Answer
7/10/12 8:10 AM as a reply to Jack A. Rider.
I have installed from new .
My ant variable is set.

C:\Documents and Settings\Administrator>ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010


My build.sonam.properties is overridden to:

app.server.type=tomcat
app.server.dir=$E:\Liferay-6.1.0-ga1\liferay-portal-tomcat-6.1.0-ce-ga1-20120106155615760\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23


My Problems:

1) I dont se dist in my liferay-plugins-sdk-6.1.0-ce-ga1


E:\Liferay-6.1.0-ga1\
....|
....+-------liferay-plugins-sdk-6.1.0-ce-ga1
....|...............|
....|...............+---------..clients
....|...............+---------..dist(missing in my file structure)
....|...............+---------..ext
....|...............+---------..hooks
....|...............+---------..layouttpl
....|...............+---------..lib
....|...............+---------..misc
....|...............+---------..portlets
....|...............+---------..themes
....|...............+---------..tools
....|...............+---------..webs
....|...............+---------..XMLPortletFactory-6.x-v2.1
....|...............+---------..build.properties
....|...............+---------..build.sonam.properties
....|...............+---------..build.xml
....|...............+---------..build-common.xml
....|...............+---------..build-common-plugin.xml
....|...............+---------..build-common-plugins.xml

....+-------lifeFay-portal-6.1.0-ge-ga1
....................|
....................+---------..data
....................+---------..deploy (missing in my file structure)
....................+---------..license
....................+---------..logs(missing in my file structure)
....................+---------..tomcat-7.0.23

2) folder struture is created and not .war.

3) I try to run- ant war in the folder generated and it gives:


E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\xmlpfexampleE-por
tlet>ant war
Buildfile: E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\xmlpfe
xampleE-portlet\build.xml

compile:

merge:

BUILD FAILED
E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\build-common-plugin.xml:31
4: E:\Liferay-6.1.0-ga1\bundles\tomcat-7.0.23\webapps\ROOT\WEB-INF\lib does not
exist.

Total time: 0 seconds

E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\xmlpfexampleE-por
tlet>

RE: war not generated
Answer
7/10/12 12:31 PM as a reply to sonam kanhaiya burde.
I am getting error like this in cmd when tomcat is placed in bundles directory:
.
.
.
.
.
.

132. ERROR in E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\
portlets\xmlpfexampleE-portlet\docroot\WEB-INF\src\org\xmlportletfactory\goodcli
ent\xmlpfexamplee\util\UsersOpenSearchImpl.java (at line 20)


import org.xmlportletfactory.goodclient.xmlpfexamplee.model.User
s;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.xmlportletfactory.goodclient.xmlpfexamplee.model cann
ot be resolved
----------

133. ERROR in E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\
portlets\xmlpfexampleE-portlet\docroot\WEB-INF\src\org\xmlportletfactory\goodcli
ent\xmlpfexamplee\util\UsersOpenSearchImpl.java (at line 33)


return IndexerRegistryUtil.getIndexer(Users.class);
^^^^^
Users cannot be resolved to a type
----------
133 problems (133 errors)

BUILD FAILED
E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\build-common-plugin.xml:40
7: The following error occurred while executing this line:
E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\build-common.xml:94: Compi
le failed; see the compiler error output for details.


corresponding changes done in build.sonam.properties
Please guide how to fix this.

RE: war not generated
Answer
7/13/12 9:23 PM as a reply to sonam kanhaiya burde.
First of all, read the documentation about how to compile portets in Liferay using SDK.

Seems you configured wrong your SDK properties. It's pointing to wrong app server dir.

RE: war not generated
Answer
7/16/12 8:56 AM as a reply to Juan G..
@Juan:

I am new might miss something . But I have already gone through Plugins SDK Configuration where i set this

app.server.dir=E:/Liferay-6.1.0-ga1/bundles/tomcat-7.0.23

i have tried to run xmlpf through cmd & this is my cmd o/p:



E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortletFactory>create.b
at MyTest "MyTest"

Buildfile: E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortletFacto
ry\build.xml

create:

send-warning:

create-libs-folder:

create-resources-folder:

create-taglibs-folder:

create-portlet:
Expanding: E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XML
PortletFactory\XMLPortlet_resources.zip into E:\Liferay-6.1.0-ga1\liferay-plugin
s-sdk-6.1.0-ce-ga1\XMLPortletFactory\MyTest-xmlportletfactory
Copying 1 file to E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-
ga1\XMLPortletFactory\MyTest-xmlportletfactory
Moving 1 file to E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-g
a1\XMLPortletFactory\MyTest-xmlportletfactory

BUILD SUCCESSFUL
Total time: 1 second

IT CREATES MyTest-xmlportletfactory IN XMLPortletFactory like the way shown in video.When i run ant this is get.


E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortletFactory\MyTest-x
mlportletfactory>ant
Buildfile: E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortletFacto
ry\MyTest-xmlportletfactory\build.xml
Generating for SDK version =6.1.0

generate-portlet:
Name:MyTest
Found (22) entries in folder (E:\Liferay-6.1.0-ga1\liferay-plugins-
sdk-6.1.0-ce-ga1\XMLPortletFactory\Resources\VelocityTemplates_common\PortletFil
es)
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_build_xml.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet//build.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_css.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/css/Port
let_MyTest.css
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_edit_jsp.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/JSPs/MyT
est/edit.jsp
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_help_jsp.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/JSPs/MyT
est/help.jsp
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_en_properties
.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/content/Language_en.properties
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_en_properties
_Global.vm)
--> Did not create : /Language_en.properties, createFile variable w
as not true, see V.Template for more info.
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_es_properties
.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/content/Language_es.properties
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_es_properties
_Global.vm)
--> Did not create : /Language_es.properties, createFile variable w
as not true, see V.Template for more info.
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_fr_properties
.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/content/Language_fr.properties
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_fr_properties
_Global.vm)
--> Did not create : /Language_fr.properties, createFile variable w
as not true, see V.Template for more info.
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_it_properties
.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/content/Language_it.properties
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_it_properties
_Global.vm)

--> Did not create : /Language_it.properties, createFile variable w
as not true, see V.Template for more info.
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_ja_properties
.vm)
--> Did not create : null, createFile variable was not true, see V.
Template for more info.
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_properties.vm
)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/content/Language.properties
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_Language_properties_Gl
obal.vm)
--> Did not create : /Language.properties, createFile variable was
not true, see V.Template for more info.
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_liferay-display_xml.vm
)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
liferay-display.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_liferay-hook_xml.vm)
--> Did not create : /liferay-hook.xml, createFile variable was not
true, see V.Template for more info.
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_liferay-plugin-package
_properties.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
liferay-plugin-package.properties
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_portlet-model-hints_xm
l.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/META-INF/portlet-model-hints.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_portlet_xml.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
portlet.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_web_xml.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
web.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XMLPF_Definition_xml.v
m)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/XMLPF_Definition.xml
-------------------------------------------------------------
Found (17) entries in folder (E:\Liferay-6.1.0-ga1\liferay-plugins-
sdk-6.1.0-ce-ga1\XMLPortletFactory\Resources\VelocityTemplates_6.1\PortletFiles)

-------------------------------------------------------------
Generate File from Velocity Template (Portlet_default_xml.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/resource-actions/default.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_editXXXXXX_jsp.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/JSPs/MyT
est/editMyTest.jsp
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_edit_actions_jsp.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/JSPs/MyT
est/edit_actions.jsp
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_liferay_portlet_xml.vm
)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
liferay-portlet.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_service_xml.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
service.xml
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_view_action_jsp.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/JSPs/MyT
est/view_action.jsp
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_view_jsp.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/JSPs/MyT
est/view.jsp
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXComparator_java.
vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/MyTestComparator.java
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXEntryPermission_
java.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/service/permission/MyTestEntryPermiss
ion.java
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXIndexer_java.vm)

--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/util/MyTestIndexer.java
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXLocalServiceImpl
_java.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/service/impl/MyTestLocalServiceImpl.j
ava
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXModelPermission_
java.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/service/permission/MyTestPermission.j
ava
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXOpenSearchImpl_j
ava.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/util/MyTestOpenSearchImpl.java
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXPortlet_java.vm)

--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/MyTestPortlet.java
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXUpload_java.vm)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/MyTestUpload.java
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXValidator_java.v
m)
--> E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortle
tFactory\MyTest-xmlportletfactory/../../portlets\MyTest-portlet/docroot/WEB-INF/
src/org/xmlportletfactory/example01/mytest/MyTestValidator.java
-------------------------------------------------------------
Generate File from Velocity Template (Portlet_XXXXXXWorkflowHandler_
java.vm)
--> Did not create : /MyTestWorkflowHandler.java, createFile variab
le was not true, see V.Template for more info.
-------------------------------------------------------------

build-service:
Copying 11 files to E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-c
e-ga1\portlets\MyTest-portlet\docroot\WEB-INF\classes
E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\MyTes
t-portlet\ bundles\tomcat-7.0.23\lib\ext does not exist.
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanne
r(AbstractFileSet.java:483)
at org.apache.tools.ant.types.FileSet.iterator(FileSet.java:69)
at org.apache.tools.ant.types.resources.Union.getCollection(Unio
n.java:123)
at org.apache.tools.ant.types.resources.Union.getCollection(Unio
n.java:107)
at org.apache.tools.ant.types.resources.BaseResourceCollectionCo
ntainer.cacheCollection(BaseResourceCollectionContainer.java:265)
at org.apache.tools.ant.types.resources.BaseResourceCollectionCo
ntainer.iterator(BaseResourceCollectionContainer.java:142)
at org.apache.tools.ant.types.Path.iterator(Path.java:710)
at org.apache.tools.ant.types.Path.iterator(Path.java:704)
at org.apache.tools.ant.types.resources.Union.getCollection(Unio
n.java:123)
at org.apache.tools.ant.types.resources.Union.getCollection(Unio
n.java:107)
at org.apache.tools.ant.types.resources.BaseResourceCollectionCo
ntainer.cacheCollection(BaseResourceCollectionContainer.java:265)
at org.apache.tools.ant.types.resources.BaseResourceCollectionCo
ntainer.iterator(BaseResourceCollectionContainer.java:142)
at org.apache.tools.ant.types.Path.iterator(Path.java:710)
at org.apache.tools.ant.types.Path.iterator(Path.java:704)
at org.apache.tools.ant.types.resources.Union.getCollection(Unio
n.java:123)
at org.apache.tools.ant.types.resources.Union.list(Union.java:86
)
at org.apache.tools.ant.types.Path.list(Path.java:378)
at org.apache.tools.ant.types.Path.addExisting(Path.java:331)
at org.apache.tools.ant.types.Path.addExisting(Path.java:319)
at org.apache.tools.ant.types.Path.concatSpecialPath(Path.java:5
72)
at org.apache.tools.ant.types.Path.concatSystemClasspath(Path.ja
va:532)
at org.apache.tools.ant.AntClassLoader.setClassPath(AntClassLoad
er.java:351)
at org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.jav
a:265)
at org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.jav
a:286)
at org.apache.tools.ant.loader.AntClassLoader5.<init>(AntClassLo
ader5.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:51
3)
at org.apache.tools.ant.util.ReflectUtil.newInstance(ReflectUtil
.java:49)
at org.apache.tools.ant.AntClassLoader.newAntClassLoader(AntClas
sLoader.java:1551)
at org.apache.tools.ant.Project.createClassLoader(Project.java:3
39)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:128)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)

at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)

at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget
s(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251
)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251
)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Java Result: -1
${service.test.output}
Created dir: E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\p
ortlets\MyTest-portlet\docroot\WEB-INF\service-classes

compile-java:
Warning: skipping zip archive E:\Liferay-6.1.0-ga1\liferay-plugins-s
dk-6.1.0-ce-ga1\portlets\MyTest-portlet\docroot\WEB-INF\lib\MyTest-portlet-servi
ce.jar because no files were included.
Deleting directory E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce
-ga1\portlets\MyTest-portlet\docroot\WEB-INF\service-classes

compile:

merge:

BUILD FAILED
E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortletFactory\MyTest-x
mlportletfactory\build.xml:26: The following error occurred while executing this
line:
E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\build-common-plugin.xml:31
4: E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\MyTest-portlet
\bundles\tomcat-7.0.23\webapps\ROOT\WEB-INF\lib does not exist.

Total time: 1 minute 57 seconds

E:\Liferay-6.1.0-ga1\liferay-plugins-sdk-6.1.0-ce-ga1\XMLPortletFactory\MyTest-x
mlportletfactory>

Now tell me what am missing.

RE: war not generated
Answer
7/16/12 9:17 AM as a reply to sonam kanhaiya burde.
That directory seems not to be a valid Liferay bundle installation.

RE: war not generated
Answer
7/16/12 10:29 AM as a reply to Juan G..
how do i correct it , i have followed steps given by jack. And if directory is not valid for Liferay bundle installation what is to be done.

RE: war not generated
Answer
7/16/12 6:07 PM as a reply to sonam kanhaiya burde.
Seems clear that SDK is not getting your Liferay bundle (app.server property) as you can see in logs.

Try to find what is misconfigured there.

RE: war not generated
Answer
7/17/12 7:45 AM as a reply to Juan G..
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 type

When 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 resolved


1) 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)