Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Birt Viewer on Ubuntu Linux(Database connectivity)
Birt Viewer on Ubuntu Linux [message #504850] Wed, 23 December 2009 02:46 Go to next message
designing woman is currently offline designing womanFriend
Messages: 10
Registered: December 2009
Junior Member
Hello,

Am trying to get BIRT Runtime 2.5 to work with Ubuntu Linux 9.1 and Tomcat 6 with a MySQL 5.1 database. The database connectivity is *not* easy!

1. Tomcat 6 installed ok
2. BIRT Runtime installed ok can view example report that has no DB connectivity. Error message:

Error org.eclipse.birt.report.engine.api.EngineException: An exception occurred during processing. Please see the following message for details: Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc. There is an error in get connection, Communications link failure Last packet sent to the server was 0 ms ago..

What I've done:
1. Set security to no for java security manager in tomcat /etc/init.d/tomcat6 file (Yes, I understand ramifications)

2. Uploaded mysql connector jar into
/var/lib/tomcat6/webapps/birt/WEB-INF/platform/plugins/org.e clipse.birt.report.data.oda.jdbc_2.5.1.v20090821/drivers/mys ql-connector-java-5.1.5-bin.jar

3. Updated /var/lib/tomcat6/webapps/birt/WEB-INF/platform/plugins/org.e clipse.birt.report.data.oda.jdbc_2.5.1.v20090821/plugin.xml
with database connectivity info for username and password in the extension section as follows:
<extension
point="org.eclipse.birt.report.data.oda.jdbc.driverinfo">
<jdbcDriver
driverClass="org.apache.derby.jdbc.EmbeddedDriver" urlTemplate="jdbc:derby://localhost:3306/risk;username=myusername;password=Very_big_secret*" name="Apache Derby Embedded Driver"/>
</extension>

4. Added itext jar manually to
/var/lib/tomcat6/webapps/birt/WEB-INF/lib/itext.jar

5. Added the SIX commons logging .jar files required by tomcat6 into
/var/lib/tomcat6/webapps/birt/WEB-INF/lib

6. Did chmod 755 on all new uploaded files

7. Started/restarted Tomcat multiple times

Cookies are enables on the browser. I have tried with Firefox and IE.

I have used this page for reference
http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php
but clearly it doesn't say that everything I've done as it doesn't address DB connections.

Do plugin.properties need to be set, ie
datasource.property.odaDataSource=Data Source
datasource.property.odaUser=User &Name
datasource.property.odaPassword=Pass&word

I don't see any documentation describing how plugin.properties should be configured. I didn't need it for the Windows system on which I tested.

What other steps are missing to get BIRT runtime installed WITH database connectivity on Unix/Linux?

Genius suggestions, anyone?
Re: Birt Viewer on Ubuntu Linux [message #504853 is a reply to message #504850] Wed, 23 December 2009 05:20 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You do not need step 2 and 3. Other than possible permission issues
just copying the jdbc driver to the drivers directory as you did in step
2 is all that is required. Since you are using Tomcat 6 you also have
to copy the commons logging jars. Connection info is stored in the
report not the plugin.

Jason

designing woman wrote:
> Hello,
>
> Am trying to get BIRT Runtime 2.5 to work with Ubuntu Linux 9.1 and
> Tomcat 6 with a MySQL 5.1 database. The database connectivity is *not*
> easy!
>
> 1. Tomcat 6 installed ok 2. BIRT Runtime installed ok can view
> example report that has no DB connectivity. Error message:
>
> Error org.eclipse.birt.report.engine.api.EngineException: An exception
> occurred during processing. Please see the following message for
> details: Cannot open the connection for the driver:
> org.eclipse.birt.report.data.oda.jdbc. There is an error in get
> connection, Communications link failure Last packet sent to the server
> was 0 ms ago..
>
> What I've done:
> 1. Set security to no for java security manager in tomcat
> /etc/init.d/tomcat6 file (Yes, I understand ramifications)
>
> 2. Uploaded mysql connector jar into
> /var/lib/tomcat6/webapps/birt/WEB-INF/platform/plugins/org.e
> clipse.birt.report.data.oda.jdbc_2.5.1.v20090821/drivers/mys
> ql-connector-java-5.1.5-bin.jar
>
> 3. Updated
> /var/lib/tomcat6/webapps/birt/WEB-INF/platform/plugins/org.e
> clipse.birt.report.data.oda.jdbc_2.5.1.v20090821/plugin.xml
> with database connectivity info for username and password in the
> extension section as follows: <extension
> point="org.eclipse.birt.report.data.oda.jdbc.driverinfo">
> <jdbcDriver
> driverClass="org.apache.derby.jdbc.EmbeddedDriver"
> urlTemplate="jdbc:derby://localhost:3306/risk;username=myusername;password=Very_big_secret*"
> name="Apache Derby Embedded Driver"/>
> </extension>
>
> 4. Added itext jar manually to
> /var/lib/tomcat6/webapps/birt/WEB-INF/lib/itext.jar
>
> 5. Added the SIX commons logging .jar files required by tomcat6 into
> /var/lib/tomcat6/webapps/birt/WEB-INF/lib
> 6. Did chmod 755 on all new uploaded files
>
> 7. Started/restarted Tomcat multiple times
>
> Cookies are enables on the browser. I have tried with Firefox and IE.
>
> I have used this page for reference
> http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php
> but clearly it doesn't say that everything I've done as it doesn't
> address DB connections.
> Do plugin.properties need to be set, ie
> datasource.property.odaDataSource=Data Source
> datasource.property.odaUser=User &Name
> datasource.property.odaPassword=Pass&word
>
> I don't see any documentation describing how plugin.properties should be
> configured. I didn't need it for the Windows system on which I tested.
>
> What other steps are missing to get BIRT runtime installed WITH database
> connectivity on Unix/Linux?
>
> Genius suggestions, anyone?
Re: Birt Viewer on Ubuntu Linux [message #504862 is a reply to message #504853] Wed, 23 December 2009 07:57 Go to previous messageGo to next message
designing woman is currently offline designing womanFriend
Messages: 10
Registered: December 2009
Junior Member


Jason,

Thank you for your comments. I'm not sure if I understood what you meant about logging as I did copy copy commons jars to the directory.

To connect to the DB, I changed the report to connect to the DB by changing the Data Sources, using Eclipse on my Windows PC. It becomes part of the .rptdesign file. There is a way to externalize this, but the documentation is lacking. I don't know where the file would be placed on the server.

But I could test the connection with the Database on the server, and it tests ok. NOW, I am getting ANOTHER error msg:

org.eclipse.birt.report.engine.api.EngineException: An exception occurred during processing. Please see the following message for details: Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc. There

is an error in get connection, java.lang.NoClassDefFoundError:
com/mysql/jdbc/SingleByteCharsetConverter.

One thing I noticed - the server has java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

I am using a Windows java 1.6 java version.
Sun has a JDK e.g.
http://packages.ubuntu.com/hardy/amd64/sun-java6-jdk/filelis t

What are the advantages of using Sun vs. OpenJDK?
Clearly setting up a database connection is not easy - more ideas???

Re: Birt Viewer on Ubuntu Linux [message #504907 is a reply to message #504862] Wed, 23 December 2009 14:15 Go to previous messageGo to next message
designing woman is currently offline designing womanFriend
Messages: 10
Registered: December 2009
Junior Member
I fixed it. The setup for database connectivity in deploying to Linux from a windows workstation isn't well explained in any eclipse documentation.
Re: Birt Viewer on Ubuntu Linux [message #504947 is a reply to message #504907] Wed, 23 December 2009 17:47 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you do not mind posting what you did, I will add it to the FAQ.

designing woman wrote:
> I fixed it. The setup for database connectivity in deploying to Linux
> from a windows workstation isn't well explained in any eclipse
> documentation.
Re: Birt Viewer on Ubuntu Linux [message #523629 is a reply to message #504947] Sat, 27 March 2010 15:50 Go to previous messageGo to next message
Mike Gendelman is currently offline Mike GendelmanFriend
Messages: 1
Registered: March 2010
Junior Member
I fixed the problem by rolling back the jdbc driiver from 5.1.10 to 5.1.9.

Mike Gendelman
www.vsblabs.com


Mike Gendelman
http://www.VSBLabs.com
Re: Birt Viewer on Ubuntu Linux [message #523718 is a reply to message #523629] Sun, 28 March 2010 19:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks for the update

Mike Gendelman wrote:
> I fixed the problem by rolling back the jdbc driiver from 5.1.10 to 5.1.9.
>
> Mike Gendelman
> www.vsblabs.com
>
Re: Birt Viewer on Ubuntu Linux [message #528558 is a reply to message #504850] Tue, 20 April 2010 23:59 Go to previous messageGo to next message
Sai is currently offline SaiFriend
Messages: 2
Registered: April 2010
Junior Member
Hi All,
urgent help needed, Im having the exact same problem on my server. I'm currently running it on Ubuntu

Versions are :
JVM version : 1.6.0_07-b06
Mysql J Connector ver 5.1.12
Tomcat 6

Does it have to be using mysql jdbc 5.1.9? I cant seem to find the download, can someone point me to where that is

It was working perfectly fine until a few weeks ago, it just suddenly crashed with the communications link failure error and then with
java.lang.NoClassDefFoundError:
com/mysql/jdbc/SingleByteCharsetConverter if i stop using localhost on my connection and switch it to the ip address instead.

Appreciate some help from the experts out there
Re: Birt Viewer on Ubuntu Linux [message #528775 is a reply to message #528558] Wed, 21 April 2010 17:38 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Sai,

Could you try it with the 5.0.8 driver?

Jason

Sai wrote:
> Hi All,
> urgent help needed, Im having the exact same problem on my server. I'm
> currently running it on Ubuntu
>
> Versions are : JVM version : 1.6.0_07-b06
> Mysql J Connector ver 5.1.12
> Tomcat 6
>
> Does it have to be using mysql jdbc 5.1.9? I cant seem to find the
> download, can someone point me to where that is
>
> It was working perfectly fine until a few weeks ago, it just suddenly
> crashed with the communications link failure error and then with
> java.lang.NoClassDefFoundError:
> com/mysql/jdbc/SingleByteCharsetConverter if i stop using localhost on
> my connection and switch it to the ip address instead.
>
> Appreciate some help from the experts out there
>
Previous Topic:Text alignment in a Master Page Header Grid
Next Topic:Create report using Java
Goto Forum:
  


Current Time: Fri Apr 26 04:04:28 GMT 2024

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

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

Back to the top