Glassfish 3.1.1启动失败 [英] Glassfish 3.1.1 start fails

查看:281
本文介绍了Glassfish 3.1.1启动失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行glassfish 3.1.1。在我的开发机器上(使用Windows XP)已经有一段时间了,但今天早上它无法启动。运行
asadmin start-domain domain1
它会报告:

 等待domain1启动.....错误启动域domain1。 
服务器提前退出并退出代码1.
在它死前,它产生了以下输出:

在Felix平台上启动GlassFish
完成关闭GlassFish运行时
在线程main中的异常java.lang.reflect.InvocationTargetException $ b $在sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl。
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMa
in.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain .java:55)
导致:java.lang.NullPointerException
在com.sun.enterprise.server.logging.GFFileHandler.postConstruct(GFFileH
andler.java:159)
在com.sun.hk2.comp onent.AbstractCreatorImpl.inject(AbstractCreatorImpl。
java:131)
at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreato
r.java:91)
at com.sun.hk2.component.AbstractCreatorImpl .get(AbstractCreatorImpl.jav
a:82)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
a:67)
at com.sun.hk2 .component.EventPublishingInhabitant.get(EventPublishingIn
habitant.java:139)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
pl.java:76)
at org.jvnet.hk2.component.Habitat $ 5.get(Habitat.java:701)
at java.util.AbstractList $ Itr.next(AbstractList.java:358)
at com.sun。 enterprise.server.logging.LogManagerService.postConstruct(Log
ManagerService.java:374)
at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl。
java:131)
at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreato
r.java:91)
a t com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.jav
a:82)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
a:67)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingIn
habitant.java:139)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
pl.java:76)
at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.ja
va:229)
at com.sun.enterprise.v3.server .AppServerStartup.doStart(AppServerStartu
p.java:145)
at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup。
java:136)
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishI
mpl.java:79)
at com.sun.enterprise.glassfish .bootstrap.GlassFishDecorator.start(Glass
FishDecorator.java:63)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(O
SGiGlassFishImpl.java:69)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain $ Launcher.launch(
GlassFishMain.java:117)
... 6 more

然而,server.log的内容如下:



Jan 16,2

  012 10:59:14 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info 
信息:JVM调用命令行:
C:\Programme\Java\jdk1.7.0\bin\java.exe
-cp
C:/glassfish3/glassfish/modules/glassfish.jar
-XX:+ UnlockDiagnosticVMOptions
-XX:MaxPermSize = 192m
-XX:NewRatio = 2
-Xmx512m
-client
-javaagent:C:/ glassfish3 / GLA ssfish / lib / monitor / flashlight-agent.jar
-Dfelix.fileinstall.disableConfigSave = false
-Djavax.net.ssl.keyStore = C:\glassfish3\glassfish\domains\domain1 /config/keystore.jks
-Djava.awt.headless = true
-Dfelix.fileinstall.poll = 5000
-Djava.endorsed.dirs = C:\glassfish3\glassfish /模块/背书; C:\glassfish3\glassfish/lib/aborseorsed
-Dfelix.fileinstall.bundles.startTransient = true
-Djavax.net.ssl.trustStore = C:\glassfish3\ glassfish\domains\domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias = s1as
-DANTLR_USE_DIRECT_CLASS_LOADING = true
-Djava.security.auth.login。 config = C:\glassfish3\glassfish\domains\domain1/config/login.conf
-Dgosh.args = - nointeractive
-Dosgi.shell.telnet.maxconn = 1
-Djdbc.drivers = org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir = C:\glassfish3\glassfish / modules / autostart /
-Dosgi.shell.tel net.port = 6666
-Djava.security.policy = C:\glassfish3\glassfish\domains\domain1/config/server.policy
-Dfelix.fileinstall.log.level = 2
-Dcom.sun.enterprise.config.config_environment_factory_class = com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip = 127.0.0.1
-Dcom.sun .aas.instanceRoot = C:\glassfish3\glassfish\domains\domain1
-Dcom.sun.aas.installRoot = C:\glassfish3\glassfish
-Djava.ext.dirs = C:\Programme\Java\jdk1.7.0 / lib / ext目录; C:\Programme\Java\jdk1.7.0 / JRE / lib / ext目录; C:\glassfish3\glassfish\domains \domain1 / lib / ext
-Dfelix.fileinstall.bundles.new.start = true
-Dorg.glassfish.additionalOSGiBundlesToStart = org.apache.felix.shell,org.apache.felix.gogo。运行时,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall
-Djava.library.path = C:/ glassfish3 / glassfish / lib; C :/程序/ Java的/ jdk1。 7.0 / bin; C:/ WINDOWS / Sun / Java / bin; C:/ WINDOWS / system32; C:/ WINDOWS; C:/ Program / NVIDIA Corporation / PhysX / Common; C:/oracle/product/10.2.0/ client_1 / BIN; C:/ WINDOWS / system32 / wbem; C:/ Program / Microsoft SQL Server / 80 / Tools / Binn; C:/WINDOWS/system32/WindowsPowerShell/v1.0; Y:/Maven-3.0.3/ bin; C:/ TP / ant / bin; Y:/Lotto/JOB-4.3.4-win32/JOB-4.3.4-bin/bin; C:/ glassfish3 / glassfish / bin
com.sun。 enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
--host ,,, localhost ,,, - port ,,, 4848 ,,, --secure =假,,, - 简洁=假,,, - 回声=假,,, - 互动=真,,,启动域,,, - 详细=假,,, - 调试=假,,, - domaindir ,,, C:\glassfish3\glassfish\\\domains ,,, domain1
- 实例名
服务器
- 动词
false
-debug
false
-asadmin -classpath
C:/glassfish3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun。 enterprise.admin.cli.AsadminMain
-upgrade
false
-type
DAS
--domaindir
C:/ glassfish3 / glassfish / domains / domain1
-read-stdin
true
2012年1月16日上午10:59:14 com.sun.enterprise.admin.launcher.GFLauncherLogger信息
信息:在31毫秒内成功发射。

