Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Pawan Tipre
problem while deployinig portlet
August 18, 2012 7:19 PM
Answer

Pawan Tipre

Rank: New Member

Posts: 4

Join Date: August 18, 2012

Recent Posts

Hi friends,
When I try to deploy my portlet i got an error in console as"Task cannot continue because ECJ is not installed.ECJ was automatically installed. Please rerun your task."after that I rerun but getting the sameone...if anyone knows any solution on it.
Mayur Patel
RE: problem while deployinig portlet
August 18, 2012 9:51 PM
Answer

Mayur Patel

Rank: Expert

Posts: 349

Join Date: November 17, 2010

Recent Posts

You simply need to put the ecj.jar file into the lib directory of the Ant plugin directory in your Eclipse install

1. Go to Window> Preferences> Ant> Runtime > Classpath
2. Add External jar (ex : E:\liferayliferay-plugins-sdk-6.1.0-ce-ga1-20120106155615760\lib\ecj.jar) , i.e. ecj.jar located under your plugin sdk folder.
3. Now Re-run the build script

Refer below links for more details,

http://liferay-blogging.blogspot.in/2011/05/if-you-ever-encounter-this-while.html
http://www.liferay.com/community/wiki/-/wiki/Main/ECJ

Thanks.
Pawan Tipre
RE: problem while deployinig portlet
August 19, 2012 1:29 AM
Answer

Pawan Tipre

Rank: New Member

Posts: 4

Join Date: August 18, 2012

Recent Posts

Thanks Mayur it works...
Mayur Patel
RE: problem while deployinig portlet
August 19, 2012 4:43 AM
Answer

Mayur Patel

Rank: Expert

Posts: 349

Join Date: November 17, 2010

Recent Posts

Great emoticon Happy Learning !!!
Mazhar Alam
RE: problem while deployinig portlet
September 12, 2012 9:40 PM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 201

Join Date: November 25, 2011

Recent Posts

Hi mayur am still getting this error after following your steps..

BUILD FAILED
C:\Liferay\liferay-plugins-sdk-6.1.0-ce-ga1-20120106155615760\build-common-plugin.xml:314: C:\Liferay\bundles\tomcat-7.0.23\webapps\ROOT\WEB-INF\lib not found.
Pankaj Kathiriya
RE: problem while deployinig portlet
September 12, 2012 10:58 PM
Answer

Pankaj Kathiriya

Rank: Liferay Master

Posts: 697

Join Date: August 4, 2010

Recent Posts

Hi Majhar,
Have you configured correct properties for server path and deploy path in build.username.properties file?
Please Check.

Thanks,
Pankaj
Mazhar Alam
RE: problem while deployinig portlet
September 13, 2012 3:06 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 201

Join Date: November 25, 2011

Recent Posts

yes i have configured the correct path to the server properties..

# Managed by Liferay IDE (remove this comment to prevent future updates)

app.server.type = tomcat
app.server.dir = C:\\Development\\Liferay\\liferay-portal-tomcat\\tomcat-6.0.29
app.server.deploy.dir = C:\\Development\\Liferay\\liferay-portal-tomcat\\tomcat-6.0.29\\webapps
app.server.lib.global.dir = C:\\Development\\Liferay\\liferay-portal-tomcat\\tomcat-6.0.29\\lib\\ext
app.server.portal.dir = C:\\Development\\Liferay\\liferay-portal-tomcat\\tomcat-6.0.29\\webapps\\ROOT




#
# Specify the paths to an unzipped Jetty bundle.
#
#app.server.type=jetty
#app.server.dir=${project.dir}/../bundles/jetty-6.1.23
#app.server.deploy.dir=${app.server.dir}/webapps
#app.server.lib.global.dir=${app.server.dir}/lib/liferay
#app.server.portal.dir=${app.server.dir}/webapps/root

#
# Specify the paths to an unzipped JOnAS bundle.
#
#app.server.type=jonas
#app.server.dir=${project.dir}/../bundles/jonas-5.1.1
#app.server.deploy.dir=${app.server.dir}/deploy
#app.server.lib.global.dir=${app.server.dir}/lib/ext
#app.server.portal.dir=${app.server.dir}/deploy/liferay-portal.war

#
# Specify the paths to an unzipped Resin bundle.
#
#app.server.type=resin
#app.server.dir=${project.dir}/../bundles/resin-3.1.9
#app.server.deploy.dir=${app.server.dir}/webapps
#app.server.lib.global.dir=${app.server.dir}/ext-lib
#app.server.portal.dir=${app.server.dir}/webapps/ROOT

#
# Specify the paths to an unzipped Tomcat bundle.
#
#app.server.type=tomcat
#app.server.dir=${project.dir}/../bundles/tomcat-6.0.29
#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
##

#
# Plugins will be deployed to this directory. Make sure that Liferay is
# also set to scan this directory.
#
auto.deploy.dir = ${app.server.dir}/../deploy

##
## 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.fork = true
javac.memoryMaximumSize = 256m
javac.nowarn = on

##
## Database
##

#
# Set the database name used by the SQL scripts.
#
database.name = lportal

#
# Set the database server types to build SQL scripts for.
#
database.types = db2,derby,firebird,hypersonic,informix,ingres,interbase,jdatastore,mysql,oracle,postgresql,sap,sqlserver,sybase
#database.types=mysql

##
## Extension Environment
##

#ext.work.dir=

##
## 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
##

#
# Set the excludes and includes attributes. These attributes are read when
# you run "ant" from the layouttpl, portlets, or themes directory. By
# default, the ant task will go through every subdirectory. Setting these
# attributes can limit it to just the plugins you're working on.
#
plugins.excludes =
plugins.includes = *

##
## SVN
##

svn.enabled = false

##
## Version
##

#
# Set the version of Liferay Portal that these plugins are designed for.
#
lp.version = 6.0.6