Friday, September 28, 2012

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);
    }




Popular Posts

Recent Posts

Recent Posts Widget