org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'refreshableServerContext': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'felixPluginManager' defined in URL [jar:file:/C:/apache-tomcat-7.0.56-lexevs61/webapps/lexevs-service/WEB-INF/lib/cts2-core-1.1.0-SNAPSHOT.jar!/edu/mayo/cts2/framework/core/plugin/FelixPluginManager.class]: Invocation of init method failed; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to start OSGi container

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via GitHub by albagarcia
    ,
  • via GitHub by albagarcia
    ,
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'refreshableServerContext': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'felixPluginManager' defined in URL [jar:file:/C:/apache-tomcat-7.0.56-lexevs61/webapps/lexevs-service/WEB-INF/lib/cts2-core-1.1.0-SNAPSHOT.jar!/edu/mayo/cts2/framework/core/plugin/FelixPluginManager.class]: Invocation of init method failed; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to start OSGi container at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1879) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'felixPluginManager' defined in URL [jar:file:/C:/apache-tomcat-7.0.56-lexevs61/webapps/lexevs-service/WEB-INF/lib/cts2-core-1.1.0-SNAPSHOT.jar!/edu/mayo/cts2/framework/core/plugin/FelixPluginManager.class]: Invocation of init method failed; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to start OSGi container at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:438) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:416) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:549) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:150) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:303) ... 26 more Caused by: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to start OSGi container at edu.mayo.cts2.framework.core.plugin.FelixPluginManager.start(FelixPluginManager.java:381) at edu.mayo.cts2.framework.core.plugin.FelixPluginManager.afterPropertiesSet(FelixPluginManager.java:134) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 41 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codeSystemVersionBulkDownloadController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lexBigServiceFactory': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfigLocationFactory' defined in class path resource [lexevsDao.xml]: Cannot resolve reference to bean 'systemVariables' while setting bean property 'systemVariables'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemVariables' defined in class path resource [lexevsDao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lexevs.system.constants.SystemVariables]: Constructor threw exception; nested exception is org.lexevs.exceptions.InitializationException: ============================================ Error finding the LexBIG Configuration File. ============================================ The LexGrid system attempts to automatically locate this file in one of two ways: OPTION 1 - AutoSearch It determines the folder that the LexGrid classes are located (either in a jar file, or a folder containing class files). For this example, lets assume that the jar file containing LexGrid was found at 'C:\LexGrid\LexBIG\lib\lbRuntime.jar' Then the path it starts with will be 'C:\LexGrid\LexBIG\lib\'. Lets call this location 'A'. Starting from location A, it checks for the following sub-path: 'resources\config\config.props'. Lets call this path 'B'. If a file exists 'A\B', the search is over. If this file is not found - it goes up one directory from A, and checks for B again. So, now it is checking "A\..\B". - which is 'C:\LexGrid\LexBIG\resources\config\config.props'. This process continues until it finds the file, reaches the root of the file system, or it has gone up 10 levels. At that point, it quits and and the startup fails. OPTION 2 - System Variable You may skip the auto search by setting the System Config variable 'LG_CONFIG_FILE' to the full absolute path of the config.props file. Example - if you were starting from the command line, you would add this parameter to the java command to set the 'System Property' -DLG_CONFIG_FILE="C:\LexGrid\LexBIG\resources\config\config.props" at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at edu.mayo.cts2.framework.util.spring.AbstractSpringNonOsgiPluginInitializer.initialize(AbstractSpringNonOsgiPluginInitializer.java:38) at edu.mayo.cts2.framework.core.plugin.FelixPluginManager.initializeNonOsgiPlugins(FelixPluginManager.java:391) at edu.mayo.cts2.framework.core.plugin.FelixPluginManager.start(FelixPluginManager.java:361) ... 44 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lexBigServiceFactory': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfigLocationFactory' defined in class path resource [lexevsDao.xml]: Cannot resolve reference to bean 'systemVariables' while setting bean property 'systemVariables'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemVariables' defined in class path resource [lexevsDao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lexevs.system.constants.SystemVariables]: Constructor threw exception; nested exception is org.lexevs.exceptions.InitializationException: ============================================ Error finding the LexBIG Configuration File. ============================================ The LexGrid system attempts to automatically locate this file in one of two ways: OPTION 1 - AutoSearch It determines the folder that the LexGrid classes are located (either in a jar file, or a folder containing class files). For this example, lets assume that the jar file containing LexGrid was found at 'C:\LexGrid\LexBIG\lib\lbRuntime.jar' Then the path it starts with will be 'C:\LexGrid\LexBIG\lib\'. Lets call this location 'A'. Starting from location A, it checks for the following sub-path: 'resources\config\config.props'. Lets call this path 'B'. If a file exists 'A\B', the search is over. If this file is not found - it goes up one directory from A, and checks for B again. So, now it is checking "A\..\B". - which is 'C:\LexGrid\LexBIG\resources\config\config.props'. This process continues until it finds the file, reaches the root of the file system, or it has gone up 10 levels. At that point, it quits and and the startup fails. OPTION 2 - System Variable You may skip the auto search by setting the System Config variable 'LG_CONFIG_FILE' to the full absolute path of the config.props file. Example - if you were starting from the command line, you would add this parameter to the java command to set the 'System Property' -DLG_CONFIG_FILE="C:\LexGrid\LexBIG\resources\config\config.props" at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1441) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:305) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:438) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:416) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:549) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:150) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:303) ... 63 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfigLocationFactory' defined in class path resource [lexevsDao.xml]: Cannot resolve reference to bean 'systemVariables' while setting bean property 'systemVariables'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemVariables' defined in class path resource [lexevsDao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lexevs.system.constants.SystemVariables]: Constructor threw exception; nested exception is org.lexevs.exceptions.InitializationException: ============================================ Error finding the LexBIG Configuration File. ============================================ The LexGrid system attempts to automatically locate this file in one of two ways: OPTION 1 - AutoSearch It determines the folder that the LexGrid classes are located (either in a jar file, or a folder containing class files). For this example, lets assume that the jar file containing LexGrid was found at 'C:\LexGrid\LexBIG\lib\lbRuntime.jar' Then the path it starts with will be 'C:\LexGrid\LexBIG\lib\'. Lets call this location 'A'. Starting from location A, it checks for the following sub-path: 'resources\config\config.props'. Lets call this path 'B'. If a file exists 'A\B', the search is over. If this file is not found - it goes up one directory from A, and checks for B again. So, now it is checking "A\..\B". - which is 'C:\LexGrid\LexBIG\resources\config\config.props'. This process continues until it finds the file, reaches the root of the file system, or it has gone up 10 levels. At that point, it quits and and the startup fails. OPTION 2 - System Variable You may skip the auto search by setting the System Config variable 'LG_CONFIG_FILE' to the full absolute path of the config.props file. Example - if you were starting from the command line, you would add this parameter to the java command to set the 'System Property' -DLG_CONFIG_FILE="C:\LexGrid\LexBIG\resources\config\config.props" at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at org.lexevs.locator.LexEvsServiceLocator.getInstance(LexEvsServiceLocator.java:97) at org.LexGrid.LexBIG.Impl.LexBIGServiceImpl.<init>(LexBIGServiceImpl.java:138) at org.LexGrid.LexBIG.Impl.LexBIGServiceImpl.defaultInstance(LexBIGServiceImpl.java:162) at edu.mayo.cts2.framework.plugin.service.lexevs.LexBigServiceFactory.getObject(LexBigServiceFactory.java:61) at edu.mayo.cts2.framework.plugin.service.lexevs.LexBigServiceFactory.getObject(LexBigServiceFactory.java:27) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142) ... 76 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemVariables' defined in class path resource [lexevsDao.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lexevs.system.constants.SystemVariables]: Constructor threw exception; nested exception is org.lexevs.exceptions.InitializationException: ============================================ Error finding the LexBIG Configuration File. ============================================ The LexGrid system attempts to automatically locate this file in one of two ways: OPTION 1 - AutoSearch It determines the folder that the LexGrid classes are located (either in a jar file, or a folder containing class files). For this example, lets assume that the jar file containing LexGrid was found at 'C:\LexGrid\LexBIG\lib\lbRuntime.jar' Then the path it starts with will be 'C:\LexGrid\LexBIG\lib\'. Lets call this location 'A'. Starting from location A, it checks for the following sub-path: 'resources\config\config.props'. Lets call this path 'B'. If a file exists 'A\B', the search is over. If this file is not found - it goes up one directory from A, and checks for B again. So, now it is checking "A\..\B". - which is 'C:\LexGrid\LexBIG\resources\config\config.props'. This process continues until it finds the file, reaches the root of the file system, or it has gone up 10 levels. At that point, it quits and and the startup fails. OPTION 2 - System Variable You may skip the auto search by setting the System Config variable 'LG_CONFIG_FILE' to the full absolute path of the config.props file. Example - if you were starting from the command line, you would add this parameter to the java command to set the 'System Property' -DLG_CONFIG_FILE="C:\LexGrid\LexBIG\resources\config\config.props" at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 96 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lexevs.system.constants.SystemVariables]: Constructor threw exception; nested exception is org.lexevs.exceptions.InitializationException: ============================================ Error finding the LexBIG Configuration File. ============================================ The LexGrid system attempts to automatically locate this file in one of two ways: OPTION 1 - AutoSearch It determines the folder that the LexGrid classes are located (either in a jar file, or a folder containing class files). For this example, lets assume that the jar file containing LexGrid was found at 'C:\LexGrid\LexBIG\lib\lbRuntime.jar' Then the path it starts with will be 'C:\LexGrid\LexBIG\lib\'. Lets call this location 'A'. Starting from location A, it checks for the following sub-path: 'resources\config\config.props'. Lets call this path 'B'. If a file exists 'A\B', the search is over. If this file is not found - it goes up one directory from A, and checks for B again. So, now it is checking "A\..\B". - which is 'C:\LexGrid\LexBIG\resources\config\config.props'. This process continues until it finds the file, reaches the root of the file system, or it has gone up 10 levels. At that point, it quits and and the startup fails. OPTION 2 - System Variable You may skip the auto search by setting the System Config variable 'LG_CONFIG_FILE' to the full absolute path of the config.props file. Example - if you were starting from the command line, you would add this parameter to the java command to set the 'System Property' -DLG_CONFIG_FILE="C:\LexGrid\LexBIG\resources\config\config.props" at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) ... 105 more Caused by: org.lexevs.exceptions.InitializationException: ============================================ Error finding the LexBIG Configuration File. ============================================ The LexGrid system attempts to automatically locate this file in one of two ways: OPTION 1 - AutoSearch It determines the folder that the LexGrid classes are located (either in a jar file, or a folder containing class files). For this example, lets assume that the jar file containing LexGrid was found at 'C:\LexGrid\LexBIG\lib\lbRuntime.jar' Then the path it starts with will be 'C:\LexGrid\LexBIG\lib\'. Lets call this location 'A'. Starting from location A, it checks for the following sub-path: 'resources\config\config.props'. Lets call this path 'B'. If a file exists 'A\B', the search is over. If this file is not found - it goes up one directory from A, and checks for B again. So, now it is checking "A\..\B". - which is 'C:\LexGrid\LexBIG\resources\config\config.props'. This process continues until it finds the file, reaches the root of the file system, or it has gone up 10 levels. At that point, it quits and and the startup fails. OPTION 2 - System Variable You may skip the auto search by setting the System Config variable 'LG_CONFIG_FILE' to the full absolute path of the config.props file. Example - if you were starting from the command line, you would add this parameter to the java command to set the 'System Property' -DLG_CONFIG_FILE="C:\LexGrid\LexBIG\resources\config\config.props" at org.lexevs.system.constants.SystemVariables.loadPropsFile(SystemVariables.java:191) at org.lexevs.system.constants.SystemVariables.<init>(SystemVariables.java:231) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ... 107 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.