This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes classcastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "classcastException" Watch "classcastException" New topic


preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
when i am trying to run a servlet program ,it is showing the following error:

java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to javax.servlet.sip.SipServletRequest

please help me to solve this problem.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Without seeing the code that causes the error?

[Asking smart questions] [About Bear] [Books by Bear]
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

They both extend javax.servlet.ServletRequest, but that's about all you get.
I agree. Here's the link:
subject: classcastException
It's not a secret anymore!