2 Replies Latest reply on Jul 9, 2009 9:52 AM by Roger Cracel

    PostgreSQL Datasource

    Roger Cracel Newbie

      I have read the excellent blog entry from Adrian Trenaman and tried to follow his steps to create my own datasource.


      I created a new maven project using the 'osg.springframework.osgi' as I've done before for other projects, and modified both my bundle-context-osgi and bundle-context files... also added the dependency to my pom file (see below).


      However, when I try to start my bundle I get the following error:


      ERROR CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandException: org.osgi.framework.BundleException: Unresolved constraint in bundle 95: package; (package=org.postgresql.ds)


      I have done extensive search and couldn't find any more information on this, so I am here trying to see if anyone else can point me out to where I can find more information on correctly configuring my bundle/servicemix to install the postgresql driver.


      Thank you in advance,




      (sorry, haven't figure out yet how to mark code to be displayed properly...)




                <property name="serverName" value="$" />

                <property name="databaseName" value="$" />

                <property name="portNumber" value="$" />

                <property name="user" value="$The specified item was not found." />

                <property name="password" value="$" />

                <property name="dataSourceName" value="$" />

                <property name="initialConnections" value="$" />

                <property name="maxConnections" value="$" />