|
用的oracle数据库,数据源是justep_hr,但是报错信息如下:
Caused by: com.justep.model.exception.ModelException: 执行ksql:SELECT HR_OG_Org, HR_OG_Org.fName as fName, HR_OG_Org.fCode as fCode, HR_OG_Org.fShortName as fShortName, HR_OG_Org.fFName as fFName, HR_OG_Org.fFCode as fFCode, HR_OG_Org.fFID as fFID, HR_OG_Org.fOrgKindID as fOrgKindID, HR_OG_Org.fParent as fParent, HR_OG_Org.fLevel as fLevel, HR_OG_Org.fPhone as fPhone, HR_OG_Org.fFax as fFax, HR_OG_Org.fAddress as fAddress, HR_OG_Org.fZip as fZip, HR_OG_Org.fDescription as fDescription, HR_OG_Org.fPersonID as fPersonID, HR_OG_Org.fNodeKind as fNodeKind, HR_OG_Org.fManager as fManager, HR_OG_Org.fIsPayOrg as fIsPayOrg, HR_OG_Org.fUseStatus as fUseStatus, HR_OG_Org.fUseStatusName as fUseStatusName, HR_OG_Org.fUpdatePsnID as fUpdatePsnID, HR_OG_Org.fUpdatePsnName as fUpdatePsnName, HR_OG_Org.fUpdateTime as fUpdateTime, HR_OG_Org.version as version, HR_OG_Org.fLongName as fLongName, HR_OG_Org.fSequence as fSequence,HR_OG_Org.fEmail as fEmail FROM HR_OG_Org HR_OG_Org WHERE ((fParent IS NULL OR fParent='_is_root_')) ORDER BY fSequence ASC LIMIT 0, -1时出错!
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.BizData.query(Unknown Source)
at BizProcedure.query(BizProcedure.java:12)
... 26 more
Caused by: com.justep.exception.SystemException: 在/HR模块下连接数据库出错!
at com.justep.system.data.Transaction.getConnection(Unknown Source)
at com.justep.system.data.Transaction.getConnection(Unknown Source)
at com.justep.model.ModelUtils.getConnection(Unknown Source)
... 31 more
Caused by: javax.naming.NameNotFoundException: Name hr is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.justep.system.data.Transaction.getConnectionWithJndi(Unknown Source)
... 34 more
|
|