Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Build Fails During Deploy [resolved] Dave Willis March 17, 2010 10:30 AM
RE: Build Fails During Deploy Arun Kumar S March 14, 2010 10:55 PM
RE: Build Fails During Deploy Dave Willis March 15, 2010 1:24 PM
RE: Build Fails During Deploy Nagendra Kumar Busam March 15, 2010 8:26 AM
RE: Build Fails During Deploy Ivan Cheung March 15, 2010 12:07 PM
RE: Build Fails During Deploy Dave Willis March 15, 2010 2:28 PM
RE: Build Fails During Deploy Ivan Cheung March 15, 2010 1:36 PM
RE: Build Fails During Deploy Dave Willis March 15, 2010 2:25 PM
RE: Build Fails During Deploy Ivan Cheung March 15, 2010 3:04 PM
RE: Build Fails During Deploy Dave Willis March 15, 2010 3:13 PM
RE: Build Fails During Deploy Ivan Cheung March 15, 2010 3:18 PM
RE: Build Fails During Deploy Dave Willis March 16, 2010 7:09 AM
RE: Build Fails During Deploy Ivan Cheung March 16, 2010 7:58 AM
RE: Build Fails During Deploy Dave Willis March 16, 2010 8:47 AM
RE: Build Fails During Deploy Ivan Cheung March 16, 2010 9:17 AM
RE: Build Fails During Deploy Ivan Cheung March 16, 2010 10:49 AM
RE: Build Fails During Deploy Dave Willis March 16, 2010 1:17 PM
RE: Build Fails During Deploy Dave Willis March 16, 2010 4:10 PM
RE: Build Fails During Deploy Wilson Man March 16, 2010 4:27 PM
RE: Build Fails During Deploy Dave Willis March 17, 2010 10:30 AM
RE: Build Fails During Deploy Wilson Man March 17, 2010 10:49 AM
RE: Build Fails During Deploy Mark Hensler March 17, 2010 1:16 PM
RE: Build Fails During Deploy Ivan Cheung March 17, 2010 3:29 PM
Dave Willis
Build Fails During Deploy [resolved]
March 17, 2010 10:30 AM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

I'm trying to set my dev environment up in Windows and migrate all my files over from OS X but when I try to build a project I get the following error:

1BUILD FAILED
2C:\Users\mbagnall\Documents\Eclipse\swishertown\plugins\portlets\sports-sweetie-gallery\build.xml:24: The following error occurred while executing this line:
3C:\Users\mbagnall\Documents\Eclipse\swishertown\plugins\build-common-plugin.xml:128: C:\Users\mbagnall\Documents\Eclipse\swishertown\bundles\tomcat-6.0.18\webapps\ROOT\WEB-INF\lib not found.

I don't know why it's looking for things to be under a 'bundles' directory there has never been any such directory and I can find nothing in the config files that would be telling it to look there. Anyone know what's going on here? Thanks!
Dave
Arun Kumar S
RE: Build Fails During Deploy
March 14, 2010 10:55 PM
Answer

Arun Kumar S

Rank: Regular Member

Posts: 182

Join Date: June 23, 2008

Recent Posts

Dave Willis:
I'm trying to set my dev environment up in Windows and migrate all my files over from OS X but when I try to build a project I get the following error:

1BUILD FAILED
2C:\Users\mbagnall\Documents\Eclipse\swishertown\plugins\portlets\sports-sweetie-gallery\build.xml:24: The following error occurred while executing this line:
3C:\Users\mbagnall\Documents\Eclipse\swishertown\plugins\build-common-plugin.xml:128: C:\Users\mbagnall\Documents\Eclipse\swishertown\bundles\tomcat-6.0.18\webapps\ROOT\WEB-INF\lib not found.

I don't know why it's looking for things to be under a 'bundles' directory there has never been any such directory and I can find nothing in the config files that would be telling it to look there. Anyone know what's going on here? Thanks!
Dave



Change build.<systemName>.properties

app.server.dir= <It should point Tomcat directory>

HTH,
Arun
Dave Willis
RE: Build Fails During Deploy
March 15, 2010 1:24 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

That's the thing. It already does point to the Tomcat directory but when I try to build anything that bundles directory gets inserted in there somehow. I don't understand why.

Here's the entire contents of my build.dave.properties file:
1app.server.dir=C:\Users\mbagnall\Documents\Eclipse\tomcat-6.0.18
Nagendra Kumar Busam
RE: Build Fails During Deploy
March 15, 2010 8:26 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 653

