[arquillian-issues] [JBoss JIRA] Commented: (ARQ-525) Tests fails when META-INF/validation.xml exist

Liu Jianhong (JIRA) jira-events at lists.jboss.org
Mon Jul 25 08:43:23 EDT 2011


    [ https://issues.jboss.org/browse/ARQ-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616218#comment-12616218 ] 

Liu Jianhong commented on ARQ-525:
----------------------------------

How to enable embedded glassfish to write log to file?

I use log4j but it not produce log file:

<dependency>
	<groupId>org.slf4j</groupId>
	<artifactId>slf4j-log4j12</artifactId>
	<version>${version.slf4j}</version>
</dependency>
<dependency>
	<groupId>log4j</groupId>
	<artifactId>log4j</artifactId>
	<version>1.2.16</version>
</dependency>

log4j.rootLogger=DEBUG,CONSOLE,FILE
log4j.addivity.org.apache=true

# \u5E94\u7528\u4E8E\u63A7\u5236\u53F0
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.Target=System.out
log4j.appender.CONSOLE.Encoding=GBK
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n

log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:/log4j/file.log
log4j.appender.FILE.Append=false
log4j.appender.FILE.Encoding=GBK
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n

> Tests fails when META-INF/validation.xml exist
> ----------------------------------------------
>
>                 Key: ARQ-525
>                 URL: https://issues.jboss.org/browse/ARQ-525
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: GlassFish Containers
>    Affects Versions: glassfish_1.0.0.CR1
>         Environment: arquillian-junit-container:1.0.0.CR2
> arquillian-glassfish-embedded-3.1:1.0.0.CR1
> glassfish-embedded-all:3.1
>            Reporter: Liu Jianhong
>            Priority: Critical
>
> Tests success when no META-INF/validation.xml exist,when META-INF/validation.xml exist,produce the following information:
> 2011-7-25 6:49:06 org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator getActivatedConfiguration
> 信息: Could not read active container configuration: null
> 2011-7-25 6:49:07 com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
> 信息: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
> 2011-7-25 6:49:07 org.hibernate.validator.util.Version <clinit>
> 信息: Hibernate Validator null
> 2011-7-25 6:49:07 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
> 信息: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
> 2011-7-25 6:49:07 org.hibernate.validator.xml.ValidationXmlParser getValidationConfig
> 信息: META-INF/validation.xml found.
> 2011-7-25 6:49:07 org.hibernate.validator.xml.ValidationXmlParser getValidationConfig
> 严重: Error parsing validation.xml: null

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the arquillian-issues mailing list