我无法启动glassfish服务器4,但是当我安装它时工作顺利 并在控制台出现错误
Launching GlassFish on Felix platform
ERROR: Error creating bundle cache. (java.lang.Exception: Unable to create bundle cache lock file: java.io.FileNotFoundException: C:\Program Files\Java\glassfish4\glassfish\domains\domain1\osgi-cache\felix\cache.lock (Access is denied))
java.lang.Exception: Unable to create bundle cache lock file: java.io.FileNotFoundException: C:\Program Files\Java\glassfish4\glassfish\domains\domain1\osgi-cache\felix\cache.lock (Access is denied)
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:168)
at org.apache.felix.framework.Felix.init(Felix.java:640)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.run(OSGiFrameworkLauncher.java:88)
Exception in thread "Thread-1" java.lang.RuntimeException: org.osgi.framework.BundleException: Error creating bundle cache.
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.run(OSGiFrameworkLauncher.java:90)
Caused by: org.osgi.framework.BundleException: Error creating bundle cache.
at org.apache.felix.framework.Felix.init(Felix.java:645)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.run(OSGiFrameworkLauncher.java:88)
Caused by: java.lang.Exception: Unable to create bundle cache lock file: java.io.FileNotFoundException: C:\Program Files\Java\glassfish4\glassfish\domains\domain1\osgi-cache\felix\cache.lock (Access is denied)
at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:168)
at org.apache.felix.framework.Felix.init(Felix.java:640)
... 1 more
cache.lock文件大小为0 kbs我无法理解为什么它显示我锁定问题虽然我可以访问它
答案 0 :(得分:0)
更改Windows上glassfish文件夹的权限。
- 转到“属性”,然后转到“安全” - >更改权限。
再次开始使用玻璃鱼。
干杯