eclipse-ee4j / tyrus

Tyrus
Other
114 stars 36 forks source link

Tyrus doesn't install #865

Open ddyer0 opened 11 months ago

ddyer0 commented 11 months ago

Following the recommentation, "mvn clean install" on version 2.1.4 fails in the "glassfish test" phase. [INFO] Tyrus Servlet Basic Tests .......................... SUCCESS [ 13.477 s] [INFO] Tyrus Servlet Tests on Glassfish ................... FAILURE [ 12.022 s] [INFO] Tyrus Servlet Dynamic Deploy Test .................. SKIPPED

I followed a few breadcrumbs which led me to this error message http://www.w3.org/2001/XMLSchema-instance

which apparently decodes to "don't do this"

my platform is windows 11 java 16

jansupol commented 11 months ago

I have not experienced this issue. Could you share more details?

With Glassfish, there could be some issue that is not visible directly with the maven run and the Glassfish server log needs to be examined. The log would be located in ${target}/glassfish7/glassfish/domains/domain1/logs.

Regarding the issue topic, Tyrus should be installed, no matter the failed tests. If the goal was to install Tyrus, I believe you should have it in your local m2 repository.

I do not follow the error message http://www.w3.org/2001/XMLSchema-instance, can you elaborate?

jansupol commented 11 months ago

It looks like the Tyrus build can also be affected by various maven versions, we use rather older versions. I will try newer ones to see some differences.

ddyer0 commented 11 months ago

Here's a more complete log of the installation.

[INFO] Tyrus Servlet Basic Tests .......................... SUCCESS [ 13.477 s] [INFO] Tyrus Servlet Tests on Glassfish ................... FAILURE [ 12.022 s] [INFO] Tyrus Servlet Dynamic Deploy Test .................. SKIPPED [INFO] Tyrus Servlet No App Config ........................ SKIPPED [INFO] Tyrus Servlet One App Config ....................... SKIPPED [INFO] Tyrus Servlet RemoteEndpoint Timeout ............... SKIPPED [INFO] Tyrus Servlet Session Closing ...................... SKIPPED [INFO] Tyrus Servlet Two App Config ....................... SKIPPED [INFO] Tyrus Servlet Monitoring Test ...................... SKIPPED [INFO] Tyrus Servlet Inject Test .......................... SKIPPED [INFO] Tyrus Servlet Max Sessions Per App Tests ........... SKIPPED [INFO] Tyrus Servlet Max Sessions Per Remote Addr Tests ... SKIPPED [INFO] Tyrus Debug Debug Samples .......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:09 min [INFO] Finished at: 2023-11-09T10:29:52-08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.2.1:verify (default) on project tyrus-tests-servlet-embedded-gf: [ERROR] [ERROR] Please refer to G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\failsafe-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.2.1:verify (default) on project tyrus-tests-servlet-embedded-gf:

Please refer to G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\failsafe-reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:78) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:567) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) Caused by: org.apache.maven.plugin.MojoFailureException:

Please refer to G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\failsafe-reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. at org.apache.maven.plugin.surefire.SurefireHelper.throwException (SurefireHelper.java:247) at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (SurefireHelper.java:159) at org.apache.maven.plugin.failsafe.VerifyMojo.execute (VerifyMojo.java:190) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:78) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:567) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :tyrus-tests-servlet-embedded-gf

G:\share\projects\tyrus\tyrus-2.1.4>

jansupol commented 11 months ago

There is nothing to be seen in the maven log. More information could either be in the target\failsafe-reports or the Glassfish server log.

ddyer0 commented 11 months ago

there is no target\failsafe-reports where would I find the glassfish log?

jansupol commented 11 months ago

With Glassfish, there could be some issue that is not visible directly with the maven run and the Glassfish server log needs to be examined. The log would be located in ${target}/glassfish7/glassfish/domains/domain1/logs.

ddyer0 commented 11 months ago

Here's the log [2023-11-09T10:22:44.181795-08:00] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ JVM invocation command line: F:\java\jdk-16\bin\java.exe -cp G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/glassfish.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9009 -DWALL_CLOCK_START=2023-11-09T18:22:38.624455800Z -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -Xmx512m --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm.annotation=ALL-UNNAMED -javaagent:G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib/monitor/flashlight-agent.jar -Djava.awt.headless=true -Djdk.corba.allowOutputStreamSubclass=true -Djdk.tls.rejectClientInitiatedRenegotiation=true -Djavax.xml.accessExternalSchema=all -Djava.security.policy=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/server.policy -Djava.security.auth.login.config=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/login.conf -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Djavax.net.ssl.keyStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/keystore.jks -Djavax.net.ssl.trustStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/cacerts.jks -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -DANTLR_USE_DIRECT_CLASS_LOADING=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall -Dosgi.shell.telnet.port=6666 -Dosgi.shell.telnet.maxconn=1 -Dosgi.shell.telnet.ip=127.0.0.1 -Dgosh.args=--nointeractive -Dfelix.fileinstall.dir=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish/modules/autostart/ -Dfelix.fileinstall.poll=5000 -Dfelix.fileinstall.log.level=2 -Dfelix.fileinstall.bundles.new.start=true -Dfelix.fileinstall.bundles.startTransient=true -Dfelix.fileinstall.disableConfigSave=false -Dorg.glassfish.gmbal.no.multipleUpperBoundsException=true -Dcom.ctc.wstx.returnNullForDefaultNamespace=true -Djdk.attach.allowAttachSelf=true -Dcom.sun.aas.instanceRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1 -Dcom.sun.aas.installRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish -Djava.library.path=G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib;F:/java/jdk-16/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Perl64/site/bin;C:/Perl64/bin;F:/programs/Python310;C:/Users/ddyer/AppData/Roaming/ActiveState/bin;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files (x86)/NVIDIA Corporation/PhysX/Common;C:/Program Files/NVIDIA Corporation/NVIDIA NvDLISR;C:/Program Files/PuTTY;C:/Program Files/MySQL/MySQL Server 5.6/bin;F:/java/run;F:/programs/apache-ant-1.9.16/bin;C:/MinGW/bin;C:/MinGW/msys/1.0/bin;F:/programs/platform-tools;C:/Program Files/Microsoft SQL Server/110/Tools/Binn;C:/Program Files/Git/cmd;F:/programs/Python310/Scripts;F:/programs/php8;F:/programs/apache-maven-3.9.3/bin;C:/Users/ddyer/AppData/Local/Microsoft/WindowsApps;C:/Program Files (x86)/CVSNT;C:/Program Files (x86)/SSH Communications Security/SSH Secure Shell;C:/Users/ddyer/AppData/Local/GitHubDesktop/bin;C:/Program Files (x86)/itms;C:/Program Files (x86)/WiX Toolset v3.11/bin;C:/Users/ddyer/AppData/Local/atom/bin;G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/domains/domain1 -read-stdin true -asadmin-args --host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=true,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=true,,,--domaindir,,,G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains,,,domain1 -domainname domain1 -instancename server -type DAS -verbose false -asadmin-classpath G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/admin-cli.jar -debug true -asadmin-classname com.sun.enterprise.admin.cli.AdminMain]]

[2023-11-09T10:23:15.510505-08:00] [GF 7.0.9] [INFO] [] [com.sun.enterprise.server.logging.LogManagerService] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Using property file: G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1\config\logging.properties]]

[2023-11-09T10:23:15.555343-08:00] [GF 7.0.9] [INFO] [NCLS-LOGGING-00009] [com.sun.enterprise.server.logging.LogManagerService] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Running GlassFish Version: Eclipse GlassFish 7.0.9 (commit: 5860e42c2edeb9f3b46428fcf9dab95790a9a3f0)]]

[2023-11-09T10:23:15.764984-08:00] [GF 7.0.9] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2023-11-09T10:23:15.770333-08:00] [GF 7.0.9] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2023-11-09T10:23:15.775334-08:00] [GF 7.0.9] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]

[2023-11-09T10:23:16.005018-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Grizzly Framework 4.0.0 started in: 45ms - bound to [/0.0.0.0:8181]]]

[2023-11-09T10:23:16.009527-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Grizzly Framework 4.0.0 started in: 2ms - bound to [/0.0.0.0:4848]]]

[2023-11-09T10:23:16.049951-08:00] [GF 7.0.9] [INFO] [SEC-SVCS-00100] [jakarta.enterprise.security.services] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Authorization Service has successfully initialized.]]

[2023-11-09T10:23:16.111888-08:00] [GF 7.0.9] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]

[2023-11-09T10:23:16.479913-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Grizzly Framework 4.0.0 started in: 1ms - bound to [/0.0.0.0:3700]]]

[2023-11-09T10:23:16.543704-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00017] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Eclipse GlassFish 7.0.9 (commit: 5860e42c2edeb9f3b46428fcf9dab95790a9a3f0) startup time: Embedded (30,794 ms), startup services (1,226 ms), total (32,020 ms)]]

[2023-11-09T10:23:16.545703-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00018] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Total startup time including CLI: 37,921 ms]]

[2023-11-09T10:23:16.545703-08:00] [GF 7.0.9] [SEVERE] [NCLS-CORE-00019] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 1000] [[ Shutting down server due to startup exception java.io.IOException: Failed to start listener @.***[name=http-listener-1, address=/0.0.0.0, port=8080] at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:167) at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start0(GrizzlyProxy.java:252) at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start(GrizzlyProxy.java:226) at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:583) at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:508) at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:356) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:410) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:466) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2109) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:762) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpAllTheWay.go(CurrentTaskFuture.java:561) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture.go(CurrentTaskFuture.java:133) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture.go(CurrentTaskFuture.java:128) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.proceedTo(AsyncRunLevelContext.java:511) at org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl.proceedTo(RunLevelControllerImpl.java:48) at com.sun.enterprise.v3.server.AppServerStartup.proceedTo(AppServerStartup.java:498) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:302) at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:209) at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:200) at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:55) at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:38) at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl.start(EmbeddedOSGiGlassFishImpl.java:50) at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:38) at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:46) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:144) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:93) at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:31) Caused by: java.net.BindException: Address already in use: bind at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:552) at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:336) at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:88) at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:95) at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:63) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:224) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:215) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:82) at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:164) ... 36 more ]]

[2023-11-09T10:23:16.581006-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00092] [jakarta.enterprise.system.core] [tid: _ThreadID=92 _ThreadName=Thread-6] [levelValue: 800] [[ Server shutdown initiated]]

[2023-11-09T10:23:16.585012-08:00] [GF 7.0.9] [INFO] [] [jakarta.enterprise.logging.stdout] [tid: _ThreadID=92 _ThreadName=Thread-6] [levelValue: 800] [[ FileMonitoring shutdown]]

[2023-11-09T10:23:16.677943-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00013] [jakarta.enterprise.system.core] [tid: _ThreadID=92 _ThreadName=Thread-6] [levelValue: 800] [[ Shutdown procedure finished]]

[2023-11-09T10:29:51.120855-08:00] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ JVM invocation command line: F:\java\jdk-16\bin\java.exe -cp G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/glassfish.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9009 -DWALL_CLOCK_START=2023-11-09T18:29:45.867802300Z -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -Xmx512m --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm.annotation=ALL-UNNAMED -javaagent:G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib/monitor/flashlight-agent.jar -Djava.awt.headless=true -Djdk.corba.allowOutputStreamSubclass=true -Djdk.tls.rejectClientInitiatedRenegotiation=true -Djavax.xml.accessExternalSchema=all -Djava.security.policy=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/server.policy -Djava.security.auth.login.config=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/login.conf -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Djavax.net.ssl.keyStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/keystore.jks -Djavax.net.ssl.trustStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/cacerts.jks -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -DANTLR_USE_DIRECT_CLASS_LOADING=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall -Dosgi.shell.telnet.port=6666 -Dosgi.shell.telnet.maxconn=1 -Dosgi.shell.telnet.ip=127.0.0.1 -Dgosh.args=--nointeractive -Dfelix.fileinstall.dir=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish/modules/autostart/ -Dfelix.fileinstall.poll=5000 -Dfelix.fileinstall.log.level=2 -Dfelix.fileinstall.bundles.new.start=true -Dfelix.fileinstall.bundles.startTransient=true -Dfelix.fileinstall.disableConfigSave=false -Dorg.glassfish.gmbal.no.multipleUpperBoundsException=true -Dcom.ctc.wstx.returnNullForDefaultNamespace=true -Djdk.attach.allowAttachSelf=true -Dcom.sun.aas.instanceRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1 -Dcom.sun.aas.installRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish -Djava.library.path=G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib;F:/java/jdk-16/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Perl64/site/bin;C:/Perl64/bin;F:/programs/Python310;C:/Users/ddyer/AppData/Roaming/ActiveState/bin;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files (x86)/NVIDIA Corporation/PhysX/Common;C:/Program Files/NVIDIA Corporation/NVIDIA NvDLISR;C:/Program Files/PuTTY;C:/Program Files/MySQL/MySQL Server 5.6/bin;F:/java/run;F:/programs/apache-ant-1.9.16/bin;C:/MinGW/bin;C:/MinGW/msys/1.0/bin;F:/programs/platform-tools;C:/Program Files/Microsoft SQL Server/110/Tools/Binn;C:/Program Files/Git/cmd;F:/programs/Python310/Scripts;F:/programs/php8;F:/programs/apache-maven-3.9.3/bin;C:/Users/ddyer/AppData/Local/Microsoft/WindowsApps;C:/Program Files (x86)/CVSNT;C:/Program Files (x86)/SSH Communications Security/SSH Secure Shell;C:/Users/ddyer/AppData/Local/GitHubDesktop/bin;C:/Program Files (x86)/itms;C:/Program Files (x86)/WiX Toolset v3.11/bin;C:/Users/ddyer/AppData/Local/atom/bin;G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/domains/domain1 -read-stdin true -asadmin-args --host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=true,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=true,,,--domaindir,,,G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains,,,domain1 -domainname domain1 -instancename server -type DAS -verbose false -asadmin-classpath G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/admin-cli.jar -debug true -asadmin-classname com.sun.enterprise.admin.cli.AdminMain]]

