我正在尝试将netbeans中的Web应用程序部署到捆绑的glassfish服务器。但它没有部署和运行。卡住了很长时间(5或6分钟)并说无法启动glassfish服务器,检查用户名和密码或服务器日志是出于其他原因。用户名和密码都是默认的。没碰过它。但是,如果我转到bundle文件夹并以asadmin运行glassfish,我可以启动和停止服务器。似乎netbeans无法再控制它了。
Glassfish日志
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
Launching GlassFish on Felix platform
Nov 30, 2016 10:24:34 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Nov 30, 2016 10:24:34 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Nov 30, 2016 10:24:34 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Nov 30, 2016 10:24:36 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
WARNING: Can not start bundle file:/Applications/NetBeans/glassfish-4.1.1/glassfish/modules/core.jar because it is not contained in the list of installed bundles.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@6cbfad8c in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Applications/NetBeans/glassfish-4.1.1/glassfish
#!## LogManagerService.postConstruct : templateDir=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Applications/NetBeans/glassfish-4.1.1/glassfish/domains/domain1/config/logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1.1 (build 1)
Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Info: HV000001: Hibernate Validator 5.1.2.Final
Info: Authorization Service has successfully initialized.
Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 56ms - bound to [/0.0.0.0:8080]
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 3ms - bound to [/0.0.0.0:8181]
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 2ms - bound to [/0.0.0.0:4848]
Info: Grizzly Framework 2.3.23 started in: 2ms - bound to [/0.0.0.0:3700]
Info: GlassFish Server Open Source Edition 4.1.1 (1) startup time : Felix (35,490ms), startup services(1,849ms), total(37,339ms)
Info: JTS5014: Recoverable JTS instance, serverId = [100]
Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:7676]
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@568750b7 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@78d71df1.
Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://192.168.1.101:8686/jndi/rmi://192.168.1.101:8686/jmxrmi
Info: Domain Pinged: release.glassfish.org
我曾尝试安装不同版本的Glassfish和netbeans。但同样的问题。我猜这种操作系统级配置。删除了java,netbeans并再次尝试。没有什么工作。
尽管Netbeans说无法启动服务器,但最终服务器启动了,我可以去localhost:4848。但服务器不与netbeans服务选项卡glassfish同步(启动后始终冻结)。