Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft Access DataSource

Bernhard Hagmann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2012

We have problems connecting a Microsoft Access Database (*.mdb file) as data source to the Confluence server (so we can use it with the SQL Plugin from Bob Swift Software).

Is there a guide or official way to configure this?

We already added the file tomcat-jdbc.jar to the /libs directory

(according to http://stackoverflow.com/questions/5723830/java-lang-classnotfoundexception-org-apache-tomcat-jdbc-pool-datasourcefactory)

and configured the following in the server.xml:

<Resource  type="javax.sql.DataSource"
  name="jdbc-odbc/OOPC"
  maxActive="100"
  maxIdle="30"
  maxWait="10000"
  factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
  driverClassName="sun.jdbc.odbc.JdbcOdbcDriver"
  url="jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=/mnt/srvdata/Intern/Oopc/oopc2k.mdb"
/>

Yet still the Confluence page displays:

Error rendering macro 'sql-query' : dataSource: OOPC not found.

And the server says (when starting):

WARNUNG: Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSourceFactory

1 answer

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 18, 2012

I have not used Access, but I believe others have tried in the past. When you do get this working, can you please post to SQL plugin datasource configuration for others?

You seem to be looking in the right place for error messages. I would suggest removing the factory line from configuration since that is what it is complaining about. Then see if there are any other errors. Also, googling: Tomcat datasource Microsoft Access would be the next step.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events