Letractively / shams

Automatically exported from code.google.com/p/shams
0 stars 0 forks source link

Database issue when doing a mvn jetty:run #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when I enter mvn jetty:run after a mvn install I get this:

2008-08-09 17:30:34.817::WARN:  Configuration problem at <resource-ref>
        <description>DataBase Connection Pool</description>
        <res-ref-name>jdbc/datasource</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>
javax.naming.NameNotFoundException: No resource to bind matching
name=jdbc/datas
ource
        at
org.mortbay.jetty.plus.naming.NamingEntry.bindToENC(NamingEntry.java:
127)
        at
org.mortbay.jetty.plus.webapp.Configuration.bindResourceRef(Configura

What changes are necessary for it to run?

Original issue reported on code.google.com by xsuperov...@gmail.com on 9 Aug 2008 at 3:32

GoogleCodeExporter commented 9 years ago
do you change your database properties to correct path ? the file name is
database.properties, you most change db path in this file.

try new version too, i think this one is better in db creation and connection.

Original comment by m.h.sh...@gmail.com on 23 Aug 2008 at 5:26

GoogleCodeExporter commented 9 years ago
Hi m.h shams - Can you please give some details on fixing this? Where exactly 
do I
put the database.properties, and what exactly should it contain? Thanks!

Original comment by ferrypes...@gmail.com on 1 Apr 2009 at 4:29

GoogleCodeExporter commented 9 years ago
hi ferry,

database.properties is in : \src\main\resources\org\shams\phonebook\config\

it contains information to access your database. it looks like : 

driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:/home/shams/Projects/t5m/phb/phbdb
username=sa
password=

you have to change url, based on project location on your machine.

Original comment by m.h.sh...@gmail.com on 9 Apr 2009 at 4:14

GoogleCodeExporter commented 9 years ago
I have a problem using this application. With what program should i open the 
source
code to use it? SOS!!!

Original comment by promithe...@gmail.com on 19 May 2009 at 9:19