Skip to main content



      Home
Home » Eclipse Projects » Equinox » Servlet class cast exception in eclipse 3.3
Servlet class cast exception in eclipse 3.3 [message #130207] Thu, 30 April 2009 03:41 Go to next message
Eclipse UserFriend
Hey,

In Eclipse 3.3, I'm registering a servlet via ..servlet.registry. When I
start the registry bundle, I get a class cast Exception (MyServlet
cannot be cast to Servlet). Certainly a class loader problem, but I have
no idea how to investigate this further.

A similar setup in Eclipse 3.4 works just fine.

One thing that I find strange is that in 3.3 I find two javax.servlet
bundles, both version 2.4 but with a different date tag.


Thanks for any help.
Felix
Re: Servlet class cast exception in eclipse 3.3 [message #130220 is a reply to message #130207] Thu, 30 April 2009 04:27 Go to previous messageGo to next message
Eclipse UserFriend
Felix Dorner schrieb:
> One thing that I find strange is that in 3.3 I find two javax.servlet
> bundles, both version 2.4 but with a different date tag.

That might be the source of your problem. The bundles get wired to the
different Servlet APIs. Can you try removing on of them?

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Servlet class cast exception in eclipse 3.3 [message #130232 is a reply to message #130220] Thu, 30 April 2009 04:48 Go to previous message
Eclipse UserFriend
Gunnar Wagenknecht wrote:
> Felix Dorner schrieb:
>> One thing that I find strange is that in 3.3 I find two javax.servlet
>> bundles, both version 2.4 but with a different date tag.
>
> That might be the source of your problem. The bundles get wired to the
> different Servlet APIs. Can you try removing on of them?

Yes it works when I remove one of them.
Thanks,
Felix
Previous Topic:Cannot make the eclipse UI recognize bundles.
Next Topic:How To Package P2 Binary Artifacts
Goto Forum:
  


Current Time: Wed Jun 04 02:43:40 EDT 2025

Powered by FUDForum. Page generated in 0.14391 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top