http://mqqqvpppm.iteye.com/blog/220254
my project throw the following exception in tomcat6:
java.lang.ClassCastException:
org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
Solution:
(this is an expert's mail)
-----------------------------------------------------------------------
this problem is not easy to solve - some1 commited "patch" to refactor
AnnotationProcessor interface to NOW wrong package.
This was due to efforts from MYFACES-1246, proposal of annotation
processing here in list (adding method), but this of course breaks
compatibility of the same named interfaces.
If you have older code using org.apache.AnnotationProcessor you can make
it work on Tomcat:
Add
<Loader delegate="true"/>
into context.xml file (to Context element) in tomcat/conf directory.
This makes classloading in Tomcat sticking to J2EE spec.
(I couldn't make it work with suggested approach for only 1 webapp)
More info on classloader:
http://tomcat.apache.org/tomcat-6.0-doc/config/loader.html
When using new code from trunk, it needs quite a lot changes to make it
work in Tomcat (i can provide patch if wanted).
Regards,
Zdenek
出现这个问题多半是把tomcat6 lib目录下的jar文件复制到了项目lib目录下了,只需要把这些多余的jar包从项目lib目录下去掉就行了。
分享到:
相关推荐
在MATLAB中,`solve`函数是一个非常重要的数学工具,用于求解符号数学方程。这个函数能够处理一元和多元、线性和非线性的代数方程组,为科研和工程计算提供了强大的支持。标题"help solve.zip_Help!_matlab;help;...
Polya is one of the most frequently quoted mathematicians, and the following statements from "How to Solve It" make clear why: "My method to overcome a difficulty is to go around it." "Geometry is ...
solve the value of the PI
Symbols is a Java library to generate static strings constants for attribute names using annotation processor. Tell me more In some cases, in Java (ex: when using reflection methods) we need to refer ...
**lp_solve资源包详解** `lp_solve`是一个开源线性规划求解器,适用于各种优化问题,包括线性规划(LP)、混合整数规划(MIP)、二次规划(QP)和二次约束线性规划(QCLP)。这个资源包包含了学习和使用`lp_solve`...
How to solve 90% of NLP problems_ a step-by-step guide
LP_SOLVE是一个开源的线性规划(LP)和混合整数线性规划(MILP)求解器,适用于各种优化问题。它是由Erling D. Andersen开发的,广泛应用于学术研究和工业界。在MATLAB环境中,LP_SOLVE提供了一个接口,使得用户能够...
标题中的“solve of the probability generation problem”提示我们这是一份关于概率生成问题解决方案的资料,而标签“matlab”表明了解决这个问题可能涉及到MATLAB这一强大的数学计算软件。结合描述中的“学习资料...
MotorSolve 4.0是一款专业的电机设计软件,由海基科技出品。本文手册详细介绍了软件的界面布局、功能区域划分,以及案例分析步骤,并提供了软件安装、配置需求、license申请和安装验证等操作指南。 **MotorSolve...
Motorsolve是一款先进的电机仿真软件,它提供了5.2.0版本,专门针对水冷电机的热管理进行了优化。这款软件允许工程师们精确地模拟和分析电机的热态效应,以确保电机在各种工况下都能保持适宜的温度。 电机仿真,...
mysolve.m
在给定的“matlab-solve.rar_fdtd_fdtd_solve MATLAB”压缩包中,主要包含了一个使用MATLAB进行有限差分时间域(Finite-Difference Time-Domain, FDTD)方法的仿真程序。FDTD是电磁学领域常用的一种数值计算方法,它...
《lp_solve 5.5.2.9:高效数学规划求解器的源码解析》 在优化领域,数学规划求解器是不可或缺的工具,它们用于解决各种类型的线性和非线性问题。"lp_solve_5.5.2.9_dev_win64_数学规划求解器ipsolve_源码"是一个...
《fwd_solve.doc》文档涉及了多个IT领域的知识点,主要集中在MATLAB编程、EIDORS库的使用、有限元方法(FEM)以及图像处理软件Avizo的运用。下面将逐一详细解析这些内容。 首先,`fwd_solve`是MATLAB中的一个函数,...
ideas and procedures that can help to solve many of your daily graphicsprogramming challenges. The fifth book in the series wouldn’t have been possible without the help of many people. First, I would...
### 知识点总结 #### 一、研究背景与目的 - **研究背景**:本文旨在探讨解决实际世界中的分类问题是否真的需要大量的分类器。随着机器学习技术的发展,不断有新的分类算法被提出,这使得研究者们面对着一个选择...
How to Solve It:A New Aspect of Mathematical Method
使用局部二次逼近的方法(LQA),求解带有SCAD惩罚项的线性回归问题。
《ANSYS Remote Solve Manager 用户指南》是为使用ANSYS软件进行远程求解管理的用户提供的一份详尽的操作手册。这份指南适用于版本19.0,由ANSYS公司于2018年1月发布,旨在帮助用户高效地利用ANSYS Remote Solve ...
methods of design of models have contributed to the best formulation of problems. Then we have seen SAT solvers gain unexpected and truly remarkable efficiency improvements—despite theoretical ...