我安装了 NetBeans 6.8 并尝试运行 GlasshFish V3 服务器。我在 Windows Vista 32 位下工作。首先,它无法运行。然后我修改了
c:\Windows\System32\drivers\etc\hosts
文件并将以下行放入其中:
127.0.0.1 localhost
当我运行 GlasshFish V3 服务器时,没有显示任何错误,但只显示“INFOs”:
3 avr. 2010 19:23:19 com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Starting Grizzly Framework 1.9.18-k - Sat Apr 03 19:23:24 CEST 2010
INFO: Starting Grizzly Framework 1.9.18-k - Sat Apr 03 19:23:25 CEST 2010
INFO: Grizzly Framework 1.9.18-k started in: 423ms listening on port 35127
INFO: GlassFish v3 (74.2) startup time : Felix(4456ms) startup services(1709ms) total(6165ms)
INFO: Grizzly Framework 1.9.18-k started in: 459ms listening on port 35116
INFO: Grizzly Framework 1.9.18-k started in: 428ms listening on port 35155
INFO: Grizzly Framework 1.9.18-k started in: 470ms listening on port 35160
INFO: Grizzly Framework 1.9.18-k started in: 513ms listening on port 35159
INFO: javassist.util.proxy.ProxyFactory.classLoaderProvider = org.glassfish.weld.WeldActivator$GlassFishClassLoaderProvider@5be8f4
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Binding RMI port to *:35165
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://PC-de-Charlotte:35165/jndi/rmi://PC-de-Charlotte:35165/jmxrmi
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: Grizzly Framework 1.9.18-k started in: 150ms listening on port 35159
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Program Files\sges-v3\glassfish\modules\autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\CHARLO~1\AppData\Local\Temp\fileinstall-330907148519261411, felix.fileinstall.filter = null}
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Users\Charlotte\.netbeans\6.8\GlassFish_v3\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\CHARLO~1\AppData\Local\Temp\fileinstall-2938963288421854459, felix.fileinstall.filter = null}
INFO: Grizzly Framework 1.9.18-k started in: 95ms listening on port 35160
INFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: Installed C:\Program Files\sges-v3\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Users\Charlotte\.netbeans\6.8\GlassFish_v3\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\CHARLO~1\AppData\Local\Temp\fileinstall-6474085409014899009, felix.fileinstall.filter = null}
并且没有“Glassfish 已启动”之类的消息!因此,当我尝试访问管理 Web 界面时:
localhost:4848 or localhost:8080 or localhost:8181
,不行。
我应该怎么办?
非常感谢,问候。
答案1
在 Netbeans 中,右键单击有问题的 Glassfish 服务器,然后选择
View Domain Server log
打开命令行窗口并导航到 Glassfish 安装的“bin”目录,其中存放着“asadmin”可执行文件。在命令窗口中输入
asadmin start-domain --verbose
等待服务器启动,在服务器启动时查看 Glassfish IDE 窗口中的“输出”窗格。一切启动后,尝试重新启动从 Netbeans IDE。查看命令行窗口,它应该有一条消息,指出DAS 已停止。
关闭命令行窗口。如果重启失败,请尝试在从 Netbeans 重启之前取消部署所有应用程序。