在JBoss EAP 7 / JVM8中部署旧的Struts / Spring WAR应用程序

时间:2016-10-24 18:58:01

标签: java spring jboss7.x wildfly

我在 Java SE运行时环境(构建1.8.0_60-)中运行的 Centos 7 中以独立模式部署 JBoss EAP7 时遇到问题B27)即可。我更新了Struts中的类,因为另一个ERR(无法定义类org.apache.strutsel.taglib.tiles.ELPutTag)。

当我部署时,我得到了这个例外:

2016-10-24 15:41:51 ERR [ServerService Thread Pool -- 111] (org.springframework.web.context.ContextLoader) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'userLoginListener' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'logService' while setting bean property 'logService'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'logService' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
Caused by: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'logService' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
Caused by: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
Caused by: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
Caused by: java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:194)
    at org.springframework.core.io.ClassPathResource.getFile(ClassPathResource.java:167)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:678)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:247)
    at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:796)
    at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:592)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
    at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:198)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
    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)
    at org.jboss.threads.JBossThread.run(JBossThread.java:320)
15:41:51,613 ERR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 111) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./###: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./###: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'userLoginListener' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'logService' while setting bean property 'logService'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'logService' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
    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)
    at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'userLoginListener' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'logService' while setting bean property 'logService'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'logService' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:231)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
    ... 6 more
Caused by: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'userLoginListener' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'logService' while setting bean property 'logService'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'logService' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:247)
    at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:796)
    at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:592)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
    at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:198)
    ... 8 more
Caused by: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'logService' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
    ... 25 more
Caused by: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
    ... 34 more
Caused by: org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
    ... 43 more
Caused by: java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
    at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:194)
    at org.springframework.core.io.ClassPathResource.getFile(ClassPathResource.java:167)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:678)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
    ... 49 more

类和XML存在于以下路径" vfs:#/ EAP-7.0.0 / standalone / deployments / ###。war / WEB-INF / classes / bus / valueobjects",任何想法关于这个问题?

1 个答案:

答案 0 :(得分:0)

所以......我发现了根本问题。

在XMl bean文件中,我将属性“ mappingDirectoryLocations ”从“ classpath:### / valueobjects /”更改为“file:#/ EAP-7.0.0 / standalone /部署/ ###。战/ WEB-INF /类/总线/ valueobjects / ”。

绝对路径不是一个好的解决方案,但我有一些需要调查的地方,也许一个奇怪的环境与JBoss类加载器和Spring类加载器有关......我想。