2011-09-28 51 views
0

我在netbeans中啓動glassfish服務器3時收到以下消息。如何修改這個fileNotFound異常?filefish在啓動glassfish時發生異常3

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) 

回答

1

對我來說,它只是刪除文件夾「osgi-cache」的內容並重新啓動服務器。 在這種情況下,這將是該文件夾的內容 「C:\用戶\ Rajat.netbeans \ 6.9 \ CONFIG \ GF3 \ DOMAIN1 \ OSGi的緩存」

我通過谷歌找到了解決方法有:http://www.java.net/node/698982

相關問題