• Post Reply Bookmark Topic Watch Topic
  • New Topic

classcastException

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
javax.servlet.sip.SipServlet.service(SipServlet.java:99)


please help me to solve this problem.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65664
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without seeing the code that causes the error?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They both extend javax.servlet.ServletRequest, but that's about all you get.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!