I installed 6.2023.7 using Netbeans. Starting the server from Netbeans produces the following error list though highlighted in red is the message WARNING: Failed to install file:/home/peter/Payara_Server_6/glassfish/modules/libpam4j-repackaged.jar. I have tried installing the servere several times with the same result. What should I do?
Thank you
pww
Launching Payara Server on Felix platform
Aug 09, 2023 4:22:27 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Aug 09, 2023 4:22:28 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/home/peter/Payara_Server_6/glassfish/modules/libpam4j-repackaged.jar.
org.osgi.framework.BundleException: Unable to cache bundle: file:/home/peter/Payara_Server_6/glassfish/modules/libpam4j-repackaged.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:3258)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:448)
at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:161)
at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:114)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:136)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:121)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1752)
at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1268)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1717)
at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1444)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1407)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:756)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:873)
at java.base/java.util.zip.ZipFile.(ZipFile.java:271)
at java.base/java.util.zip.ZipFile.(ZipFile.java:200)
at java.base/java.util.zip.ZipFile.(ZipFile.java:214)
at org.apache.felix.framework.util.SecureAction.openZipFile(SecureAction.java:802)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.(WeakZipFileFactory.java:169)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.(WeakZipFileFactory.java:151)
at org.apache.felix.framework.util.WeakZipFileFactory.create(WeakZipFileFactory.java:78)
at org.apache.felix.framework.cache.JarRevision.(JarRevision.java:83)
at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:804)
at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:491)
at org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:155)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:457)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3254)
… 13 more
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@31470702 in service registry.
Exception in thread “main” java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:121)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: A MultiException has 2 exceptions. They are:
com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW]
java.lang.IllegalStateException: Could not load descriptor SystemDescriptor(
implementation=org.glassfish.batch.spi.impl.BatchRuntimeConfigurationInjector
name=batch-runtime-configuration
contracts={org.glassfish.batch.spi.impl.BatchRuntimeConfigurationInjector,org.jvnet.hk2.config.ConfigInjector}
scope=jakarta.inject.Singleton
qualifiers={org.jvnet.hk2.config.InjectionTarget}
descriptorType=CLASS
descriptorVisibility=NORMAL
metadata=@table-suffix={optional,default:,datatype:java.lang.String,leaf},@data-source-lookup-name={optional,datatype:java.lang.String,leaf},@table-prefix={optional,default:,datatype:java.lang.String,leaf},@schema-name={optional,default:APP,datatype:java.lang.String,leaf},@executor-service-lookup-name={optional,default:concurrent/__defaultManagedExecutorService,datatype:java.lang.String,leaf},target={org.glassfish.batch.spi.impl.BatchRuntimeConfiguration},Bundle-SymbolicName={fish.payara.server.internal.batch.glassfish-batch-connector},Bundle-Version={6.2023.7}
rank=0
loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW],1658064433)
proxiable=null
proxyForSameScope=null
analysisName=null
id=126
locatorId=0
identityHashCode=1695195255
reified=false)
at org.jvnet.hk2.internal.ServiceLocatorImpl.loadClass(ServiceLocatorImpl.java:2262)
at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:433)
at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:452)
at org.jvnet.hk2.config.DomDocument$InjectionTargetFilter.matches(DomDocument.java:184)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getDescriptors(ServiceLocatorImpl.java:342)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getDescriptors(ServiceLocatorImpl.java:384)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getBestDescriptor(ServiceLocatorImpl.java:392)
at org.jvnet.hk2.config.DomDocument.buildModel(DomDocument.java:135)
at org.jvnet.hk2.config.ConfigModel.parseValue(ConfigModel.java:959)
at org.jvnet.hk2.config.ConfigModel.(ConfigModel.java:875)
at org.jvnet.hk2.config.DomDocument.buildModel(DomDocument.java:114)
at org.jvnet.hk2.config.DomDocument.getModelByElementName(DomDocument.java:162)
at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:172)
at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:108)
at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:102)
at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:271)
at org.glassfish.config.support.DomainXml.run(DomainXml.java:121)
at org.jvnet.hk2.config.ConfigurationPopulator.populateConfig(ConfigurationPopulator.java:58)
at org.glassfish.hk2.bootstrap.HK2Populator.populateConfig(HK2Populator.java:83)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:190)
at com.sun.enterprise.module.bootstrap.Main.createServiceLocator(Main.java:249)
at org.jvnet.hk2.osgiadapter.HK2Main.createServiceLocator(HK2Main.java:96)
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:95)
at com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator.newGlassFish(GlassFishRuntimeDecorator.java:68)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime.newGlassFish(OSGiGlassFishRuntime.java:91)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:137)
… 6 more
Caused by: com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW]
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:193)
at org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor$1.loadClass(OsgiPopulatorPostProcessor.java:54)
at org.jvnet.hk2.internal.ServiceLocatorImpl.loadClass(ServiceLocatorImpl.java:2254)
… 31 more
Caused by: org.osgi.framework.BundleException: Unable to resolve fish.payara.server.internal.batch.glassfish-batch-connector [211](R 211.0): missing requirement [fish.payara.server.internal.batch.glassfish-batch-connector [211](R 211.0)] osgi.wiring.package; (osgi.wiring.package=com.ibm.jbatch.spi) [caused by: Unable to resolve fish.payara.server.internal.batch.payara-jbatch [76](R 76.0): missing requirement [fish.payara.server.internal.batch.payara-jbatch [76](R 76.0)] osgi.wiring.package; (osgi.wiring.package=org.glassfish.weld) [caused by: Unable to resolve fish.payara.server.internal.web.weld-integration [100](R 100.0): missing requirement [fish.payara.server.internal.web.weld-integration [100](R 100.0)] osgi.wiring.package; (&(osgi.wiring.package=org.glassfish.web.deployment.descriptor)(version>=6.2023.0)(!(version>=7.0.0))) [caused by: Unable to resolve fish.payara.server.core.web.glue [271](R 271.0): missing requirement [fish.payara.server.core.web.glue [271](R 271.0)] osgi.wiring.package; (&(osgi.wiring.package=com.sun.enterprise.security.ee)(version>=6.2023.0)(!(version>=7.0.0))) [caused by: Unable to resolve fish.payara.server.core.security.ee [99](R 99.0): missing requirement [fish.payara.server.core.security.ee [99](R 99.0)] osgi.wiring.package; (&(osgi.wiring.package=org.jvnet.libpam)(version>=5.12.0)(!(version>=6.0.0)))]]]] Unresolved requirements: [[fish.payara.server.internal.batch.glassfish-batch-connector [211](R 211.0)] osgi.wiring.package; (osgi.wiring.package=com.ibm.jbatch.spi)]
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.jvnet.hk2.osgiadapter.OSGiModuleImpl.startBundle(OSGiModuleImpl.java:224)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:185)
… 33 more
Completed shutdown of GlassFish runtime
We are in non-embedded mode, so fish.payara.server.core.nucleus.glassfish [320] has nothing to do.
I have added -Djdk.util.zip.disableZip64ExtraFieldValidation=true to the file at ~/Payara_Server_6/glassfish/domains/domain1/config/domain.xml but still receive the same error when starting Payara 6.
Have I made the correct entry in the correct file?
IMHO, please test by starting it via the command line as asadmin start-domain domain1 to ensure that it works fine first. Then step further to the test with the Netbeans.
Thank you again for your assistance. I have tried to start Payara from the command line but no success. The libpam4j-repackaged.jar has still not loaded.
Please see the following error message copied from my terminal that includes the command to start. The same command with the copy of GlassFish 7 I have installed works perfectly.
~/Payara_Server_6/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 Payara Server on Felix platform
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@538216b7 in service registry.
Completed shutdown of GlassFish runtime
We are in non-embedded mode, so fish.payara.server.core.nucleus.glassfish [320] has nothing to do.
Aug 11, 2023 6:34:55 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Aug 11, 2023 6:34:56 PM com.sun.enterprise.glassfish.bootstrap.LogFacade log
WARNING: Failed to install file:/home/peter/Payara_Server_6/glassfish/modules/libpam4j-repackaged.jar.
org.osgi.framework.BundleException: Unable to cache bundle: file:/home/peter/Payara_Server_6/glassfish/modules/libpam4j-repackaged.jar
at org.apache.felix.framework.Felix.installBundle(Felix.java:3258)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.install(BundleProvisioner.java:448)
at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.installBundles(BundleProvisioner.java:208)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:142)
at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:161)
at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:114)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:136)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:121)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1752)
at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1268)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1717)
at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1444)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1407)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:756)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:873)
at java.base/java.util.zip.ZipFile.(ZipFile.java:271)
at java.base/java.util.zip.ZipFile.(ZipFile.java:200)
at java.base/java.util.zip.ZipFile.(ZipFile.java:214)
at org.apache.felix.framework.util.SecureAction.openZipFile(SecureAction.java:802)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.(WeakZipFileFactory.java:169)
at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.(WeakZipFileFactory.java:151)
at org.apache.felix.framework.util.WeakZipFileFactory.create(WeakZipFileFactory.java:78)
at org.apache.felix.framework.cache.JarRevision.(JarRevision.java:83)
at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:804)
at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:491)
at org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:155)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:457)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3254)
… 13 more
Exception in thread “main” java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:121)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: A MultiException has 2 exceptions. They are:
com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW]
java.lang.IllegalStateException: Could not load descriptor SystemDescriptor(
implementation=org.glassfish.batch.spi.impl.BatchRuntimeConfigurationInjector
name=batch-runtime-configuration
contracts={org.glassfish.batch.spi.impl.BatchRuntimeConfigurationInjector,org.jvnet.hk2.config.ConfigInjector}
scope=jakarta.inject.Singleton
qualifiers={org.jvnet.hk2.config.InjectionTarget}
descriptorType=CLASS
descriptorVisibility=NORMAL
metadata=@table-suffix={optional,default:,datatype:java.lang.String,leaf},@data-source-lookup-name={optional,datatype:java.lang.String,leaf},@table-prefix={optional,default:,datatype:java.lang.String,leaf},@schema-name={optional,default:APP,datatype:java.lang.String,leaf},@executor-service-lookup-name={optional,default:concurrent/__defaultManagedExecutorService,datatype:java.lang.String,leaf},target={org.glassfish.batch.spi.impl.BatchRuntimeConfiguration},Bundle-SymbolicName={fish.payara.server.internal.batch.glassfish-batch-connector},Bundle-Version={6.2023.7}
rank=0
loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW],2010221835)
proxiable=null
proxyForSameScope=null
analysisName=null
id=126
locatorId=0
identityHashCode=2050247525
reified=false)
at org.jvnet.hk2.internal.ServiceLocatorImpl.loadClass(ServiceLocatorImpl.java:2262)
at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:433)
at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:452)
at org.jvnet.hk2.config.DomDocument$InjectionTargetFilter.matches(DomDocument.java:184)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getDescriptors(ServiceLocatorImpl.java:342)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getDescriptors(ServiceLocatorImpl.java:384)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getBestDescriptor(ServiceLocatorImpl.java:392)
at org.jvnet.hk2.config.DomDocument.buildModel(DomDocument.java:135)
at org.jvnet.hk2.config.ConfigModel.parseValue(ConfigModel.java:959)
at org.jvnet.hk2.config.ConfigModel.(ConfigModel.java:875)
at org.jvnet.hk2.config.DomDocument.buildModel(DomDocument.java:114)
at org.jvnet.hk2.config.DomDocument.getModelByElementName(DomDocument.java:162)
at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:172)
at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:108)
at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:102)
at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:271)
at org.glassfish.config.support.DomainXml.run(DomainXml.java:121)
at org.jvnet.hk2.config.ConfigurationPopulator.populateConfig(ConfigurationPopulator.java:58)
at org.glassfish.hk2.bootstrap.HK2Populator.populateConfig(HK2Populator.java:83)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:190)
at com.sun.enterprise.module.bootstrap.Main.createServiceLocator(Main.java:249)
at org.jvnet.hk2.osgiadapter.HK2Main.createServiceLocator(HK2Main.java:96)
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:95)
at com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator.newGlassFish(GlassFishRuntimeDecorator.java:68)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime.newGlassFish(OSGiGlassFishRuntime.java:91)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:137)
… 6 more
Caused by: com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW]
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:193)
at org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor$1.loadClass(OsgiPopulatorPostProcessor.java:54)
at org.jvnet.hk2.internal.ServiceLocatorImpl.loadClass(ServiceLocatorImpl.java:2254)
… 31 more
Caused by: org.osgi.framework.BundleException: Unable to resolve fish.payara.server.internal.batch.glassfish-batch-connector [211](R 211.0): missing requirement [fish.payara.server.internal.batch.glassfish-batch-connector [211](R 211.0)] osgi.wiring.package; (osgi.wiring.package=com.ibm.jbatch.spi) [caused by: Unable to resolve fish.payara.server.internal.batch.payara-jbatch [76](R 76.0): missing requirement [fish.payara.server.internal.batch.payara-jbatch [76](R 76.0)] osgi.wiring.package; (osgi.wiring.package=org.glassfish.weld) [caused by: Unable to resolve fish.payara.server.internal.web.weld-integration [100](R 100.0): missing requirement [fish.payara.server.internal.web.weld-integration [100](R 100.0)] osgi.wiring.package; (&(osgi.wiring.package=org.glassfish.web.deployment.descriptor)(version>=6.2023.0)(!(version>=7.0.0))) [caused by: Unable to resolve fish.payara.server.core.web.glue [271](R 271.0): missing requirement [fish.payara.server.core.web.glue [271](R 271.0)] osgi.wiring.package; (&(osgi.wiring.package=com.sun.enterprise.security.ee)(version>=6.2023.0)(!(version>=7.0.0))) [caused by: Unable to resolve fish.payara.server.core.security.ee [99](R 99.0): missing requirement [fish.payara.server.core.security.ee [99](R 99.0)] osgi.wiring.package; (&(osgi.wiring.package=org.jvnet.libpam)(version>=5.12.0)(!(version>=6.0.0)))]]]] Unresolved requirements: [[fish.payara.server.internal.batch.glassfish-batch-connector [211](R 211.0)] osgi.wiring.package; (osgi.wiring.package=com.ibm.jbatch.spi)]
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.jvnet.hk2.osgiadapter.OSGiModuleImpl.startBundle(OSGiModuleImpl.java:224)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:185)
… 33 more
Command start-domain failed.
To ensure that the JVM option has been configured properly, Please look at the ~/Payara_Server_6/glassfish/domains/domain1/logs/serverl.log. There should be something printed like the following: -
If there is no printed, the JVM options may not be set or set to the wrong place. Please consult the Payara Documentation: JVM Options
On the other hand if it is printed but there still be an error. This may be another issue. Please open the issue at the GitHub with the re-producer so that the Payara team will be able to re-produce, investigate and advise further.
I have checked the server.log file and there is no entry for Djdk.util.zip.disableZip64ExtraFieldValidation=true. I went to the server documentation as you suggested and tried the command ./asadmin create-jvm-options “-Djdk.util.zip.disableZip64ExtraFieldValidation=true”. However, this command does not work if the server is not already running and I can’t start the server.
Unless you can suggest anything else I will open the question with GitHub.
There may be two or more<java-config> nodes in the domain.xml, please try to apply the <jvm-options> to all places by using the text editor.
IMHO, this issue is not required to open at the GitHub. It is only about the local configuration at the domain.xml. If it is configured properly, there must be the printed -Djdk.util.zip.disableZip64ExtraFieldValidation=true
in the server.log.
If the same error is not experienced by other users it could be a race condition generated by a bad cache in Netbeans. The best is to ensure the error exists in normal conditions. A brend new NB installation or please clear the NB cache and retry to restrict the error conditions.
Thank you for your suggestions. I have now been able to run Payara Community Server 6.2023.7 in Docker without a problem . I am now away for a few days but will try reloading Netbeans/clearing the cache on my return.