• Welcome to KonaKart Community Forum. Please login or sign up.
 

liferay war file

Started by skittles, August 28, 2009, 08:02:35 pm

Previous topic - Next topic

skittles

trouble with createing a war file for liferay so i can deploy it as a portlet.
no matter where i run ant in(directory custom or bin) i get an error build failed on line 160 0r 152 of the build.xml.
At first i had a error that i didnt have a build.xml file in the bin directory but the recent post of making a war file or the docs doesnt say that i need on in place but i copy the one from the custom and put it into the bin directory.
Any help?
or any liferay portlet war files that i can use
thanks

Brian

Follow the instructions in the User Guide more carefully.  The User Guide is provided in every download kit.

Navigate to the custom directory and issue this command:

C:\Program Files\KonaKart\custom>.\bin\ant make_admin_liferay_portlet_war -Djboss=true

Make necessary adjustments for Linux/Unix.



Brian

of course, if you're not targetting JBoss it's simply:

C:\Program Files\KonaKart\custom>.\bin\ant make_liferay_portlet_war


skittles

these are the errors where i was talking about at first.

C:\Program Files\KonaKart\custom\bin>ant -p
Buildfile: build.xml does not exist!
Build failed
C:\Program Files\KonaKart\custom\bin>ant make_liferay_portlet_war
Buildfile: build.xml does not exist!
Build failed
C:\Program Files\KonaKart\custom\bin>




now if i put a bulid.xml file in the bin directory i get errors  on the lines of that file. i didnt change nothing on the properties file
its all config right in the file.

skittles

konakart.properties file

torque.applicationRoot = .

torque.database.default                     = store1

torque.database.store1.adapter              = mysql
torque.dsfactory.store1.connection.driver   = com.mysql.jdbc.Driver
torque.dsfactory.store1.connection.url      = jdbc:mysql://localhost:3306/konakart?zeroDateTimeBehavior=convertToNull
torque.dsfactory.store1.connection.user     = root
torque.dsfactory.store1.connection.password = root


my database name is konakart
everything is correct

Brian

To be successful you have to follow the instructions more carefully. 
People will stop helping you if you don't take more care in future.


Quote
C:\Program Files\KonaKart\custom\bin>ant -p
Buildfile: build.xml does not exist!


Well, that's because you're in the wrong place.

Think about it and look carefully.  The error message is pretty useful.

Move to the custom directory one level above.

Moving the build.xml file is not a good idea.

Why don't you just follow the documentation (and my earlier post) carefully and issue:


C:\Program Files\KonaKart\custom>.\bin\ant make_liferay_portlet_war









Brian

Quote
konakart.properties file

torque.applicationRoot = .

torque.database.default                     = store1

torque.database.store1.adapter              = mysql
torque.dsfactory.store1.connection.driver   = com.mysql.jdbc.Driver
torque.dsfactory.store1.connection.url      = jdbc:mysql://localhost:3306/konakart?zeroDateTimeBehavior=convertToNull
torque.dsfactory.store1.connection.user     = root
torque.dsfactory.store1.connection.password = root


my database name is konakart
everything is correct



You say "Everything is correct"  ??     

Well, that's good.  Well done.

However, I'm not sure why you posted that.


skittles

Not to be disrespectful i have been follow the docs and your post .Im kinda leery to even ask for help
now. didnt mean to give you trouble.
but i did everything you said and  the docs said
heres my trouble now.


C:\Program Files\KonaKart\custom>.\bin\ant make_liferay_portlet_war
Buildfile: build.xml

clean_portlet_war:
     [echo] Cleanup portlet WARs...
     [echo] Cleanup portlet WAR staging area...

make_liferay_portlet_war:

BUILD FAILED
C:\Program Files\KonaKart\custom\build.xml:611: Directory C:\Program Files\KonaK
art\custom\konakart_portlet\stage\konakart creation was not successful for an un
known reason

Brian

That's a strange one..   It's saying that it can't produce that directory on your system.

Sounds like it could be one of those Vista file system problems - are you using Vista?


Does it work if you run it a second time?   

Can you create the directory by hand and then make the war?

skittles

I tried to create the directory and when I do it says it can't create a different directory!
yes im using vista!
is KonaKart compatible with Vista?
is anyway I can make it work using Vista?
if not is there a way I can get the liferay portlet war file?

Brian

Vista has some awful file system problems... so that's why I guessed you were using that.

KonaKart works fine on Vista.

I don't know why Vista won't let you create an innocent little directory on your system there.. but I would expect it to be able to after a reboot.   (Sometimes it will work if you run the command again, but I know a colleague of mine always reboots when he encounters this kind of problem)

Don't ask me to explain Vista's file system bugs....

skittles

I did that it did not work. I created the directories it still wasn't successful.
can u message me a war file.

Brian

There's something seriously wrong with your environment if your ant task can't create a directory.

Bear in mind that this ant task is run on Vista machines here 20-30 times every day without any problems.

Have you tried running ANT in debug to get some clues?


QuoteI did that it did not work. I created the directories it still wasn't successful.


You might want to tell us why it wasn't successful.

skittles

I found out what was wrong and i always fixed my user account permissions  to allow me to change files without haveing to verify what i was doing everytime and i rebooted , so now it works now thanks so much.

skittles

quick question how do you change the products and so forth  in the portlet ?
I have to go in and change the files correct?