Payara / GlashFish不会在NetBeans中启动 [英] Payara/GlashFish won't start in NetBeans

查看:216
本文介绍了Payara / GlashFish不会在NetBeans中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Mac OS。我使用NetBeans创建了Payara服务器。当我尝试运行服务器时,它永远不会显示指示其在线状态的绿色点,而是永远显示加载点。

然而,

然而, ,我可以在 http:// localhost:4848 上访问它,但是当我尝试将应用程序部署到服务器I时得到这个错误:

  GlassFish服务器正在运行。 
启动GlassFish服务器
将slit-ee初始部署到/ Users / christian / slit / slit -ee / dist / gfdeploy / slit -ee
完成slit-ee的初始分配
GlassFish服务器,部署,空,false
/Users/christian/slit/slit-ee/nbproject/build-impl.xml:307:该模块尚未部署。
查看服务器日志以获取详细信息。
BUILD FAILED(总时间:22秒)

完整的服务器日志

  objc [1865]:在Java / Launch / bin / java(0x105e334c0)和/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre/lib/libinstrument.dylib(0x105efb4e0)。将使用两者之一。哪一个是未定义的。 
在Felix平台上启动GlassFish
nov 28,2016 2:14:21 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO:创建bundle provisioner class = class com .sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner。
在服务注册表中注册了com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@18808234。
#!## LogManagerService.postConstruct:rootFolder = / Users / christian / opt / payara41 / glassfish
#!## LogManagerService.postConstruct:templateDir = / Users / christian / opt / payara41 / glassfish / lib / templates
#!## LogManagerService.postConstruct:src = / Users / christian / opt / payara41 / glassfish / lib / templates / logging.properties
#!## LogManagerService.postConstruct:dest = / Users /christian/opt/payara41/glassfish/domains/payaradomain/config/logging.properties
信息:运行Payara版本:Payara Server 4.1.1.164 #badassfish(build 28)
信息:服务器日志文件正在使用格式化程序类:com.sun.enterprise.server.logging.ODLLogFormatter
信息:注册org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type =在BackingStoreFactoryRegistry中复制
信息:授权服务已成功初始化。
信息:成功创建了classtype [com.sun.enterprise.security.auth.realm.file.FileRealm]的领域[admin-realm]。
信息:成功创建了classtype [com.sun.enterprise.security.auth.realm.file.FileRealm]的领域[文件]。
信息:成功创建了classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]的领域[证书]。
信息:已注册fish.payara.ha.hazelcast.store.HazelcastBackingStoreFactoryProxy for persistence-type = hazelcast in BackingStoreFactoryRegistry
信息:已注册Hazelcast BackingStoreFactory with persistence-type = hazelcast
信息:Grizzly Framework 2.3 .28开始于:47ms - 绑定到[/0.0.0:8080]
信息:Grizzly Framework 2.3.28开始于:1ms - 绑定到[/0.0.0:8181]
信息:Grizzly Framework 2.3.28开始于:2ms - 绑定到[/0.0.0:4848]
Info:Grizzly Framework 2.3.28开始于:1ms - 绑定到[/0.0.0::3700]
Info :Payara Server 4.1.1.164 #badassfish(28)启动时间:Felix(33 542毫秒),启动服务(5 715毫秒),总计(39 257毫秒)
信息:Payara Notification Service以配置启动:NotificationExecutionOptions {enabled = true ,notifierConfigurationExecutionOptionsList = {LOG = NotifierConfigurationExecutionOptions {notifierType = LOG,enabled = true}}}
信息:清理JarFileFactory缓存以防止jar FD泄漏
信息:HV000001:Hibernate验证器5.1.2.Final
信息:Grizzly Framework 2.3.28开始于:1ms - 绑定到[/0.0.0:7676]
信息:已注册com.sun。 enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@7bca6fac作为OSGi服务注册:org.apache.felix.framework.ServiceRegistrationImpl@129fed45。
信息:/ Users / christian / opt / payara41 / glassfish / domains / payaradomain / autodeploy / bundles不存在,请创建它。
信息:JMXStartupService已启动JMXService URL服务上的JMXConnector:jmx:rmi://192.168.0.183:8686 / jndi / rmi://192.168.0.183:8686 / jmxrmi