Join Date: July 7, 2009

Recent Posts

Hi Dave,

Did you setup/named the app.server.<userloginname>.properties & build.<userloginname>.properties properly. Check this first.

Regards,
- Nagendra Kumar
Ivan Cheung
RE: Build Fails During Deploy
March 15, 2010 12:07 PM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

Dave,

1) what's the name of your app.server.properties. It should be app.server.$username.properties. So if you go to the cmd prompt, type: "set", one of the fields will say "USERNAME=blahblah". So you'd do app.server.blahblah.properties

2) If #1 doesn't help, would you copy/paste the entire app.server.$username.properties contents here?

Thanks,
Ivan
Dave Willis
RE: Build Fails During Deploy
March 15, 2010 2:28 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

Yeah, my files are already named appropriately. Here's the contents of my app.server file:

 1    app.server.type=tomcat
 2
 3##
 4## Tomcat
 5##
 6
 7    app.server.tomcat.version=6.0
 8    app.server.tomcat.dir=C:\Users\mbagnall\Documents\Eclipse\tomcat-6.0.18
 9    app.server.tomcat.bin.dir=${app.server.tomcat.dir}\bin
10    app.server.tomcat.classes.global.dir=${app.server.tomcat.dir}\lib
11    app.server.tomcat.classes.portal.dir=${app.server.tomcat.portal.dir}\WEB-INF\classes
12    app.server.tomcat.deploy.dir=${app.server.tomcat.dir}\webapps
13    app.server.tomcat.lib.endorsed.dir=${app.server.tomcat.dir}\lib\ext
14    app.server.tomcat.lib.global.dir=${app.server.tomcat.dir}\lib\ext
15    app.server.tomcat.lib.portal.dir=${app.server.tomcat.portal.dir}\WEB-INF\lib
16    app.server.tomcat.lib.support.dir=${app.server.tomcat.dir}\lib\ext
17    app.server.tomcat.portal.context=ROOT
18    app.server.tomcat.portal.dir=${app.server.tomcat.deploy.dir}\${app.server.tomcat.portal.context}
19    app.server.tomcat.log.dir=${app.server.tomcat.dir}\logs
20    app.server.tomcat.temp.dir=${app.server.tomcat.dir}\temp
21    app.server.tomcat.work.dir=${app.server.tomcat.dir}\work
22    app.server.tomcat.zip.name=liferay-portal-tomcat-6.0-${downloads.version}.zip
23    app.server.tomcat.zip.url=${sourceforge.mirror}\${app.server.tomcat.zip.name}

Please note that while the user directory is mbagnall my user name is actually dave. This is because I inherited this machine and renamed the primary user account to my name. So mbagnall is the correct directory structure but dave is the correct user name and thus the configuration files are app.server.dave.properties and build.dave.properties.
Ivan Cheung
RE: Build Fails During Deploy
March 15, 2010 1:36 PM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

User forward slashes.

C:/Users/mbagnall/Documents/Eclipse/tomcat-6.0.18
Dave Willis
RE: Build Fails During Deploy
March 15, 2010 2:25 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

No change. I'm still getting the same error message. Are you sure they're supposed to be forward slashes though? Windows file systems use backslashes for paths.
Ivan Cheung
RE: Build Fails During Deploy
March 15, 2010 3:04 PM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

Forward slashes are the default in the default app.server.properties and will work in Windows OS. I'm not sure why you changed everything to all backward slashes. I've had problems before using backward slashes. Usually I would just do this in my app.server.icheung.properties, since I'm not overriding any other config:

app.server.type=tomcat
C:/Users/mbagnall/Documents/Eclipse/tomcat-6.0.18
Dave Willis
RE: Build Fails During Deploy
March 15, 2010 3:13 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

I was using all forward slashes on OS X because that's how UNIX file systems work and now that I'm switching to Windows I just assumed that I would need to change all that to backslashes. I'll be sure to always use forward slashes from now on. I've tried it with forward and backslashes though and I still have the same problem.
Ivan Cheung
RE: Build Fails During Deploy
March 15, 2010 3:18 PM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

What version of Liferay are you setting up development environment for?
Dave Willis
RE: Build Fails During Deploy
March 16, 2010 7:09 AM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

5.2.5 EE
Ivan Cheung
RE: Build Fails During Deploy
March 16, 2010 7:58 AM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

