Glassfish server start failed - netbeans
I have created a project in netbeans ide, when I run the project a dialogue box comes with the title "information" and message "glassfish server start failed please check server admin user name and password properties also please check the server log file for other possible causes". I did not set any username or password for the glassfish server. When I open C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1\logs I find the server text document with the code
[2022-08-09T23:05:31.163+0300] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1660075531163] [levelValue: 800] [[
JVM invocation command line:
C:\Program Files\Java\jdk-18.0.1.1\bin\java.exe
-cp
C:/Users/Robert Mdee/glassfish6/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-Xmx512m
-Xbootclasspath/a:C:\Users\Robert Mdee\glassfish6\glassfish/lib/grizzly-npn-api.jar
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
-javaagent:C:/Users/Robert Mdee/glassfish6/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=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/server.policy
-Djava.security.auth.login.config=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/login.conf
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djavax.net.ssl.keyStore=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:\Users\Robert Mdee\glassfish6\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=C:\Users\Robert Mdee\glassfish6\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
-Dcom.sun.aas.instanceRoot=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1
-Dcom.sun.aas.installRoot=C:\Users\Robert Mdee\glassfish6\glassfish
-Djava.library.path=C:/Users/Robert Mdee/glassfish6/glassfish/lib;C:/Program Files/Java/jdk-18.0.1.1/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Program Files/Java/jdk-17/bin;C:/Program Files/Java/jdk-16.0.2/bin;C:/Program Files/Common Files/Oracle/Java/javapath;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files/MiKTeX 2.9/miktex/bin/x64;C:/Program Files/MySQL/MySQL Shell 8.0/bin;C:/Users/Robert Mdee/AppData/Local/Microsoft/WindowsApps;C:/Users/Robert Mdee/glassfish6/glassfish/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
C:/Users/Robert Mdee/glassfish6/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,,,C:\Users\Robert Mdee\glassfish6\glassfish\domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
C:/Users/Robert Mdee/glassfish6/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]
[2022-08-09T23:15:49.174+0300] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1660076149174] [levelValue: 800] [[
JVM invocation command line:
C:\Program Files\Java\jdk-18.0.1.1\bin\java.exe
-cp
C:/Users/Robert Mdee/glassfish6/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-Xmx512m
-Xbootclasspath/a:C:\Users\Robert Mdee\glassfish6\glassfish/lib/grizzly-npn-api.jar
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
-javaagent:C:/Users/Robert Mdee/glassfish6/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=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/server.policy
-Djava.security.auth.login.config=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/login.conf
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djavax.net.ssl.keyStore=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:\Users\Robert Mdee\glassfish6\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=C:\Users\Robert Mdee\glassfish6\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
-Dcom.sun.aas.instanceRoot=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1
-Dcom.sun.aas.installRoot=C:\Users\Robert Mdee\glassfish6\glassfish
-Djava.library.path=C:/Users/Robert Mdee/glassfish6/glassfish/lib;C:/Program Files/Java/jdk-18.0.1.1/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Program Files/Java/jdk-17/bin;C:/Program Files/Java/jdk-16.0.2/bin;C:/Program Files/Common Files/Oracle/Java/javapath;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files/MiKTeX 2.9/miktex/bin/x64;C:/Program Files/MySQL/MySQL Shell 8.0/bin;C:/Users/Robert Mdee/AppData/Local/Microsoft/WindowsApps;C:/Users/Robert Mdee/glassfish6/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
C:/Users/Robert Mdee/glassfish6/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,,,C:\Users\Robert Mdee\glassfish6\glassfish\domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
C:/Users/Robert Mdee/glassfish6/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]
[2022-08-09T23:18:16.179+0300] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1660076296179] [levelValue: 800] [[
JVM invocation command line:
C:\Program Files\Java\jdk-18.0.1.1\bin\java.exe
-cp
C:/Users/Robert Mdee/glassfish6/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-Xmx512m
-Xbootclasspath/a:C:\Users\Robert Mdee\glassfish6\glassfish/lib/grizzly-npn-api.jar
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
-javaagent:C:/Users/Robert Mdee/glassfish6/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=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/server.policy
-Djava.security.auth.login.config=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/login.conf
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djavax.net.ssl.keyStore=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:\Users\Robert Mdee\glassfish6\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=C:\Users\Robert Mdee\glassfish6\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
-Dcom.sun.aas.instanceRoot=C:\Users\Robert Mdee\glassfish6\glassfish\domains\domain1
-Dcom.sun.aas.installRoot=C:\Users\Robert Mdee\glassfish6\glassfish
-Djava.library.path=C:/Users/Robert Mdee/glassfish6/glassfish/lib;C:/Program Files/Java/jdk-18.0.1.1/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Program Files/Java/jdk-17/bin;C:/Program Files/Java/jdk-16.0.2/bin;C:/Program Files/Common Files/Oracle/Java/javapath;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/Program Files/MiKTeX 2.9/miktex/bin/x64;C:/Program Files/MySQL/MySQL Shell 8.0/bin;C:/Users/Robert Mdee/AppData/Local/Microsoft/WindowsApps;C:/Users/Robert Mdee/glassfish6/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
C:/Users/Robert Mdee/glassfish6/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,,,C:\Users\Robert Mdee\glassfish6\glassfish\domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
C:/Users/Robert Mdee/glassfish6/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]
What can I do to correct this error so the project can sucesfully run and open the browser.
You don't specify your precise version of Glassfish, but based on the directory path "...\glassfish6\glassfish..." in your log I'm assuming that you are running some implementation of GlassFish 6.
If so, these are the supported Java releases for Eclipse GlassFish 6.x:
GlassFish 6 requires JDK 8.
GlassFish 6.1 supports JDK 11
GlassFish 6.2.1 supports JDK 17
GlassFish 6.2.2 supports JDK 17
GlassFish 6.2.3 supports JDK 17
GlassFish 6.2.4 supports JDK 18
GlassFish 6.2.5 supports JDK 18
See the Eclipse GlassFish Downloads page for more details.
You also don't specify your version of NetBeans, but since you are running Java 18, your only valid options are NetBeans 13 or NetBeans 14.
To summarize, since the log shows that you are using JDK 18:
You must use GlassFish 6.2.4 or GlassFish 6.2.5.
You must use NetBeans 13 or NetBeans 14.
Note that the version of Java being used by NetBeans, as shown in the Help > About screen, will also be used to run GlassFish when started within NetBeans.
As a possibly related matter, I see that your java.library.path value includes entries for several JDK releases. You probably want to clean that up.
Related
Eclipse Vaadin Widgetset compile heap size problem
While compiling vaadin widgetset on my eclipse, i get this error. i see some posts that say we can change heap space size in vaadin plugin but there is no settings like this on my eclipse. (My plugin settings)(Related Post) while compiling widgetset, vaadin plugin runs a command and it sets -Xss8M and -Xmx512M. Is there any way to change this settings? Error: Executing compiler with command line: C:\Program Files\Java\jre1.8.0_161\bin\java.exe -Djava.awt.headless=true -Xss8M -Xmx512M -classpath C:\Program Files\Java\jre1.8.0_161\lib\resources.jar;C:\Program Files\Java\jre1.8.0_161\lib\rt.jar;C:\Program Files\Java\jre1.8.0_161\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_161\lib\jce.jar;C:\Program Files\Java\jre1.8.0_161\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_161\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\cldrdata.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\jaccess.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\jfxrt.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\localedata.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\nashorn.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunec.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunmscapi.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\zipfs.jar;D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/src;D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/build/classes;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-server/jars/vaadin-server-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-sass-compiler/jars/vaadin-sass-compiler-0.9.13.jar;C:/Users/bekir.mavus/.ivy2/cache/org.w3c.css/sac/jars/sac-1.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin.external.flute/flute/jars/flute-1.3.0.gg2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-shared/jars/vaadin-shared-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.jsoup/jsoup/jars/jsoup-1.11.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin.external/gentyref/jars/gentyref-1.2.0.vaadin1.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-themes/jars/vaadin-themes-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.github.appreciated/material/jars/material-1.1.7.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/fontawesomelabel/jars/fontawesomelabel-1.4.0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/popupbutton/jars/popupbutton-3.0.0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.blackbluegl/calendar-component/jars/calendar-component-2.0-BETA4.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin.addon/tableexport-for-vaadin/jars/tableexport-for-vaadin-1.8.0.jar;C:/Users/bekir.mavus/.ivy2/cache/com.github.appreciated/app-layout-addon/jars/app-layout-addon-0.9.20.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ocpsoft.prettytime/prettytime/bundles/prettytime-4.0.1.Final.jar;C:/Users/bekir.mavus/.ivy2/cache/com.lbs.vaadin.addons/lbs-vaadin-datetimerangepicker/jars/lbs-vaadin-datetimerangepicker-1.0.0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.tltv.gantt/gantt-addon/jars/gantt-addon-1.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client-compiled/jars/vaadin-client-compiled-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.guava/guava/bundles/guava-18.0.jar;C:/Users/bekir.mavus/.ivy2/cache/com.wcs.wcslib/wcslib-vaadin-widget-recaptcha/jars/wcslib-vaadin-widget-recaptcha-2.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.jarektoro/responsive-layout/bundles/responsive-layout-2.1.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/inputmask/jars/inputmask-1.0.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client/jars/vaadin-client-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.gwt/gwt-elemental/jars/gwt-elemental-2.8.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.gwt/gwt-user/jars/gwt-user-2.8.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.jsinterop/jsinterop-annotations/jars/jsinterop-annotations-1.0.2-sources.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client-compiler/jars/vaadin-client-compiler-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.gwt/gwt-dev/jars/gwt-dev-2.8.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.code.findbugs/jsr305/jars/jsr305-1.3.9.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.code.gson/gson/jars/gson-2.6.2.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm/jars/asm-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm-util/jars/asm-util-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm-tree/jars/asm-tree-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm-commons/jars/asm-commons-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/colt/colt/jars/colt-1.2.0.jar;C:/Users/bekir.mavus/.ivy2/cache/ant/ant/jars/ant-1.6.5.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.2.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.4.jar;C:/Users/bekir.mavus/.ivy2/cache/com.ibm.icu/icu4j/jars/icu4j-50.1.1.jar;C:/Users/bekir.mavus/.ivy2/cache/tapestry/tapestry/jars/tapestry-4.0.2.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.htmlunit/htmlunit/jars/htmlunit-2.19.jar;C:/Users/bekir.mavus/.ivy2/cache/xalan/xalan/jars/xalan-2.7.2.jar;C:/Users/bekir.mavus/.ivy2/cache/xalan/serializer/jars/serializer-2.7.2.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.commons/commons-lang3/jars/commons-lang3-3.4.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.httpcomponents/httpclient/jars/httpclient-4.5.1.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.httpcomponents/httpcore/jars/httpcore-4.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.2.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.5.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.httpcomponents/httpmime/jars/httpmime-4.5.1.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.htmlunit/htmlunit-core-js/jars/htmlunit-core-js-2.17.jar;C:/Users/bekir.mavus/.ivy2/cache/xerces/xercesImpl/jars/xercesImpl-2.11.0.jar;C:/Users/bekir.mavus/.ivy2/cache/xml-apis/xml-apis/jars/xml-apis-1.4.01.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.nekohtml/nekohtml/jars/nekohtml-1.9.22.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.cssparser/cssparser/jars/cssparser-0.9.18.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.websocket/websocket-client/jars/websocket-client-9.2.13.v20150730.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.websocket/websocket-common/jars/websocket-common-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.websocket/websocket-api/jars/websocket-api-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-servlets/jars/jetty-servlets-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-annotations/jars/jetty-annotations-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-plus/jars/jetty-plus-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-jndi/jars/jetty-jndi-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/javax.annotation/javax.annotation-api/jars/javax.annotation-api-1.2.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/apache-jsp/jars/apache-jsp-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.toolchain/jetty-schemas/jars/jetty-schemas-3.1.M0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.mortbay.jasper/apache-jsp/jars/apache-jsp-8.0.9.M3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.mortbay.jasper/apache-el/jars/apache-el-8.0.9.M3.jar;D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/WebContent/WEB-INF/lib/LbsApplicationInfo.jar;C:/Program Files/Java/jre1.8.0_161/lib/resources.jar;C:/Program Files/Java/jre1.8.0_161/lib/rt.jar;C:/Program Files/Java/jre1.8.0_161/lib/jsse.jar;C:/Program Files/Java/jre1.8.0_161/lib/jce.jar;C:/Program Files/Java/jre1.8.0_161/lib/charsets.jar;C:/Program Files/Java/jre1.8.0_161/lib/jfr.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/access-bridge-64.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/cldrdata.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/dnsns.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/jaccess.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/jfxrt.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/localedata.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/nashorn.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunec.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunjce_provider.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunmscapi.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunpkcs11.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/zipfs.jar -Dgwt.persistentunitcachedir=C:\Users\BEKIR~1.MAV\AppData\Local\Temp\widgetset_com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset29dd9ad9-ed25-4c1a-bc70-9941f577cf8f com.vaadin.tools.WidgetsetCompiler -war WebContent/VAADIN/widgetsets -deploy C:\Users\BEKIR~1.MAV\AppData\Local\Temp\widgetset_com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset29dd9ad9-ed25-4c1a-bc70-9941f577cf8f -extra C:\Users\BEKIR~1.MAV\AppData\Local\Temp\widgetset_com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset29dd9ad9-ed25-4c1a-bc70-9941f577cf8f -localWorkers 8 -logLevel INFO com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset Updating GWT module description file... Widgetsets found from classpath: org.vaadin.hene.popupbutton.widgetset.PopupbuttonWidgetset in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/popupbutton/jars/popupbutton-3.0.0.jar!/ com.lbs.vaadin.addons.datetimerangepicker.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/com.lbs.vaadin.addons/lbs-vaadin-datetimerangepicker/jars/lbs-vaadin-datetimerangepicker-1.0.0.jar!/ org.vaadin.inputmask.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/inputmask/jars/inputmask-1.0.2.jar!/ org.vaadin.addon.calendar.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.blackbluegl/calendar-component/jars/calendar-component-2.0-BETA4.jar!/ com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset in file:/D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/src org.tltv.gantt.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.tltv.gantt/gantt-addon/jars/gantt-addon-1.0.3.jar!/ com.vaadin.DefaultWidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client/jars/vaadin-client-8.4.3.jar!/ Addon styles found from classpath: VAADIN/addons/font-awesome-label/font-awesome.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/fontawesomelabel/jars/fontawesomelabel-1.4.0.jar!/ VAADIN/addons/calendar/calendar-addon.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.blackbluegl/calendar-component/jars/calendar-component-2.0-BETA4.jar!/ VAADIN/addons/app-layout/app-layout.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/com.github.appreciated/app-layout-addon/jars/app-layout-addon-0.9.20.jar!/ VAADIN/addons/gantt/gantt.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.tltv.gantt/gantt-addon/jars/gantt-addon-1.0.3.jar!/ Search took 16ms Done. Starting GWT compiler Oca 16, 2019 9:17:35 AM java.util.prefs.WindowsPreferences <init> WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. Compiling module com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset Oca 16, 2019 9:18:33 AM com.vaadin.tools.WidgetsetCompiler lambda$main$0 SEVERE: Widgetset compilation failed java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOf(Unknown Source) at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source) at java.lang.AbstractStringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at com.google.gwt.dev.javac.JdtUtil.signature(JdtUtil.java:356) at com.google.gwt.dev.jjs.impl.ReferenceMapper.setMethod(ReferenceMapper.java:192) at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMethod(GwtAstBuilder.java:4197) at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4086) at com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3929) at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3971) at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129) at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:336) at org.eclipse.jdt.internal.compiler.Compiler.processCompiledUnits(Compiler.java:546) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:458) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1040) at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423) at com.google.gwt.dev.Precompile.precompile(Precompile.java:222) at com.google.gwt.dev.Precompile.precompile(Precompile.java:202) at com.google.gwt.dev.Precompile.precompile(Precompile.java:143) at com.google.gwt.dev.Compiler.compile(Compiler.java:204) at com.google.gwt.dev.Compiler.compile(Compiler.java:155) at com.google.gwt.dev.Compiler.compile(Compiler.java:144) at com.google.gwt.dev.Compiler$1.run(Compiler.java:118) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50) at com.google.gwt.dev.Compiler.main(Compiler.java:125) at com.vaadin.tools.WidgetsetCompiler.lambda$main$0(WidgetsetCompiler.java:78) at com.vaadin.tools.WidgetsetCompiler$$Lambda$1/511754216.run(Unknown Source) Widgetset compilation finished
UCD WAS Config plugin can't find the WAS installation
My WAS 8.5 is installed in C:\Program Files(x86)\IBM\WebSphere\AppServer\bin\wsadmin.bat. How can I tell the discovery process to look at my installation location? plugin: WAS - Deploy, id: com.urbancode.air.plugin.WebSphere, version: 98 plugin command: 'cmd' '/C' '""C:\Program Files\ibm-ucd\agent\opt\groovy-1.8.8\bin\groovy" -cp "C:\Program Files\ibm-ucd\agent\var\plugins\com.urbancode.air.plugin.WebSphere_98_b9f10d322ce14ba5b38aa4757ce3ac59f5ec7643b2b922935ccab03536b404a2\classes;C:\Program Files\ibm-ucd\agent\var\plugins\com.urbancode.air.plugin.WebSphere_98_b9f10d322ce14ba5b38aa4757ce3ac59f5ec7643b2b922935ccab03536b404a2\lib\uDeployRestClient.jar;C:\Program Files\ibm-ucd\agent\var\plugins\com.urbancode.air.plugin.WebSphere_98_b9f10d322ce14ba5b38aa4757ce3ac59f5ec7643b2b922935ccab03536b404a2\lib\jettison-1.1.jar" "C:\Program Files\ibm-ucd\agent\var\plugins\com.urbancode.air.plugin.WebSphere_98_b9f10d322ce14ba5b38aa4757ce3ac59f5ec7643b2b922935ccab03536b404a2\wasDiscovery.groovy" "C:\Program Files\ibm-ucd\agent\var\temp\logs8306861047267428227\input.props" "C:\Program Files\ibm-ucd\agent\var\temp\logs8306861047267428227\output.props""' working directory: C:\Program Files\ibm-ucd\agent\var\temp properties: PLUGIN_INPUT_PROPS=C:\Program Files\ibm-ucd\agent\var\temp\logs8306861047267428227\input.props PLUGIN_OUTPUT_PROPS=C:\Program Files\ibm-ucd\agent\var\temp\logs8306861047267428227\output.props pathOverride= profilePathAgent= profilePathResource= resourcePath=/Topology Discovery/T500 environment: AGENT_HOME=C:\Program Files\ibm-ucd\agent AH_WEB_URL=https://localhost:8443 AUTH_TOKEN=**** DS_SYSTEM_ENCODING=Cp1252 JAVA_OPTS=-Dfile.encoding=Cp1252 -Dconsole.encoding=Cp1252 PLUGIN_HOME=C:\Program Files\ibm-ucd\agent\var\plugins\com.urbancode.air.plugin.WebSphere_98_b9f10d322ce14ba5b38aa4757ce3ac59f5ec7643b2b922935ccab03536b404a2 UD_DIALOGUE_ID=4f5c360e-69e0-4f52-87e0-6dfc6b5e01a1 ================================================================================ **Checking path for WebSphere install: C:\Program Files\IBM\WebSphere\AppServer\bin\wsadmin.bat Checking path for WebSphere install: C:\IBM\WebSphere\AppServer\bin\wsadmin.bat WebSphere installation not found. Ending discovery process.**
Set the wsadmin.path property on the agent resource to the location of the wsadmin file. See step 2 in the following document: https://www.ibm.com/support/knowledgecenter/SS4GSP_6.2.2/com.ibm.udeploy.doc/topics/resources_import_was.html
Eclipse Wildfly Server Runtime fails when using domain
I just install the Jboss Tools into Eclipse Mars and tried using the Wildfly 10.0 Runtime. I've configured the runtime to use domain mode but when I try to start my app, I'm getting the error: 11:18:07,344 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.0.Final 11:18:07,564 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final 11:18:07,618 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 10.0.0.CR5 (WildFly Core 2.0.5.Final) starting 11:18:07,871 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131) at org.jboss.as.server.ServerService.boot(ServerService.java:356) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299) at java.lang.Thread.run(Thread.java:745) Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,1] Message: Unexpected element '{urn:jboss:domain:4.0}domain' at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108) at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123) ... 3 more 11:18:07,872 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details. 11:18:07,873 INFO [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested. 11:18:07,883 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 10.0.0.CR5 (WildFly Core 2.0.5.Final) stopped in 6ms I don't get this problem when I use standalone mode but I need domain mode to test my app. Does anyone know what the problem might be?
indeed, the 'launch configuration' built by the jBoss server runtime plug-in/tool is wrong for a Domain-mode start. You can fix it as follows: Create the server as usual and its associated runtime (in the Eclipse servers' view > right-click > new > server). When creating the runtime, pay attention to specify the 'server base directory' as "domain" (the default is "standalone") and then 'configuration file' as "domain.xml" In the servers' view, right-click the just created jBoss server and do 'Open'. Under the category 'General Information' there is a link to 'Open Launch Configuration' You need to adjust the launch configuration to match the actual launch made by the domain.bat / domain.sh. Of course, you'll need to adjust all paths below: DO NOT forget to check OUT the option 'Always update arguments related to the runtime' Program arguments: -mp "C:/jBOSS/EAP70/modules" org.jboss.as.process-controller -jboss-home "C:\jBOSS\EAP70" -jvm "C:\java\JDK8U66\jre\bin\java" -mp "C:/jBOSS/EAP70/modules" -- "-Dorg.jboss.boot.log.file=C:/jBOSS/EAP70/domain/log/boot.log" "-Dlogging.configuration=file:/C:/jBOSS/EAP70/domain/configuration/logging.properties" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server -- -default-jvm "C:\java\JDK8U66\jre\bin\java" VM arguments: -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server "-Dorg.jboss.boot.log.file=C:/jBOSS/EAP70/domain/log/boot.log" "-Dlogging.configuration=file:/C:/jBOSS/EAP70/domain/configuration/logging.properties" -cp "C:\jBOSS\EAP70\jboss-modules.jar" -Djboss.home.dir=C:/jBOSS/EAP70 -Djboss.bind.address.management=localhost Working Directory: C:/jBOSS/EAP70/bin Main class: org.jboss.modules.Main Classpath: (bootstrap) JRE system Library + (user entries) jboss-modules.jar If you are curious to understand where the trick is: In the long java command line, there is a separation around the main java class to launch, where "VM arguments" stand on the right of it, and "program arguments" on the left of it. You may capture the actual complete java command line that launches your server in domain mode with a tool like Microsoft sysinternals process-explorer on Windows, or the pargs shell command in LINUX, after you have started jBOSS with domain.bat or domain.sh. But you will observe here that the java command takes a "-jar module.jar" argument whereas Eclipse launch requires a conventional "-cp module.jar main-class" argument form. the '-jar' argument is indeed a variant spec where the main class is specified by the manifest file inside the jar. In my case, the (very long) command line was: C:\jBOSS\EAP70\bin>"C:\Program Files\Java\jre1.8.0_66\bin\java" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\process-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties" -jar "C:\jBOSS\EAP70\jboss-modules.jar" -mp "C:\jBOSS\EAP70\modules" org.jboss.as.process-controller -jboss-home "C:\jBOSS\EAP70" -jvm "C:\Program Files\Java\jre1.8.0_66\bin\java" -mp "C:\jBOSS\EAP70\modules" -- "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\host-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server -- -default-jvm "C:\Program Files\Java\jre1.8.0_66\bin\java" which breaks as follows: JAVA_COMMAND>> "C:\Program Files\Java\jre1.8.0_66\bin\java" VM_ARGS_____>> -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\process-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties" MAIN_CLASS__>> -jar "C:\jBOSS\EAP70\jboss-modules.jar" >>EQUIVALENT>> -cp "C:\jBOSS\EAP70\jboss-modules.jar" org.jboss.modules.Main PROGRAM-ARGS>> -mp "C:\jBOSS\EAP70\modules" org.jboss.as.process-controller -jboss-home "C:\jBOSS\EAP70" -jvm "C:\Program Files\Java\jre1.8.0_66\bin\java" -mp "C:\jBOSS\EAP70\modules" -- "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\host-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server -- -default-jvm "C:\Program Files\Java\jre1.8.0_66\bin\java" From the point you understand this quite surprising program argument section that replicates many of the JVM aguments, you can then map the pieces in Eclipse launch configuration. Do not forget that "-jar C:\jBOSS\EAP70\jboss-modules.jar" becomes "-cp C:\jBOSS\EAP70\jboss-modules.jar org.jboss.modules.Main" when the '-cp ...' is then the last piece of VM arguments, and "org.jboss.modules.Main" is the one class to define under the "Main" tab.
Cannot start GlassFish in Eclipse: GlassFish error : Could not find or load main class files
I am attempting to start glassfish from within eclipse (juno). I get the following error: INFO: Successfully launched in 10 msec. Error: Could not find or load main class Files Command start-domain failed. The DAS was stopped. Here is the complete output in Eclipse: Aug 16, 2012 11:51:23 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: JVM invocation command line: C:\Program Files\Java\jdk1.7.0\bin\java.exe -cp C:/glassfish3-2/glassfish3/glassfish/modules/glassfish.jar -XX:+UnlockDiagnosticVMOptions -XX:MaxPermSize=192m -XX:NewRatio=2 -Xmx512m -javaagent:C:/glassfish3-2/glassfish3/glassfish/lib/monitor/btrace- agent.jar=unsafe=true,noServer=true -client -Dosgi.shell.telnet.maxconn=1 -Dfelix.fileinstall.disableConfigSave=false -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Dfelix.fileinstall.dir=C:\glassfish3-2\glassfish3\glassfish/modules/autostart/ -Djavax.net.ssl.keyStore=C:\glassfish3-2\glassfish3\glassfish\domains\domain1/config/keystore.jks -Dosgi.shell.telnet.port=6666 -Djava.security.policy=C:\glassfish3-2\glassfish3\glassfish\domains\domain1/config/server.policy -Dfelix.fileinstall.log.level=2 -Dfelix.fileinstall.poll=5000 -Dcom.sun.aas.instanceRoot=C:\glassfish3-2\glassfish3\glassfish\domains\domain1 -Dosgi.shell.telnet.ip=127.0.0.1 -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serv erbeans.AppserverConfigEnvironmentFactory -Djava.endorsed.dirs=C:\glassfish3-2\glassfish3\glassfish/modules/endorsed; C:\glassfish3-2\glassfish3\glassfish/lib/endorsed -Dcom.sun.aas.installRoot=C:\glassfish3-2\glassfish3\glassfish -Dfelix.fileinstall.bundles.startTransient=true -Djava.ext.dirs=C:\Program Files\Java\jdk1.7.0/lib/ext;C:\Program Files\Java\jdk1.7.0/jre/lib/ext;C:\glassfish3-2\glassfish3\glassfish\domains\domain1/lib/ext -Dfelix.fileinstall.bundles.new.start=true -Djavax.net.ssl.trustStore=C:\glassfish3-2\glassfish3\glassfish\domains\domain1/config/cacerts.jks Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Djava.security.auth.login.config=C:\glassfish3-2\glassfish3\glassfish\domains\domain1/config/login.conf -DANTLR_USE_DIRECT_CLASS_LOADING=true -Dgosh.args=--nointeractive -Djava.library.path=C:/glassfish3-2/glassfish3/glassfish/lib;C:/Program Files/Java/jdk1.7.0/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Program Files (x86)/HP SimplePass 2011/x64;C:/Program Files (x86)/HP SimplePass 2011;C:/Program Files/Common Files/Microsoft Shared/Windows Live;C:/Program Files (x86)/Common Files/microsoft shared/Windows Live;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files (x86)/Windows Live/Shared;C:/Program Files/Intel/WiFi/bin;C:/Program Files/Common Files/Intel/WirelessCommon;C:/Program Files (x86)/Intel/Services/IPT;C:/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn;C:/Program Files/Microsoft SQL Server/100/Tools/Binn;C:/Program Files/Microsoft SQL Server/100/DTS/Binn;C:/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0;C:/Program Files (x86)/Java/jdk1.7.0_01/bin;C:/glassfish3-2/glassfish3/glassfish/"C:/eclipse/eclipse.exe;C:/glassfish3-2/glassfish3/glassfish/" -vm "C:/Program Files (x86)/Java/jdk1.7.0_01/jre/bin/javaw.exe;C:/glassfish3-2/glassfish3/glassfish/.;C:/Program Files/Microsoft SQL Server/110/Tools/Binn;C:/Program Files (x86)/Microsoft SQL Server/110/Tools/Binn;C:/Program Files/Microsoft SQL Server/110/DTS/Binn;C:/Program Files (x86)/Microsoft SQL Server/110/Tools/Binn/ManagementStudio;C:/Program Files (x86)/Microsoft SQL Server/110/DTS/Binn;C:/Program Files/jEdit;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/QuickTime/QTSystem;C:/Program Files/Java/jdk1.7.0/db/bin;C:/glassfish3-2/glassfish3/glassfish com.sun.enterprise.glassfish.bootstrap.ASMain -domainname domain1 -asadmin-args host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=true,,,--debug=false,,,--domaindir,,,C:\glassfish3-2\glassfish3\glassfish\domains,,,domain1 -instancename server -verbose true -debug false -asadmin-classpath C:/glassfish3-2/glassfish3/glassfish/modules/admin-cli.jar -asadmin-classname com.sun.enterprise.admin.cli.AsadminMain -upgrade false -type DAS -domaindir C:/glassfish3-2/glassfish3/glassfish/domains/domain1 -read-stdin true Aug 16, 2012 11:51:23 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: Successfully launched in 10 msec. Error: Could not find or load main class Files Command start-domain failed. The DAS was stopped. Thanks as always in advance. Regards, umbregachoong
This happened to me with glassfish started on command prompt. c:\glassfish4\glassfish\bin>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: Error: Could not find or load main class Files Command start-domain failed. It was caused by having the following on PATH: Path=...;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;...
I had the same issue as jan.supol, setting the path of the NVIDIA binaries into double-quotes like this also fixed it for me: Path=...;"C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common";... Most probably this can be caused by any whitespace in the PATH-variable that is not enclosed in double-quotes.
Installing SBT an Mac OSX 10.6
I am trying to get SBT running on my Mac Operating System. So far, I downloaded the Jar-Launcher and installed in into the /bin folder. Then I created a SBT script, containing the following lines: export PATH=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:$PATH java -Xmx512M -jar ` $0` /bin/sbt-launch-0.7.7.jar "$#" When I call SBT on the Console, I receive the following series of error messages: > /bin/sbt: fork: Resource temporarily unavailable java.io.IOException: Cannot run program "sh": error=35, Resource temporarily unavailable at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at java.lang.Runtime.exec(Runtime.java:466) at jline.UnixTerminal.exec(UnixTerminal.java:297) at jline.UnixTerminal.exec(UnixTerminal.java:282) at jline.UnixTerminal.stty(UnixTerminal.java:273) at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:77) at jline.Terminal.setupTerminal(Terminal.java:75) at jline.Terminal.getTerminal(Terminal.java:26) at xsbt.boot.JLine$.terminal(SimpleReader.scala:20) at xsbt.boot.JLine$.createReader(SimpleReader.scala:22) at xsbt.boot.SimpleReader$.<init>(SimpleReader.scala:42) at xsbt.boot.SimpleReader$.<clinit>(SimpleReader.scala) at xsbt.boot.Initialize$.create(Create.scala:17) at xsbt.boot.Launch$.parsed(Launch.scala:28) at xsbt.boot.Launch$.configured(Launch.scala:21) at xsbt.boot.Launch$.apply(Launch.scala:16) at xsbt.boot.Launch$.apply(Launch.scala:13) at xsbt.boot.Boot$.runImpl(Boot.scala:24) at xsbt.boot.Boot$.run(Boot.scala:19) at xsbt.boot.Boot$.main(Boot.scala:15) at xsbt.boot.Boot.main(Boot.scala) Caused by: java.io.IOException: error=35, Resource temporarily unavailable at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) at java.lang.ProcessImpl.start(ProcessImpl.java:91) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 21 more What is going wrong here?
Looks like you have a stray $0 there (which is expanded to the name of the current process sh). Try java -Xmx512M -jar /bin/sbt-launch-0.7.7.jar "$#" instead. That should get you up and running. The usual way is to call sbt like so: java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$#" supposed you have the shell script sbt in the same folder as sbt-launch.jar because that is where dirname $0 points at.