[英]javax.naming.NameNotFoundException: jndiDataSource
I imported a project and try to run on a server without making any changes, I get the below exception. 我导入了一个项目,并尝试在服务器上运行而不进行任何更改,但出现以下异常。 Can any body please help me what can be the problem
有没有人可以帮助我,这可能是什么问题
javax.naming.NameNotFoundException: jndiDataSource
at com.sun.jndi.fscontext.RefFSContext.getObjectFromBindings(RefFSContext.java:400)
at com.sun.jndi.fscontext.RefFSContext.lookupObject(RefFSContext.java:327)
at com.sun.jndi.fscontext.RefFSContext.lookup(RefFSContext.java:146)
at com.sun.jndi.fscontext.FSContext.lookup(FSContext.java:127)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.ssc.lsf.common.pool.ConnectionPool.createDatasource(ConnectionPool.java:85)
The project you have imported seems to make use of DataSource
configured using JNDI. 您导入的项目似乎利用了通过JNDI配置的
DataSource
。 The code looks up for the datasource in the name 'jndiDataSource'. 该代码以名称“ jndiDataSource”查找数据源。 Please ensure that the datasource is properly configured.
请确保正确配置数据源。 Hope this gives an idea
希望这能给我一个主意
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.