简体   繁体   English

javax.naming.NameNotFoundException: fsmDS 未绑定

[英]javax.naming.NameNotFoundException: fsmDS not bound

I am migrating my spring jsf project from ANT to maven, while deploying in jboss 5 server getting below error.我正在将我的 spring jsf 项目从 ANT 迁移到 maven,同时在 jboss 5 服务器中部署时出现以下错误。 ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertyLoaderJob' defined in ServletContext resource [/WEB-INF/property.xml]: Cannot resolve reference to bean 'propertyloader' while setting bean property 'targetObject';错误 [ContextLoader] 上下文初始化失败 org.springframework.beans.factory.BeanCreationException:创建名称为“propertyLoaderJob”的 bean 在 ServletContext 资源 [/WEB-INF/property.xml] 中定义时出错:设置时无法解析对 bean“propertyloader”的引用bean 属性 'targetObject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertyloader' defined in ServletContext resource [/WEB-INF/property.xml]: Cannot resolve reference to bean 'dataSource' while setting constructor argument;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在 ServletContext 资源 [/WEB-INF/property.xml] 中定义名称为“propertyloader”的 bean 创建时出错:设置构造函数参数时无法解析对 bean“dataSource”的引用; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/DataSource.xml]: Invocation of init method failed;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在 ServletContext 资源 [/WEB-INF/DataSource.xml] 中定义名称为“dataSource”的 bean 创建时出错:调用 init 方法失败; nested exception is javax.naming.NameNotFoundException: fsmDS not bound嵌套异常是 javax.naming.NameNotFoundException: fsmDS not bound

The exception means that JDBC driver is missed.Please check if you have JDBC driver dependency in pom.xml.该异常表示缺少JDBC驱动。请检查pom.xml中是否存在JDBC驱动依赖。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM