6 Replies Latest reply on Aug 11, 2008 7:19 AM by aroeder

    java.lang.LinkageError: duplicate class definition: ../Secur

    aroeder Newbie

      When deploying my JBossWS-Metro project I see a several times:


      java.lang.LinkageError: duplicate class definition: com/sun/xml/ws/security/secext10/SecurityTokenReferenceType$JaxbAccessorF_any
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:465)



      [com.sun.xml.bind.v2.runtime.reflect.opt.Injector]::publish(67) - Unable to inject javax/xml/ws/wsaddressing/W3CEndpointReference$JaxbAccessorF_elements
      java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:181)
      at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:85)
      at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:87)
      at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:165)
      at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:253)
      at com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:65)
      at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:84)
      at com.sun.xml.bind.v2.runtime.property.ArrayReferenceNodeProperty.<init>(ArrayReferenceNodeProperty.java:80)
      at sun.reflect.GeneratedConstructorAccessor51.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124)
      at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:171)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:481)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:500)
      at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.<init>(SingleElementNodeProperty.java:100)
      at sun.reflect.GeneratedConstructorAccessor46.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124)
      at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:171)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:481)
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:315)
      at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
      at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
      at com.sun.xml.ws.rm.RMVersion.<init>(RMVersion.java:118)
      at com.sun.xml.ws.rm.RMVersion.<clinit>(RMVersion.java:29)
      ....
      ....

      Caused by: java.lang.LinkageError: duplicate class definition: javax/xml/ws/wsaddressing/W3CEndpointReference$Elements$JaxbAccessorF_elements
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:465)


      Is there a JAR file too much?