Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

uPortal

...

  1. Put the JDBC driver .jar in the lib/container-common directory of your uPortal build environment
  2. Run ant deploy, which is the uPortal build command that will copy this .jar from that lib/container-common directory to the common directory of your container. Currently the only supported container is Tomcat, and this directory is {tomcat}/common/lib .
  3. Verify that the JDBC driver actually made it to the Tomcat common/lib directory.

If you put the driver in lib/container-shared which publishes it to {tomcat}/shared/lib then it will be "shared" among the web applications but not "common" between the web applications and the Tomcat container, and so Tomcat will struggle to instantiate the DataSources if you declare them as JNDI-published resources via your context descriptor file (typically, uPortal.xml). Now, you don't have to use JNDI, so this configuration can even work, but you will likely save yourself a great deal of trouble if you install the JDBC driver .jar into the common/lib directory rather than the shared/lib directory.

In uPortal 2.5.x and earlier

You will need to put the jdbc driver .jar in the lib directory of your uPortal build environment, update build.properties to adjust the definition of the "jdbcDriver.jar" property, and run ant deploy to get the uportal build to publish the .jar into {tomcat}/common/lib as aboveuses Maven for dependency management. To add your JDBC driver you need to know the Maven groupId, artifactId and version for the JAR and add this information to the /uPortal/pom.xml file. The information is configured in the <properties> block about 90 lines down in a section that looks like:

Code Block
xml
xml

<!-- The JDBC Driver used by uPortal -->
<jdbc.groupId>hsqldb</jdbc.groupId>
<jdbc.artifactId>hsqldb</jdbc.artifactId>
<jdbc.version>1.8.0.7</jdbc.version>

The database specific examples listed on 05 Database provide detailed instructions for this process.