GlassFish Server 4.1.1,deploy,null,false尚未部署模块

时间:2017-11-16 05:04:32

标签: netbeans glassfish

我是netbeans和glassfish的新手。当我尝试在mac上运行示例时,这就是我得到的。任何线索?服务器已启动。我可以编写自己的项目,但突然间我再也无法运行了。尝试再次安装netbeans。

ant -f /Users/*/NetBeansProjects/myproject -Dnb.internal.action.name=run -Ddirectory.deployment.supported=true -DforceRedeploy=false -Dnb.wait.for.caches=true -Dbrowser.context=/Users/*/NetBeansProjects/myproject run
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: /Users/*/NetBeansProjects/myproject/build/web/WEB-INF/classes
Created dir: /Users/*/NetBeansProjects/myproject/build/web/META-INF
Copying 1 file to /Users/*/NetBeansProjects/myproject/build/web/META-INF
Copying 1 file to /Users/*/NetBeansProjects/myproject/build/web
library-inclusion-in-archive:
library-inclusion-in-manifest:
Created dir: /Users/*/NetBeansProjects/myproject/build/empty
Created dir: /Users/*/NetBeansProjects/myproject/build/generated-sources/ap-source-output
compile:
compile-jsps:
Starting GlassFish Server 4.1.1
GlassFish Server 4.1.1 is running.
In-place deployment at /Users/*/NetBeansProjects/myproject/build/web
GlassFish Server 4.1.1, deploy, null, false
/Users/*/NetBeansProjects/myproject/nbproject/build-impl.xml:1045: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 29 seconds)

我的glassfish服务器输出只有Info和Warnings:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[94836]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java (0x10b1284c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10b1f04e0). One of the two will be used. Which one is undefined.
Listening for transport dt_socket at address: 9009
Launching GlassFish on Felix platform
Nov 15, 2017 10:05:57 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Nov 15, 2017 10:05:57 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.
Nov 15, 2017 10:05:57 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.
Nov 15, 2017 10:05:57 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@4b9e955f 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:   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: 51ms - 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: 1ms - 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: 3ms - bound to [/0.0.0.0:3700]
Info:   GlassFish Server Open Source Edition  4.1.1  (1) startup time : Felix (34,470ms), startup services(1,693ms), total(36,163ms)
Info:   JTS5014: Recoverable JTS instance, serverId = [100]
Info:   HV000001: Hibernate Validator 5.1.2.Final
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@7be71476 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@5c1f6d57.
Info:   JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://172.31.135.143:8686/jndi/rmi://172.31.135.143:8686/jmxrmi

1 个答案:

答案 0 :(得分:1)

这通常发生在Mac OS Sierra上,因为使用系统代理设置的网站被阻止。

打开您的网络偏好设置>选择你的wifi>高级>代理选项卡>检查自动代理发现,自动代理配置,Web代理(http)

现在,转到您的Netbeans首选项>一般>选择使用系统代理>重新加载>测试连接>如果连接成功,它旁边应该有一个绿色复选标记。

最后,去清洁& amp;在netbeans中构建应用程序并运行