當我啓動服務器時,它給了我以下錯誤:我無法啓動服務器。Glassfish服務器不在eclipse上啓動
Server GlassFish Server Open Source Edition 3 (Java EE 6) at localhost failed to start.
服務器日誌如下:
Jun 11, 2012 8:28:23 PM
com.sun.enterprise.admin.launcher.GFLauncherLogger
info INFO: JVM invocation command line: C:\Program Files\Java\jdk1.7.0_04\bin\java.exe -cp C:/Java/glassfish-3.0.1/glassfishv3/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains\domain1/logs/jvm.log
-Xmx512m
-javaagent:C:/Java/glassfish-3.0.1/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
-client
-Dosgi.shell.telnet.maxconn=1
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=C:\Java\glassfish-3.0.1\glassfishv3\glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains\domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains\domain1/config/server.policy
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains\domain1 -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip=127.0.0.1
-Djava.endorsed.dirs=C:\Java\glassfish-3.0.1\glassfishv3\glassfish/modules/endorsed;
C:\Java\glassfish-3.0.1\glassfishv3\glassfish/lib/endorsed -Dcom.sun.aas.installRoot=C:\Java\glassfish-3.0.1\glassfishv3\glassfish -Djava.ext.dirs=C:\Program Files\Java\jdk1.7.0_04/lib/ext;C:\Program Files\Java\jdk1.7.0_04/jre/lib/ext;C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains\domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains\domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains\domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dfelix.fileinstall.debug=1
-Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
-Djava.library.path=C:/Java/glassfish-3.0.1/glassfishv3/glassfish/lib;C:/Program Files/Java/jdk1.7.0_04/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Java/eclipse;C:/Java/glassfish-3.0.1/glassfishv3/glassfish com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname domain1
-asadmin-args start-domain,,,--domaindir,,,C:\Java\glassfish-3.0.1\glassfishv3\glassfish\domains,,,--debug=false,,,--verbose=false,,,domain1
-instancename server
-verbose false
-debug false
-asadmin-classpath C:/Java/glassfish-3.0.1/glassfishv3/glassfish/modules/admin-cli.jar
-asadmin-classname com.sun.enterprise.admin.cli.AsadminMain
-upgrade false
-domaindir C:/Java/glassfish-3.0.1/glassfishv3/glassfish/domains/domain1
-read-stdin true
在當前粘貼的日誌中沒有錯誤/異常,所以這個日誌沒有提供任何線索。請編輯問題以包含正確的日誌。另外,請不要使用報價按鈕的日誌,但代碼按鈕,因爲它會保留格式 – BalusC
你能否也請提一下如何啓動glassfish服務器? (是從IDE還是從asadmin.bat開始域或...)所有日誌說是最新的命令,與java.exe – esej
@esej從eclipse市場安裝Glassfish後我創建了一個新的服務器標籤中的服務器然後我點擊了服務器然後開始。然後停止在23%的過程中。我使用Eclipse IDE做了它。 – special