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

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Sun Oct 2 22:57:32 EDT 2011


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

Vineet Reynolds edited comment on ARQ-525 at 10/2/11 10:56 PM:
---------------------------------------------------------------

The exception does not appear to have anything to do with an incorrect validation.xml; at least that is the case, going by the runtime behavior of embedded Glassfish. In actuality, embedded Glassfish throws a ClassNotFoundException when the enclosed Hibernate Validator attempts to load the "com.sun.xml.bind.v2.ContextFactory" class. Atlhough the ContextFactory class appears to be present in the glassfish-embedded-all-3.1.jar, it is not located and loaded by the javax.xml.bind.ContextFinder class. More analysis is required.

      was (Author: vineet.reynolds):
    The exception does not appear to have anything to do with an incorrect validation.xml; at least that is the case, going by the runtime behavior of embedded Glassfish. In actuality, embedded Glassfish throws a ClassNotFoundException when attempting to load the "com.sun.xml.bind.v2.ContextFactory" class. Atlhough the ContextFactory class appears to be present in the glassfish-embedded-all-3.1.jar, it is not located and loaded by the javax.xml.bind.ContextFinder class. More analysis is required.
  
> 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
>            Assignee: Vineet Reynolds
>            Priority: Critical
>         Attachments: server.log
>
>
> 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