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
Migrating from liferay 7.2 to 7.3
My project was working fine on liferay 7.2 but when i switch to liferay 7.3 i get this runtime error:
Here is my gradle:
thanks for any idea
2277|Active | 10|admin-theme (4.0.8)|4.0.8
2278|Active | 10|classic-theme (4.0.14)|4.0.14
2279|Installed | 1|certificate-granted-api (1.0.0)|1.0.0
2280|Installed | 1|certificate-granted-service (1.0.0)|1.0.0
2281|Installed | 1|certificate-granted-web (1.0.0)|1.0.0
g! start 2280
gogo: BundleException: Could not resolve module: com.medicine.service [2280]
Unresolved requirement: Import-Package: com.liferay.portal.kernel.model; version="[4.1.0,5.0.0)"[code]Here is my gradle:
dependencies {
compileOnly group: "com.liferay", name: "com.liferay.petra.io"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang"
compileOnly group: "com.liferay", name: "com.liferay.portal.aop.api"
compileOnly group: "com.liferay", name: "com.liferay.petra.string"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bnd.annotation", version: "3.5.0"
compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender.api"
compile group: 'com.liferay', name: 'com.liferay.petra.function' , version: '2.0.0'
compileOnly group: "javax.portlet", name: "portlet-api", version: "3.0.0"
compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
compileOnly project(":modules:certificate-granted:certificate-granted-api")
}
buildService {
apiDir = "../certificate-granted-api/src/main/java"
}
group = "com.medicine"thanks for any idea
Hi amirsnw,
Given that the first set of dependencies you have listed don't have any versions, I'm going to assume that you are leveraging the target platform setting from the gradle.properties file for the workspace. If it is still pointing to 7.2.1, then the error is probably because you're compiling with the wrong version of the kernel. THe runtime kernerl for 7.2 is 4.0.0+ but for 7.3 it would be 5.0.0+. Try updating the property value in the gradle.properties in the root of your workspace to liferay.workspace.target.platform.version=7.3.1
Given that the first set of dependencies you have listed don't have any versions, I'm going to assume that you are leveraging the target platform setting from the gradle.properties file for the workspace. If it is still pointing to 7.2.1, then the error is probably because you're compiling with the wrong version of the kernel. THe runtime kernerl for 7.2 is 4.0.0+ but for 7.3 it would be 5.0.0+. Try updating the property value in the gradle.properties in the root of your workspace to liferay.workspace.target.platform.version=7.3.1
Thanks Andrew Jardine
Yes you were right.
my problem was that i downloaded Dev Studio version 3.8.0 and liferay-ce-portal-tomcat-7.3.1-ga2.
but dev studio just allow me to create 7.3.0 workspace and this generate service builder and gradle.properties for that version.
-- I just used liferay-ce-portal-tomcat-7.3.0-ga1 instead of liferay-ce-portal-tomcat-7.3.1-ga2 and that's it.
Yes you were right.
my problem was that i downloaded Dev Studio version 3.8.0 and liferay-ce-portal-tomcat-7.3.1-ga2.
but dev studio just allow me to create 7.3.0 workspace and this generate service builder and gradle.properties for that version.
-- I just used liferay-ce-portal-tomcat-7.3.0-ga1 instead of liferay-ce-portal-tomcat-7.3.1-ga2 and that's it.
Great! glad you got it solved. GA2 is only a week or so old, there is probably a tools update coming (if not out already by now) that will account for the difference in versions shortly. I know they were a little behind with the initial 7.3 release as well, but all in due course. I've yet to encounter someone insane enough (other than myself) who tries to stay on the bleeding edge of releases ;)
Yes Andrew that is problem of version compatibility with IDE and it should be released shortly.
Since then I've retried using 7.3.1 and built gradle.properties manually for that.The odd thing was from ga1 to ga2 portal kernel has changed one version from 5.4 to 6.10, and this is too fast for a sub version!!
Another thing was when using service builder to generate code, it brought me a compile time dependency to "petra.sql" package. that is not yet in maven repository. so i found API and SPI for that and made all my modules work.
* Now i see a great bug in Liferay 7.3.1 that is very odd: every workflow task runs just three times!! It is like you just print "Hello" in groovy action on a task, and you will have it three times in console!! That was also with ga1.
So i will publish another thread shortly for that.
Since then I've retried using 7.3.1 and built gradle.properties manually for that.The odd thing was from ga1 to ga2 portal kernel has changed one version from 5.4 to 6.10, and this is too fast for a sub version!!
Another thing was when using service builder to generate code, it brought me a compile time dependency to "petra.sql" package. that is not yet in maven repository. so i found API and SPI for that and made all my modules work.
* Now i see a great bug in Liferay 7.3.1 that is very odd: every workflow task runs just three times!! It is like you just print "Hello" in groovy action on a task, and you will have it three times in console!! That was also with ga1.
So i will publish another thread shortly for that.