日期:2014-05-17  浏览次数:20893 次

配置文件修改后tomcat启动报错
<bean id="proxoolDataSource"
class="org.logicalcobwebs.proxool.ProxoolDataSource" destroy-method="close">
<property name="alias" value="dataSource" />
<property name="driver" value="oracle.jdbc.driver.OracleDriver" />
<!-- <property name="driverUrl"
value="jdbc:oracle:thin:yjskczx/123@
(DESCRIPTION=(ADDRESS_LIST=
  (ADDRESS=(PROTOCOL=TCP)(HOST=10.202.76.11)(PORT=1521))
  (FAILOVER=on)(LOAD_BALANCE=on))
  (CONNECT_DATA= (SERVICE_NAME=orcl)))" /> -->
  <property name="driverUrl"
value="jdbc:oracle:thin:yjskczx/123@
(DESCRIPTION=(ADDRESS_LIST=
  (ADDRESS=(PROTOCOL=TCP)(HOST=10.22.23.53)(PORT=1521))
  (FAILOVER=on)(LOAD_BALANCE=on))
  (CONNECT_DATA= (SERVICE_NAME=orcl)))" />
<property name="user" value="yjskczx" /> 
<!-- <property name="password" value="yjskczx_zju" /> -->
<property name="password" value="123" />
<property name="minimumConnectionCount" value="20" />
<property name="maximumConnectionCount" value="200" />
<property name="prototypeCount" value="2" />
<property name="trace" value="true" />
<property name="delegateProperties" value=" foo=5" />
</bean> 
主要是这段,将配置修改成另外一个数据库后,就是正常的。

信息: Initializing Spring root WebApplicationContext
- Root WebApplicationContext: initialization started
- Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1e55d39: display name [Root WebApplicationContext]; startup date [Thu Sep 20 15:37:06 CST 2012]; root of context hierarchy
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-webservice.xml]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-quatzt.xml]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-model.xml]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-dataSource.xml]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-thread.xml]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-ScheduledTimerTask.xml]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-commen.xml]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-dwr.xml]
- Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1e55d39]: org.springframework.beans.factory.support.DefaultListableBeanFactory@2f1622
- Pre-instantiating singletons in 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.LinkedList.entry(LinkedList.java:365)
at java.util.LinkedList.get(LinkedList.java:315)
at com.zfsoft.yjskczx.xtwh.timertask.XyInitializingCronTrigger.getCronExpressionFromDB(XyInitializingCronTrigger.java:33)
at com.zfsoft.yjskczx.xtwh.timertask.XyInitializingCronTrigger.setXyTimerTask(XyInitializingCronTrigger.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(