启动 glassfish 3 时出现 fileNotFound 异常
在 netbeans 中启动 glassfish server 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)
I am getting the following message while starting glassfish server 3 in netbeans. How to amend this fileNotFound
exception ?
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对我来说,它只需删除文件夹“osgi-cache”的内容并重新启动服务器即可。
在这种情况下,它将是文件夹“C:\Users\Rajat.netbeans\6.9\config\GF3\domain1\osgi-cache”的内容
我通过 Google 找到了解决方案: http://www.java.net/node/698982
For me it worked just to delete the content of the folder "osgi-cache" and restart the server.
In this case it would be the content of the folder "C:\Users\Rajat.netbeans\6.9\config\GF3\domain1\osgi-cache"
I found the solution via Google there: http://www.java.net/node/698982
这是 NetBeans 中 GlassFish 包的一个错误:
https://netbeans.org/bugzilla/show_bug.cgi?id=196872
。
在网络上您可以找到有关 NetBeans 6.8 和 6.9 的报告。我正在运行捆绑在 NetBeans 7.0.1 中的 GlassFish(在 Vista 和 Windows Server 2008 下),并且从未遇到过此类问题。
我建议升级 NetBeans 或使用此处提供的版本覆盖 GlassFish 安装:http:// glassfish.java.net/public/downloadsindex.html#top 。
This is a bug of the GlassFish bundle in NetBeans:
https://netbeans.org/bugzilla/show_bug.cgi?id=196872
.
On the web you can find that it has been reported on NetBeans 6.8 and 6.9. I am running GlassFish bundled in NetBeans 7.0.1 (under Vista and Windows Server 2008) and have never had such issue.
I suggest to upgrade NetBeans or to override the GlassFish installation with the one available here: http://glassfish.java.net/public/downloadsindex.html#top .