After wasting let's say one hour, this solved it for me :
'sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status'
Dor
Jun 24, 2014
Jun 19, 2014
Set up gradle to build with alternative java
I am using ubuntu 14.04 LTS
Having java 7 and 8 installed from oracle.
Using alternative and working with java 7 but one of my projects use java 8.
gradle build --version
returns that it works with java 7 -> since most of my projects use this version, i don't want to change this.
Solution: creating in the java 8 project, in the root directory, file named gradle.properties
inside it for example in my case :
org.gradle.java.home=/usr/lib/jvm/java-8-oracle/
this way, when you will do gradle build in this project, gradle will use this version instead of the one defined for him.
Hoped it helped,
Dor
Having java 7 and 8 installed from oracle.
Using alternative and working with java 7 but one of my projects use java 8.
gradle build --version
returns that it works with java 7 -> since most of my projects use this version, i don't want to change this.
Solution: creating in the java 8 project, in the root directory, file named gradle.properties
inside it for example in my case :
org.gradle.java.home=/usr/lib/jvm/java-8-oracle/
this way, when you will do gradle build in this project, gradle will use this version instead of the one defined for him.
Hoped it helped,
Dor
Jun 18, 2014
Loading of /usr/lib/erlang/lib/mnesia-4.11/ebin/mnesia.beam failed: badfile
I am working with rabbitmq , after the latest ubuntu 14.04 LTS update , i got this exception.
As result rabbit is not working.
I worked with 14 version of erlang .
Solution was to upgrade to the latest version of erlang.
As result rabbit is not working.
I worked with 14 version of erlang .
Solution was to upgrade to the latest version of erlang.
Jun 5, 2014
log4j.properties
Sample log4j property file, logging only to file, if you want console add 'stdout' in the rootlogger and remove the comments in the section below.
I included hibernate and spring logging relevant
# Root logger option
log4j.rootLogger=INFO, file
log4j.category.com=WARN
log4j.category.org=WARN
log4j.category.com.softweave=DEBUG
log4j.category.org.springframework=INFO
#log4j.category.org.springframework.beans.factory=INFO
#log4j.category.org.springframework.beans.factory.support=INFO
log4j.category.org.apache.cxf.service.factory.ReflectionServiceFactoryBean=WARN
log4j.category.org.hibernate.hql.internal.ast.HqlSqlWalker=ERROR
log4j.category.org.hibernate.SQL=INFO
# To see hibernate parameters in the query and not just ? you must set this to TRACE
log4j.category.org.hibernate.type=INFO
log4j.category.org.hibernate.tool.hbm2ddl=INFO
# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=log_file_name_and_location.log
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n
# Direct log messages to stdout
#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Target=System.out
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - #%m%n
# spring transaction log
log4j.logger.org.springframework.orm.jpa=INFO
log4j.logger.org.springframework.transaction=INFO
#log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=DEBUG
# hibernate full details log
log4j.logger.org.hibernate=INFO
#log4j.logger.org.hibernate.type=trace
I included hibernate and spring logging relevant
# Root logger option
log4j.rootLogger=INFO, file
log4j.category.com=WARN
log4j.category.org=WARN
log4j.category.com.softweave=DEBUG
log4j.category.org.springframework=INFO
#log4j.category.org.springframework.beans.factory=INFO
#log4j.category.org.springframework.beans.factory.support=INFO
log4j.category.org.apache.cxf.service.factory.ReflectionServiceFactoryBean=WARN
log4j.category.org.hibernate.hql.internal.ast.HqlSqlWalker=ERROR
log4j.category.org.hibernate.SQL=INFO
# To see hibernate parameters in the query and not just ? you must set this to TRACE
log4j.category.org.hibernate.type=INFO
log4j.category.org.hibernate.tool.hbm2ddl=INFO
# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=log_file_name_and_location.log
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n
# Direct log messages to stdout
#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Target=System.out
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - #%m%n
# spring transaction log
log4j.logger.org.springframework.orm.jpa=INFO
log4j.logger.org.springframework.transaction=INFO
#log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=DEBUG
# hibernate full details log
log4j.logger.org.hibernate=INFO
#log4j.logger.org.hibernate.type=trace
Labels:
apache,
appender,
category,
consoleappender,
conversionpattern,
hbm2ddl,
hibernate,
hibernate3,
log4j,
log4j.properties,
logger,
patternlayout,
rollingfileappender,
spring,
springframework,
stdout
Subscribe to:
Posts (Atom)