ddyer0 commented 11 months ago

I found another log file produced at the same approximate time, which looks more interesting.

This log suggests it tried to bind socket 8080, which is in use on my system. [2023-11-09T10:22:44.181795-08:00] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ JVM invocation command line: F:\java\jdk-16\bin\java.exe -cp G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/glassfish.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9009 -DWALL_CLOCK_START=2023-11-09T18:22:38.624455800Z -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -Xmx512m --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm.annotation=ALL-UNNAMED -javaagent:G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib/monitor/flashlight-agent.jar -Djava.awt.headless=true -Djdk.corba.allowOutputStreamSubclass=true -Djdk.tls.rejectClientInitiatedRenegotiation=true -Djavax.xml.accessExternalSchema=all -Djava.security.policy=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/server.policy -Djava.security.auth.login.config=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/login.conf -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Djavax.net.ssl.keyStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/keystore.jks -Djavax.net.ssl.trustStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/cacerts.jks -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -DANTLR_USE_DIRECT_CLASS_LOADING=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall -Dosgi.shell.telnet.port=6666 -Dosgi.shell.telnet.maxconn=1 -Dosgi.shell.telnet.ip=127.0.0.1 -Dgosh.args=--nointeractive -Dfelix.fileinstall.dir=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish/modules/autostart/ -Dfelix.fileinstall.poll=5000 -Dfelix.fileinstall.log.level=2 -Dfelix.fileinstall.bundles.new.start=true -Dfelix.fileinstall.bundles.startTransient=true -Dfelix.fileinstall.disableConfigSave=false -Dorg.glassfish.gmbal.no.multipleUpperBoundsException=true -Dcom.ctc.wstx.returnNullForDefaultNamespace=true -Djdk.attach.allowAttachSelf=true -Dcom.sun.aas.instanceRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1 -Dcom.sun.aas.installRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish -Djava.library.path=G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib;F:/java/jdk-16/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Perl64/site/bin;C:/Perl64/bin;F:/programs/Python310;C:/Users/ddyer/AppData/Roaming/ActiveState/bin;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files (x86)/NVIDIA Corporation/PhysX/Common;C:/Program Files/NVIDIA Corporation/NVIDIA NvDLISR;C:/Program Files/PuTTY;C:/Program Files/MySQL/MySQL Server 5.6/bin;F:/java/run;F:/programs/apache-ant-1.9.16/bin;C:/MinGW/bin;C:/MinGW/msys/1.0/bin;F:/programs/platform-tools;C:/Program Files/Microsoft SQL Server/110/Tools/Binn;C:/Program Files/Git/cmd;F:/programs/Python310/Scripts;F:/programs/php8;F:/programs/apache-maven-3.9.3/bin;C:/Users/ddyer/AppData/Local/Microsoft/WindowsApps;C:/Program Files (x86)/CVSNT;C:/Program Files (x86)/SSH Communications Security/SSH Secure Shell;C:/Users/ddyer/AppData/Local/GitHubDesktop/bin;C:/Program Files (x86)/itms;C:/Program Files (x86)/WiX Toolset v3.11/bin;C:/Users/ddyer/AppData/Local/atom/bin;G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/domains/domain1 -read-stdin true -asadmin-args --host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=true,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=true,,,--domaindir,,,G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains,,,domain1 -domainname domain1 -instancename server -type DAS -verbose false -asadmin-classpath G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/admin-cli.jar -debug true -asadmin-classname com.sun.enterprise.admin.cli.AdminMain]]

