That is wrong, you should not change the resource-ref in web.xml. The JNDI lookup name for the datasource must be jdbc/rollerdb, but when you set up that datasource you should be able to configure it to any database you want (with whatever name you want).


On Mar 14, 2006, at 5:16 AM, [EMAIL PROTECTED] wrote:
Datasources.xml

        <data-source
                class="com.evermind.sql.DriverManagerDataSource"
                name="myDbName"
                location="jdbc/roller_DS"
                connection-driver="oracle.jdbc.driver.OracleDriver"
                username="username"
                password="myPassword"
                url="myUrl"
                inactivity-timeout="30"
                min-connections="2"
                max-connections="5"
        />
</data-sources>

I'm not that familiar with OC4J, but it appears that here you need to use location="jdbc/rollerdb" and name="your-database-name"


web.xml:

    <resource-ref>
            <res-ref-name>jdbc/roller_DS</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
    </resource-ref>

Don't change that or Roller won't be able to find your datasource.

- Dave

Reply via email to