

If all goes well, the CQ error. Click to see full answer Simply so, what are MySQL drivers A database driver is a computer program that implements a protocol (ODBC or JDBC) for a database connection. If the entry is not required, remove it entirely.Ģ9) Delete the previous bundle and deploy the new one If the version requirement is bogus, remove it so that the entry looks like this:

The first and recommended approach consists of installing the driver as a module. In the new modular server architecture, you have more than one option to install your JDBC driver. If you get “: Unresolved constraint” errors, check the MANIFEST.MF for strict version requirements which might look as follows: In JBoss AS 5 and 6, you used to install the JDBC driver into the common/lib folder of your server distribution. If the status is not “Active”, check the CQ error.log for exceptions. See sample MANIFEST.MF here.ġ5) Right mouse-click the project in the left pane, choose Export->Plug-in Development->Deployable plug-ins and fragments and click Next.ġ6) Choose a location for the export (C:\TEMP) and click 'Finish’ġ8) In C:\TEMP\plugins\, you should now find the OSGi bundle named _11.2.0.3.jarġ9) Login to CQ’s Apache Felix Web Console at (default admin user = admin with password= admin)Ģ0) Sort the bundle list by “Id” and note the Id of the last bundle (Eg.Ģ3) Browse to the bundle JAR file you just built (C:\TEMP\plugins\_11.2.0.3.jar)Ģ7) Your new bundle should now be listed with the status 'Active’ The steps below have been tested on “ Eclipse Java EE IDE for Web Developers” version “ Indigo Service Release 1”.Ĥ) Under the “Plug-in Development” folder, choose “ Plug-in from Existing JAR Archives”ĥ) In the “JAR selection” dialog, click the ‘Add external’ button, and browse to the JDBC JAR file you just downloadedħ) In the “Plug-in Project properties” dialog, ensure that you check the checkbox for “Analyze library contents and add dependencies” (see below)Ĩ) Make sure that the “Target Platform” is the “ standard” OSGi framework (see below)ĩ) Ensure the checkboxes for “Unzip the JAR archives into the project” and “Update references to the JAR files” are both checked (see below)ġ2) Make sure that the 'Exported Packages’ list is populatedġ3) Make sure these have been added under the Export-Package header in MANIFEST.MFġ4) Also make sure that the Import-Package header in MANIFEST.MF is also populated. This could also be MySQL Connector/J, or Microsoft JDBC Driver for SQL Server.Ģ) Start Eclipse (Indigo). These are required for the JAR to be deployed to Adobe CQ’s OSGi runtime framework which is Apache Felix.ġ) Download the JDBC driver JAR file (Eg: ojdbc6.jar, the Oracle 11g R2 JDBC driver for Java 6 and 7). jar file) is some additional MANIFEST.MF headers required by the OSGi specification. jar ( Java ARchive) file an OSGi bundle (also a. We have tried other (newer) Eclipse releases and none work anymore. NOTE : The method described below ONLY works with Eclipse Indigo.
How to install jdbc driver for mysql how to#
How to Turn a JDBC Driver JAR into an OSGi Bundle JAR for Apache Felix
