随笔分类 - JAVA异常积累
摘要:1.错误:在eclipse中使用run->run on server的时候,选择tomcat6会报错误:The server does not support version 3.0 of the J2EE Web module specification2.原因:Tomcat 6.0最多支持Ser...
阅读全文
摘要:问题:使用struts2,如何处理action的路径?还有,在action转到的jsp中,如何写js,css,图片的路径?(例如访问 http://localhost/project/listUser.action后转到http://localhost/project/user /listUser....
阅读全文
摘要:spring+hibernate出错小结:(1)java.lang.NoClassDefFoundError: org/hibernate/context/CurrentSessionContext原因:出现这错误时,请更改hibernate的包,更新至最新或3.1以上(2)java.lang.No...
阅读全文
摘要:1. java.lang.nullpointerexception这个异常大家肯定都经常遇到,异常的解释是"程序 遇上了空指针",简单地说就是调用了未经初始化的对象或者是不存在的对象,这个错误经常出现在创建图片,调用数组这些操作中,比如图片 未经初始化,或者图片创建时的路径错误等等。对数组操作中出...
阅读全文
摘要:1. java.lang.nullpointerexception 这个异常大家肯定都经常遇到,异常的解释是"程序遇上了空指针",简单地说就是调用了未经初始化的对象或者是不存在的对象,这个错误经常出现在创建图片,调用数组这些操作中,比如图片未经初始化,或者图片创建时的路径错误等等。对数组操作中出现...
阅读全文
摘要:错误:“The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,glo...
阅读全文
摘要:The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application需要添...
阅读全文
摘要:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML sche...
阅读全文
摘要:今天在调试一个基础的Struts2框架小程序。总是提示"There is no Action mapped for namespace / and action name"的错误。上网查询后发现这是一个初学者经常碰到的问题,导致错误的原因主要有两种。总结如下: 一、struts.xml文件错误。这种...
阅读全文
摘要:java.lang.Error: 无法解析的编译问题:无法解析类型 javax.servlet.http.HttpServletRequest。从必需的 .class 文件间接引用了它无法解析类型 javax.servlet.http.HttpServletResponse。从必需的 .class ...
阅读全文