新建一个项目,加上spring 框加,配置服务器,启动,,,
都会报上面的错误,,,
真是让我着急呀,,
请大家帮我看看呀,,
都会报上面的错误,,,
真是让我着急呀,,
请大家帮我看看呀,,
解决方案 »
- java服务器开发后如何发布
- 安装mysql出现的问题,请进来看看吧
- java Arrays.asList()的问题
- javamail 主题 乱码问题(BASE64编码是这么设置吗?为什么还是错的呢)
- 大家来谈谈对非数值计算的理解?
- 如何根据存储过程的名字,用java程序来判断该存储过程是否返回结果集*((数据库为sqlserver 2008
- 关于 sql 可以执行 放在hibernate 确报错了?求高人指点
- 大家都是哪种工具开发带struts标签的jsp页面??
- 请问DataBaseMetaData中的getTables怎么用呀????
- 请问:tomcat老出现这个错误Cannot get a connection, pool exhausted是怎么回事?
- 这个关联到底是hibernate的单向一对一映射?还是单向一对多映射?还是单向多对一映射?
- 如何在WEB端显示struts2传过来的对象
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="com.mysql.jdbc.Driver">
</property>
<property name="url"
value="jdbc:mysql://localhost:3306/mobileservicesystem">
</property>
<property name="username" value="root"></property>
<property name="password" value="root"></property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
</web-app>
一种配置文件写错,概率10%
一种是jar包冲突,概率50%以上问题应该出在这句上:Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool at java.lang.Class.getDeclaredConstructors0(Native Method)
缺少commons-pool-版本.jar的jar的包,找地方下一个就没事了~
也就是说 org/apache/commons/pool/impl/GenericObjectPool 不能发现你看工程中有没有commons-pool-*.jar这个包
应该没 就添加一个这样的包
(我觉得这合用MyEclipse有很大关系,以后要学着深入了解,手工导入了,这样可能会好一些)小弟在网上找了一些关系包冲突,还有SSH整合易出现错误的文章,希望对大家也有所帮助。。
http://blog.csdn.net/Ghosthuo