Home
Analytics
Setting up Birt Viewer with Tomcat locally
Katieee
<p>I want to try and see if I can get the BIRT viewer to display my report using Tomcat - I just want to test this for now and wanted to just try it on my machine(pc).<br><br>
Downloaded the core 7.0.61 version and copied in the webViewerExample and renamed it BIRT.<br><br>
Is this link correct for running it locally - <a data-ipb='nomediaparse' href='
http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.jst.server.ui.doc.user/topics/tomcat.html'>http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.jst.server.ui.doc.user/topics/tomcat.html</a><br><br>
;
Will I need to ad the runtimes like it mentions here? - <a data-ipb='nomediaparse' href='
http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.jst.server.ui.doc.user/topics/twtomprf.html'>http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.jst.server.ui.doc.user/topics/twtomprf.html</a><br><br><br>
;
Also I have no idea how to get Tomcat to run for the first time either - Would someone be able to inform me how you would go about doing so please?<br><br>
Regards,<br>
Kate</p>
Find more posts tagged with
Comments
JFreeman
<p>In order to run a report through the viewer you should be able to access it through a URL like the following:
http://<hostname>:<port>/birt-viewer/frameset?__report=test.rptdesign</p>
;
<p> </p>
<p>This URL assumes you have named the birt viewer application as birt-viewer within your tomcat's webapps directory and the report design "test.rptdesign" is located in the root of the birt-viewer directory.</p>
<p> </p>
<p>test.rptdesign is provided by default with the viewer and is a good starting place to make sure the viewer is working properly before testing your own reports.</p>
<p> </p>
<p>Regarding starting tomcat, this will vary depending on the operating system and version of tomcat as well as how it has been deployed. Typically, tomcat is going to be registered as a service in the environment or is going to be started with a start script that is included with the installation.</p>
<p> </p>
<p>I would recommend reading through the tomcat setup documentation for your particular version/environment.</p>
Katieee
<p>Hi Jesse,<br><br>
I have changed the install file I was using and it runs fine and runs the test report design file too - I have tried to use my own but it requires the jt400.jar for it to work as I need to connect to the database - I have included it but I still get an exception of</p>
<p>'<span style="color:rgb(0,0,0);font-family:monospace;font-size:10.6666669845581px;background-color:rgb(255,255,239);">Cannot load JDBC Driver class'</span></p>
<p> </p>
<p>Do you have any knowledge of why this would not work? I currently have it in <br><br>
C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\lib</p>
<p><strong>and </strong><br>
C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\Birt\WEB-INF\lib (for good measure)<br><br>
The file amongst xml files etc contains jt400.jar and the oda-jdbc.jar so I have just put the folder as a whole into both areas but to no prevail. <br><br>
*Edit - I removed all the places where I had the jars and put them back in but only in 1 location, seems to cause an issue if you place it in two different places so I dropped one as it mentions in a few articles I found so it works now! Thank you for the assistance Jesse!</p>
<p> </p>
<p>Thanks,<br>
Kate<br><br>
</p>
JFreeman
<p>You're welcome.</p>
<p>I'm glad to hear you got it working.</p>
<p> </p>
<p>As you have figured out, I can also confirm, you only want the jars in a single location as multiples can/will cause issues.</p>