我们在周五更新了JDK7u2,但之后我才能启动域。日志显示它仍在使用JDK1.7.0。无论如何。



有什么想法吗?

href =http://java.net/jira/browse/GLASSFISH-17161 =nofollow> http://java.net/jira/browse/GLASSFISH-17161 这是GLASSFISH的副本-17037。 GLASSFISH-17037在发行说明中。



解决方法是在调整/更改控制台中的日志级别后运行CLI命令。



%asadmin set-log-levels com.sun.enterprise.server.logging.GFFileHandler = ALL
为域管理服务器(DAS)以外的服务器实例指定--target选项, 。

这已经在3.1.2发布版本中得到修复,该版本即将发布给FCS。


I'm running glassfish 3.1.1. on my development machine (using Windows XP) for some time now, but this morning it fails to start. Running asadmin start-domain domain1 it reports:

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:

Launching GlassFish on Felix platform
Completed shutdown of GlassFish runtime
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMa
in.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: java.lang.NullPointerException
        at com.sun.enterprise.server.logging.GFFileHandler.postConstruct(GFFileH
andler.java:159)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.
java:131)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreato
r.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.jav
a:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
a:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingIn
habitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
pl.java:76)
        at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:701)
        at java.util.AbstractList$Itr.next(AbstractList.java:358)
        at com.sun.enterprise.server.logging.LogManagerService.postConstruct(Log
ManagerService.java:374)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.
java:131)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreato
r.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.jav
a:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
a:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingIn
habitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
pl.java:76)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.ja
va:229)
        at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartu
p.java:145)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.
java:136)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishI
mpl.java:79)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(Glass
FishDecorator.java:63)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(O
SGiGlassFishImpl.java:69)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
GlassFishMain.java:117)
        ... 6 more

However, the server.log reads:

Jan 16, 2

012 10:59:14 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
Information: JVM invocation command line:
C:\Programme\Java\jdk1.7.0\bin\java.exe
-cp
C:/glassfish3/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-Xmx512m
-client
-javaagent:C:/glassfish3/glassfish/lib/monitor/flashlight-agent.jar
-Dfelix.fileinstall.disableConfigSave=false
-Djavax.net.ssl.keyStore=C:\glassfish3\glassfish\domains\domain1/config/keystore.jks
-Djava.awt.headless=true
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=C:\glassfish3\glassfish/modules/endorsed;C:\glassfish3\glassfish/lib/endorsed
-Dfelix.fileinstall.bundles.startTransient=true
-Djavax.net.ssl.trustStore=C:\glassfish3\glassfish\domains\domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.security.auth.login.config=C:\glassfish3\glassfish\domains\domain1/config/login.conf
-Dgosh.args=--nointeractive
-Dosgi.shell.telnet.maxconn=1
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=C:\glassfish3\glassfish/modules/autostart/
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=C:\glassfish3\glassfish\domains\domain1/config/server.policy
-Dfelix.fileinstall.log.level=2
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip=127.0.0.1
-Dcom.sun.aas.instanceRoot=C:\glassfish3\glassfish\domains\domain1
-Dcom.sun.aas.installRoot=C:\glassfish3\glassfish
-Djava.ext.dirs=C:\Programme\Java\jdk1.7.0/lib/ext;C:\Programme\Java\jdk1.7.0/jre/lib/ext;C:\glassfish3\glassfish\domains\domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-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.fileinstall
-Djava.library.path=C:/glassfish3/glassfish/lib;C:/Programme/Java/jdk1.7.0/bin;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/Programme/NVIDIA Corporation/PhysX/Common;C:/oracle/product/10.2.0/client_1/BIN;C:/WINDOWS/system32/wbem;C:/Programme/Microsoft SQL Server/80/Tools/Binn;C:/WINDOWS/system32/WindowsPowerShell/v1.0;Y:/Maven-3.0.3/bin;C:/TP/ant/bin;Y:/Lotto/JOB-4.3.4-win32/JOB-4.3.4-bin/bin;C:/glassfish3/glassfish/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=false,,,--debug=false,,,--domaindir,,,C:\glassfish3\glassfish\domains,,,domain1
-instancename
server
-verbose
false
-debug
false
-asadmin-classpath
C:/glassfish3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-type
DAS
-domaindir
C:/glassfish3/glassfish/domains/domain1
-read-stdin
true
Jan 16, 2012 10:59:14 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
Information: Successfully launched in 31 msec.

We updated to JDK7u2 on Friday, but I was able to start the domain afterwards. The log shows it is still using JDK1.7.0. anyway.

Any ideas?

解决方案

You are seeing http://java.net/jira/browse/GLASSFISH-17161 which is a duplicate of GLASSFISH-17037. GLASSFISH-17037 is in the release notes.

The workaround is to run a CLI command after adjusting/changing the log levels in console.

%asadmin set-log-levels com.sun.enterprise.server.logging.GFFileHandler=ALL Specify the --target option for a server instance other than the domain administration server (DAS).

This has been fixed in 3.1.2 Release which is scheduled for FCS soon.

这篇关于Glassfish 3.1.1启动失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