无法使用java 8在eclipse上启动服务器Glassfish 4

时间:2014-11-16 05:30:31

标签: glassfish

我正在配置我的计算机以实现primesface和primefaces mobiles。我安装了apache-tomcat,GlassFish 4和java 8(jdk 1.8)。我在eclipse上配置了GlassFish,但是当我想启动它时,我收到了这条消息

  

在localhost [domains1]上启动GlassFish 4遇到了问题:

     

由于以下问题无法启动服务器:
  启动过程失败,退出代码为1

并且日志文件给我这个

  

在Felix平台上启动GlassFish

     

错误:无法创建缓存目录:C:\ Program   文件\的glassfish-4.1 \的glassfish \域\ domain1的\ OSGi的缓存\费利克斯

     

错误:创建捆绑缓存时出错。 (了java.lang.RuntimeException:   无法创建缓存目录。)java.lang.RuntimeException:Unable   创建缓存目录。在   org.apache.felix.framework.cache.BundleCache。(BundleCache.java:131)     在org.apache.felix.framework.Felix.init(Felix.java:640)at   com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher $ 1.run(OSGiFrameworkLauncher.java:88)   线程中的异常"线程-1"了java.lang.RuntimeException:   org.osgi.framework.BundleException:创建捆绑缓存时出错。在   com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher $ 1.run(OSGiFrameworkLauncher.java:90)   引起:org.osgi.framework.BundleException:创建bundle时出错   缓存。在org.apache.felix.framework.Felix.init(Felix.java:645)at   com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher $ 1.run(OSGiFrameworkLauncher.java:88)   引起:java.lang.RuntimeException:无法创建缓存   目录。在   org.apache.felix.framework.cache.BundleCache。(BundleCache.java:131)     在org.apache.felix.framework.Felix.init(Felix.java:640)... 1更多   线程" main"中的例外情况java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:483)at   com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)     在com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)   引起:org.glassfish.embeddable.GlassFishException:   java.lang.NullPointerException at   com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:170)     在   org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)     在   org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)     在   com.sun.enterprise.glassfish.bootstrap.GlassFishMain $ Launcher.launch(GlassFishMain.java:112)     ... 6更多引起:java.lang.NullPointerException at   com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.newFramework(OSGiGlassFishRuntimeBuilder.java:241)     在   com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:135)     ... 9更多错误停止框架:java.lang.NullPointerException   java.lang.NullPointerException at   com.sun.enterprise.glassfish.bootstrap.GlassFishMain $启动$ 1.run(GlassFishMain.java:203)   Java HotSpot(TM)客户端VM警告:忽略选项MaxPermSize = 192m;   支持已在8.0中删除

我能解决一些问题吗?

0 个答案:

没有答案