Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
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
Jsoup deployment error
when I start the module in gogo shell telnet localhost window
start 516
org.osgi.framework.BundleException: could not resolve module: liferaymodule[516]
Unresolved requirement: Import-package: org.jsoup; version="[1.10.0,2.0.0)"
build.gradle
bnd.bnd
When deployed using gradle:
Console:
Working Directory: H:\Liferay eclipse\workspace\LiferayWork
Gradle User Home: C:\Users\HOME\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 2.14.1
Java Home: C:\Program Files\Java\jdk1.8.0_51
JVM Arguments: None
Program Arguments: None
Gradle Tasks: :modules:LiferayModule:deploy
:modules:LakeService:LakeService-api:compileJava UP-TO-DATE
:modules:LakeService:LakeService-api:buildCSS UP-TO-DATE
:modules:LakeService:LakeService-api:processResources UP-TO-DATE
:modules:LakeService:LakeService-api:transpileJS SKIPPED
:modules:LakeService:LakeService-api:configJSModules SKIPPED
:modules:LakeService:LakeService-api:classes UP-TO-DATE
:modules:LakeService:LakeService-api:jar
[aQute.bnd.annotation.ProviderType annotation used in class com.lake.model.lakesModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.liferay.portal.kernel.model.BaseModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.lake.model.lakes. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.lake.service.lakesLocalService. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations.]
:modules:LakeService:LakeService-api:jar UP-TO-DATE
:modules:RiverService:RiverService-api:compileJava UP-TO-DATE
:modules:RiverService:RiverService-api:buildCSS UP-TO-DATE
:modules:RiverService:RiverService-api:processResources UP-TO-DATE
:modules:RiverService:RiverService-api:transpileJS SKIPPED
:modules:RiverService:RiverService-api:configJSModules SKIPPED
:modules:RiverService:RiverService-api:classes UP-TO-DATE
:modules:RiverService:RiverService-api:jar
[aQute.bnd.annotation.ProviderType annotation used in class com.river.model.riversModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.liferay.portal.kernel.model.BaseModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.river.model.rivers. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.river.service.riversLocalService. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations.]
:modules:RiverService:RiverService-api:jar UP-TO-DATE
:modules:LiferayModule:compileJava UP-TO-DATE
:modules:LiferayModule:buildCSS UP-TO-DATE
:modules:LiferayModule:processResources UP-TO-DATE
:modules:LiferayModule:transpileJS SKIPPED
:modules:LiferayModule:configJSModules SKIPPED
:modules:LiferayModule:classes UP-TO-DATE
:modules:LiferayModule:jar
:modules:LiferayModule:deploy
BUILD SUCCESSFUL
Total time: 1.165 secs
But when deployed:
On portal
com_demo_portlet_DemoPortlet_INSTANCE_TzP4HXxZoz5L
This portlet has been undeployed. Please redeploy it or remove it from the page.
I have a workspace
One module : mvc portlet
Two services connected to mysql database
It worked perfectly before but when I added jsoup and used it never got deployed. In gogo shell this error ocurred when started.
start 516
org.osgi.framework.BundleException: could not resolve module: liferaymodule[516]
Unresolved requirement: Import-package: org.jsoup; version="[1.10.0,2.0.0)"
build.gradle
dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
compileOnly group: "javax.servlet", name: "servlet-api", version: "2.5"
compileOnly group: "jstl", name: "jstl", version: "1.2"
compileOnly group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
compile project(":modules:RiverService:RiverService-api")
compile project(":modules:LakeService:LakeService-api")
compile group: 'org.jsoup', name: 'jsoup', version: '1.10.3'
}
bnd.bnd
Bundle-SymbolicName: liferaymodule
Bundle-Version: 1.0.0
When deployed using gradle:
Console:
Working Directory: H:\Liferay eclipse\workspace\LiferayWork
Gradle User Home: C:\Users\HOME\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 2.14.1
Java Home: C:\Program Files\Java\jdk1.8.0_51
JVM Arguments: None
Program Arguments: None
Gradle Tasks: :modules:LiferayModule:deploy
:modules:LakeService:LakeService-api:compileJava UP-TO-DATE
:modules:LakeService:LakeService-api:buildCSS UP-TO-DATE
:modules:LakeService:LakeService-api:processResources UP-TO-DATE
:modules:LakeService:LakeService-api:transpileJS SKIPPED
:modules:LakeService:LakeService-api:configJSModules SKIPPED
:modules:LakeService:LakeService-api:classes UP-TO-DATE
:modules:LakeService:LakeService-api:jar
[aQute.bnd.annotation.ProviderType annotation used in class com.lake.model.lakesModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.liferay.portal.kernel.model.BaseModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.lake.model.lakes. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.lake.service.lakesLocalService. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations.]
:modules:LakeService:LakeService-api:jar UP-TO-DATE
:modules:RiverService:RiverService-api:compileJava UP-TO-DATE
:modules:RiverService:RiverService-api:buildCSS UP-TO-DATE
:modules:RiverService:RiverService-api:processResources UP-TO-DATE
:modules:RiverService:RiverService-api:transpileJS SKIPPED
:modules:RiverService:RiverService-api:configJSModules SKIPPED
:modules:RiverService:RiverService-api:classes UP-TO-DATE
:modules:RiverService:RiverService-api:jar
[aQute.bnd.annotation.ProviderType annotation used in class com.river.model.riversModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.liferay.portal.kernel.model.BaseModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.river.model.rivers. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.river.service.riversLocalService. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations.]
:modules:RiverService:RiverService-api:jar UP-TO-DATE
:modules:LiferayModule:compileJava UP-TO-DATE
:modules:LiferayModule:buildCSS UP-TO-DATE
:modules:LiferayModule:processResources UP-TO-DATE
:modules:LiferayModule:transpileJS SKIPPED
:modules:LiferayModule:configJSModules SKIPPED
:modules:LiferayModule:classes UP-TO-DATE
:modules:LiferayModule:jar
:modules:LiferayModule:deploy
BUILD SUCCESSFUL
Total time: 1.165 secs
But when deployed:
On portal
com_demo_portlet_DemoPortlet_INSTANCE_TzP4HXxZoz5L
This portlet has been undeployed. Please redeploy it or remove it from the page.
I have a workspace
One module : mvc portlet
Two services connected to mysql database
It worked perfectly before but when I added jsoup and used it never got deployed. In gogo shell this error ocurred when started.
Christoph Rabel, modified 8 Years ago.
RE: Jsoup deployment error
(Answer)
Liferay Legend
Posts: 1555
Join Date: 9/24/09
Recent Posts
Gradle provides the dependencies only for compiling, you need to provide the dependencies at runtime. There are several ways to do that, the simplest is to deploy the jsoup.jar file (copy it to the deploy folder).
compileInclude should also work:
dependencies {
compileInclude group: 'org.jsoup', name: 'jsoup', version: '1.10.3'
}
compileInclude should also work:
dependencies {
compileInclude group: 'org.jsoup', name: 'jsoup', version: '1.10.3'
}
Christoph Rabel:
Gradle provides the dependencies only for compiling, you need to provide the dependencies at runtime. There are several ways to do that, the simplest is to deploy the jsoup.jar file (copy it to the deploy folder).
compileInclude should also work:
dependencies {
compileInclude group: 'org.jsoup', name: 'jsoup', version: '1.10.3'
}
Tried it but Build failed.
Compile Result:
Working Directory: H:\Liferay eclipse\workspace\LiferayWork
Gradle User Home: C:\Users\HOME\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 2.14.1
Java Home: C:\Program Files\Java\jdk1.8.0_51
JVM Arguments: None
Program Arguments: None
Gradle Tasks: :modules:LiferayModule:build
FAILURE: Build failed with an exception.
* Where:
Build file 'H:\Liferay eclipse\workspace\LiferayWork\modules\LiferayModule\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating project ':modules:LiferayModule'.
> Could not find method compileInclude() for arguments [{group=org.jsoup, name=jsoup, version=1.10.3}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Ayush gupta, modified 8 Years ago.
RE: Jsoup deployment error
(Answer)
New Member
Posts: 3
Join Date: 7/23/17
Recent Posts
Although the compileinclude didn't work but copying the jar in deploy directory worked.
Thanks for your valuable response.
Thanks for your valuable response.
Community
Company
Feedback