14 Replies Latest reply: May 3, 2012 10:08 AM by José Freitas RSS

jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory

nimo stephan Master

Hello,

 

I use this in my pom.xml:

 

<dependency>

         <groupId>junit</groupId>

         <artifactId>junit</artifactId>

         <version>4.10</version>

         <scope>test</scope>

</dependency>

 

<dependency>

     <groupId>org.jboss.arquillian.junit</groupId>

      <artifactId>arquillian-junit-container</artifactId>

      <version>1.0.0.CR5</version>

      <scope>test</scope>

</dependency>

 

<profile>

         <id>arq-jbossas-managed</id>

         <dependencies>

            <dependency>

               <groupId>org.jboss.as</groupId>

               <artifactId>jboss-as-arquillian-container-managed</artifactId>

               <version>7.0.2.Final</version>

               <scope>test</scope>

            </dependency>

         </dependencies>

</profile>

 

and this in arquillian.xml:

 

<container qualifier="arq-jbossas-managed" default="true">

      <protocol type="jmx-as7">

         <property name="executionType">REMOTE</property>

      </protocol>

      <configuration>

         <property name="jbossHome">C\jboss-as-7.0.2.Final</property>

      </configuration>

   </container>

 

When running the test ("managed profile"), then I get this stacktrace:

 

Caused by: java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory

    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

    ... 44 more

 


According to this http://community.jboss.org/message/626946, the error above should not happen when testing against boss 7.

 

 

Besides, when using

arquillian.version: 1.0.0-SNAPSHOT

then I get this from maven:

 

[WARNING] The POM for org.jboss.arquillian.junit:arquillian-junit-container:jar:1.0.0-SNAPSHOT is missing, no dependency information available

 

 

