Hi All I'm stacked at a problem with a shell script(runagi.sh). My intension is to connection from Asterisk server to Mysql. when i run that shell script(runagi.sh) it shows me the following warning....
Warning: log4j:WARN No appenders could be found for logger =(net.sf.hibernate.cfg.Environment) log4j:WARN Please initialize the log4j system properly I've a file hibernate.properties and shell script file runagi.sh they are given below.... runagi.sh #!/bin/sh JARS="curtin.jar:/lib/log4j-1.2.11.jar:/lib/jta.jar:/lib/antlr-2.7.6rc1.jar:/lib/ehcache-1.1.jar:/lib/cglib-2.1.3.jar:/lib/dom4j-1.6.1.jar:/lib/mail.jar:/lib/commons-lang-1.0.1.jar:/lib/mysql-connector-java-3.1.10-bin.jar:/lib/asm-attrs.jar:/lib/commons-logging-1.0.4.jar:/lib/commons-collections-2.1.1.jar:/lib/mailet_1_0.jar:/lib/asterisk-java-0.2.jar:/lib/jdom.jar:/lib/rome-0.7.jar:/lib/asm.jar:/lib/hibernate3.jar:/lib/activation.jar:/lib/c3p0-0.9.0.jar" RUNCLASS="curtin.control.VAEAGIServer" export VAECONFIG="/vad/VAE.conf" echo "Script: Removing old log files" rm -f ./logs/VAEServer.log rm -f ./logs/ChannelSessionManager.log rm -f ./logs/ThreadManager.log echo "Script: Deleting old dynamic audio files" rm -f /var/lib/asterisk/sounds/TMP*.gsm java -cp $JARS $RUNCLASS NOWAVE hibernate.properties hibernate.dialect=org.hibernate.dialect.MySQLDialect hibernate.connection.driver_class=com.mysql.jdbc.Driver hibernate.connection.url=jdbc:mysql://192.168.13.137:3306/PRJ hibernate.connection.username=hibernate hibernate.connection.password=hib hibernate.c3p0.min_size=10 hibernate.c3p0.max_size=100 hibernate.c3p0.timeout=10 hibernate.c3p0.acquireRetryAttempts=30 hibernate.c3p0.acquireIncrement=5 hibernate.c3p0.idleConnectionTestPeriod=300 hibernate.c3p0.initialPoolSize=20 hibernate.c3p0.maxPoolSize=100 hibernate.c3p0.maxIdleTime=300 hibernate.c3p0.maxStatements=50 hibernate.c3p0.minPoolSize=10 Note: In which directory of linux i should i put the hibernate.properties .Another issue is if i dont put the hibernate.properties file anywhere then the same warning .It is confusing to me how it is working? please any help regarding this problem is highly appreciated. -- View this message in context: http://www.nabble.com/log4j-%3A-WARN-No-appenders-could-be-found-for-logger-%28org.hibernate.cfg.Environment%29-tp20714306p20714306.html Sent from the Log4j - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
