Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
Dimitrios Zigkos
Problem with ServiceBuilder when migrating from CE 6.1.0 to CE 6.1.1
December 17, 2012 9:20 AM

Dimitrios Zigkos

Rank: New Member

Posts: 6

Join Date: October 19, 2012

Recent Posts

I had been using for a few months the LR CE 6.1.0 server and created a new project in Liferay IDE 1.5.
A few days ago, I tried to use Calendar portlet in order to integrate it to my existing portlets. My intention is to have the Calendar in the initial page and have some of the tiles colored (let's say) red. By pressing those tiles, the user would initiate an event resulting in a redirection to another page presenting a form. The other tiles would present just the message "There is no action planned for this day".
The problem came up when I found out that the source code I had downloaded from GitHub was intended for the newer version, 6.1.1.
So, I migrated the exited project and I created a new one from the source code in hand. My new environment is server CE 6.1.1, SDK CE 6.1.1, and Liferay IDE 1.6.1. The database remains the same: MySQL 5.5.
When I try to run the Ant target build-service, an error emerges and Service Builder stops, or just halts:

Buildfile: <SDK installation path>\liferay-plugins-sdk-6.1.1\portlets\PA-portlet\build.xml
Deleting: <SDK installation path>\liferay-plugins-sdk-6.1.1\portlets\PA-portlet\build-service-classpath.jar.manifest
Java Result: 1
java.lang.NoClassDefFoundError: com/liferay/portal/kernel/io/unsync/UnsyncStringReader
Caused by: java.lang.ClassNotFoundException:
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: Program will exit.
Exception in thread "main"

<SDK installation path>\liferay-plugins-sdk-6.1.1\build-common-plugin.xml:222: Service Builder generated exceptions.

And this is the case for both projects! Even for the one which works fine in the previous installation. When I try to access the existing portal, the new (6.1.1) server presents it perfectly. And its operation is as expected.

Please assist because I reached a dead end.

Thank you in advance.
David H Nebinger
RE: Problem with ServiceBuilder when migrating from CE 6.1.0 to CE 6.1.1
December 17, 2012 9:34 AM

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 13099

Join Date: September 1, 2006

Recent Posts

Did you update your <SDK installation path>\liferay-plugins-sdk-6.1.1\build.<username>.properties file to point at the new bundle?
Gregory Amerson
RE: Problem with ServiceBuilder when migrating from CE 6.1.0 to CE 6.1.1
December 17, 2012 8:02 PM

Gregory Amerson


Rank: Liferay Legend

Posts: 1091

Join Date: February 16, 2010

Recent Posts

I agree with David, make sure that your build.<username>properties is pointing to the new bundle before you attempt another build-service build.