Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 11903 invoked from network); 16 Dec 2010 11:20:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Dec 2010 11:20:25 -0000 Received: (qmail 10315 invoked by uid 500); 16 Dec 2010 11:20:25 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 10211 invoked by uid 500); 16 Dec 2010 11:20:23 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 10203 invoked by uid 99); 16 Dec 2010 11:20:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 11:20:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 11:20:21 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBGBK1Hr004173 for ; Thu, 16 Dec 2010 11:20:01 GMT Message-ID: <13959167.156351292498401222.JavaMail.jira@thor> Date: Thu, 16 Dec 2010 06:20:01 -0500 (EST) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-3194) Probem when i deploy a war contening cxf-bundle-minimal-2.2.11.jar in jboss 6.M5 In-Reply-To: <18350493.155891292496600837.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-3194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972046#action_12972046 ] Freeman Fang commented on CXF-3194: ----------------------------------- Hi, This problem should be caused by there're two copys of xmlbeans.jar, one in your war, one in JBOSS container classpath. Could you check if it's this case, if so, then you should configure your JBOSS container to use self-first classloader(this term is different across different container, not exactly sure what's it in JBOSS) to ensure only xmlbean.jar in your war get loaded. Btw, IMHO you should post this kind of question on maillinglist first, other than create a jira ticket directly. Regards Freeman > Probem when i deploy a war contening cxf-bundle-minimal-2.2.11.jar in jboss 6.M5 > --------------------------------------------------------------------------------- > > Key: CXF-3194 > URL: https://issues.apache.org/jira/browse/CXF-3194 > Project: CXF > Issue Type: Bug > Affects Versions: 2.2.11 > Environment: Linux Ubuntu > JBoss 6.0.0.M5 > Reporter: Sandra T > > I have a war that imports cxf-bundle-minimal-2.2.11.jar. And cxf-bundle-minimal-2.2.11.jar needs xmlbeans-2.4.0.jar. > When I deploy my war, I have the following error in JBoss : > Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ org/apache/xmlbeans/impl/store/Xobj$DetailEntryXobj.class / BaseClassLoader@ffab3f{vfs:///home/sandraT/Logiciels/jboss-6.0.0.20100911-M5/server/default/deploy/MyApp.war}, visitor: org.jboss.scanning.annotations.plugins.GenericAnnotationVisitor@c41d96 > at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56) [:1.0.0.Alpha6] > at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91) [:1.0.0.Alpha6] > at org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin.visit(AnnotationsScanningPlugin.java:89) [:1.0.0.Alpha6] > at org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112) [:1.0.0.Alpha6] > at org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101) [jboss-classloading.jar:2.2.0.Alpha8] > at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264) [jboss-classloading-vfs.jar:2.2.0.Alpha8] > ... 50 more > Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xmlbeans.impl.store.Xobj$ElementXobj.getSchemaTypeInfo()Lorg/w3c/dom/TypeInfo;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/xmlbeans/impl/store/Xobj$ElementXobj, and the class loader (instance of ) for interface org/w3c/dom/Element have different Class objects for the type org/w3c/dom/TypeInfo used in the signature > at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0_16] > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0_16] > at java.lang.Class.getDeclaredConstructors(Class.java:1836) [:1.6.0_16] > at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredConstructors(IntrospectionTypeInfoFactoryImpl.java:559) [jboss-reflect.jar:2.2.0.Alpha9] > at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getConstructors(IntrospectionTypeInfoFactoryImpl.java:158) [jboss-reflect.jar:2.2.0.Alpha9] > at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredConstructors(ClassInfoImpl.java:446) [jboss-reflect.jar:2.2.0.Alpha9] > at org.jboss.scanning.plugins.visitor.ClassHierarchyResourceVisitor.handleClass(ClassHierarchyResourceVisitor.java:79) [:1.0.0.Alpha6] > at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:108) [:1.0.0.Alpha6] > at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86) [:1.0.0.Alpha6] > ... 54 more > what is the workaround for this problem? > Sanrda -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.