[2023-11-09T10:23:15.510505-08:00] [GF 7.0.9] [INFO] [] [com.sun.enterprise.server.logging.LogManagerService] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Using property file: G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1\config\logging.properties]]

[2023-11-09T10:23:15.555343-08:00] [GF 7.0.9] [INFO] [NCLS-LOGGING-00009] [com.sun.enterprise.server.logging.LogManagerService] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Running GlassFish Version: Eclipse GlassFish 7.0.9 (commit: 5860e42c2edeb9f3b46428fcf9dab95790a9a3f0)]]

[2023-11-09T10:23:15.764984-08:00] [GF 7.0.9] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2023-11-09T10:23:15.770333-08:00] [GF 7.0.9] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2023-11-09T10:23:15.775334-08:00] [GF 7.0.9] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]

[2023-11-09T10:23:16.005018-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Grizzly Framework 4.0.0 started in: 45ms - bound to [/0.0.0.0:8181]]]

[2023-11-09T10:23:16.009527-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Grizzly Framework 4.0.0 started in: 2ms - bound to [/0.0.0.0:4848]]]

[2023-11-09T10:23:16.049951-08:00] [GF 7.0.9] [INFO] [SEC-SVCS-00100] [jakarta.enterprise.security.services] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Authorization Service has successfully initialized.]]

[2023-11-09T10:23:16.111888-08:00] [GF 7.0.9] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]

[2023-11-09T10:23:16.479913-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Grizzly Framework 4.0.0 started in: 1ms - bound to [/0.0.0.0:3700]]]

[2023-11-09T10:23:16.543704-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00017] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Eclipse GlassFish 7.0.9 (commit: 5860e42c2edeb9f3b46428fcf9dab95790a9a3f0) startup time: Embedded (30,794 ms), startup services (1,226 ms), total (32,020 ms)]]

[2023-11-09T10:23:16.545703-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00018] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ Total startup time including CLI: 37,921 ms]]

[2023-11-09T10:23:16.545703-08:00] [GF 7.0.9] [SEVERE] [NCLS-CORE-00019] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 1000] [[ Shutting down server due to startup exception java.io.IOException: Failed to start listener @.***[name=http-listener-1, address=/0.0.0.0, port=8080] at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:167) at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start0(GrizzlyProxy.java:252) at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start(GrizzlyProxy.java:226) at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:583) at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:508) at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:356) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:410) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:466) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2109) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:762) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpAllTheWay.go(CurrentTaskFuture.java:561) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture.go(CurrentTaskFuture.java:133) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture.go(CurrentTaskFuture.java:128) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.proceedTo(AsyncRunLevelContext.java:511) at org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl.proceedTo(RunLevelControllerImpl.java:48) at com.sun.enterprise.v3.server.AppServerStartup.proceedTo(AppServerStartup.java:498) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:302) at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:209) at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:200) at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:55) at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:38) at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl.start(EmbeddedOSGiGlassFishImpl.java:50) at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:38) at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:46) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:144) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:93) at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:31) Caused by: java.net.BindException: Address already in use: bind at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:552) at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:336) at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:88) at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:95) at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:63) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:224) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:215) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:82) at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:164) ... 36 more ]]

[2023-11-09T10:23:16.581006-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00092] [jakarta.enterprise.system.core] [tid: _ThreadID=92 _ThreadName=Thread-6] [levelValue: 800] [[ Server shutdown initiated]]

[2023-11-09T10:23:16.585012-08:00] [GF 7.0.9] [INFO] [] [jakarta.enterprise.logging.stdout] [tid: _ThreadID=92 _ThreadName=Thread-6] [levelValue: 800] [[ FileMonitoring shutdown]]

[2023-11-09T10:23:16.677943-08:00] [GF 7.0.9] [INFO] [NCLS-CORE-00013] [jakarta.enterprise.system.core] [tid: _ThreadID=92 _ThreadName=Thread-6] [levelValue: 800] [[ Shutdown procedure finished]]

