If the cache becomes corrupted, you should just be able to delete it and
start over:
rm -r domains/domain1/osgi-cache/felix
-> richard
On 11/17/09 16:27, Batbold Bilegsaikhan wrote:
> Hello
>
> I have problem with starting glassfish v3 server in my local machine.
> You can see below message.
> How can I fix this error?
>
>
> Thanks in advance
>
> Batbold
>
>
>
> /INFO: Launching GlassFish on Felix platform/
> /Welcome to Felix./
> /=================/
> /java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle127\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden)/
> /ERROR: org.apache.felix.framework.cache.BundleCache: Error creating
> archive. (java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle127\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden))/
> / 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:337)/
> / at
> org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(BundleArchive.java:689)/
> / at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:198)/
> / at
> org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:381)/
> / at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:95)/
> / at org.apache.felix.framework.Felix.init(Felix.java:492)/
> / at org.apache.felix.framework.Felix.start(Felix.java:672)/
> / at org.apache.felix.main.Main.main(Main.java:213)/
> / at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)/
> /ERROR: org.apache.felix.framework.cache.BundleCache: Error creating
> archive. (java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle130\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden))/
> / 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:619)/
> /java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle130\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden)/
> / 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:337)/
> / at
> org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(BundleArchive.java:689)/
> / at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:198)/
> / at
> org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:381)/
> / at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:95)/
> / at org.apache.felix.framework.Felix.init(Felix.java:492)/
> / at org.apache.felix.framework.Felix.start(Felix.java:672)/
> / at org.apache.felix.main.Main.main(Main.java:213)/
> / 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:619)/
> /ERROR: org.apache.felix.framework.cache.BundleCache: Error creating
> archive. (java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle172\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden))/
> /java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle172\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden)/
> / 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:337)/
> / at
> org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(BundleArchive.java:689)/
> / at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:198)/
> / at
> org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:381)/
> / at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:95)/
> / at org.apache.felix.framework.Felix.init(Felix.java:492)/
> / at org.apache.felix.framework.Felix.start(Felix.java:672)/
> / at org.apache.felix.main.Main.main(Main.java:213)/
> / 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:619)/
> /ERROR: org.apache.felix.framework.cache.BundleCache: Error creating
> archive. (java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle31\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden))/
> /java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle31\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden)/
> / 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:337)/
> / at
> org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(BundleArchive.java:689)/
> / at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:198)/
> / at
> org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:381)/
> / at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:95)/
> / at org.apache.felix.framework.Felix.init(Felix.java:492)/
> / at org.apache.felix.framework.Felix.start(Felix.java:672)/
> / at org.apache.felix.main.Main.main(Main.java:213)/
> / 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:619)/
> /ERROR: org.apache.felix.framework.cache.BundleCache: Error creating
> archive. (java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle52\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden))/
> /java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle52\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden)/
> / 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:337)/
> / at
> org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(BundleArchive.java:689)/
> / at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:198)/
> / at
> org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:381)/
> / at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:95)/
> / at org.apache.felix.framework.Felix.init(Felix.java:492)/
> / at org.apache.felix.framework.Felix.start(Felix.java:672)/
> / at org.apache.felix.main.Main.main(Main.java:213)/
> / 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:619)/
> /java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle68\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden)/
> / 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:337)/
> / at
> org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(BundleArchive.java:689)/
> / at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:198)/
> / at
> org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.java:381)/
> / at
> org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:95)/
> / at org.apache.felix.framework.Felix.init(Felix.java:492)/
> / at org.apache.felix.framework.Felix.start(Felix.java:672)/
> / at org.apache.felix.main.Main.main(Main.java:213)/
> / 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:619)/
> /ERROR: org.apache.felix.framework.cache.BundleCache: Error creating
> archive. (java.io.FileNotFoundException:
> C:\glassfishv3\glassfish\domains\domain1\osgi-cache\felix\bundle68\version0.-1\revision.location
> (Das System kann den angegebenen Pfad nicht finden))/
> /INFO: Started bundle org.glassfish.core.kernel [69]/
> /INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [40]/
> /INFO: Started bundle org.glassfish.common.util [64]/
> /INFO: Started bundle com.sun.enterprise.config [59]/
> /INFO: Started bundle org.glassfish.connectors.internal-api [29]/
> /INFO: Started bundle org.glassfish.common.internal-api [205]/
> /INFO: Started bundle org.glassfish.admin.server-mgmt [155]/
> /INFO: Started bundle org.glassfish.admin.config-api [44]/
> /INFO: Hibernate Validator null/
> /INFO: Instantiated an instance of
> org.hibernate.validation.engine.resolver.JPATraversableResolver./
> /INFO: Started bundle com.sun.grizzly.grizzly-config [210]/
> /INFO: Started bundle org.glassfish.branding [184]/
> /INFO: Started bundle org.glassfish.admin.monitoring-core [24]/
> /INFO: Started bundle org.glassfish.flashlight.framework [71]/
> /INFO: Started bundle org.glassfish.ejb.ejb-container [92]/
> /INFO: com.sun.enterprise.naming.util.NamingActivator_at_7db937 called/
> /INFO: Started bundle org.glassfish.common.glassfish-naming [104]/
> /INFO: Started bundle org.glassfish.transaction.jta [140]/
> /INFO: Started bundle org.glassfish.common.glassfish-api [166]/
> /INFO: Started bundle org.glassfish.common.container-common [200]/
> /INFO: Started bundle com.sun.enterprise.config-types [61]/
> /INFO: Started bundle org.glassfish.deployment.autodeploy [14]/
> /INFO: Started bundle org.glassfish.transaction.jts [111]/
> /INFO: Started bundle org.glassfish.jms.core [134]/
> /INFO: Started bundle org.glassfish.admin.rest-service [181]/
> /INFO: Started bundle org.glassfish.security [169]/
> /INFO: Starting Grizzly Framework 1.9.18-M2 - Tue Nov 17 22:08:23 CET
> 2009/
> /INFO: Listening on port 8080/
> /INFO: Network listener http-listener-2 on port 8181 disabled per
> domain.xml/
> /INFO: Listening on port 4848/
> /INFO: Starting Grizzly Framework 1.9.18-M2 - Tue Nov 17 22:08:24 CET
> 2009/
> /INFO: Started bundle
> org.glassfish.registration.glassfish-registration [15]/
> /INFO: JMXStartupService: JMX authenticator is
> com.sun.enterprise.container.common.GenericAdminAuthenticator_at_1696e4c/
> /INFO: Started bundle org.glassfish.orb.connector [18]/
> /INFO: The Admin Console is already installed, but not yet loaded./
> /INFO: Started bundle org.glassfish.deployment.common [206]/
> /INFO: JMXStartupService: Started JMXConnector, JMXService URL =
> service:jmx:rmi://Batbold-PC.localdomain:8686/jndi/rmi://Batbold-PC.localdomain:8686/jmxrmi/
> /INFO: Started bundle org.glassfish.deployment.javaee-full [153]/
> /INFO: Started bundle org.glassfish.connectors.gf-connectors-connector
> [195]/
> /INFO: Started bundle org.glassfish.extras.osgi-container [33]/
> /INFO: Started bundle org.glassfish.web.war-util [164]/
> /INFO: Started bundle org.glassfish.ejb.gf-ejb-connector [163]/
> /INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [141]/
> /INFO: Started bundle org.glassfish.persistence.jpa-connector [159]/
> /INFO: Started bundle org.glassfish.web.beans-integration [5]/
> /INFO: Started bundle org.glassfish.extras.grizzly-container [126]/
> /INFO: Started bundle
> org.glassfish.appclient.server.appclient-connector [129]/
> /INFO: Started bundle org.glassfish.webservices.jsr109-impl [148]/
> /INFO: Started bundle org.glassfish.web.gf-web-connector [100]/
> /INFO: Started bundle org.glassfish.connectors.runtime [193]/
> /INFO: security.secmgroff/
> /INFO: Started bundle org.glassfish.security.webservices.security [204]/
> /INFO: Security startup service called/
> /INFO: policy.loading/
> /INFO: Security service(s) started successfully..../
> /INFO: Started bundle org.glassfish.web.glue [154]/
> /INFO: Started bundle org.glassfish.web.cli [105]/
> /INFO: Created HTTP listener http-listener-1 on port 8080/
> /INFO: Created HTTP listener admin-listener on port 4848/
> /INFO: Created virtual server server/
> /INFO: Created virtual server __asadmin/
> /INFO: Started bundle org.glassfish.deployment.dol [168]/
> /INFO: Started bundle org.glassfish.web.core [63]/
> /INFO: Virtual server server loaded system default web module/
> /INFO: Dual registration of jndi stream handler: factory already defined/
> /INFO: Started bundle org.glassfish.web.jspcaching-connector [67]/
> /INFO: Started bundle org.glassfish.web.jstl-connector [77]/
> /INFO: Started bundle org.glassfish.web.jsf-connector [80]/
> /INFO: Using
> com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate
> as the delegate/
> /INFO: Started bundle org.glassfish.deployment.javaee-core [186]/
> /INFO: DOL Loading time324/
> /INFO: Started bundle org.glassfish.security.websecurity [143]/
> /INFO: Loading application HelloJPA-war at /HelloJPA-war/
> /INFO: Loading HelloJPA-war Application done is 6789 ms/
> /INFO: Started bundle org.glassfish.orb.iiop [6]/
> /INFO: >>Started EJB Container Service....: server/
> /INFO: >>EjbContainerUtil:
> com.sun.ejb.containers.EjbContainerUtilImpl_at_139a0dc/
> /INFO: DOL Loading time161/
> /INFO: BEAN NODE NAME: ShopBean-war/SfBean/
> /INFO: Started bundle org.glassfish.persistence.cmp.support-ejb [114]/
> /INFO: Started bundle glassfish-corba-orb [194]/
> /INFO: Started bundle org.glassfish.security.ejb.security [189]/
> /INFO: jts.startup_msg/
> /INFO: Started bundle org.glassfish.security.appclient.security [4]/
> /INFO: Portable JNDI names for EJB SfBean :
> [java:global/ShopBean-war/SfBean!bean.SfBeanRemote,
> java:global/ShopBean-war/SfBean!bean.SfBean,
> java:global/ShopBean-war/SfBean!bean.SfBeanLocal]/
> /INFO: Glassfish-specific (Non-portable) JNDI names for EJB SfBean :
> [bean.SfBeanRemote, bean.SfBeanRemote#bean.SfBeanRemote]/
> /INFO: BEAN NODE NAME: ShopBean-war/SfBean/
> /INFO: SUB-NODE NAME: ShopBean-war/SfBean/bean-cache/
> /INFO: Loading application ShopBean-war at /ShopBean-war/
> /INFO: Loading ShopBean-war Application done is 4974 ms/
> /INFO: GlassFish v3 startup time : Felix(10396ms) startup
> services(15222ms) total(25618ms)/
> /INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started/
> /INFO: Started bundle org.glassfish.deployment.admin [197]/
> /INFO: felix.fileinstall.poll (ms) 5000/
> /INFO: felix.fileinstall.dir
> C:\glassfishv3\glassfish\modules\autostart/
> /INFO: felix.fileinstall.debug 1/
> /INFO: felix.fileinstall.bundles.new.start true/
> /INFO: felix.fileinstall.poll (ms) 5000/
> /INFO: felix.fileinstall.dir
> C:\glassfishv3\glassfish\domains\domain1\autodeploy-bundles/
> /INFO: felix.fileinstall.debug 1/
> /INFO: felix.fileinstall.bundles.new.start true/
> /INFO: Updating configuration from
> org.apache.felix.fileinstall-autodeploy-bundles.cfg/
> /INFO: felix.fileinstall.poll (ms) 5000/
> /INFO: felix.fileinstall.dir
> C:\glassfishv3\glassfish\domains\domain1\autodeploy-bundles/
> /INFO: felix.fileinstall.debug 1/
> /INFO: felix.fileinstall.bundles.new.start true/
>