views:

193

answers:

1

Hi,

I am creating a blog using Apache Roller Weblogger software, am very new to this.. I am deploying it on the Tomcat, and m using the PostgreSQL database.. I did all the configuration in the roller-custom.properties.. If i give the url http://localhost:8080/roller/ in the browser I am getting the resource not available error, And in the roller.log file if i check, the database is loading fine..

Please if anybody have relevant suggestion please do share..

Thanks in advance.

A: 

I had to add this to my web.xml:

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

and this to my jboss-web.xml:

   <resource-ref>
     <res-ref-name>jdbc/rollerdb</res-ref-name>
     <jndi-name>java:/jdbc/rollerdb-31</jndi-name>
   </resource-ref>
Gary Kephart