[2023-11-09T10:29:51.120855-08:00] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[ JVM invocation command line: F:\java\jdk-16\bin\java.exe -cp G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/glassfish.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9009 -DWALL_CLOCK_START=2023-11-09T18:29:45.867802300Z -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -Xmx512m --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm.annotation=ALL-UNNAMED -javaagent:G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib/monitor/flashlight-agent.jar -Djava.awt.headless=true -Djdk.corba.allowOutputStreamSubclass=true -Djdk.tls.rejectClientInitiatedRenegotiation=true -Djavax.xml.accessExternalSchema=all -Djava.security.policy=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/server.policy -Djava.security.auth.login.config=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/login.conf -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Djavax.net.ssl.keyStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/keystore.jks -Djavax.net.ssl.trustStore=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1/config/cacerts.jks -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -DANTLR_USE_DIRECT_CLASS_LOADING=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall -Dosgi.shell.telnet.port=6666 -Dosgi.shell.telnet.maxconn=1 -Dosgi.shell.telnet.ip=127.0.0.1 -Dgosh.args=--nointeractive -Dfelix.fileinstall.dir=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish/modules/autostart/ -Dfelix.fileinstall.poll=5000 -Dfelix.fileinstall.log.level=2 -Dfelix.fileinstall.bundles.new.start=true -Dfelix.fileinstall.bundles.startTransient=true -Dfelix.fileinstall.disableConfigSave=false -Dorg.glassfish.gmbal.no.multipleUpperBoundsException=true -Dcom.ctc.wstx.returnNullForDefaultNamespace=true -Djdk.attach.allowAttachSelf=true -Dcom.sun.aas.instanceRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains\domain1 -Dcom.sun.aas.installRoot=G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish -Djava.library.path=G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/lib;F:/java/jdk-16/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Perl64/site/bin;C:/Perl64/bin;F:/programs/Python310;C:/Users/ddyer/AppData/Roaming/ActiveState/bin;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files (x86)/NVIDIA Corporation/PhysX/Common;C:/Program Files/NVIDIA Corporation/NVIDIA NvDLISR;C:/Program Files/PuTTY;C:/Program Files/MySQL/MySQL Server 5.6/bin;F:/java/run;F:/programs/apache-ant-1.9.16/bin;C:/MinGW/bin;C:/MinGW/msys/1.0/bin;F:/programs/platform-tools;C:/Program Files/Microsoft SQL Server/110/Tools/Binn;C:/Program Files/Git/cmd;F:/programs/Python310/Scripts;F:/programs/php8;F:/programs/apache-maven-3.9.3/bin;C:/Users/ddyer/AppData/Local/Microsoft/WindowsApps;C:/Program Files (x86)/CVSNT;C:/Program Files (x86)/SSH Communications Security/SSH Secure Shell;C:/Users/ddyer/AppData/Local/GitHubDesktop/bin;C:/Program Files (x86)/itms;C:/Program Files (x86)/WiX Toolset v3.11/bin;C:/Users/ddyer/AppData/Local/atom/bin;G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/domains/domain1 -read-stdin true -asadmin-args --host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=true,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=true,,,--domaindir,,,G:\share\projects\tyrus\tyrus-2.1.4\tests\servlet\embedded-glassfish-test\target\glassfish7\glassfish\domains,,,domain1 -domainname domain1 -instancename server -type DAS -verbose false -asadmin-classpath G:/share/projects/tyrus/tyrus-2.1.4/tests/servlet/embedded-glassfish-test/target/glassfish7/glassfish/modules/admin-cli.jar -debug true -asadmin-classname com.sun.enterprise.admin.cli.AdminMain]]

ddyer0 commented 11 months ago

I killed the process using port 8080 and the install got a lot further. It still failed with this complaint: INFO: Stopped listener bound to [0.0.0.0:8025] Nov 10, 2023 1:37:41 PM org.glassfish.tyrus.server.Server stop INFO: Websocket Server stopped. [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.142 s -- in org.glassfish.tyrus.test.standard_config.userproperties.UserPropertiesTest [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] HeartbeatTest.testSessionTimeout:160 [INFO] [ERROR] Tests run: 189, Failures: 1, Errors: 0, Skipped: 6 [INFO]

jansupol commented 11 months ago

HeartBeatTest is a bit flaky, sometimes it fails with a timeout, as the test did not finish in time. That happens especially on a busy machine where another process takes a lot of CPU. In that case, the test just needs to be run again.