是否有任何安全机制阻止在Mac OS上执行此操作?

解决方案

看起来Netbeans无法连接到启动的Payara Server。也许你的问题与Mac上的Netbeans和Tomcat的系统更新类似: https://discussions.apple.com/thread/7680039?start=0&tstart=0



以下是该页面的报价:
$ b


第1步:进入系统首选项>网络>选择您的wifi
连接>高级>选择代理选项卡。



检查3个选项1)自动代理发现2)自动代理
配置3)网络代理(http)

第2步:转到Netbeans>首选项>常规>选择使用系统代理>
重新加载>测试连接



I'm running Mac OS. I've set up the Payara server with NetBeans. And when I'll try to run the server it never shows the green 'dot' that indicates its online status, instead it shows the 'loading' dot forever.

However, I can access it on http://localhost:4848, but when I try to deploy an application to the server I get this error:

GlassFish Server is running.
Starting GlassFish Server
Initial deploying slit-ee to /Users/christian/slit/slit-ee/dist/gfdeploy/slit-ee
Completed initial distribution of slit-ee
GlassFish Server, deploy, null, false
/Users/christian/slit/slit-ee/nbproject/build-impl.xml:307: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 22 seconds)

And the full server log

objc[1865]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java (0x105e334c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x105efb4e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
nov 28, 2016 2:14:21 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@18808234 in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Users/christian/opt/payara41/glassfish
#!## LogManagerService.postConstruct : templateDir=/Users/christian/opt/payara41/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Users/christian/opt/payara41/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Users/christian/opt/payara41/glassfish/domains/payaradomain/config/logging.properties
Info:   Running Payara Version: Payara Server  4.1.1.164 #badassfish (build 28)
Info:   Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info:   Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Info:   Authorization Service has successfully initialized.
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:   Registered fish.payara.ha.hazelcast.store.HazelcastBackingStoreFactoryProxy for persistence-type = hazelcast in BackingStoreFactoryRegistry
Info:   Registered Hazelcast BackingStoreFactory with persistence-type = hazelcast
Info:   Grizzly Framework 2.3.28 started in: 47ms - bound to [/0.0.0.0:8080]
Info:   Grizzly Framework 2.3.28 started in: 1ms - bound to [/0.0.0.0:8181]
Info:   Grizzly Framework 2.3.28 started in: 2ms - bound to [/0.0.0.0:4848]
Info:   Grizzly Framework 2.3.28 started in: 1ms - bound to [/0.0.0.0:3700]
Info:   Payara Server  4.1.1.164 #badassfish (28) startup time : Felix (33 542ms), startup services(5 715ms), total(39 257ms)
Info:   Payara Notification Service Started with configuration: NotificationExecutionOptions{enabled=true, notifierConfigurationExecutionOptionsList={LOG=NotifierConfigurationExecutionOptions{notifierType=LOG, enabled=true}}}
Info:   Cleaning JarFileFactory Cache to prevent jar FD leaks
Info:   HV000001: Hibernate Validator 5.1.2.Final
Info:   Grizzly Framework 2.3.28 started in: 1ms - bound to [/0.0.0.0:7676]
Info:   Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@7bca6fac as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@129fed45.
Info:   /Users/christian/opt/payara41/glassfish/domains/payaradomain/autodeploy/bundles does not exist, please create it.
Info:   JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://192.168.0.183:8686/jndi/rmi://192.168.0.183:8686/jmxrmi

Is there any security mechanism that prevents this on Mac OS?

解决方案

It seems that Netbeans cannot connect to the started Payara Server. Maybe your issue is similar to this one with Netbeans and Tomcat on a Mac after some system update: https://discussions.apple.com/thread/7680039?start=0&tstart=0

Here is a quote from that page:

Step 1: Go to system preference >Network>Select your wifi connection>Advanced>select proxies tab.

There check 3 options 1) Auto proxy Discovery 2)Automatic Proxy configuration 3) web proxy(http)

Step 2: Go to Netbeans>preferences>General> select use system proxy> reload> test connection

这篇关于Payara / GlashFish不会在NetBeans中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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