The server exited prematurely with exit code 1 on payara server4.1

The console output is:

domain domain1. The server exited prematurely with exit code 1. Before
it died, it produced the following output:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=192m; support was removed in 8.0 错误: 找不到或无法加载主类   Error:
Could not find or load main class2020.1.bin;


F:.Java.docdoku.payara41.glassfish.bin
com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false
-domaindir  F:.Java.docdoku.payara41.glassfish.domains.domain1 -read-stdin true -asadmin-args --host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=false,,,--domaindir,,,

F:\Java\docdoku\payara41\glassfish\domains,,,domain1 -domainname
domain1 -instancename server -type DAS -verbose false
-asadmin-classpath 

F:.Java.docdoku.payara41.glassfish.lib.client.appserver-cli.jar -debug
false -asadmin-classname com.sun.enterprise.admin.cli.AdminMain
-watchdog false

Command start-domain failed. 

But i can start it on eclipse
payara-started

can someone help me with this?

Hi @lee,

Could you please try this again with the latest version of Payara Community, that being 5.2022.3, and confirm if you are experiencing the same issue?

Best Regards,
James

I tried, but I’m still having the same problem

asadmin> start-domain
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:

错误: 找不到或无法加载主类 2020.1.bin;
Error:Could not find or load main class2020.1.bin;

F:.Java.docdoku.payara5.bin com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir F:.Java.docdoku.payara5.glassfish.domains.domain1 -read-stdin true -asadmin-args --host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--extraterse=false,,,--echo=false,,,--interactive=true,,,--autoname=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=false,,,--domaindir,,,F:\Java\docdoku\payara5\glassfish\domains,,,domain1 -domainname domain1 -instancename server -type DAS -verbose false -asadmin-classpath F:.Java.docdoku.payara5.glassfish.lib.client.appserver-cli.jar -debug false -asadmin-classname com.sun.enterprise.admin.cli.AdminMain -watchdog false

Command start-domain failed.

Hi @lee,

Thanks for also trying this on the latest version, I have been unable to reproduce this locally so I suspect an issue with your local environment. If you use the start-domain -v command you will be able to see more details and pinpoint the exact issue.

Best Regards,
James

the out put is :slight_smile:

