- 浏览: 129688 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
zzzhenyu:
您好,我现在也遇到了同样的问题,请问你后来知道为什么了吗?
error at ::0 can't find referenced pointcut allMethod
错误信息
严重: Servlet.service() for servlet default threw exception
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:849)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at y2ssh.java.shop.manager.util.SpringUtil.<clinit>(SpringUtil.java:8)
at y2ssh.java.shop.manager.action.LoginAction.<init>(LoginAction.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:123)
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)
at com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:113)
at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:275)
at com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:365)
at com.opensymphony.xwork2.DefaultActionInvocation.access$000(DefaultActionInvocation.java:38)
at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:83)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at com.opensymphony.xwork2.DefaultActionInvocation.<init>(DefaultActionInvocation.java:74)
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]
at org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:840)
... 53 more
Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:142)
... 58 more
严重: Servlet.service() for servlet default threw exception
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:849)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at y2ssh.java.shop.manager.util.SpringUtil.<clinit>(SpringUtil.java:8)
at y2ssh.java.shop.manager.action.LoginAction.<init>(LoginAction.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:123)
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)
at com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:113)
at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:275)
at com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:365)
at com.opensymphony.xwork2.DefaultActionInvocation.access$000(DefaultActionInvocation.java:38)
at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:83)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at com.opensymphony.xwork2.DefaultActionInvocation.<init>(DefaultActionInvocation.java:74)
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]
at org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:840)
... 53 more
Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:142)
... 58 more
发表评论
-
IP地址转换成10进制整数
2012-04-29 11:02 1412一、由域名求IP地址的 ... -
提示org.aspectj.lang.annotation.Aspect这个地方有错
2011-12-20 19:03 899网上说的方法太多了,说了一大堆的废话,什么加这个包了加那个包了 ... -
详解Spring中bean的scope
2011-12-20 15:57 629如何使用spring的作用域 ... -
og4j.properties资源配置文件
2011-12-20 10:28 894##############Console Logger# ... -
Spring 架构下使用jstl在页面上展示map或者list(包括类型嵌套的数据)
2011-12-15 12:26 1260如何展示model本身是lis ... -
JSTL对Map集合的操作
2011-12-12 21:22 7421、迭代 当forEach 的items属 ... -
spring分页汇总
2011-12-10 15:41 1189用Spring的JdbcTemplate实现分页功 ... -
The prefix "tx" for element "tx:annotation-driven " is not bound
2011-12-10 10:30 9078今天配置spring 是碰到tx:annotation-d ... -
JSTL之c:forEach
2011-12-07 17:42 821<c:forEach>标签用于通用数据循环,它有以 ... -
Spring开发
2011-11-10 10:38 646log4j:WARN No appenders could b ...
相关推荐
springmvc4.3.3和mybatis3.4.1集成最新全部jar包,还... lib/sqljdbc4.jar lib/ueditor.jar lib/commons-fileupload-1.3.2.jar lib/commons-io-2.5.jar lib/commons-lang-2.6.jar lib/commons-validator-1.5.1.jar
SSH-lib.zip是一个包含SSH库和相关依赖的Java项目开发资源包。SSH在这里指的是Spring、Struts和Hibernate,这是一个常见的Java企业级应用开发框架组合。这个压缩包提供了完整的SSH框架集成,便于开发者快速构建基于...
在Java Web应用中,将`standard.jar`和`jstl.jar`添加到项目的类路径(classpath)或者Web应用的`WEB-INF/lib`目录下,可以使得开发者能够利用这些强大的标签库来编写更清晰、更易于维护的JSP页面,从而降低代码的...
描述中提到的"mybatis+spring整合所需完整jar 包 下载解压到你的lib文件下即可"表明,这个压缩包包含了进行MyBatis与Spring整合所需的全部依赖库。这些库包括: 1. **log4j-core-2.3.jar**:这是一个日志处理库,...
在实际开发中,通常会将这些jar包组织在`lib`目录下,便于管理和维护。通过Maven或Gradle等构建工具,可以自动管理依赖关系,简化项目的构建过程。 总结来说,Struts2、Spring和JDBC的整合涉及到多种jar包,包括...
本文将详细探讨如何在Spring Boot项目中利用Maven来管理和使用这个驱动,以及配合`Maven oracle jdbc.pdf`文档进行配置。 首先,`ojdbc6.jar`是Oracle JDBC驱动的一个版本,它支持Java 6。如果你的项目是基于Java 6...
描述中反复提到了"spring初级JDBC需要的jar包",这暗示了这个压缩包可能是为初学者准备的,包含了进行Spring框架下数据库开发所必需的基础依赖。Spring JDBC简化了数据访问,包括事务管理、异常翻译和SQL执行等功能...
为了在应用服务器上使用ojdbc5.jar,通常需要将它放入WEB-INF/lib目录下,使其成为应用的一部分。 标签"oracle"表明这是与Oracle数据库相关的技术;"java"表示它是Java语言的一部分;"web"则意味着它常用于Web开发...
3. 将下载的jar包放入项目的`lib`目录下。 4. 更新项目的类路径,确保新的jar包被正确引用。 5. 如果使用IDE,例如Eclipse或IntelliJ IDEA,可以将这些jar包添加到项目的构建路径中。 总之,升级到Spring 4并正确...
在lib文件夹下,你应该能找到这些jar包,将它们添加到项目的类路径中,就可以进行MyBatis、Spring和Spring MVC的整合工作了。整合过程中还需要编写相关的配置文件,如Spring的bean配置文件和MyBatis的Mapper配置文件...
标题中的"jdbc的lib.zip"表明这是一个包含Java数据库连接(JDBC)库的压缩文件,通常用于支持Spring框架与数据库的交互。在Spring框架中,JDBC是一个基础组件,允许开发者执行SQL查询、操作数据库记录等任务。让我们...
如果使用Maven,可以在pom.xml文件中添加依赖,或者将其放在项目的`lib`目录下。 2. 在application.properties或application.yml中配置数据源,包括数据库URL、用户名、密码和驱动类名(对于ojdbc6,驱动类名为`...
在压缩包子文件的文件名称列表中,虽然只列出了"lib",但我们可以推测,这个目录下应该包含了一系列的jar文件,这些文件可能包括但不限于: 1. Spring的核心库:spring-core、spring-context、spring-beans、spring-...
例如,在Spring Boot或Tomcat等Web服务器中,将它们放入`WEB-INF/lib`目录下,或者在Maven或Gradle构建系统中声明为依赖。 总结起来,`jstl-api-1.2.jar`和`jstl-impl-1.2.jar`组合用于实现JSP页面的JSTL标签,提升...
对于非Maven项目,可以将jar包复制到项目的lib目录,并确保构建路径已包含该库。 2. **加载驱动**:在Java代码中,使用`Class.forName()`方法加载GaussDB的JDBC驱动,例如: ```java Class.forName(...
6. **Spring框架**:如果项目使用了Spring框架,`spring-core.jar`, `spring-context.jar`, `spring-web.jar`等文件会出现在`lib`目录中,它们提供了依赖注入、AOP(面向切面编程)以及Web应用的支持。 7. **Struts、...
在传统的Web应用结构中,这可能是将JAR放入WEB-INF/lib目录。而在现代的Maven或Gradle构建系统中,可以通过依赖管理将Oracle JDBC驱动配置为项目的依赖,这样构建工具会自动下载并管理驱动。 Oracle JDBC驱动支持四...
在这个压缩包中,包含的文件很可能是微软SQL Server的JDBC驱动,通常命名为`sqljdbc4.jar`或`mssql-jdbc-*.jar`,用于支持Java 1.7和1.8环境。这里,我们重点讨论如何使用这些驱动包以及相关的Java JDBC技术。 首先...
《Spring 3.x 企业应用开发实战》lib包是一个针对Spring框架3.x版本的实践教程配套资源,其中包含了在实际项目开发中可能用到的各种库文件。这些库文件是Spring框架与其他外部组件交互的关键,它们可以帮助开发者...