当前位置: 首页 > 面试题库 >

Payara / GlashFish无法在NetBeans中启动

陶弘业
2023-03-14
问题内容

我正在运行Mac
OS。我已经使用NetBeans设置了Payara服务器。而且,当我尝试运行服务器时,它永远不会显示表示其在线状态的绿色“点”,而是永远显示“正在加载”点。

但是,我可以在http://
localhost:4848
上访问它,但是当我尝试将应用程序部署到服务器时,出现此错误:

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)

以及完整的服务器日志

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

在Mac OS上是否有任何安全机制可以阻止这种情况?


问题答案:

看来Netbeans无法连接到启动的Payara
Server。在某些系统更新后,您的问题可能与Mac上的Netbeans和Tomcat的问题类似:https
:
//discussions.apple.com/thread/7680039?start=0&tstart=0

这是该页面的报价:

步骤1:转到系统偏好设置>“网络”>“选择您的wifi连接”>“高级”>“选择代理”标签。

那里检查3个选项1)自动代理发现2)自动代理配置3)Web代理(http)

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



 类似资料:
  • Windows 10,JDK 1.8或15,eclipse 2021-06,maven project HelloWorld。我从eclipse marketplace安装了payara工具。启动payara服务器给出错误消息: “在Felix平台上启动Payara服务器错误:解析系统捆绑语句时出错。org.osgi.framework.BundleException:导出的软件包名称不能是零长度

  • 我无法重启服务器。 开始时,我杀死了所有进程并重新启动了服务器。我收到了成功的消息,但应用程序不起作用。我再次停止并启动了服务。现在系统显示服务器上正在运行另一个进程,如下所示。 你能帮我查一下这个问题吗?

  • 问题:我启动Netbean 8.2,飞溅对话框显示,它通过启动模块,然后退出。IDE没有启动。在此之后仍有一些东西在运行(ps aux|grep netbean显示正常的Netbean进程正在运行)我查看了日志文件(和~/. netbean/8.2/var/log/')并发现了这些警告: 我没有明确运行任何Netbeans更新。Netbeans将工作几天,然后遇到这个问题。 解决方法:谷歌叔叔说(

  • 我得到以下错误时,尝试启动GlassFishinNetbean服务选项卡。(安装小牛后出现此错误) 无法连接到GlassFish服务器的管理侦听器。验证Netbeans是否可以与localhost:4848建立出站连接 我在终端中运行了以下命令。 我试着用终点站跑玻璃鱼。 hakdogan:~hakdogan$/Applications/NetBeans/glassfish-4.0/glassfi

  • 我在mac os big Sur上。我完全重新安装了java、jdk和NetBeans。它开始了,但是当我试图安装插件时,我得到了一条错误消息,上面写着“jdk丢失,需要运行一些netbeans模块”。在此之后,我将netbeans_jdkhome设置为我的jdk位置。现在我的netbeans甚至无法打开(最新版本)

  • 我一直试图启动服务器,但收到以下错误消息: 2013-01-23 19:24:18.133格林威治标准时间:使用基本服务器安全策略安装安全管理器。2013-01-23 19:24:18.430 GMT:无法侦听主机localhost:java上的端口1527。网BindException:无法分配请求的地址:JVM_Bind 最重要的是,我得到一个提示说: 无法连接。无法使用org.apache.