Johan Vergeer Posted February 1, 2018 Posted February 1, 2018 I have recently done a fresh install of BusinessWorksStudio. When I'm running any process in BW Studio I'm getting this error every time. Even though I'm not using MySql anywhere in my projects. I have added mysql-connector-java-5.1.45-bin.jar to both TIBCO_HOMEbw6.4configdriversshellsjdbc.mysql.runtimeruntimepluginscom.tibco.bw.jdbc.datasourcefactory.mysqllib and TIBCO_HOMEbw6.4configdesignthirdparty and then I ran bwinstall mysql-driver. Could someone explain what's going on here and how I can solve it This is the stacktrace I'm getting when running the processes. 09:32:52.131 INFO [main] com.tibco.thor.frwk - TIBCO ActiveMatrix BusinessWorks version 6.4.2, build V32, 2017-11-05 @BWEclipseAppNode> 09:32:59.864 INFO [main] com.tibco.thor.frwk.Deployer - Started by BusinessStudio. !SESSION 2018-02-01 09:32:47.538 ----------------------------------------------- eclipse.buildId=unknown java.version=1.8.0_144 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -dev file:C:/projects/TIBCO/.metadata/.plugins/org.eclipse.pde.core/BWApplication/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -console -clean !ENTRY com.tibco.bw.jdbc.datasourcefactory.mysql 4 0 2018-02-01 09:33:00.021 !MESSAGE [TIBCO BW MySQL DataSource Factory(98)] Error during instantiation of the implementation object !STACK 0 java.lang.NoClassDefFoundError: com/mysql/jdbc/jdbc2/optional/MysqlDataSource at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.newInstance(Class.java:412) at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:240) at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:113) at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:831) at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:798) at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:748) at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619) at org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72) at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:576) at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2032) at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.prebind(DependencyManager.java:391) at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1405) at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:983) at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:777) at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:748) at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619) at org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72) at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:576) at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2032) at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1596) at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1581) at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:369) at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:322) at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:298) at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1492) at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1413) at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1222) at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1158) at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1444) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225) at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:870) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857) at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133) at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915) at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715) at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:401) at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:669) at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:182) at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:320) at org.apache.felix.scr.impl.Activator.access$000(Activator.java:48) at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:245) at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259) at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232) at org.apache.felix.utils.extender.AbstractExtender.addingBundle(AbstractExtender.java:192) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:415) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) at org.osgi.util.tracker.BundleTracker.open(BundleTracker.java:156) at org.apache.felix.utils.extender.AbstractExtender.startTracking(AbstractExtender.java:150) at org.apache.felix.utils.extender.AbstractExtender.doStart(AbstractExtender.java:142) at org.apache.felix.scr.impl.Activator.doStart(Activator.java:161) at org.apache.felix.utils.extender.AbstractExtender.start(AbstractExtender.java:114) at org.apache.felix.scr.impl.Activator.restart(Activator.java:134) at org.apache.felix.scr.impl.config.ScrConfiguration.configure(ScrConfiguration.java:210) at org.apache.felix.scr.impl.config.ScrConfiguration.start(ScrConfiguration.java:134) at org.apache.felix.scr.impl.Activator.start(Activator.java:104) at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771) at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764) at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721) at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936) at org.eclipse.osgi.internal.framework.
Roberto Barbuto Posted January 9, 2020 Posted January 9, 2020 I have the same problem, how can I solve it
Osama Mohsin 5 Posted July 8, 2020 Posted July 8, 2020 You need to addcom.mysql.jdbc_5.1.5.jar file as well as highlighted in the documentation:https://docs.tibco.com/pub/activematrix_businessworks/6.5.1/doc/html/GUID-A052538C-FC72-4906-A3ED-61FEB4E2F185.html If you addedmysql-connector-java-5.1.45-bin.jar and you ran (bwinstall mysql-driver) command. Make sure that you run (bwuninstall mysql-driver) first to unistall the previous one then added the new filecom.mysql.jdbc_5.1.5.jar in the same location where you have addedmysql-connector-java-5.1.45-bin.jar and run (bwinstall mysql-driver) and things should work.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now