개발환경 구축중에 이런 에러가 발생하였다.
org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
원인은 Annotation의 버전차이였고 해결책은 context.xml 파일을 수정하는 것이였다. 아니면 버전을 올려되 된다.
Problem u& solution of using org.apache.AnnotationProcessor in Tomcat 6
Published on Thu 12 Jul 2007 07:07 ( 1 year, 6 months ago)
org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
원인은 Annotation의 버전차이였고 해결책은 context.xml 파일을 수정하는 것이였다. 아니면 버전을 올려되 된다.
Problem u& solution of using org.apache.AnnotationProcessor in Tomcat 6
When I run a project which was worked fine in Tomcat 5.5 on Tomcat 6.0, some error bumped out:
Jul 12, 2007 3:01:11 PM com.xxxx.xxx.xxx.RendererException <init>
SEVERE: Couldn't include the view: '/WEB-INF/templates/jsp/xxx.jsp'. java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
Found the reason & solution here:
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
'IT-Consultant' 카테고리의 다른 글
ArraryList, HashMap 사용법 (0) | 2009.02.06 |
---|---|
vista + eclipse + tomcat 에서 tomcat의 비정상적인 작동 (0) | 2009.02.04 |
트리 만들기 (0) | 2009.02.03 |
휴대폰으로 인터넷 하기 (0) | 2009.02.02 |
엔터프라이즈 포털, 2200억 원대 시장 형성 (0) | 2009.02.02 |