Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL
java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1266558] Fri, 07 March 2014 16:31 Go to next message
Joe C is currently offline Joe CFriend
Messages: 5
Registered: March 2014
Junior Member
Hi everyone, I have been using Birt 4.2.2 in Eclipse Juno in Windows 7 and everything was running fine in Eclipse Juno on PostgreSQL and Tomcat 7. Recently I have imported my project in Eclipse Kepler in a MacBook Pro with Tomcat 7.0.52 and PostgreSQL 9.1 and Birt 4.3.1 and while reports are running OK in the Preview in eclipse, when I run a report by code in project in Tomcat inside Eclipse the following exception is shown:

Grave: Error happened while running the report.
java.lang.NoClassDefFoundError: org/eclipse/datatools/enablement/ibm/util/ClientUtil
at org.eclipse.datatools.enablement.ibm.db2.luw.DB2LUWDriverValuesProvider.locateDB2DriverJars(DB2LUWDriverValuesProvider.java:38)
at org.eclipse.datatools.enablement.ibm.db2.luw.DB2LUWDriverValuesProvider.createDefaultValue(DB2LUWDriverValuesProvider.java:23)
at org.eclipse.datatools.connectivity.drivers.DriverManager.createDefaultInstance(DriverManager.java:1112)
at org.eclipse.datatools.connectivity.drivers.DriverManager.createDefaultInstance(DriverManager.java:1004)
at org.eclipse.datatools.connectivity.drivers.DriverManager.resetDefaultInstances(DriverManager.java:906)
at org.eclipse.datatools.connectivity.drivers.DriverManager.<init>(DriverManager.java:125)
at org.eclipse.datatools.connectivity.drivers.DriverManager.getInstance(DriverManager.java:67)
at org.eclipse.datatools.connectivity.internal.ConnectionProfileMgmt.readCPsFromXML1_0(ConnectionProfileMgmt.java:672)
at org.eclipse.datatools.connectivity.internal.ConnectionProfileMgmt.loadCPs(ConnectionProfileMgmt.java:958)
at org.eclipse.datatools.connectivity.internal.ConnectionProfileMgmt.loadCPsUsingFileExtension(ConnectionProfileMgmt.java:522)
at org.eclipse.datatools.connectivity.oda.profile.OdaProfileExplorer.loadProfiles(OdaProfileExplorer.java:307)
at org.eclipse.datatools.connectivity.oda.profile.OdaProfileExplorer.getProfileByName(OdaProfileExplorer.java:537)
at org.eclipse.datatools.connectivity.oda.profile.provider.ProfilePropertyProviderImpl.getConnectionProfileImpl(ProfilePropertyProviderImpl.java:185)
at org.eclipse.datatools.connectivity.oda.profile.provider.ProfilePropertyProviderImpl.getDataSourceProperties(ProfilePropertyProviderImpl.java:64)
at org.eclipse.datatools.connectivity.oda.consumer.helper.ConnectionPropertyHandler.getEffectiveProperties(ConnectionPropertyHandler.java:123)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.getEffectiveProperties(OdaConnection.java:826)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:240)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:165)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:224)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:212)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:217)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:435)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:322)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:463)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.produceQueryResults(PreparedDataSourceQuery.java:190)
at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:178)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:178)
at org.eclipse.birt.report.data.adapter.impl.DataRequestSessionImpl.execute(DataRequestSessionImpl.java:637)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:152)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:275)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1947)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:181)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at com.geosystec.operadores.bean.InformesBean.generateInformeOperador(InformesBean.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.el.parser.AstValue.invoke(AstValue.java:277)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:273)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:315)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:122)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:170)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Does anyone know what might be happening? Why it is trying to access DB2 libraries if I have a connection profile with PostgreSQL?

Thanks a Lot
Re: java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1282051 is a reply to message #1266558] Tue, 01 April 2014 20:07 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Have you tried your setup in Kepler on a Windows machine to be sure it's only happening on the Mac?

Michael

Developer Evangelist, Silanis
Re: java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1384793 is a reply to message #1266558] Mon, 02 June 2014 02:34 Go to previous messageGo to next message
irwan ismail is currently offline irwan ismailFriend
Messages: 1
Registered: June 2014
Junior Member
Hi Joe, have you resolve this problem? If yes, may I know your solution cause I'm facing the same problem...TQ
Re: java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1385199 is a reply to message #1384793] Thu, 05 June 2014 00:00 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Do you have the ability to try this on a Windows machine with 4.3 so the problem can be narrowed down. If not, please log a bug for this in the bugzilla and post the bug info in here.

Michael

Developer Evangelist, Silanis
Re: java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1386720 is a reply to message #1384793] Thu, 19 June 2014 19:55 Go to previous messageGo to next message
Kent Johnson is currently offline Kent JohnsonFriend
Messages: 11
Registered: December 2013
Junior Member
I am facing the same problem as well. Do you have a solution?
See my post here for the issue I am up against:
https://www.eclipse.org/forums/index.php/t/781961/
Re: java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1386757 is a reply to message #1386720] Fri, 20 June 2014 07:16 Go to previous messageGo to next message
Joe C is currently offline Joe CFriend
Messages: 5
Registered: March 2014
Junior Member
Hi all, sorry for being late answering. I had to leave birt reporting for a while.
I will try to replicate my environment on a Windows Machine like Michael says to try if it is only a Mac problem. Irwan and Kent are you working on Mac or in a Windows Machine?
Thanks.

Re: java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1386806 is a reply to message #1386757] Fri, 20 June 2014 15:53 Go to previous messageGo to next message
Kent Johnson is currently offline Kent JohnsonFriend
Messages: 11
Registered: December 2013
Junior Member
I am working on a MacBook pro just like you are Joe.
Re: java.lang.NoClassDefFoundError in Birt 4.3.1 with PostgreSQL [message #1386829 is a reply to message #1386806] Fri, 20 June 2014 23:17 Go to previous message
Kent Johnson is currently offline Kent JohnsonFriend
Messages: 11
Registered: December 2013
Junior Member
refer to my post for the explanation of my solution to this problem: post.
Previous Topic:Problem in BIRT Data Source - BeforeOpen Event
Next Topic:Date value displayed incorrectly in excel output
Goto Forum:
  


Current Time: Thu Apr 25 13:14:56 GMT 2024

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

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

Back to the top