I created a new "Musician" project "Java with Ant" -> "Java Enterprise" -> "Enterprise Application Client", adding it with "Add to Enterprise Application" to an Ant Enterprise Application "Orchestra". Java EE version is Jakarta 10. All applications use Glassfish Server v. 7.0.15, JDK 17, Java version 8.431 (build 1.8.0_431-b10). Configuration of Java Advanced Properties is the default one, with Security set to standard High. Main java class of the "Musician" client project is musician.Main. The Enterprise Application "Orchestra" is working fine.
Building the brand new "Musician" (exactly as created by NetBeans 23) works fine, so:
init:
deps-clean:
clean:
init:
deps-jar:
Created dir: C:\Users\root\Desktop\Musician\build\jar
Copying 2 files to C:\Users\root\Desktop\Musician\build\jar\META-INF
Created dir: C:\Users\root\Desktop\Musician\build\empty
Created dir: C:\Users\root\Desktop\Musician\build\generated-sources\ap-source-output
Compiling 1 source file to C:\Users\root\Desktop\Musician\build\jar
compile:
library-inclusion-in-archive:
Created dir: C:\Users\root\Desktop\Musician\dist
Building jar: C:\Users\root\Desktop\Musician\dist\Musician.jar
dist:
BUILD SUCCESSFUL (total time: 0 seconds)
Deploying also works fine, Musician (run-deploy) log is:
init:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
pre-run-deploy:
Starting GlassFish Server
GlassFish Server is running.
Undeploying ...
Distributing C:\Users\root\Desktop\Musician\dist\Musician.jar
post-run-deploy:
run-deploy:
BUILD SUCCESSFUL (total time: 32 seconds)
and GlassFish Server log is:
OSGI framework packages:
org.glassfish.main.jul;uses:="org.glassfish.main.jul.cfg,org.glassfish.main.jul.handler";version="7.0.15",org.glassfish.main.jul.cfg;version="7.0.15",org.glassfish.main.jul.env;version="7.0.15",org.glassfish.main.jul.formatter;uses:="org.glassfish.main.jul.cfg,org.glassfish.main.jul.record";version="7.0.15",org.glassfish.main.jul.handler;uses:="org.glassfish.main.jul.cfg,org.glassfish.main.jul.formatter,org.glassfish.main.jul.record";version="7.0.15",org.glassfish.main.jul.record;version="7.0.15",org.glassfish.main.jul.rotation;version="7.0.15",org.glassfish.main.jul.tracing;version="7.0.15", null, org.osgi.dto;version="1.1.1",org.osgi.framework;version="1.10",org.osgi.framework.connect;uses:="org.osgi.framework,org.osgi.framework.launch";version="1.0",org.osgi.framework.dto;uses:="org.osgi.dto";version="1.8",org.osgi.framework.hooks.bundle;uses:="org.osgi.framework";version="1.1",org.osgi.framework.hooks.resolver;uses:="org.osgi.framework.wiring";version="1.0",org.osgi.framework.hooks.service;uses:="org.osgi.framework";version="1.1",org.osgi.framework.hooks.weaving;uses:="org.osgi.framework.wiring";version="1.1",org.osgi.framework.launch;uses:="org.osgi.framework";version="1.2",org.osgi.framework.namespace;uses:="org.osgi.resource";version="1.2",org.osgi.framework.startlevel;uses:="org.osgi.framework";version="1.0",org.osgi.framework.startlevel.dto;uses:="org.osgi.dto";version="1.0",org.osgi.framework.wiring;uses:="org.osgi.framework,org.osgi.resource";version="1.2",org.osgi.framework.wiring.dto;uses:="org.osgi.dto,org.osgi.resource.dto";version="1.3",org.osgi.resource;version="1.0.1",org.osgi.resource.dto;uses:="org.osgi.dto";version="1.0.1",org.osgi.service.condition;version="1.0",org.osgi.service.packageadmin;uses:="org.osgi.framework";version="1.2.1",org.osgi.service.resolver;uses:="org.osgi.resource";version="1.1.1",org.osgi.service.startlevel;uses:="org.osgi.framework";version="1.1.1",org.osgi.service.url;version="1.0.1",org.osgi.util.tracker;uses:="org.osgi.framework";version="1.5.3", org.glassfish.embeddable;version="7.0.15",org.glassfish.embeddable.spi;uses:="org.glassfish.embeddable";version="7.0.15", org.glassfish.main.jul;uses:="org.glassfish.main.jul.cfg,org.glassfish.main.jul.handler";version="7.0.15",org.glassfish.main.jul.cfg;version="7.0.15",org.glassfish.main.jul.env;version="7.0.15",org.glassfish.main.jul.formatter;uses:="org.glassfish.main.jul.cfg,org.glassfish.main.jul.record";version="7.0.15",org.glassfish.main.jul.handler;uses:="org.glassfish.main.jul.cfg,org.glassfish.main.jul.formatter,org.glassfish.main.jul.record";version="7.0.15",org.glassfish.main.jul.record;version="7.0.15",org.glassfish.main.jul.rotation;version="7.0.15",org.glassfish.main.jul.tracing;version="7.0.15"
JDK provided packages:
com.azul.tooling, com.sun.jarsigner, com.sun.java.accessibility.util, com.sun.jdi, com.sun.jdi.connect, com.sun.jdi.connect.spi, com.sun.jdi.event, com.sun.jdi.request, com.sun.management, com.sun.net.httpserver, com.sun.net.httpserver.spi, com.sun.nio.file, com.sun.nio.sctp, com.sun.security.auth, com.sun.security.auth.callback, com.sun.security.auth.login, com.sun.security.auth.module, com.sun.security.jgss, com.sun.source.doctree, com.sun.source.tree, com.sun.source.util, com.sun.tools.attach, com.sun.tools.attach.spi, com.sun.tools.javac, com.sun.tools.jconsole, java.applet, java.awt, java.awt.color, java.awt.datatransfer, java.awt.desktop, java.awt.dnd, java.awt.event, java.awt.font, java.awt.geom, java.awt.im, java.awt.im.spi, java.awt.image, java.awt.image.renderable, java.awt.print, java.beans, java.beans.beancontext, java.io, java.lang, java.lang.annotation, java.lang.constant, java.lang.instrument, java.lang.invoke, java.lang.management, java.lang.module, java.lang.ref, java.lang.reflect, java.lang.runtime, java.math, java.net, java.net.http, java.net.spi, java.nio, java.nio.channels, java.nio.channels.spi, java.nio.charset, java.nio.charset.spi, java.nio.file, java.nio.file.attribute, java.nio.file.spi, java.rmi, java.rmi.dgc, java.rmi.registry, java.rmi.server, java.security, java.security.cert, java.security.interfaces, java.security.spec, java.sql, java.text, java.text.spi, java.time, java.time.chrono, java.time.format, java.time.temporal, java.time.zone, java.util, java.util.concurrent, java.util.concurrent.atomic, java.util.concurrent.locks, java.util.function, java.util.jar, java.util.logging, java.util.prefs, java.util.random, java.util.regex, java.util.spi, java.util.stream, java.util.zip, javax.accessibility, javax.annotation.processing, javax.crypto, javax.crypto.interfaces, javax.crypto.spec, javax.imageio, javax.imageio.event, javax.imageio.metadata, javax.imageio.plugins.bmp, javax.imageio.plugins.jpeg, javax.imageio.plugins.tiff, javax.imageio.spi, javax.imageio.stream, javax.lang.model, javax.lang.model.element, javax.lang.model.type, javax.lang.model.util, javax.management, javax.management.loading, javax.management.modelmbean, javax.management.monitor, javax.management.openmbean, javax.management.relation, javax.management.remote, javax.management.remote.rmi, javax.management.timer, javax.naming, javax.naming.directory, javax.naming.event, javax.naming.ldap, javax.naming.ldap.spi, javax.naming.spi, javax.net, javax.net.ssl, javax.print, javax.print.attribute, javax.print.attribute.standard, javax.print.event, javax.rmi.ssl, javax.script, javax.security.auth, javax.security.auth.callback, javax.security.auth.kerberos, javax.security.auth.login, javax.security.auth.spi, javax.security.auth.x500, javax.security.cert, javax.security.sasl, javax.smartcardio, javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, javax.sound.sampled.spi, javax.sql, javax.sql.rowset, javax.sql.rowset.serial, javax.sql.rowset.spi, javax.swing, javax.swing.border, javax.swing.colorchooser, javax.swing.event, javax.swing.filechooser, javax.swing.plaf, javax.swing.plaf.basic, javax.swing.plaf.metal, javax.swing.plaf.multi, javax.swing.plaf.nimbus, javax.swing.plaf.synth, javax.swing.table, javax.swing.text, javax.swing.text.html, javax.swing.text.html.parser, javax.swing.text.rtf, javax.swing.tree, javax.swing.undo, javax.tools, javax.transaction.xa, javax.xml, javax.xml.catalog, javax.xml.crypto, javax.xml.crypto.dom, javax.xml.crypto.dsig, javax.xml.crypto.dsig.dom, javax.xml.crypto.dsig.keyinfo, javax.xml.crypto.dsig.spec, javax.xml.datatype, javax.xml.namespace, javax.xml.parsers, javax.xml.stream, javax.xml.stream.events, javax.xml.stream.util, javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stax, javax.xml.transform.stream, javax.xml.validation, javax.xml.xpath, jdk.dynalink, jdk.dynalink.beans, jdk.dynalink.linker, jdk.dynalink.linker.support, jdk.dynalink.support, jdk.javadoc.doclet, jdk.jfr, jdk.jfr.consumer, jdk.jshell, jdk.jshell.execution, jdk.jshell.spi, jdk.jshell.tool, jdk.management.jfr, jdk.net, jdk.nio, jdk.nio.mapmode, jdk.security.jarsigner, jdk.swing.interop, netscape.javascript, org.ietf.jgss, org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.css, org.w3c.dom.events, org.w3c.dom.html, org.w3c.dom.ls, org.w3c.dom.ranges, org.w3c.dom.stylesheets, org.w3c.dom.traversal, org.w3c.dom.views, org.w3c.dom.xpath, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, sun.misc, sun.reflect
Using property file: C:\Users\root\glassfish7.0.15\glassfish\domains\domain1\config\logging.properties|#]
Running GlassFish Version: Eclipse GlassFish 7.0.15 (commit: 6f2f4c26b0f825d36b45ef39f6f83ac6b56d438c)|#]
Grizzly Framework 4.0.2 started in: 114 ms - bound to [/0.0.0.0:8080]|#]
Grizzly Framework 4.0.2 started in: 2 ms - bound to [/0.0.0.0:8181]|#]
Grizzly Framework 4.0.2 started in: 3 ms - bound to [/0.0.0.0:4848]|#]
Authorization Service has successfully initialized.|#]
Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]
Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]
Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.|#]
Application previously deployed is not at its original location any more: file:/C:/Users/root/glassfish7.0.15/glassfish/domains/domain1//applications/Jaco/|#]
Java Web Start services started for the app client Musician (contextRoot: /Musician)|#]
Loading application Musician done in 1.470 ms|#]
Java security manager is disabled.|#]
Entering Security Startup Service.|#]
Loading policy provider org.glassfish.exousia.modules.locked.SimplePolicyProvider.|#]
Security Service(s) started successfully.|#]
Probably the pool org.glassfish.resourcebase.resources.api.PoolInfo@32e1b968[jndiName=OrchestraPool, applicationName=null, moduleName=null] is not yet initialized (lazy-loading), trying to check ...|#]
Grizzly Framework 4.0.2 started in: 3 ms - bound to [/0.0.0.0:8080]|#]
Grizzly Framework 4.0.2 started in: 3 ms - bound to [/0.0.0.0:8181]|#]
Created connection pool and added it to PoolManager: Pool [org.glassfish.resourcebase.resources.api.PoolInfo@32e1b968[jndiName=OrchestraPool, applicationName=null, moduleName=null]] PoolSize=0 FreeResources=0 QueueSize=0 matching=off validation=off|#]
Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080|#]
Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181|#]
Created HTTP listener admin-listener on host/port 0.0.0.0:4848|#]
Created virtual server server|#]
Created virtual server __asadmin|#]
Setting JAAS app name glassfish-web|#]
Virtual server server loaded default web module |#]
close(), this:
org.glassfish.web.loader.WebappClassLoader@4cecc15a[name=unknown], urls=[
file:/C:/Users/root/Desktop/Orchestra/dist/gfdeploy/Orchestra/Orchestra-war_war/WEB-INF/classes/
file:/C:/Users/root/glassfish7.0.15/glassfish/domains/domain1/generated/ejb/Orchestra/Orchestra-war_war//
][delegate=true, context=unknown, status=RUNNING, antiJARLocking=false, securityManager=false, packageDefinitionSecurityEnabled=false, repositories=RepositoryManager[WEB-INF/classes/], notFound.size=0, pathTimestamps.size=0, resourceEntryCache.size=0]|#]
JTS5014: Recoverable JTS instance, serverId = [3700]|#]
ORB initialization succeeded: com.sun.corba.ee.impl.orb.ORBImpl@4a57ad67|#]
Portable JNDI names for EJB OpereEjb: [java:global/Orchestra/Orchestra-ejb/OpereEjb, java:global/Orchestra/Orchestra-ejb/OpereEjb!remote.OpereRemote]|#]
Glassfish-specific (Non-portable) JNDI names for EJB OpereEjb: [remote.OpereRemote#remote.OpereRemote, remote.OpereRemote]|#]
WELD-000900: 5.1.2 (Final)|#]
WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.|#]
WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.|#]
Initializing Soteria 3.0.3 for context '/Orchestra-war'|#]
Initializing Mojarra 4.0.7 for context '/Orchestra-war'|#]
Loading application [Orchestra#Orchestra-war.war] at [Orchestra-war]|#]
Loading application Orchestra done in 8.743 ms|#]
Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]
Grizzly Framework 4.0.2 started in: 3 ms - bound to [/0.0.0.0:3700]|#]
Eclipse GlassFish 7.0.15 (commit: 6f2f4c26b0f825d36b45ef39f6f83ac6b56d438c) startup time: Embedded (16.998 ms), startup services (11.661 ms), total (28.659 ms)|#]
Grizzly Framework 4.0.2 started in: 3 ms - bound to [/0.0.0.0:7676]|#]
JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://192.168.1.120:8686/jndi/rmi://192.168.1.120:8686/jmxrmi|#]
Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181|#]
Grizzly Framework 4.0.2 started in: 4 ms - bound to [/0.0.0.0:8181]|#]
Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080|#]
Grizzly Framework 4.0.2 started in: 11 ms - bound to [/0.0.0.0:8080]|#]
Java Web Start services stopped for the app client Musician|#]
Java Web Start services started for the app client Musician (contextRoot: /Musician)|#]
close(), this:
org.glassfish.web.loader.WebappClassLoader@4830b975[name=unknown], urls=[
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/classes/
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/lib/console-core-7.0.15.jar
file:/C:/Users/root/glassfish7.0.15/glassfish/domains/domain1/generated/ejb/__admingui//
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/extra/woodstock-webui-jsf-suntheme-6.0.1.jar
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/extra/dojo-ajax-nodemo-1.12.4.jar
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/extra/woodstock-webui-jsf-6.0.1.jar
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/extra/json-2.0.jar
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/extra/prototype-1.7.3.jar
file:/C:/Users/root/glassfish7.0.15/glassfish/lib/install/applications/__admingui/WEB-INF/extra/commons-io-2.16.1.jar
][delegate=true, context=unknown, status=RUNNING, antiJARLocking=false, securityManager=false, packageDefinitionSecurityEnabled=false, repositories=RepositoryManager[WEB-INF/classes/], notFound.size=0, pathTimestamps.size=1, resourceEntryCache.size=0]|#]
Musician was successfully deployed in 648 milliseconds.|#]
WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.|#]
Listening to REST requests at context: /management/domain.|#]
Initializing Soteria 3.0.3 for context ''|#]
Initializing Mojarra 4.0.7 for context ''|#]
Loading application [__admingui] at [/]|#]
Loading application __admingui done in 3.533 ms|#]
Context path from ServletContext: differs from path from bundle: /|#]
But running the project doesn't work, with warning and errors:
init:
deps-jar:
compile:
library-inclusion-in-archive:
Building jar: C:\Users\root\Desktop\Musician\dist\Musician.jar
dist:
pre-run-deploy:
Redeploying C:\Users\root\Desktop\Musician\dist\Musician.jar
post-run-deploy:
run-deploy:
Copying 1 file to C:\Users\root\Desktop\Musician\dist
Copying 2 files to C:\Users\root\Desktop\Musician\dist\MusicianClient
**Warning: C:\Users\root\Desktop\Musician\dist\gfdeploy\Musician does not exist.**
**Error: Could not create the Java Virtual Machine.**
**-Djava.endorsed.dirs=C:\Users\root\glassfish7.0.15\glassfish\lib\endorsed;C:\Users\root\glassfish7.0.15\glassfish\modules\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.**
**Error: A fatal exception has occurred. Program will exit.**
Java Result: 1
run:
BUILD SUCCESSFUL (total time: 3 seconds)
Language / Project Type / NetBeans Component
Java / Ant Java Enterprise Application Client / Jakarta 10
How to reproduce
Create a new Ant java Enterprise Application Client, adding it to a Ant Java Enterprise Application.
Anyway, the project doesn't work also if it is created stand-alone, without appending it to an Enterprise Application. Anyway, for my needs it's indispensable adding the Ant Java Enterprise Application Client to an Ant Java Enterprise Application, so I need to have overall compatibility with the JDK/Java versions in use with all projects components like NetBeans 23, Jakarta 10 and GlassFish 7.
could you quote the pasted logs using code sections like I did for the other issue you posted? Selecting it and pressing the code button should work. It often breaks the markup and can be hard to read - thanks.
Apache NetBeans version
Apache NetBeans 23
What happened
I created a new "Musician" project "Java with Ant" -> "Java Enterprise" -> "Enterprise Application Client", adding it with "Add to Enterprise Application" to an Ant Enterprise Application "Orchestra". Java EE version is Jakarta 10. All applications use Glassfish Server v. 7.0.15, JDK 17, Java version 8.431 (build 1.8.0_431-b10). Configuration of Java Advanced Properties is the default one, with Security set to standard High. Main java class of the "Musician" client project is musician.Main. The Enterprise Application "Orchestra" is working fine.
Building the brand new "Musician" (exactly as created by NetBeans 23) works fine, so:
Deploying also works fine, Musician (run-deploy) log is:
and GlassFish Server log is:
But running the project doesn't work, with warning and errors:
Language / Project Type / NetBeans Component
Java / Ant Java Enterprise Application Client / Jakarta 10
How to reproduce
Create a new Ant java Enterprise Application Client, adding it to a Ant Java Enterprise Application. Anyway, the project doesn't work also if it is created stand-alone, without appending it to an Enterprise Application. Anyway, for my needs it's indispensable adding the Ant Java Enterprise Application Client to an Ant Java Enterprise Application, so I need to have overall compatibility with the JDK/Java versions in use with all projects components like NetBeans 23, Jakarta 10 and GlassFish 7.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10 Pro 22H2
JDK
JDK 17
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
The problem always occurs.
Are you willing to submit a pull request?
No