Liferay6.1GA2 Build Failed Solution

Hi got build-failed when i am setup Liferay6.1GA2 portal form source.
I am using Liferay1.6 IDE and EclipseZeno.
when i run build compile form Eclipse Ant view build was failed.

Due to following compile error.

Compile error was raised in
com.liferay.portal.module.framework.ModuleFrameworkUtil at line number
at 535
frameworkStartLevel.setStartLevel(
                  PropsValues.MODULE_FRAMEWORK_RUNTIME_START_LEVEL,
                  (FrameworkListener)null);
      }

At 600
frameworkStartLevel.setStartLevel(
                  PropsValues.MODULE_FRAMEWORK_BEGINNING_START_LEVEL,
                  (FrameworkListener)null);
      }

The above methods expecting int, FrameworkListener[] array but arugment are int, FrameworkListener object.
That why we are getting error
Modified code;

Solutions:


At 535
frameworkStartLevel.setStartLevel(
            PropsValues.MODULE_FRAMEWORK_RUNTIME_START_LEVEL,
            (FrameworkListener[])null);
    }
At 600
frameworkStartLevel.setStartLevel(
            PropsValues.MODULE_FRAMEWORK_BEGINNING_START_LEVEL,
            (FrameworkListener[])null);
    }




Share on Google Plus

About Meera Prince

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment