附图报错信息下面是图片上面说的application.xml文件,<?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd"> <context:component-scan base-package="cn.sh.ideal.dao" />
<context:component-scan base-package="cn.sh.ideal.service" /> <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/jdbc/igrp</value>
</property>
</bean> <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource" />
</bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<tx:annotation-driven transaction-manager="transactionManager"/>
</beans>有碰到过这方面问题的朋友帮帮忙!
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd"> <context:component-scan base-package="cn.sh.ideal.dao" />
<context:component-scan base-package="cn.sh.ideal.service" /> <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/jdbc/igrp</value>
</property>
</bean> <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource" />
</bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<tx:annotation-driven transaction-manager="transactionManager"/>
</beans>有碰到过这方面问题的朋友帮帮忙!
解决方案 »
- tomcate启动成功,无法访问
- SSH带参分页查询问题
- struts与ibatis框架融合
- 在线等,jpa怎样指定外键的约束名称
- hibernate 报错 "Too many connections" 求助
- 寻找技术架构推荐
- 迷糊 org.springframework.beans.factory.BeanCreationException 错误 大家帮帮忙
- spring问题
- 紧急求助高人(tomcat服务中的stdout.log问题)
- 桌面突然多了几个".android"、".m2"、".myeclipse"文件夹,貌似是缓存文件夹,有什么办法删除或更改路径?
- springmvc+spring+mybias框架oracle数据库连不上
- 控制jsp页面所有控件只读(按钮、输入框等)
是全的,整个项目搜索都找不到caUrl,感觉有点玄乎,把这个数据源删掉就没报错了,可是不知道错在哪里
我网上也找了,基本上都是你说的这种,可是我看了连接数据库配置没有&这个符号,并且在这里我将这种连接方式改成不调用本地直接写配置oracle数据库连接 不存在&符号同样报这样的错误,
下面是jdbc/igrp的文件
<Context debug="0" reloadable="false" privileged="true">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
<!--c3p0-->
<Resource name="jdbc/igrp" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
maxPoolSize="500" minPoolSize="10" initialPoolSize="20" acquireIncrement="10" idleConnectionTestPeriod="180"
maxIdleTime="180" checkoutTimeout="60000" maxStatements="0" maxStatementsPerConnection="100"
driverClass="net.sf.log4jdbc.DriverSpy"
user="carmot_pe1" password="carmot"
jdbcUrl="jdbc:log4jdbc:oracle:thin:@10.4.247.96:1521:igrp2"
factory="org.apache.naming.factory.BeanFactory"/>
<Resource name="jdbc/md" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
maxPoolSize="200" minPoolSize="10" initialPoolSize="20" acquireIncrement="10" idleConnectionTestPeriod="180"
maxIdleTime="180" checkoutTimeout="60000" driverClass="com.mysql.jdbc.Driver"
user="root" password="123456"
jdbcUrl="jdbc:mysql://10.4.247.92:3306/md"
factory="org.apache.naming.factory.BeanFactory"/>
<Resource name="jdbc/sms" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
maxPoolSize="30" minPoolSize="1" initialPoolSize="5" acquireIncrement="2"
idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
maxStatements="0" maxStatementsPerConnection="100"
driverClass="oracle.jdbc.OracleDriver"
user="hy_dmdz" password="hy_dmdz"
jdbcUrl="jdbc:log4jdbc:oracle:thin:@222.74.229.185:8891:dev"
factory="org.apache.naming.factory.BeanFactory"/>
<Resource name="jdbc/gd" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
maxPoolSize="30" minPoolSize="3" initialPoolSize="5" acquireIncrement="2"
idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
driverClass="oracle.jdbc.driver.OracleDriver"
user="seas" password="seas"
jdbcUrl="jdbc:oracle:thin:@127.0.0.1:1521:igrp2"
factory="org.apache.naming.factory.BeanFactory"/> <Resource name="jdbc/xzsp" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
maxPoolSize="30" minPoolSize="3" initialPoolSize="5" acquireIncrement="2"
idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver"
user="sa" password="sa"
jdbcUrl="jdbc:sqlserver://10.4.251.190:1433;DatabaseName=xzspex"
factory="org.apache.naming.factory.BeanFactory"/> <Resource name="jdbc/bnet" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
maxPoolSize="10" minPoolSize="2" initialPoolSize="2" acquireIncrement="2"
idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
driverClass="oracle.jdbc.driver.OracleDriver"
user="itpp_develop" password="itpp"
jdbcUrl="jdbc:oracle:thin:@10.4.247.92:1521:dev"
factory="org.apache.naming.factory.BeanFactory"/>
</Context>