Home
Analytics
Using birt reports in Jetty?
Mathematic
Have download the WebViewerExample Folder and copied it to the webapps folder.
It gives me
HTTP ERROR: 500
Could not initialize class org.eclipse.birt.report.servlet.ViewerServlet
RequestURI=/WebViewerExample/frameset
Caused by:
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.birt.report.servlet.ViewerServlet
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
It works fine with in tomcat but I think I have to have a different folder structure. How can I get this working under Jetty webserver.
Why am I getting this error.
Ultimately what I want to do is have
have in a jsp page
<a href="<%= request.getContextPath( ) + "/frameset?__report=myreport.rptdesign&sample=my+parameter" %>">View My report!</a>
Please Help! I have gotten this working in Tomcat but Jetty is a different story. Their seems to be nobody that knows how to do it fully. I have found alot of wrong directions here and their.
My only complaint about birt is that is not easy to know whats what and where is where.AAAAAAAAAAH
Find more posts tagged with
Comments
uptimeken
Hi, <br />
<br />
We have jetty integrated into our product, so I also need to figure this out... I am getting the following error:<br />
<br />
HTTP ERROR 500<br />
<br />
Problem accessing /BirtViewer/frameset. Reason:<br />
<br />
Could not initialize class org.eclipse.birt.report.servlet.ViewerServlet<br />
Caused by:<br />
<br />
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.birt.report.servlet.ViewerServlet<br />
at sun.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source)<br />
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)<br />
at java.lang.reflect.Constructor.newInstance(Unknown Source)<br />
at java.lang.Class.newInstance0(Unknown Source)<br />
at java.lang.Class.newInstance(Unknown Source)<br />
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)<br />
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:419)<br />
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)<br />
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:478)<br />
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)<br />
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)<br />
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)<br />
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)<br />
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)<br />
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)<br />
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)<br />
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)<br />
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)<br />
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)<br />
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)<br />
at org.mortbay.jetty.Server.handle(Server.java:326)<br />
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)<br />
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)<br />
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)<br />
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)<br />
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)<br />
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)<br />
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="Mathematic"><p>Have download the WebViewerExample Folder and copied it to the webapps folder. <br />
<br />
It gives me<br />
<br />
HTTP ERROR: 500<br />
<br />
Could not initialize class org.eclipse.birt.report.servlet.ViewerServlet<br />
<br />
RequestURI=/WebViewerExample/frameset<br />
Caused by:<br />
<br />
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.birt.report.servlet.ViewerServlet<br />
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)<br />
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)<br />
at java.lang.reflect.Constructor.newInstance(Unknown Source)<br />
at java.lang.Class.newInstance0(Unknown Source)<br />
at java.lang.Class.newInstance(Unknown Source)<br />
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)<br />
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)<br />
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)<br />
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)<br />
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)<br />
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)<br />
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)<br />
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)<br />
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)<br />
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)<br />
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)<br />
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)<br />
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)<br />
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)<br />
at org.mortbay.jetty.Server.handle(Server.java:324)<br />
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)<br />
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)<br />
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)<br />
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)<br />
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)<br />
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)<br />
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)<br />
<br />
<br />
It works fine with in tomcat but I think I have to have a different folder structure. How can I get this working under Jetty webserver.<br />
Why am I getting this error.<br />
<br />
Ultimately what I want to do is have<br />
have in a jsp page<br />
<a href="<%= request.getContextPath( ) + "/frameset?__report=myreport.rptdesign&sample=my+parameter" %>">View My report!</a> <br />
<br />
Please Help! I have gotten this working in Tomcat but Jetty is a different story. Their seems to be nobody that knows how to do it fully. I have found alot of wrong directions here and their.<br />
<br />
My only complaint about birt is that is not easy to know whats what and where is where.AAAAAAAAAAH</p></blockquote>
cmcdaniel
I hate to be a necro (the original post is a year and a half old), but I am getting this error too, and in all of Google's knowledge, this is the only page it could find with this exact error. While the OP had this problem on Jetty, it works fine for me on Jetty. Unfortunately, I need to deploy to WebLogic, and that is where I am seeing this error. Does anyone know what is causing this?