Hi,
That should be the cause.
You shouldn't put servlet-api jar in lib/ext, as in SMX4.4.1, we
already install geronimo-servlet_2.5_spec bundle out-of-box which can
provide that class, so what you need do is Import-Package
javax.servlet for your customer bundle so that class
javax.servlet.Servlet is available for your bundle.
Freeman
On 2012-6-19, at 下午1:42, sushant789 wrote:
Thanks Gert for the fast reply. I searched for the duplicate JAR in
the
system but didn't find any. I have servlet-api jar in lib/ext folder
which I
installed because without that am getting ClassNotFoundException for
javax.servlet.Servlet. If that jar file is duplicate and if it has
to be
removed then what should I do so that Servlet class is found??
--
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-tp5713738p5713747.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042