Dave Willis:
5.2.5 EE


Every EE version has a prebuilt ext environment that you should download from the Customer Portal. The EE source itself was designed to be not buildable.
Dave Willis
RE: Build Fails During Deploy
March 16, 2010 8:47 AM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

I'm trying to deploy a portlet though, not ext.
Ivan Cheung
RE: Build Fails During Deploy
March 16, 2010 9:17 AM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

Oh, yes. Let me do quick test deploying a simple portlet with Plugins SDK 5.2.5 EE version.
Ivan Cheung
RE: Build Fails During Deploy
March 16, 2010 10:49 AM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

Here's my environment:
Windows OS
Tomcat 6 + Liferay 5.2.5 bundle
Plugins SDK 5.2.5

My successful build and deployment test:
(app.server.$$$$.properties is not involved at all for Plugins SDK.)
1. setup $PLUGINS_SDK_HOME/build.$username.properties to know the location of my tomcat
2. contents of build.$username.properties:
1    app.server.dir=E:/projects/temp/liferay-portal-5.2-ee-sp1/tomcat-6.0.18

3. browse to $PLUGINS_SDK_HOME/portlets/ in cmd prompt
4. execute: create test "test"
(this creates a sample jsp portlet)
5. browse to $PLUGINS_SDK_HOME/portlets/test-portlet
6. execute: ant deploy

If I use backward slashes for build.$username.properties i get:

BUILD FAILED
E:\projects\temp\liferay-portal-5.2-ee-sp1\plugins\build-common-plugin.xml:128:
E:\projects\temp\liferay-portal-5.2-ee-sp1\plugins\portlets\test-portlet\project
s empliferay-portal-5.2-ee-sp1 omcat-6.0.18\webapps\ROOT\WEB-INF\lib no
t found.
Dave Willis
RE: Build Fails During Deploy
March 16, 2010 1:17 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

That was the missing piece. I didn't even have a build.dave.properties file in the plugins directory. I created one and gave it the appropriate info and now my projects are building like they should. Thanks! I really appreciate your help.
Dave Willis
RE: Build Fails During Deploy
March 16, 2010 4:10 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

My only remaining question is about the package paths in Eclipse. It doesn't see classes in ext. When I build it, everything seems to be working fine (although I haven't deployed a portlet to the server yet because it's been down for this upgrade but it looks like it's working properly) but when I'm actually coding Eclipse says a lot of things can't be resolved to a type. Any idea why? Thanks!
Wilson Man
RE: Build Fails During Deploy
March 16, 2010 4:27 PM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 580

Join Date: June 21, 2006

Recent Posts

for the "Java Build Path" under your EXT project, add all the necessary JAR files under the "libraries" tab, and "ext/ext-impl/src" + "ext/ext-service/src" under the source tab.
Dave Willis
RE: Build Fails During Deploy
March 17, 2010 10:30 AM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

I see. I didn't have those directories on my sources tab. I couldn't add them though; I had to link them. I didn't have to do that before but it seems to be working now. Thanks!
Wilson Man
RE: Build Fails During Deploy
March 17, 2010 10:49 AM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 580

Join Date: June 21, 2006

Recent Posts

hmm, that's odd, I'm able to use the Add Folder button ...

how did you setup your project when you add new "Java Project" to eclipse?

For me, I choose "Create project from existing source", then I proceed to specify the EXT home directory ...
Mark Hensler
RE: Build Fails During Deploy
March 17, 2010 1:16 PM
Answer

Mark Hensler

Rank: New Member

Posts: 4

Join Date: February 18, 2010

Recent Posts

Ivan Cheung:
Every EE version has a prebuilt ext environment that you should download from the Customer Portal. The EE source itself was designed to be not buildable.

Why is it designed to be not buildable?
Ivan Cheung
RE: Build Fails During Deploy
March 17, 2010 3:29 PM
Answer

Ivan Cheung

LIFERAY STAFF

Rank: Regular Member

Posts: 113

Join Date: June 20, 2006

Recent Posts

There is really no reason to build the Enterprise Edition source. Any bug fixes would be merged and officially supported into the EE source in the form of Service Packs. EXT is prebuilt for you. Any dependencies are included in a separate archive.

The only reason to touch the source in Community Edition is if you are applying your own bug fixes. Any custom development is never recommended to be done in source anyways, but instead should be accomplished by way of EXTension and Plugins SDK environments.

Modifying and building the source would risk hindering the upgrade process.