“命令起始域失败”。因为缺少要求[46.0] osgi.wiring.package`

时间:2019-03-01 20:08:19

标签: java java-ee glassfish java-ee-8

使用EE8 SDK下载。

asadmin start-domain domain1产生

C:\Program Files\Java\glassfish5\bin>asadmin start-domain domain1
Waiting for domain1 to start ....Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:

Launching GlassFish on Felix platform
ERROR: Error reloading cached bundle, removing it: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle119 (java.io.FileNotFoundException: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle119\bundle.location (The system cannot find the file specified))
ERROR: Error reloading cached bundle, removing it: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle244 (java.io.FileNotFoundException: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle244\bundle.location (The system cannot find the file specified))
ERROR: Error reloading cached bundle, removing it: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle246 (java.io.FileNotFoundException: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle246\bundle.location (The system cannot find the file specified))
ERROR: Bundle org.glassfish.hk2.config-types [46] Error starting file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/config-types.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.hk2.config-types [46]: Unable to resolve 46.0: missing requirement [46.0] osgi.wiring.package; (&(osgi.wiring.package=org.glassfish.hk2.api)(version>=2.5.0)(!(version>=3.0.0))))
ERROR: Bundle org.glassfish.main.core.glassfish [109] Error starting file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/glassfish.jar (org.osgi.framework.BundleException: Activator start error in bundle org.glassfish.main.core.glassfish [109].)
ERROR: Bundle org.glassfish.hk2.config [120] Error starting file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/hk2-config.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.hk2.config [120]: Unable to resolve 120.0: missing requirement [120.0] osgi.wiring.package; (&(osgi.wiring.package=org.glassfish.hk2.api)(version>=2.5.0)(!(version>=3.0.0))))
ERROR: Bundle org.glassfish.hk2.core [121] Error starting file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/hk2-api.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.hk2.core [121]: Unable to resolve 121.0: missing requirement [121.0] osgi.wiring.package; (&(osgi.wiring.package=org.glassfish.hk2.api)(version>=2.5.0)(!(version>=3.0.0))))
ERROR: Bundle org.glassfish.hk2.locator [124] Error starting file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/hk2-locator.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.hk2.locator [124]: Unable to resolve 124.0: missing requirement [124.0] osgi.wiring.package; (&(osgi.wiring.package=org.glassfish.hk2.api)(version>=2.5.0)(!(version>=3.0.0))))
ERROR: Bundle org.glassfish.hk2.osgi-adapter [238] Error starting file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/osgi-adapter.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.hk2.osgi-adapter [238]: Unable to resolve 238.0: missing requirement [238.0] osgi.wiring.package; (&(osgi.wiring.package=com.sun.enterprise.module)(version>=2.5.0)(!(version>=3.0.0))) [caused by: Unable to resolve 121.0: missing requirement [121.0] osgi.wiring.package; (&(osgi.wiring.package=org.glassfish.hk2.api)(version>=2.5.0)(!(version>=3.0.0)))])
java.io.FileNotFoundException: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle119\bundle.location (The system cannot find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.apache.felix.framework.util.SecureAction.getFileInputStream(SecureAction.java:452)
        at org.apache.felix.framework.cache.BundleArchive.readLocation(BundleArchive.java:1106)
        at org.apache.felix.framework.cache.BundleArchive.readBundleInfo(BundleArchive.java:973)
        at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:182)
        at org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:247)
        at org.apache.felix.framework.Felix.init(Felix.java:705)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.run(OSGiFrameworkLauncher.java:88)
java.io.FileNotFoundException: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle244\bundle.location (The system cannot find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.apache.felix.framework.util.SecureAction.getFileInputStream(SecureAction.java:452)
        at org.apache.felix.framework.cache.BundleArchive.readLocation(BundleArchive.java:1106)
        at org.apache.felix.framework.cache.BundleArchive.readBundleInfo(BundleArchive.java:973)
        at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:182)
        at org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:247)
        at org.apache.felix.framework.Felix.init(Felix.java:705)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.run(OSGiFrameworkLauncher.java:88)
java.io.FileNotFoundException: C:\Program Files\Java\glassfish5\glassfish\domains\domain1\osgi-cache\felix\bundle246\bundle.location (The system cannot find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.apache.felix.framework.util.SecureAction.getFileInputStream(SecureAction.java:452)
        at org.apache.felix.framework.cache.BundleArchive.readLocation(BundleArchive.java:1106)
        at org.apache.felix.framework.cache.BundleArchive.readBundleInfo(BundleArchive.java:973)
        at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:182)
        at org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:247)
        at org.apache.felix.framework.Felix.init(Felix.java:705)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.run(OSGiFrameworkLauncher.java:88)
Mar 01, 2019 8:44:54 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Mar 01, 2019 8:44:55 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/hk2-core.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.glassfish.hk2.core:2.5.0.b44
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:444)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:204)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
        at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)

Mar 01, 2019 8:44:55 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/hk2.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.glassfish.hk2.hk2:2.5.0.b44
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:444)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:204)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
        at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)

Mar 01, 2019 8:44:55 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/jackson-annotations.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: com.fasterxml.jackson.core.jackson-annotations:2.8.9
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:444)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:204)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
        at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)

Mar 01, 2019 8:44:55 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/javax.enterprise.deploy-api.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: javax.enterprise.deploy-api:1.6.0
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:444)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:204)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
        at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)

Mar 01, 2019 8:44:55 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/management-api.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.glassfish.external.management-api:3.2.1.b002
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:444)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:204)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
        at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)

Mar 01, 2019 8:44:55 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/org.eclipse.persistence.moxy.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.eclipse.persistence.moxy:2.7.0.v20170811-d680af5
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:444)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:204)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
        at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)

Mar 01, 2019 8:44:55 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/pfl-basic-tools.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.glassfish.pfl.pfl-basic-tools:4.0.1.b001
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1233)
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2899)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:444)
        at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:204)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
        at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
        at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)

Mar 01, 2019 8:44:56 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/C:/Program%20Files/Java/glassfish5/glassfish/modules/pfl-tf-tools.jar.
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.glassfish.pfl.pfl-tf-tools:4.0.1.b001
        [...]

Command start-domain failed.

那是为什么?如何让玻璃鱼运行?

0 个答案:

没有答案