Letractively / shams

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

Issues with latest phonebook #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1) log4j.properties is empty => no logging

2) can't log with demo/demo (perhaps caused by 3)

3) when I try to create a new account, I get the following error:
Could not get JDBC Connection; nested exception is
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Database 'e:/new-projects/t5m/phb' not found.)

It seems database path is hard coded...

Thanks

Original issue reported on code.google.com by morgot...@gmail.com on 17 Jan 2008 at 8:42

GoogleCodeExporter commented 9 years ago
for 2,3 : you most change your database path in database.properties file.

enter a valid path for database url properties.

about 1, let me check it. ;)

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

GoogleCodeExporter commented 9 years ago
This log4j.properties could work

################################################################
### Configuración para LOCAL                                 ###
################################################################
#log4j.rootCategory=DEBUG, LOGFILE, CONSOLE
log4j.rootCategory=INFO, CONSOLE 

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x - %m%n 

################################################################
### Configuración para DESARROLLO, PREPRODUCCION, PRODUCCION ###
###   Sólo nos interesa el nivel de ERROR                 ###
###   No hay salida de consola                 ###
################################################################
#log4j.rootCategory=ERROR, diario

################################################################
### Configuración Común                      ###
################################################################
#log4j.appender.LOGFILE=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.LOGFILE.file=${catalina.base}/logs/aplicacion.log
#log4j.appender.LOGFILE.append=true
#log4j.appender.LOGFILE.DatePattern='.'yyyy-MM-dd

#log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
#log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n

Original comment by sergioso...@gmail.com on 20 Apr 2010 at 4:05