The issue comes from this function: com.krishagni.catissueplus.core.init.DeInitializer.class
public void afterPropertiesSet()
throws Exception
{
InputStream in;
Map localeSettings = cfgSvc.getLocaleSettings();
String dateFormat = (String)localeSettings.get(“deBeDateFmt”);
String timeFormat = (String)localeSettings.get(“timeFmt”);
String dataDir = cfgSvc.getDataDir();
String dir = (new StringBuilder(dataDir)).append(File.separator).append(“de-file-data”).append(File.separator).toString();
File dirFile = new File(dir);
if(!dirFile.exists() && !dirFile.mkdirs())
throw new RuntimeException(“Error couldn’t create directory for storing de file data”);
////////////////////////////////////////////////////////
now on the last version I was using 2.0 the function looks like this and it is working fine:
public void afterPropertiesSet()
throws Exception
{
InputStream in;
Map localeSettings = cfgSvc.getLocaleSettings();
String dateFormat = (String)localeSettings.get(“deBeDateFmt”);
String timeFormat = (String)localeSettings.get(“timeFmt”);
String dataDir = cfgSvc.getStrSetting(“common”, “data_dir”, new String[] {
“.”
});
String dir = (new StringBuilder(dataDir)).append(File.separator).append(“de-file-data”).append(File.separator).toString();
File dirFile = new File(dir);
if(!dirFile.exists() && !dirFile.mkdirs())
throw new RuntimeException(“Error couldn’t create directory for storing de file data”);
Nov 06, 2015 10:54:14 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘deInitializer’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error couldn’t create directory for storing de file data
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
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:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Error couldn’t create directory for storing de file data
at com.krishagni.catissueplus.core.init.DeInitializer.afterPropertiesSet(DeInitializer.java:83)