Yes I did tried on 4.5.1. version of OpenEJB. But here it is giving
classloader exception for org/xml/sax classes.

I have included all jars from openEJB_4.5.1/lib in ant task

<fileset dir="${openejb.path}">
     <include name="**/*.jar"/>
</fileset>


[junit] Caused by: java.lang.LinkageError: loader constraint violation: when
resolving overridden method
"org.apache.xerces.jaxp.SAXParserImpl.parse(Lorg/xml/sax/InputSource;Lorg/xml/sax/helpers/DefaultHandler;)V"
the class loader (instance of org/apache/openejb/core/TempClassLoader) of
the current class, org/apache/xerces/jaxp/SAXParserImpl, and its superclass
loader (instance of <bootloader>), have different Class objects for the type
org/xml/sax/helpers/DefaultHandler used in the signature
    [junit]     at
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
    [junit]     at
org.apache.xml.resolver.readers.SAXCatalogReader.readCatalog(SAXCatalogReader.java:245)
    [junit]     at
org.apache.xml.resolver.Catalog.parseCatalog(Catalog.java:681)
    [junit]     at
org.apache.cxf.catalog.OASISCatalogManager.loadCatalogs(OASISCatalogManager.java:148)
    [junit]     at
org.apache.cxf.catalog.OASISCatalogManager.loadContextCatalogs(OASISCatalogManager.java:133)
    [junit]     at
org.apache.cxf.catalog.OASISCatalogManager.<init>(OASISCatalogManager.java:73)
    [junit]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [junit]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [junit]     at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [junit]     at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [junit]     at
org.apache.cxf.bus.extension.Extension.load(Extension.java:199)
    [junit]     ... 42 more



--
View this message in context: 
http://openejb.979440.n4.nabble.com/ServiceConstructionException-Web-Service-unit-testing-is-not-working-in-OpenEJB-4-0-tp4659899p4659901.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Reply via email to