Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Birt WebViewer Example throws error
Birt WebViewer Example throws error [message #368093] Sat, 02 May 2009 13:03 Go to next message
Luis Miguel is currently offline Luis MiguelFriend
Messages: 1
Registered: July 2009
Junior Member
Hi folks,

I am new to Birt and I tried to run the WebViewerExample as a first step.
I followed the Birt runtime installation instructions from the Eclipse web
site. I have been at this for about a week now and I have had no success
of running the example. I won't post the entire Java exception stack, but
here is what I think is the relevant portion. It is not able to find the
Tidy.jar

Caused by: java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
at
org.eclipse.birt.report.engine.parser.HTMLTextParser.(HTMLTe xtParser.java:55)
at
org.eclipse.birt.report.engine.parser.TextParser.parse(TextP arser.java:110)
at
org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitte r.outputHtmlText(HTMLReportEmitter.java:2041)
at
org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitte r.startForeign(HTMLReportEmitter.java:2022)
at
org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:75)
at
org.eclipse.birt.report.engine.layout.html.buffer.DummyPageB uffer.startContent(DummyPageBuffer.java:109)
at
org.eclipse.birt.report.engine.layout.html.HTMLLeafItemLM.st art(HTMLLeafItemLM.java:50)
at
org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:132)
at
org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:68)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
at
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:101)
at
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:534)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:209)
... 71 more
Caused by: java.lang.ClassNotFoundException: org.w3c.tidy.Tidy
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336 )
... 84 more

Here is what I have done so far in order to make this work.

Installed new Ubuntu 8.10 server with default settings. Installed Tomcat 6
with apt-get from ubuntu repository. Downloaded Birt runtime
(birt-runtime-2_3_2_1.zip) unpacked it and copies WebViewerExample into
the webapps folder of Tomcat. Renamed the copied folder to birt-viewer.
After changing permissions on the folder I was able to get it running via
the Tomcat manager console. Then I tried accessing the Birt report through
a Browser by going to http://192.168.1.100:8080/birt-viewer/ and clicking
on the "View Example" link. The Birt Report Viewer page starts up and the
Exception is thrown with output to the screen.
I scoured all sorts of posts and googled for Tidy & Birt & Tomcat &
Ubuntu, in various permutations and I followed several suggestions on
these posts, but none have helped so far. Here is what I have done so far
(assume restarts of Tomcat between each attempt):

- modified my /etc/profile file to include the following path information
export TOMCAT_HOME=/var/lib/tomcat6
export TOMCAT_INSTALL=/var/lib/tomcat6
export BIRT_RUNTIME=/var/lib/tomcat6/webapps/birt
export
PATH=${PATH}:${TOMCAT_HOME}:${TOMCAT_INSTALL}/webapps:${BIRT _RUNTIME}

- granted write permissions to all users to platform under the WEB-INF
directory.

- changed ownership of the birt engine to root:tomcat6

- placed Tidy.jar in Tomcat's /lib directory

So far nothing has worked. I would really appreciate someone's help, since
this is driving me crazy and I am ready to throw this entire thing out the
window.

Luis
Re: Birt WebViewer Example throws error [message #368118 is a reply to message #368093] Tue, 05 May 2009 13:33 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Luis,

Tidy is already included in the BIRT runtime and should not be added.
What version of Tomcat are using?

Jason

Luis Miguel wrote:
> Hi folks,
>
> I am new to Birt and I tried to run the WebViewerExample as a first
> step. I followed the Birt runtime installation instructions from the
> Eclipse web site. I have been at this for about a week now and I have
> had no success of running the example. I won't post the entire Java
> exception stack, but here is what I think is the relevant portion. It is
> not able to find the Tidy.jar
>
> Caused by: java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
> at
> org.eclipse.birt.report.engine.parser.HTMLTextParser.(HTMLTe xtParser.java:55)
>
> at
> org.eclipse.birt.report.engine.parser.TextParser.parse(TextP arser.java:110)
> at
> org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitte r.outputHtmlText(HTMLReportEmitter.java:2041)
>
> at
> org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitte r.startForeign(HTMLReportEmitter.java:2022)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:75)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.DummyPageB uffer.startContent(DummyPageBuffer.java:109)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLLeafItemLM.st art(HTMLLeafItemLM.java:50)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:132)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:68)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:101)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:534)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:209)
>
> .. 71 more
> Caused by: java.lang.ClassNotFoundException: org.w3c.tidy.Tidy
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336 )
> .. 84 more
>
> Here is what I have done so far in order to make this work.
>
> Installed new Ubuntu 8.10 server with default settings. Installed Tomcat
> 6 with apt-get from ubuntu repository. Downloaded Birt runtime
> (birt-runtime-2_3_2_1.zip) unpacked it and copies WebViewerExample into
> the webapps folder of Tomcat. Renamed the copied folder to birt-viewer.
> After changing permissions on the folder I was able to get it running
> via the Tomcat manager console. Then I tried accessing the Birt report
> through a Browser by going to http://192.168.1.100:8080/birt-viewer/ and
> clicking on the "View Example" link. The Birt Report Viewer page starts
> up and the Exception is thrown with output to the screen. I scoured all
> sorts of posts and googled for Tidy & Birt & Tomcat & Ubuntu, in various
> permutations and I followed several suggestions on these posts, but none
> have helped so far. Here is what I have done so far (assume restarts of
> Tomcat between each attempt):
>
> - modified my /etc/profile file to include the following path information
> export TOMCAT_HOME=/var/lib/tomcat6
> export TOMCAT_INSTALL=/var/lib/tomcat6
> export BIRT_RUNTIME=/var/lib/tomcat6/webapps/birt
> export
> PATH=${PATH}:${TOMCAT_HOME}:${TOMCAT_INSTALL}/webapps:${BIRT _RUNTIME}
>
> - granted write permissions to all users to platform under the WEB-INF
> directory.
>
> - changed ownership of the birt engine to root:tomcat6
>
> - placed Tidy.jar in Tomcat's /lib directory
>
> So far nothing has worked. I would really appreciate someone's help,
> since this is driving me crazy and I am ready to throw this entire thing
> out the window.
> Luis
>
>
Previous Topic:Classloading from javascript problem in v2.3.2
Next Topic:Exception in Unix Server
Goto Forum:
  


Current Time: Fri Apr 26 06:23:30 GMT 2024

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

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

Back to the top