Can not load bundle with java 11 #19
NgocThanhLuong
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
D:\springboot-osgi-sample>java -jar core/target/core-0.0.1-SNAPSHOT.jar
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v2.6.2)
2023-09-18 12:19:43.371 INFO 9428 --- [ main] com.mornati.sample.SampleApplication : Starting SampleApplication v0.0.1-SNAPSHOT using Java 11.0.19 on Laptop with PID 9428 (D:\springboot-osgi-sample\core\target\core-0.0.1-SNAPSHOT.jar started by Administrator in D:\springboot-osgi-sample)
2023-09-18 12:19:43.373 INFO 9428 --- [ main] com.mornati.sample.SampleApplication : No active profile set, falling back to default profiles: default
2023-09-18 12:19:44.113 INFO 9428 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-09-18 12:19:44.123 INFO 9428 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-09-18 12:19:44.123 INFO 9428 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2023-09-18 12:19:44.161 INFO 9428 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-09-18 12:19:44.161 INFO 9428 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 746 ms
2023-09-18 12:19:44.408 INFO 9428 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2023-09-18 12:19:44.414 INFO 9428 --- [ main] com.mornati.sample.SampleApplication : Started SampleApplication in 1.328 seconds (JVM running for 1.622)
2023-09-18 12:19:44.416 INFO 9428 --- [ main] c.mornati.sample.service.PluginService : Starting Plugin OSGi service...
2023-09-18 12:19:45.025 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.apache.felix.fileinstall:3.6.8 changed state to Starting - Type: Active
2023-09-18 12:19:45.025 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.osgi.service.cm:1.5.0.201505202024 changed state to Resolved - Type: Active
2023-09-18 12:19:45.043 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.apache.felix.fileinstall:3.6.8 changed state to Active - Type: Installed
2023-09-18 12:19:45.044 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.osgi.util.function:1.1.0.201802012106 changed state to Resolved - Type: Active
2023-09-18 12:19:45.044 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.osgi.util.promise:1.1.1.201810101357 changed state to Resolved - Type: Active
2023-09-18 12:19:45.045 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.apache.felix.scr:2.1.24 changed state to Starting - Type: Active
2023-09-18 12:19:45.055 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.apache.felix.scr:2.1.24 changed state to Active - Type: Installed
2023-09-18 12:19:45.055 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.osgi.service.cm:1.5.0.201505202024 changed state to Active - Type: Installed
2023-09-18 12:19:45.055 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.osgi.util.function:1.1.0.201802012106 changed state to Active - Type: Installed
2023-09-18 12:19:45.056 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.osgi.util.promise:1.1.1.201810101357 changed state to Active - Type: Installed
2023-09-18 12:19:45.056 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle org.apache.felix.framework:7.0.3 changed state to Active - Type: Installed
2023-09-18 12:19:49.097 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle sample-bundle-scr:0.0.1.202309180518 changed state to Installed - Type: Uninstalled
2023-09-18 12:19:49.108 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle sample-bundle:0.0.1.SNAPSHOT changed state to Installed - Type: Uninstalled
2023-09-18 12:19:49.114 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle sample-bundle-scr:0.0.1.202309180518 changed state to Starting - Type: Active
2023-09-18 12:19:49.140 INFO 9428 --- [ixDispatchQueue] c.m.s.service.SpringAwareBundleListener : Bundle sample-bundle-scr:0.0.1.202309180518 changed state to Active - Type: Installed
Error while starting bundle: file:/D:/springboot-osgi-sample/plugins/sample-bundle-0.0.1-SNAPSHOT.jar: org.osgi.framework.BundleException: Unable to resolve sample-bundle [7](R 7.0): missing requirement [sample-bundle [7](R 7.0)] osgi.wiring.package; (osgi.wiring.package=com.mornati.sample.commons.plugins) Unresolved requirements: [[sample-bundle [7](R 7.0)] osgi.wiring.package; (osgi.wiring.package=com.mornati.sample.commons.plugins)]
org.osgi.framework.BundleException: Unable to resolve sample-bundle [7](R 7.0): missing requirement [sample-bundle [7](R 7.0)] osgi.wiring.package; (osgi.wiring.package=com.mornati.sample.commons.plugins) Unresolved requirements: [[sample-bundle [7](R 7.0)] osgi.wiring.package; (osgi.wiring.package=com.mornati.sample.commons.plugins)]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
Beta Was this translation helpful? Give feedback.
All reactions