Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 23523 invoked from network); 22 Oct 2009 13:53:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Oct 2009 13:53:26 -0000 Received: (qmail 26977 invoked by uid 500); 22 Oct 2009 13:53:25 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 26882 invoked by uid 500); 22 Oct 2009 13:53:25 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 26874 invoked by uid 99); 22 Oct 2009 13:53:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 13:53:25 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jgawor@gmail.com designates 209.85.220.210 as permitted sender) Received: from [209.85.220.210] (HELO mail-fx0-f210.google.com) (209.85.220.210) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 13:53:23 +0000 Received: by fxm6 with SMTP id 6so9086558fxm.19 for ; Thu, 22 Oct 2009 06:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=8xfEB73cIfaN3Ir8IOTYl4q+9lhedghpZ7Lg4xAsn0M=; b=toVIGszQ5q1PU5aojdUG2wVQ1DLj1xHx18ib9Ry4HFx2ZwhYrY1LxIUBUJBJ3kKVBW ExX8hqKKx1p/w8QhgOTnbzAocD8ssbOTPZy02xPDosZBtg0Nzpx6uAPopRDP46Y/FXCP e2Umy+8+UhTHpz+8Ndvs3k3KB3boNPsRmjL4s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=B6fXKGraMP2JAV/43l9XpfW7/68g9mPXT0+eRSKOqOmnvw2wlaaVaBTMDnrbki9lBg WeDEL+VuwSj2GxIViDa9lILnXyGNi8J1U2m9B8PSmgvsJHac6Nwxzpm1Hgo7k82IUh5J QuYwtVolUgGhqRP/RVfdXOhC+0Y7cuzSA1e4U= MIME-Version: 1.0 Received: by 10.204.153.27 with SMTP id i27mr9472161bkw.155.1256219581480; Thu, 22 Oct 2009 06:53:01 -0700 (PDT) In-Reply-To: <33CAD1E3-A273-4A79-941E-434A395AD34E@yahoo.com> References: <5eb405c70910211052s513e491bxae9d12a33f257654@mail.gmail.com> <33CAD1E3-A273-4A79-941E-434A395AD34E@yahoo.com> Date: Thu, 22 Oct 2009 09:53:01 -0400 Message-ID: <5eb405c70910220653g763bab97oe564c997267a4c9@mail.gmail.com> Subject: Re: LinkageError on some Geronimo JAXB classes From: Jarek Gawor To: dev@geronimo.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Looks like stopping the framework in car-maven-plugin resolved this problem for me. Jarek On Wed, Oct 21, 2009 at 6:00 PM, David Jencks wrot= e: > I haven't seen this, but suspect that it might be causing problems in the > config.xml in the assembled server. > > I don't have much a clue how this could be occurring, and haven't noticed= it > happening here... I take it from your comments that it happens while > building the assembly? > > thanks > david jencks > > On Oct 21, 2009, at 10:52 AM, Jarek Gawor wrote: > >> Hi, >> >> I ran into some weird LinkageErrors with JAXB classes and I have no >> clue what is causing this. I'm hoping somebody might have some ideas >> how to deal with it. The most interesting thing is that these errors >> are logged but don't actually cause any problems. Also, I see these >> errors when I build the framework from the top but not if I build the >> framework/assemblies separately. >> >> [main] DEBUG com.sun.xml.bind.v2.runtime.reflect.opt.Injector - Unable >> to inject >> org/apache/geronimo/system/plugin/model/AttributesType$JaxbAccessorF_com= ment >> java.lang.reflect.InvocationTargetException >> =A0 =A0 =A0 =A0at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown = Source) >> =A0 =A0 =A0 =A0at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) >> =A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:18= 1) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:85= ) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(Accesso= rInjector.java:87) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(Opt= imizedAccessorFactory.java:165) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Ac= cessor.java:253) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.(Si= ngleElementLeafProperty.java:81) >> =A0 =A0 =A0 =A0at sun.reflect.GeneratedConstructorAccessor97.newInstance= (Unknown >> Source) >> =A0 =A0 =A0 =A0at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons= tructorAccessorImpl.java:27) >> =A0 =A0 =A0 =A0at java.lang.reflect.Constructor.newInstance(Constructor.= java:513) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFact= ory.java:124) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImpl.j= ava:171) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.= java:481) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:= 315) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139= ) >> =A0 =A0 =A0 =A0at >> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117= ) >> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Me= thod) >> =A0 =A0 =A0 =A0at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) >> =A0 =A0 =A0 =A0at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) >> =A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597) >> =A0 =A0 =A0 =A0at javax.xml.bind.ContextFinder.newInstance(ContextFinder= .java:202) >> =A0 =A0 =A0 =A0at javax.xml.bind.ContextFinder.find(ContextFinder.java:3= 63) >> =A0 =A0 =A0 =A0at javax.xml.bind.JAXBContext.newInstance(JAXBContext.jav= a:574) >> =A0 =A0 =A0 =A0at javax.xml.bind.JAXBContext.newInstance(JAXBContext.jav= a:522) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.configuration.AttributesXmlUtil.(Attr= ibutesXmlUtil.java:57) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.configuration.GBeanOverride.(GBeanOverr= ide.java:191) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.configuration.LocalAttributeManager.setModule= GBeans(LocalAttributeManager.java:239) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.plugin.PluginInstallerGBean.installConfigXMLD= ata(PluginInstallerGBean.java:1776) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(= PluginInstallerGBean.java:1330) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(= PluginInstallerGBean.java:1309) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginIns= tallerGBean.java:774) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginIns= tallerGBean.java:719) >> =A0 =A0 =A0 =A0at >> org.apache.geronimo.mavenplugins.car.InstallModulesMojo.execute(InstallM= odulesMojo.java:184) >> =A0 =A0 =A0 =A0at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa= nager.java:490) >> =A0 =A0 =A0 =A0at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default= LifecycleExecutor.java:694) >> =A0 =A0 =A0 =A0at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec= ycle(DefaultLifecycleExecutor.java:556) >> =A0 =A0 =A0 =A0at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL= ifecycleExecutor.java:535) >> =A0 =A0 =A0 =A0at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle= Failures(DefaultLifecycleExecutor.java:387) >> =A0 =A0 =A0 =A0at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(= DefaultLifecycleExecutor.java:348) >> =A0 =A0 =A0 =A0at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec= ycleExecutor.java:180) >> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.j= ava:328) >> =A0 =A0 =A0 =A0at org.apache.maven.DefaultMaven.execute(DefaultMaven.jav= a:138) >> =A0 =A0 =A0 =A0at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >> =A0 =A0 =A0 =A0at >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) >> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Me= thod) >> =A0 =A0 =A0 =A0at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) >> =A0 =A0 =A0 =A0at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) >> =A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597) >> =A0 =A0 =A0 =A0at >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> =A0 =A0 =A0 =A0at org.codehaus.classworlds.Launcher.launch(Launcher.java= :255) >> =A0 =A0 =A0 =A0at >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> =A0 =A0 =A0 =A0at org.codehaus.classworlds.Launcher.main(Launcher.java:3= 75) >> Caused by: java.lang.LinkageError: loader (instance of >> org/codehaus/classworlds/RealmClassLoader): attempted =A0duplicate class >> definition for name: >> >> "org/apache/geronimo/system/plugin/model/AttributesType$JaxbAccessorF_co= mment" >> =A0 =A0 =A0 =A0at java.lang.ClassLoader.defineClass1(Native Method) >> =A0 =A0 =A0 =A0at java.lang.ClassLoader.defineClass(ClassLoader.java:621= ) >> =A0 =A0 =A0 =A0at java.lang.ClassLoader.defineClass(ClassLoader.java:466= ) >> =A0 =A0 =A0 =A0... 54 more >> >> Jarek > >