启动 glassfish 3 时出现 fileNotFound 异常

发布于 2024-12-07 04:19:23 字数 1628 浏览 1 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

治碍 2024-12-14 04:19:23

对我来说,它只需删除文件夹“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

白鸥掠海 2024-12-14 04:19:23

这是 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 .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文