日期:2014-05-16 浏览次数:20519 次
Caused by: java.lang.RuntimeException: lookup indigo/jdbc/default fail! :
at com.longshine.indigo.component.util.NamingUtils.lookup(Unknown Source)
at com.longshine.indigo.dbutils.manager.DataSourceConnection.getDataSource(Unknown Source)
at com.longshine.indigo.dbutils.manager.DataSourceConnection.getinternalConnection(Unknown Source)
at com.longshine.indigo.dbutils.manager.AbstractConnection.getConnection(Unknown Source)
at com.longshine.indigo.dbutils.manager.ConnectionManager.getConnection(Unknown Source)
... 67 more
Caused by: javax.naming.NameNotFoundException: Name indigo is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
... 72 more
?
?
解决方法:修改pt-jdbc-connection.xml中的<connection name="default" type="driver-manager" ? ? ?driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@172.19.201.210:1521:sgpmdb" ?username="amber" password="amber" maxRows="2000"/>