you may have wrong version catalina.jar in your classpath
I would try renaming stray catalina.jar (possibly in WEB-INF/lib folder)
and reload the webapp
see if that helps

Saludos Cordiales desde EEUU
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
This message is confidential and may be privileged. If you are not the intended 
recipient, we kindly ask you to  please inform the sender. Any unauthorised 
dissemination or copying hereof is prohibited. This message serves for 
information purposes only and shall not have any legally binding effect. Given 
that e-mails can easily be subject to manipulation, we can not accept any 
liability for the content provided.






> From: admhards...@yahoo.ca
> To: users@tomcat.apache.org
> Subject: HTTP Status 500 The server encountered an internal error () that 
> prevented it from fulfilling this request
> Date: Sat, 28 Mar 2009 10:24:31 -0400
> 
> Thanks Charles.
> 
> I have been following you , I created all file and directory step by step, 
> but I don't know what is the context for my new file web.xml, however I 
> wrote this context inside it.
> ----------------------------------------------------------
> <?xml version="1.0" encoding="iso-8859-1"?>
> 
> <web-app 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_5.xsd";
> version="2.5">
> 
> <welcome-file-list>
>   <welcome-file>index.html</welcome-file>
>   <welcome-file>index.htm</welcome-file>
>   <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
> </web-app>
> --------------------------------------------------
> 
> That it.  what context should I include inside?. I'm not use any servlet, my 
> example is simple, a few line for connection with a DB in mysql and that it. 
> I don't have any other file such as classes or servlet or something like 
> that.
> 
> in the file create the file C:\tomcat6.0\conf\Catalina\localhost\tomas.xml 
> I wrote this.
> ------------
> <?xml version="1.0" encoding="iso-8859-1"?>
> <Context docBase="D:/websites/tomcatwebsite" />
> ------------
> 
> when I tried to load my example page http://127.0.0.1:8080/tomas, the 
> navigator show me this error now.
> 
> --------------------------------------------------------------------------------
> HTTP Status 500 -
> 
> type Exception report
> 
> message
> 
> description The server encountered an internal error () that prevented it 
> from fulfilling this request.
> 
> exception
> 
> org.apache.jasper.JasperException: java.lang.ClassCastException: 
> org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to 
> org.apache.AnnotationProcessor
>       
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
>       
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
>       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 
> 
> root cause
> 
> java.lang.ClassCastException: 
> org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to 
> org.apache.AnnotationProcessor
>       
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:146)
>       
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
>       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 
> 
> note The full stack trace of the root cause is available in the Apache 
> Tomcat/6.0.18 logs.
> 
> -----------------------------------------
> 
> thanks charles for huge help to me.
> have a good day.
> sincerely
> Tomas Rodriguez 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_________________________________________________________________
Internet Explorer 8 – Get your Hotmail Accelerated.  Download free!
http://clk.atdmt.com/MRT/go/141323790/direct/01/

Reply via email to