asadmin> start-domain -v
十月 21, 2022 8:38:31 下午 com.sun.enterprise.admin.launcher.GFLauncherLogger info
信息: JVM invocation command line:
F:\Java\jdk8\bin\java.exe
-cp
F:/Java/docdoku/payara41/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-Xmx512m
-client
-javaagent:F:/Java/docdoku/payara41/glassfish/lib/monitor/flashlight-agent.jar
-Djavax.xml.accessExternalSchema=all
-Djavax.net.ssl.trustStore=F:\Java\docdoku\payara41\glassfish\domains\domain1/config/cacerts.jks
-Djdk.tls.rejectClientInitiatedRenegotiation=true
-Djdk.corba.allowOutputStreamSubclass=true
-Dfelix.fileinstall.dir=F:\Java\docdoku\payara41\glassfish/modules/autostart/
-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
-Dcom.sun.aas.installRoot=F:\Java\docdoku\payara41\glassfish
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=F:\Java\docdoku\payara41\glassfish/modules/endorsed;F:\Java\docdoku\payara41\glassfish/lib/endorsed
-Djava.security.policy=F:\Java\docdoku\payara41\glassfish\domains\domain1/config/server.policy
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.bundles.startTransient=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dfelix.fileinstall.log.level=2
-Dfile.encoding=UTF-8
-Djavax.net.ssl.keyStore=F:\Java\docdoku\payara41\glassfish\domains\domain1/config/keystore.jks
-Djava.security.auth.login.config=F:\Java\docdoku\payara41\glassfish\domains\domain1/config/login.conf
-Dfelix.fileinstall.disableConfigSave=false
-Dorg.glassfish.grizzly.DEFAULT_MEMORY_MANAGER=org.glassfish.grizzly.memory.HeapMemoryManager
-Dfelix.fileinstall.bundles.new.start=true
-Dcom.sun.aas.instanceRoot=F:\Java\docdoku\payara41\glassfish\domains\domain1
-Dgosh.args=--nointeractive
-Dosgi.shell.telnet.port=6666
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Dorg.jboss.weld.serialization.beanIdentifierIndexOptimization=false
-Dosgi.shell.telnet.ip=127.0.0.1
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.awt.headless=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djava.ext.dirs=F:\Java\jdk8/lib/ext;F:\Java\jdk8/jre/lib/ext;F:\Java\docdoku\payara41\glassfish\domains\domain1/lib/ext
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djava.library.path=F:/Java/docdoku/payara41/glassfish/lib;F:/Java/jdk8/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;F:/vtk-9.1.0v/release/bin;F:/vtk-9.1.0v/release/lib/java/vtk-Windows-AMD64;F:/vtk-9.1.0v/debug/bin;F:/vtk-9.1.0v/debug/lib/java/vtk-Windows-AMD64;F:/python/Scripts;F:/python;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files/Bandizip;E:/Tencent/Bandizip;C:/Users/12926/.dnx/bin;C:/Program Files/Microsoft DNX/Dnvm;C:/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit;C:/Program Files/Microsoft SQL Server/120/Tools/Binn;C:/Program Files/Microsoft SQL Server/130/Tools/Binn;F:/Qt/5.7/msvc2015_64/bin;F:/Qt/Tools/QtCreator/bin;E:/CMAKE/bin;F:/Java/docdoku/payara41/bin/"C:/WINDOWS/system32;C:/Windows/SysWOW64;F:/OpenCV4.0.0/opencv/build/x64/vc14/bin;F:/Java/gradle-7.4.2/bin;F:/Java/jdk8/jre/bin;F:/Java/mysql-5.7.24-winx64/bin;F:/Java/apache-maven-3.8.6/bin;F:/Java/projects/openslide-win64-20220811/bin;F:/Java/projects/openslide-win64-20220811/lib;F:/Java/projects/openslide-win64-20220811/include;E:/Node.js/node_global/node_modules;E:/Node.js;E:/Git/cmd;F:/Java/docdoku/payara41/bin;F:/Java/docdoku/payara41/glassfish/bin;F:/Java/wildfly-13.0.0.Final/bin;C:/Users/12926/AppData/Local/Microsoft/WindowsApps;E:/Node.js/node_global;E:/webstorm/WebStorm 2020.1/bin;F:/Java/docdoku/payara41/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
F:/Java/docdoku/payara41/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=true,,,--watchdog=false,,,--debug=false,,,--domaindir,,,F:\Java\docdoku\payara41\glassfish\domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
true
-asadmin-classpath
F:/Java/docdoku/payara41/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain
-watchdog
false
Error:Could not find or load main class2020.1.bin;
F:.Java.docdoku.payara41.bin com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir F:.Java.docdoku.payara41.glassfish.domains.domain1 -read-stdin true -asadmin-args --host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=true,,,--watchdog=false,,,--debug=false,,,--domaindir,,,F:\Java\docdoku\payara41\glassfish\domains,,,domain1 -domainname domain1 -instancename server -type DAS -verbose true -asadmin-classpath F:.Java.docdoku.payara41.glassfish.lib.client.appserver-cli.jar -debug false -asadmin-classname com.sun.enterprise.admin.cli.AdminMain -watchdog false
Command start-domain failed.

Thank you sincerely for your patient guidance :grinning:

Heya, i could imagine, that it has to do with the language in your Windows installation. Things like:

“F:\Java\docdoku\payara41\glassfish\domains,domain1”

look very suspicious for me. It should be:

“F:\Java\docdoku\payara41\glassfish\domains\domain1”

Maybe the server will start with an english Windows version.

Cheers