Is my configuration wrong?

 


  • 1. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    nimo stephan Master

    1. I am using 1.0.0.CR4 instead of 1.0.0.CR5 and now it works

    (as stated here http://community.jboss.org/thread/173362?tstart=0).

    The test is running completly without the ClassNotFoundException.

    With 1.0.0.CR5, a ClassNotFoundException happens.

     

     

    2. using 1.0.0.Final-SNAPSHOT

    (as stated here: http://community.jboss.org/thread/173055?tstart=0)

    instead of 1.0.0-SNAPSHOT

    loads but I cannot use any version higher than 1.0.0.CR4 as the ClassNotFoundException occurs.

  • 2. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    Aslak Knutsen Master

    First, don't use 1.0.0-SNAPSHOT, 1.0.0.Final-SNAPSHOT is the latest.

     

    I'm wondering if this is related to which jboss.spec lib are being pulled in. There seems to be a bug in the org.jboss.spec:jboss-javaee-web-6.0 libs that cause this ClassNotFound exception. Using the full jboss.spec ee apis should work, org.jboss.spec:jboss-javaee-6.0

  • 3. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    nimo stephan Master

    There seems to be a bug in the org.jboss.spec:jboss-javaee-web-6.0 libs that cause this ClassNotFound exception. Using the full jboss.spec ee apis should work, org.jboss.spec:jboss-javaee-6.0

     

     

    I tried it with

     

    <dependency>

            <groupId>org.jboss.spec</groupId>

            <artifactId>jboss-javaee-6.0</artifactId>

            <version>2.0.0.Final</version>

            <type>pom</type>

            <scope>provided</scope>

        </dependency>

     

    Additional EE-Apis were loaded into my project.

     

    However, I cannot find any imported lib of org/apache/xml/serializer/OutputPropertiesFactory within the maven dependency of my project.

     

    I cannot even find the lib in jboss modules directory, either!

     

    However, I can find the xalan-lib, but the error is still the same.

     

     

    Am I forced to use a manual dependency of org.apache.xml into my pom to satisfy the CNFE (ClassNotFoundException) ?

     

    Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serializer/OutputPropertiesFactory

        at org.apache.xalan.xsltc.trax.TransformerImpl.setDefaults(TransformerImpl.java:1022)

        at org.apache.xalan.xsltc.trax.TransformerImpl.createOutputProperties(TransformerImpl.java:983)

        at org.apache.xalan.xsltc.trax.TransformerImpl.<init>(TransformerImpl.java:236)

        at org.apache.xalan.xsltc.trax.TransformerImpl.<init>(TransformerImpl.java:227)

        at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:593)

        at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomDescriptorExporterImpl.to(XmlDomDescriptorExporterImpl.java:65)

  • 6. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    Aslak Knutsen Master

    yea, 'something' was removed/added partly in the 2.0 release. Haven't fully debugged to figure out exactly what yet.

  • 7. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    zeeman Novice

    Any updates? why 2.0 breaks now. I get the same error. Would rather use the 2.0 version.

  • 8. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    zeeman Novice

    Even with 1.0.0 version of javaee-6  I get below error:

     

    `

    :24:03,985 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.persistenceunit."test.war#sportivity-PU": org.jboss.msc.service.StartException in service jboss.persistenceunit."test.war#sportivity-PU": Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

    Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

              at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97)

              at org.dom4j.DocumentHelper.getDocumentFactory(DocumentHelper.java:36)

              at org.dom4j.DocumentHelper.createDocument(DocumentHelper.java:41)

              at org.hibernate.envers.configuration.RevisionInfoConfiguration.generateDefaultRevisionInfoXmlMapping(RevisionInfoConfiguration.java:86)

              at org.hibernate.envers.configuration.RevisionInfoConfiguration.configure(RevisionInfoConfiguration.java:322)

              at org.hibernate.envers.configuration.AuditConfiguration.<init>(AuditConfiguration.java:94)

              at org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:134)

              at org.hibernate.envers.event.EnversIntegrator.integrate(EnversIntegrator.java:63)

              at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:294)

              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1722)

              at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:884)

              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)

              at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)

              at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

              ... 3 more

    `

     

    jboss 7.0.2, seam beta4, Arquillian CR5. My pom:

     

    `

    [INFO] com.myproject:myproject:war:1.0.0-SNAPSHOT

    [INFO] +- org.jboss.spec:jboss-javaee-6.0:pom:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.resource:jboss-connector-api_1.5_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.1.Final:provided (version managed from 1.0.0.Final)

    [INFO] |  +- org.jboss.spec.javax.el:jboss-el-api_2.2_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.enterprise.deploy:jboss-jad-api_1.2_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.0_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.xml.registry:jboss-jaxr-api_1.0_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec:jar:1.0.2.Final:provided (version managed from 1.0.0.Final)

    [INFO] |  +- org.jboss.spec.javax.xml.rpc:jboss-jaxrpc-api_1.1_spec:jar:1.0.0.Final:provided

    [INFO] |  +- org.jboss.spec.javax.xml.soap:jboss-saaj-api_1.3_spec:jar:1.0.1.Final:provided (version managed from 1.0.0.Final)

    [INFO] |  +- org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec:jar:2.0.0.Final:provided (version managed from 1.0.0.Final)

    [INFO] |  +- javax.activation:activation:jar:1.1:provided

    [INFO] |  +- javax.enterprise:cdi-api:jar:1.0-SP4:provided

    [INFO] |  +- com.sun.faces:jsf-api:jar:2.1.2:provided (version managed from 2.0.3-b05)

    [INFO] |  +- javax.inject:javax.inject:jar:1:provided

    [INFO] |  +- javax.jws:jsr181-api:jar:1.0-MR1:provided

    [INFO] |  +- javax.mail:mail:jar:1.4.4:provided (version managed from 1.4.2)

    [INFO] |  +- javax.servlet:jstl:jar:1.2:provided

    [INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:provided (version managed from 1.0.0.Final)

    [INFO] |  +- org.jboss.resteasy:jaxrs-api:jar:2.1.0.GA:provided

    [INFO] |  +- stax:stax-api:jar:1.0.1:provided

    [INFO] |  \- javax.validation:validation-api:jar:1.0.0.GA:provided

    [INFO] +- org.hibernate:hibernate-validator:jar:4.2.0.Final:provided

    [INFO] +- org.hibernate:hibernate-search:jar:4.0.0.CR1:compile

    [INFO] |  \- org.hibernate:hibernate-search-orm:jar:4.0.0.CR1:compile

    [INFO] |     +- org.hibernate:hibernate-search-engine:jar:4.0.0.CR1:compile

    [INFO] |     |  +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.0.CR2:compile

    [INFO] |     |  +- org.apache.lucene:lucene-core:jar:3.4.0:compile

    [INFO] |     |  \- org.apache.avro:avro:jar:1.5.1:compile

    [INFO] |     |     +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile

    [INFO] |     |     \- org.xerial.snappy:snappy-java:jar:1.0.1-rc3:compile

    [INFO] |     +- org.hibernate:hibernate-search-analyzers:jar:4.0.0.CR1:compile

    [INFO] |     |  \- org.apache.lucene:lucene-analyzers:jar:3.4.0:compile

    [INFO] |     \- org.jboss.logging:jboss-logging:jar:3.0.0.GA:compile

    [INFO] +- org.codehaus.jackson:jackson-mapper-asl:jar:1.6.3:provided

    [INFO] +- org.codehaus.jackson:jackson-core-asl:jar:1.6.3:provided

    [INFO] +- org.hibernate:hibernate-core:jar:4.0.0.CR2:provided

    [INFO] |  +- antlr:antlr:jar:2.7.7:provided

    [INFO] |  +- org.jboss:jandex:jar:1.0.0.Beta7:provided

    [INFO] |  +- dom4j:dom4j:jar:1.6.1:provided

    [INFO] |  +- commons-collections:commons-collections:jar:3.1:provided

    [INFO] |  +- com.fasterxml:classmate:jar:0.5.4:provided

    [INFO] |  +- javassist:javassist:jar:3.12.0.GA:provided

    [INFO] |  \- javax.transaction:jta:jar:1.1:provided

    [INFO] +- joda-time:joda-time:jar:1.6.2:compile

    [INFO] +- org.jadira.usertype:usertype.jodatime:jar:2.0:compile

    [INFO] |  \- org.jadira.usertype:usertype.spi:jar:2.0:compile

    [INFO] +- commons-codec:commons-codec:jar:1.4:provided (scope not updated to compile)

    [INFO] +- org.jboss.seam.mail:seam-mail-api:jar:3.1.0.Beta4:compile

    [INFO] +- org.jboss.seam.mail:seam-mail:jar:3.1.0.Beta4:compile

    [INFO] +- org.freemarker:freemarker:jar:2.3.16:compile

    [INFO] +- org.jboss.seam.transaction:seam-transaction:jar:3.1.0.Beta4:runtime

    [INFO] |  +- org.jboss.seam.transaction:seam-transaction-api:jar:3.1.0.Beta4:compile (scope managed from runtime)

    [INFO] |  \- org.jboss.solder:solder-api:jar:3.1.0.Beta3:compile

    [INFO] |     \- org.jboss.solder:solder-logging:jar:3.1.0.Beta3:compile

    [INFO] +- org.jboss.seam.rest:seam-rest:jar:3.1.0.Beta4:runtime

    [INFO] |  \- org.jboss.seam.rest:seam-rest-api:jar:3.1.0.Beta4:compile (scope managed from runtime)

    [INFO] +- org.jboss.seam.security:seam-security:jar:3.1.0.Beta4:compile

    [INFO] |  +- org.jboss.seam.security:seam-security-api:jar:3.1.0.Beta4:compile

    [INFO] |  |  +- org.picketlink.idm:picketlink-idm-api:jar:1.5.0.Alpha02:compile

    [INFO] |  |  \- org.picketlink.idm:picketlink-idm-spi:jar:1.5.0.Alpha02:compile

    [INFO] |  \- org.picketlink.idm:picketlink-idm-core:jar:1.5.0.Alpha02:compile

    [INFO] |     \- org.picketlink.idm:picketlink-idm-common:jar:1.5.0.Alpha02:compile

    [INFO] +- org.jboss.solder:solder-impl:jar:3.1.0.Beta3:runtime

    [INFO] +- org.jboss.seam.persistence:seam-persistence:jar:3.1.0.Beta4:runtime

    [INFO] |  \- org.jboss.seam.persistence:seam-persistence-api:jar:3.1.0.Beta4:compile (scope managed from runtime)

    [INFO] +- org.jboss.seam.international:seam-international:jar:3.1.0.Beta4:runtime

    [INFO] |  \- org.jboss.seam.international:seam-international-api:jar:3.1.0.Beta4:compile (scope managed from runtime)

    [INFO] +- com.ocpsoft:prettyfaces-jsf2:jar:3.3.0:runtime

    [INFO] +- org.jboss.seam.faces:seam-faces:jar:3.1.0.Beta4:runtime

    [INFO] |  \- org.jboss.seam.faces:seam-faces-api:jar:3.1.0.Beta4:compile (scope managed from runtime)

    [INFO] +- org.richfaces.ui:richfaces-components-ui:jar:4.1.0.20110910-M2:compile

    [INFO] |  +- org.richfaces.ui:richfaces-components-api:jar:4.1.0.20110910-M2:compile

    [INFO] |  +- org.richfaces.core:richfaces-core-api:jar:4.1.0.20110910-M2:compile

    [INFO] |  \- org.richfaces.build.resources:faces-vdl-documentation:jar:1:runtime

    [INFO] +- org.richfaces.core:richfaces-core-impl:jar:4.1.0.20110910-M2:compile

    [INFO] |  \- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile

    [INFO] |     \- org.w3c.css:sac:jar:1.3:compile

    [INFO] +- com.google.guava:guava:jar:r08:compile

    [INFO] +- org.jboss.resteasy:resteasy-jaxrs:jar:2.2.1.GA:provided

    [INFO] |  +- org.scannotation:scannotation:jar:1.0.3:provided

    [INFO] |  +- javax.annotation:jsr250-api:jar:1.0:provided

    [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.3:provided

    [INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.0.1:provided

    [INFO] |  \- net.jcip:jcip-annotations:jar:1.0:provided

    [INFO] +- org.brickred:socialauth:jar:2.0-beta3:compile

    [INFO] |  +- javax.servlet:servlet-api:jar:2.5:compile

    [INFO] |  +- org.json:json:jar:20090211:compile

    [INFO] |  +- org.openid4java:openid4java:jar:0.9.5:compile

    [INFO] |  |  \- org.openid4java:openid4java-consumer:jar:0.9.5:compile

    [INFO] |  |     +- org.openid4java:openid4java-nodeps:jar:0.9.5:compile

    [INFO] |  |     +- commons-httpclient:commons-httpclient:jar:3.1:compile

    [INFO] |  |     \- net.sourceforge.nekohtml:nekohtml:jar:1.9.7:compile

    [INFO] |  |        \- xerces:xercesImpl:jar:2.8.1:compile

    [INFO] |  |           \- xml-apis:xml-apis:jar:1.0.b2:compile

    [INFO] |  \- commons-logging:commons-logging:jar:1.1:compile

    [INFO] |     +- log4j:log4j:jar:1.2.12:compile

    [INFO] |     +- logkit:logkit:jar:1.0.1:compile

    [INFO] |     \- avalon-framework:avalon-framework:jar:4.1.3:compile

    [INFO] +- org.jboss.arquillian.testng:arquillian-testng-container:jar:1.0.0.CR5:test

    [INFO] |  +- org.jboss.arquillian.testng:arquillian-testng-core:jar:1.0.0.CR5:test

    [INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.0.0.CR5:test

    [INFO] |  |  \- org.jboss.arquillian.core:arquillian-core-api:jar:1.0.0.CR5:test

    [INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.0.0.CR5:test

    [INFO] |  |  \- org.jboss.arquillian.core:arquillian-core-spi:jar:1.0.0.CR5:test

    [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.0.0.CR5:test

    [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.0.0.CR5:test

    [INFO] |  |  \- org.jboss.arquillian.container:arquillian-container-spi:jar:1.0.0.CR5:test

    [INFO] |  |     \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api:jar:1.1.0-beta-1:test

    [INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.0.0.CR5:test

    [INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.0.0.CR5:test

    [INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.0.0.CR5:test

    [INFO] |  |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.0.0.CR5:test

    [INFO] |  |  \- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.0.0.CR5:test

    [INFO] |  |     \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:1.1.0-beta-1:test

    [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.0.0.CR5:test

    [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.0.0-beta-5:test

    [INFO] |     \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.0.0-beta-5:test

    [INFO] +- org.testng:testng:jar:5.14.9:test

    [INFO] |  +- junit:junit:jar:3.8.1:test

    [INFO] |  +- org.beanshell:bsh:jar:2.0b4:test

    [INFO] |  +- com.google.inject:guice:jar:2.0:test

    [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:test

    [INFO] |  +- com.beust:jcommander:jar:1.12:test

    [INFO] |  \- org.yaml:snakeyaml:jar:1.6:test

    [INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:1.0.0-beta-5:test

    [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.0.0-beta-5:test

    [INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:1.0.0-beta-5:test

    [INFO] \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:1.0.0-beta-5:test

    [INFO]    +- org.sonatype.aether:aether-api:jar:1.8:test

    [INFO]    +- org.sonatype.aether:aether-util:jar:1.8:test

    [INFO]    +- org.sonatype.aether:aether-connector-wagon:jar:1.8:test

    [INFO]    |  +- org.sonatype.aether:aether-spi:jar:1.8:test

    [INFO]    |  \- org.codehaus.plexus:plexus-container-default:jar:1.5.5:test

    [INFO]    |     +- org.codehaus.plexus:plexus-classworlds:jar:2.2.2:test

    [INFO]    |     \- org.apache.xbean:xbean-reflect:jar:3.4:test

    [INFO]    |        \- commons-logging:commons-logging-api:jar:1.1:test

    [INFO]    +- org.apache.maven:maven-aether-provider:jar:3.0.1:test

    [INFO]    |  +- org.apache.maven:maven-model:jar:3.0.1:test

    [INFO]    |  +- org.apache.maven:maven-model-builder:jar:3.0.1:test

    [INFO]    |  +- org.apache.maven:maven-repository-metadata:jar:3.0.1:test

    [INFO]    |  +- org.sonatype.aether:aether-impl:jar:1.8:test

    [INFO]    |  +- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test

    [INFO]    |  \- org.codehaus.plexus:plexus-utils:jar:2.0.4:test

    [INFO]    +- org.apache.maven:maven-settings-builder:jar:3.0.1:test

    [INFO]    |  +- org.codehaus.plexus:plexus-interpolation:jar:1.14:test

    [INFO]    |  +- org.apache.maven:maven-settings:jar:3.0.1:test

    [INFO]    |  \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test

    [INFO]    |     \- org.sonatype.plexus:plexus-cipher:jar:1.4:test

    [INFO]    +- org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-7:test

    [INFO]    +- org.apache.maven.wagon:wagon-file:jar:1.0-beta-7:test

    [INFO]    \- org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-7:test

    [INFO]       \- org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-7:test

    `

  • 9. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    Aslak Knutsen Master

    The Dom4J is a different issue. Your deploying Dom4j in your app i assume, which conflicts with a leak in Hibernate.

  • 10. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    zeeman Novice

    The only dom4j dependency I know of is the one that comes from Hibernate as you can see from my dep tree in my post. Are you saying Hibernate is having an issue?

     

    This only happens with AS7 7.0.2 and arq CR5. When I revert back to AS7 7.0.1 and Arq CR4 it does not happen.

     

    Hibernates needs dom4j, so does Envers. Looks like AS7 is having an issue there especailly hibernate module is defined in jboss. Not sure if that has anything to do with it.

  • 12. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    zeeman Novice

    I don't deploy dom4j. As you can see from my dep graph above dom4j is added because of Hibernate. The link you provided does not fix my issue because I don't depend on dom4j.

     

    I don't deploy hibernate. I just use what's packaged with jboss. Hibernate core scope is provided in pom.xml.

  • 13. Re: jboss 7.0.2, arquilian misses java.lang.ClassNotFoundException: org.apache.xml.serializer.OutputPropertiesFactory
    José Freitas Newbie

    I know that the topic was from long time ago, but maybe it can be reference for future searchings.

    ---------------------------------------


    As I needed to move the javavee api from 1 to 3.0.1 I needed to fix this problem.

     

    adding the dependency to the profile was enough:

    <dependency>

                      <groupId>org.apache.servicemix.bundles</groupId>

                      <artifactId>org.apache.servicemix.bundles.xalan-serializer</artifactId>

                      <version>${servicemix.xalan.version}</version>

                      <scope>test</scope>

                    </dependency>

     

     

     

    <servicemix.xalan.version>2.7.1_4</servicemix.xalan.version>