L.S.,
I suspect you have more than one copy of the javax.servlet.Servlet class in your system, e.g. you can have a bundle exporting the javax.servlet package and then have another copy of that package in another bundle as an embedded dependency or something. If at runtime, you try to cast an instance created with one Servlet class to the other one, you get these weird exceptions that says '...Servlet can not be cast to Servlet' Regards, Gert Vanthienen ------------------------ FuseSource Web: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ On Mon, Jun 18, 2012 at 1:31 PM, sushant789 <[email protected]> wrote: > I am new to Apache servicemix, so may be this seems to be a stupid question > to some. :) I am trying to deploy one sample webservice but everytime am > getting *com.sun.xml.ws.transport.http.servlet.WSServlet cannot be cast to > javax.servlet.Servlet*Can anyone please help me in this why am getting this > error for a web app deployment? Am using SMx v4.4.2 Also if anyone can > suggest me a solution for one of the problem, because of which I started > exploring Apache Servicemix. I had a legacy application which have some > webservices. Now we have to remove webservices exposure from some modules, > but some cummunication channel has to be maintained by which other modules > (which are accessing these services as webservice) can access without > problem. This we are trying to do cause we don't want to expose our services > over the web, and had to restrict them only for internal use (means only for > modules access and no access by any kindda URL). This all sounds little > wearied but this is what we are trying to achieve. Any help would be really > help. Thanks in advance. > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/com-sun-xml-ws-transport-http-servlet-WSServlet-cannot-be-cast-to-javax-servlet-Servlet-tp5713738.html > Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
