Error starting Payara Community Server 6.2023.7 from Netbeans

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:

  1. com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW]
  2. 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.

Regarding to the Payara 6.2023.7 start-domain failed

Please add the following system properties

-Djdk.util.zip.disableZip64ExtraFieldValidation=true

Dear Charlee

Thank you for your reply.

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?

Best wishes

Peter Ward

The domain.xml may look like the following: -

<java-config classpath-suffix=...>
    ....
    <jvm-options>-Djdk.util.zip.disableZip64ExtraFieldValidation=true</jvm-options>
</java-config>

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.

Dear Charlee

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:

  1. com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [fish.payara.server.internal.batch.glassfish-batch-connector [211]], State = [NEW]
  2. 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.

Best wishes

Peter Ward

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: -

[2023-08-12T12:07:10.383+0700] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1691816830383] [levelValue: 800] [[
  JVM invocation command line:
...
-Djdk.util.zip.disableZip64ExtraFieldValidation=true
...

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.

Dear Charlee

Again, thank you for all your efforts to help me.

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.

Best wishes

Peter Ward

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.

Thank you. I will keep trying.

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.

I use: OpenJDK Runtime Environment GraalVM CE 17.0.8+7.1 (build 17.0.8+7-jvmci-23.0-b15)
Payaramicro: 6.2023.
I tried with maven:
pom.xml file

< javaCommandLineOptions >
                        < option >
                            <key>--add-opens</key>.
                            <value>java.base/java.io=ALL-UNNAMED</value>
                        </option>
                        <option>
                            <key></key>
                            <value>-Djdk.util.zip.disableZip64ExtraFieldValidation=true</value>
                        </option>
                         
                    </javaCommandLineOptions>   

If I run it from NetBeans it works fine.
If I run it via:

mvn clean verify payara-micro:start it works.

but if I do this procedure

mvn clean verify payara-micro:bundle

then

java -jar target/app.jar 

It does not run and sends the similar error

7

Thank you for your suggestions. I have now been able to run Payara Community Server 6.2023.7 in Docker without a problem

Best wishes

pww

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.

Best wishes

pww

download 6.2023.8 version this problem is fixed

Thank you everybody for all the suggestions. I have now installed version 6.2023.8 and this works without any problems