shuyangzhou/liferay-portal — pull request #852 by tinatian (2014-12-31 04:14:22+00:00)
Title: LPS-51899  As a developer, I would like to add equals method to ***CacheModelImplLps 51899 12 31

Hi Shuyang,

Sorry for so late about this issue. I just noticed it was sent to a wrong person.

I tried to run integration test on it, but failed. I got some osgi execptions, see below. I have modified the properties in portal-test.properties to point to my portal bundle, anything wrong here?
module.framework.base.dir=/home/documents/server/trunk-git/osgi

Thanks.
Tina.

The first part of log:

jar:
[junit] Loading jar:file:/home/trunks/liferay-portal/portal-impl/portal-impl.jar!/system.properties
[junit] Loading jar:file:/home/trunks/liferay-portal/portal-impl/portal-impl.jar!/portal.properties
[junit] Loading file:/home/trunks/liferay-portal/portal-impl/test-classes/integration/portal-test.properties
[junit] 04:12:34,127 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@51cbafa3][com_liferay_portal_portlet_tracker:75] FrameworkEvent ERROR
[junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.portal.portlet.tracker [10]_ Unresolved requirement: Import-Package: com.liferay.registry.util_ [Sanitized]
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:434)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
[junit]	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
[junit]	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:439)
[junit]	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)
[junit]	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
[junit]	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:416)
[junit]	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:98)
[junit]	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:196)
[junit]	at com.liferay.portal.test.LiferayIntegrationTestRule.(LiferayIntegrationTestRule.java:49)
[junit]	at com.liferay.counter.service.CounterLocalServiceTest.(CounterLocalServiceTest.java:56)
[junit]	at java.lang.Class.forName0(Native Method)
[junit]	at java.lang.Class.forName(Class.java:190)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:377)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1165)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:988)
[junit] 04:12:34,133 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@51cbafa3][com_liferay_polls_web:75] FrameworkEvent ERROR
[junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.polls.web [35]_ Unresolved requirement: Import-Package: org.apache.tools.ant.types_ [Sanitized]
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:434)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
[junit]	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
[junit]	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:439)
[junit]	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)
[junit]	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
[junit]	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:416)
[junit]	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:98)
[junit]	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:196)
[junit]	at com.liferay.portal.test.LiferayIntegrationTestRule.(LiferayIntegrationTestRule.java:49)
[junit]	at com.liferay.counter.service.CounterLocalServiceTest.(CounterLocalServiceTest.java:56)
[junit]	at java.lang.Class.forName0(Native Method)
[junit]	at java.lang.Class.forName(Class.java:190)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:377)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1165)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:988)
[junit] 04:12:34,133 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@51cbafa3][com_liferay_social_activities_web:75] FrameworkEvent ERROR
[junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.social.activities.web [40]_ Unresolved requirement: Import-Package: org.apache.tools.ant.types_ [Sanitized]
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:434)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
[junit]	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
[junit]	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:439)
[junit]	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)
[junit]	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
[junit]	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:416)
[junit]	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:98)
[junit]	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:196)
[junit]	at com.liferay.portal.test.LiferayIntegrationTestRule.(LiferayIntegrationTestRule.java:49)
[junit]	at com.liferay.counter.service.CounterLocalServiceTest.(CounterLocalServiceTest.java:56)
[junit]	at java.lang.Class.forName0(Native Method)
[junit]	at java.lang.Class.forName(Class.java:190)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:377)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1165)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:988)
[junit] 04:12:34,137 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@51cbafa3][com_liferay_document_selector_web:75] FrameworkEvent ERROR
[junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.document.selector.web [54]_ Unresolved requirement: Import-Package: org.apache.tools.ant.types_ [Sanitized]
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:434)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
[junit]	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
[junit]	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:439)
[junit]	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)
[junit]	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
[junit]	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:416)
[junit]	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:98)
[junit]	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:196)
[junit]	at com.liferay.portal.test.LiferayIntegrationTestRule.(LiferayIntegrationTestRule.java:49)
[junit]	at com.liferay.counter.service.CounterLocalServiceTest.(CounterLocalServiceTest.java:56)
[junit]	at java.lang.Class.forName0(Native Method)
[junit]	at java.lang.Class.forName(Class.java:190)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:377)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1165)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:988)
[junit] 04:12:34,141 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@51cbafa3][com_liferay_bookmarks_web:75] FrameworkEvent ERROR
[junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.bookmarks.web [58]_ Unresolved requirement: Import-Package: org.apache.tools.ant.types_ [Sanitized]
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:434)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
[junit]	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
[junit]	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:439)
[junit]	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)
[junit]	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
[junit]	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:416)
[junit]	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:98)
[junit]	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:196)
[junit]	at com.liferay.portal.test.LiferayIntegrationTestRule.(LiferayIntegrationTestRule.java:49)
[junit]	at com.liferay.counter.service.CounterLocalServiceTest.(CounterLocalServiceTest.java:56)
[junit]	at java.lang.Class.forName0(Native Method)
[junit]	at java.lang.Class.forName(Class.java:190)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:377)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1165)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:988)
[junit] 04:12:34,145 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@51cbafa3][com_liferay_iframe_web:75] FrameworkEvent ERROR
[junit] org.osgi.framework.BundleException: Could not resolve module: com.liferay.iframe.web [60]_ Unresolved requirement: Import-Package: org.apache.tools.ant.types_ [Sanitized]
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:434)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
[junit]	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
[junit]	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
[junit]	at org.eclipse.osgi.container.Module.doStart(Module.java:571)
[junit]	at org.eclipse.osgi.container.Module.start(Module.java:439)
[junit]	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)
[junit]	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)
[junit]	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
[junit]	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:416)
[junit]	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:98)
[junit]	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:196)
[junit]	at com.liferay.portal.test.LiferayIntegrationTestRule.(LiferayIntegrationTestRule.java:49)
[junit]	at com.liferay.counter.service.CounterLocalServiceTest.(CounterLocalServiceTest.java:56)
[junit]	at java.lang.Class.forName0(Native Method)
[junit]	at java.lang.Class.forName(Class.java:190)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:377)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1165)
[junit]	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:988)