Home
Analytics
Why am I getting this Exception on Eclipse-Indigo-Birt-Viewer?
justsaid
<p style="font-size:13.63636302947998px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">I'm running my Eclipse Application with the Birt plugin. Every thing works fine, except for the preview. Clicking on preview leads to the following Exception (with any report):</p><p style="font-size:13.63636302947998px;color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">What should I do to debug/fix this?</p><pre class="_prettyXprint _lang-nocode">java.lang.ClassCastException: org.eclipse.birt.report.servlet.ViewerServlet cannot be cast to javax.servlet.Servlet at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.initializeDelegate(ServletManager.java:194) at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:179) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:317) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:924) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)</pre>
Find more posts tagged with
Comments
mwilliams
<p>Can you explain more about the setup of your application? I've not seen this error before?</p>
justsaid
<p>Hi Michael,</p><p> </p><p>I'm developing against the eclipse IDE, so I defined a target platform with all the needed plugins including Birt.</p><p>If I run the new eclipse application (including Birt), everything seems working (I can make a new report, edit it and so on), except for the report preview function. Trying to use it, gave me the mentioned Exception.</p><p> </p><p>[color=rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-size:13.63636302947998px;]By now, I fixed it. I'm not sure how. By intuition I just added the [/color]<strong><em>jetty</em></strong>[color=rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;font-size:13.63636302947998px;] plugin to my target-platform (dependencies). This was enough to fix this opaque exception. The Birt Preview is no fully functional.[/color]</p><p> </p><p>best regards,</p><p>Said</p>
mwilliams
<p>Glad to hear that everything is working now. Let us know whenever you have questions!
</p>