首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Payara/GlashFish不会从NetBeans开始

Payara/GlashFish不会从NetBeans开始
EN

Stack Overflow用户
提问于 2016-11-28 01:19:43
回答 2查看 4.4K关注 0票数 3

我在运行Mac操作系统。我已经用NetBeans设置了Payara服务器。当我尝试运行服务器时,它从不显示表示其在线状态的绿色“点”,而是显示“永久加载”点。

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

代码语言:javascript
复制
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)

和完整的服务器日志

代码语言:javascript
复制
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上有什么安全机制可以阻止这种情况吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-11-28 13:59:26

似乎Netbeans无法连接到已启动的Payara服务器。也许您的问题与此类似,在进行了一些系统更新后,在Mac上使用了Netbeans和Tomcat:https://discussions.apple.com/thread/7680039?start=0&tstart=0

以下是这一页的引文:

步骤1:转到系统首选项>Network>Select,您的wifi connection>Advanced>select代理选项卡。 检查3项选项1)自动代理发现2)自动代理配置3) web代理(Http) 步骤2:转到Netbeans>preferences>General>,选择use system proxy> reload>测试连接

票数 6
EN

Stack Overflow用户

发布于 2016-11-30 16:31:47

我为自己找到了另一个解决方案:

转到Netbeans->首选项->选择No Proxy。测试连接。如果成功,请按Ok。然后清理并运行应用程序。

不需要更改mac上的任何网络配置。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40835870

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档