Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Lifray 7.2.1 ga2 service required unavailable
Hi All,
I facing issue when i am create new service and deployed into staging server but in my local(my local not upgraded directly using 7.2.1) it's working fine.
my staging server upgraded from liferay 7.0 to 7.2.1 ga2 and all 7.0 upgraded services working fine with out any issue only newly created service i am facing issue. it's not creating the tables in database.
deployment wise it's deployed with out any issue and it's shwoing as Active but not found record in release_ table
any one faced same type of issue Please let me know.
wheni run the dm na in gogo shell i am getting below error
[1125] test.serice.service [59] com.liferay.portal.spring.extender.internal.configuration.ServiceConfigurationInitializer unregistered com.liferay.portal.kernel.model.Release (&(release.bundle.symbolic.name=test.serice.service)(&(release.schema.version>=1.0.0)(!(release.schema.version>=2.0.0)))(|(!(release.state=*))(release.state=0))) service required unavailable
scr:info 5274
Output
Component Description: test.serice.service.persistence.impl.FooPersistenceImpl
==============================================================================
Class: test.serice.service.persistence.impl.FooPersistenceImpl
Bundle: 1131 (test.serice.service:1.0.0)
Enabled: true
Immediate: false
Services: [test.serice.service.persistence.FooPersistence]
Scope: singleton
Config PID(s): [test.serice.service.persistence.impl.FooPersistenceImpl], Policy: optional
Base Props: (3 entries)
Configuration.target = (&(origin.bundle.symbolic.name=test.serice.service)(name=service))
DataSource.target = (origin.bundle.symbolic.name=test.serice.service)
SessionFactory.target = (origin.bundle.symbolic.name=test.serice.service)
Component Configuration Id: 5274
--------------------------------
State: UNSATISFIED REFERENCE
Config Props: (5 entries)
Configuration.target = (&(origin.bundle.symbolic.name=test.serice.service)(name=service))
DataSource.target = (origin.bundle.symbolic.name=test.serice.service)
SessionFactory.target = (origin.bundle.symbolic.name=test.serice.service)
component.id = 5274
component.name = test.serice.service.persistence.impl.FooPersistenceImpl
References: (total 5)
- Configuration: com.liferay.portal.kernel.configuration.Configuration UNSATISFIED 1..1 static
target=(&(origin.bundle.symbolic.name=test.serice.service)(name=service)) scope=bundle
- DataSource: javax.sql.DataSource SATISFIED 1..1 static
target=(origin.bundle.symbolic.name=test.serice.service) scope=bundle (no active bindings)
- SessionFactory: com.liferay.portal.kernel.dao.orm.SessionFactory SATISFIED 1..1 static
target=(origin.bundle.symbolic.name=test.serice.service) scope=bundle (no active bindings)
- entityCache: com.liferay.portal.kernel.dao.orm.EntityCache SATISFIED 1..1 static
target=(*) scope=bundle (no active bindings)
- finderCache: com.liferay.portal.kernel.dao.orm.FinderCache SATISFIED 1..1 static
target=(*) scope=bundle (no active bindings)
and in logfile i am getting below message.
WARN [Spring Extender Unavailable Component Scanner][UnavailableComponentScanner:101] _Bundle {id: 1125, name: test.serice.service, version: 1.0.0}._ Component with ID 59 is unavailable due to missing required dependencies:_ service dependency [com.liferay.portal.kernel.model.Release (&(release.bundle.symbolic.name=test.serice.service)(&(release.schema.version>=1.0.0)(!(release.schema.version>=2.0.0)))(|(!(release.state=*))(release.state=0)))]_Bundle {id: 1124, name: com.wsp.csic.submittal.service.service, version: 1.0.0}._ Component with ID 57 is unavailable due to missing required dependencies:_ service dependency [com.liferay.portal.kernel.model.Release (&(release.bundle.symbolic.name=com.wsp.csic.submittal.service.service)(&(release.schema.version>=1.0.0)(!(release.schema.version>=2.0.0)))(|(!(release.state=*))(release.state=0)))] [Sanitized]
my service.xml looks below:
<?xml version="1.0"?>
<!DOCTYPE
service-builder PUBLIC "-//Liferay//DTD Service Builder
7.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_2_0.dtd">
<service-builder dependency-injector="ds"
package-path="test.serice">
<namespace>test</namespace>
<entity
local-service="true" name="Foo"
remote-service="false" >
<!-- PK fields -->
<column name="fooId" primary="true" type="long" />
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId"
type="long" />
<column
name="userId" type="long" />
<column name="userName" type="String"
/>
<column name="createDate"
type="Date" />
<column
name="modifiedDate" type="Date" />
<!-- Other fields -->
<column name="field1"
type="String" />
<column
name="field2" type="boolean" />
<column name="field3" type="int"
/>
<column name="field4"
type="Date" />
<column
name="field5" type="String" />
<!-- Order -->
<order by="asc">
<order-column name="field1" />
</order>
<!-- Finder methods -->
<finder name="Field2"
return-type="Collection">
<finder-column name="field2" />
</finder>
<!-- References -->
<reference entity="AssetEntry"
package-path="com.liferay.portlet.asset" />
<reference entity="AssetTag"
package-path="com.liferay.portlet.asset" />
</entity>
</service-builder>
Thanks,
Srini
Hi all,
Any update on above issue?