Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
Ekta Vegad
Error while deploying ext-portlet
August 14, 2012 1:56 AM
Answer

Ekta Vegad

Rank: New Member

Posts: 10

Join Date: August 5, 2012

Recent Posts

Hi,
I got error while i deploying ext of user management


Buildfile: C:\Auto_zone\Environment\solutions-sdk\ext\extending-user-management-ext\build.xml
compile:
compile-with-global-class-loader:
compile-java:
compile-with-global-class-loader:
compile-java:
compile-with-global-class-loader:
compile-java:
compile-with-portal-class-loader:
compile-java:
compile-with-portal-class-loader:
compile-java:
war:

BUILD FAILED
C:\Auto_zone\Environment\solutions-sdk\ext\build-common-ext.xml:275: C:\Auto_zone\Environment\solutions-sdk\ext\extending-user-management-ext\docroot\WEB-INF\ext-service\ext-service.jar is read-only.

Total time: 1 second



What sould I needs to do for deploy it properly?
Subhash Pavuskar
RE: Error while deploying ext-portlet
August 14, 2012 5:19 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

Hi

You have directory "docroot\WEB-INF\ext-web\docroot\WEB-INF\lib" you have to delete this dir and put your jar in the directory "docroot\WEB-INF\ext-lib\portal"

If you have jars in this folder "docroot\WEB-INF\ext-web\docroot\WEB-INF\lib" put them in "docroot\WEB-INF\ext-lib\portal" otherwise only delete the folder "docroot\WEB-INF\ext-web\docroot\WEB-INF\lib"
David H Nebinger
RE: Error while deploying ext-portlet
August 14, 2012 5:41 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6739

Join Date: September 1, 2006

Recent Posts

Ekta Vegad:
C:\Auto_zone\Environment\solutions-sdk\ext\build-common-ext.xml:275: C:\Auto_zone\Environment\solutions-sdk\ext\extending-user-management-ext\docroot\WEB-INF\ext-service\ext-service.jar is read-only.


If I had to guess, I'd say that you checked this project out of your source code repository and the default was to check things out in read-only.

The short term resolution is to change the flag on the file (probably more than just this one) to read-write, then build again.

The long term solution is to figure out how the file was marked as read-only (if checkout scenario I gave, then you'd have to check it out w/ lock for updating).