我在netbeans中启动glassfish服务器3时收到以下消息。如何修改此fileNotFound
例外?
Welcome to Felix
================
ERROR: Error creating archive. (java.io.FileNotFoundException: C:\Users\Rajat\.netbeans\6.9\config\GF3\domain1\osgi-cache\felix\bundle136\version0.0\revision.location (The system cannot find the file specified))
java.io.FileNotFoundException: C:\Users\Rajat\.netbeans\6.9\config\GF3\domain1\osgi-cache\felix\bundle136\version0.0\revision.location (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.apache.felix.framework.util.SecureAction.getFileInputStream(SecureAction.java:415)
at org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(BundleArchive.java:706)
at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:206)
at org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:149)
at org.apache.felix.framework.Felix.init(Felix.java:558)
at org.apache.felix.main.Main.main(Main.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.glassfish.bootstrap.ASMainFelix$1.run(ASMainFelix.java:116)
at java.lang.Thread.run(Thread.java:662)
答案 0 :(得分:1)
对我来说,它只是删除文件夹“osgi-cache”的内容并重启服务器。 在这种情况下,它将是文件夹“C:\ Users \ Rajat.netbeans \ 6.9 \ config \ GF3 \ domain1 \ osgi-cache”
的内容我在那里通过Google找到了解决方案:http://www.java.net/node/698982
答案 1 :(得分:0)
这是NetBeans中GlassFish包的错误: https://netbeans.org/bugzilla/show_bug.cgi?id=196872 。
在Web上,您可以发现它已在NetBeans 6.8和6.9上报告。我正在运行NetBeans 7.0.1中捆绑的GlassFish(在Vista和Windows Server 2008下)并且从未遇到过此类问题。
我建议升级NetBeans或使用此处提供的格式覆盖GlassFish安装:http://glassfish.java.net/public/downloadsindex.html#top。