cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beaurpere, David" <David.Beaurp...@iona.com>
Subject JAXB is not sitting well in an OSGI /eclipse env...
Date Wed, 03 Jan 2007 11:05:35 GMT
Guys, 

 

Sorry for the previous mail it was sent by mistake before being ready...

 

I am writing some plugins for eclipse that uses APIs based on the cxf
tools framework and wsdl model.

 

I have a frustrating situation here where calls to the
org.apache.cxf.wsdl11.WSDLManagerImpl (and its multiple calls to
"JAXBContext.newInstance(...)") causes an avalanche of
"java.lang.LinkageError: duplicate class definition:..." error being
spit out. I have copied a sample stack trace and the config props I am
getting at the end of this mail. 
 
I am not really familiar with the detailed workings of JAXB and I have
no idea why the API is calling systematically "defineClass(...)"
 
I thought I would write to this list before getting to the JAXB one.
Just in case there's a chance that something can be done on your side 
 

 

thanks,

d.

 

 

###############################

 

com.iona.artix.binding.fixed-5=javax.wsdl.BindingFault=com.iona.schemas.
bindings.fixed.BodyType,

com.iona.artix.binding.fixed-4=javax.wsdl.BindingOutput=com.iona.schemas
.bindings.fixed.BodyType,

com.iona.artix.binding.fixed-3=javax.wsdl.BindingInput=com.iona.schemas.
bindings.fixed.BodyType,

com.iona.artix.binding.fixed-2=javax.wsdl.BindingOperation=com.iona.sche
mas.bindings.fixed.OperationType,

com.iona.artix.binding.fixed-1=javax.wsdl.Binding=com.iona.schemas.bindi
ngs.fixed.BindingType,

org.apache.cxf.transports.http-3=javax.wsdl.Port=org.xmlsoap.schemas.wsd
l.http.AddressType,

org.apache.cxf.transports.http-2=javax.wsdl.Port=org.apache.cxf.transpor
ts.http.configuration.HTTPServerPolicy,

org.apache.cxf.transports.http-1=javax.wsdl.Port=org.apache.cxf.transpor
ts.http.configuration.HTTPClientPolicy,

com.iona.artix.port.http-conf-2=javax.wsdl.Port=com.iona.schemas.transpo
rts.http.configuration.ClientType,

com.iona.artix.port.http-conf-1=javax.wsdl.Port=com.iona.schemas.transpo
rts.http.configuration.ServerType,

org.apache.cxf.bindings.xml-2=javax.wsdl.BindingOutput=org.apache.cxf.bi
ndings.xformat.XMLBindingMessageFormat,

org.apache.cxf.bindings.xml-1=javax.wsdl.BindingInput=org.apache.cxf.bin
dings.xformat.XMLBindingMessageFormat,

com.iona.artix.definition.routing-2=javax.wsdl.Definition=com.iona.schem
as.routing.RouteType,

com.iona.artix.definition.routing-1=javax.wsdl.Definition=com.iona.schem
as.routing.ExpressionType,

com.iona.artix.port.mq-2=javax.wsdl.Port=com.iona.schemas.transports.mq.
ClientType,

com.iona.artix.port.mq-1=javax.wsdl.Port=com.iona.schemas.transports.mq.
ServerType,

com.iona.artix.port.ftp-1=javax.wsdl.Port=com.iona.schemas.transports.ft
p.BasePortType,

org.apache.cxf.transports.jms-3=javax.wsdl.Port=org.apache.cxf.transport
s.jms.JMSServerBehaviorPolicyType,

org.apache.cxf.transports.jms-2=javax.wsdl.Port=org.apache.cxf.transport
s.jms.JMSClientBehaviorPolicyType,

org.apache.cxf.transports.jms-1=javax.wsdl.Port=org.apache.cxf.transport
s.jms.JMSAddressPolicyType

 

###############################

 
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:12
5)
        at
com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:48
)
        at
com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(Accesso
rInjector.java:51)
        at
com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(Opt
imizedAccessorFactory.java:128)
        at
com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Ac
cessor.java:198)
        at
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransduc
edAccessorImpl.<init>(TransducedAccessor.java:193)
        at
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAcc
essor.java:135)
        at
com.sun.xml.bind.v2.runtime.property.AttributeProperty.<init>(AttributeP
roperty.java:53)
        at
com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFact
ory.java:68)
        at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.j
ava:135)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.
java:404)
        at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.j
ava:122)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.
java:404)
        at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.j
ava:122)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.
java:404)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:
246)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:124
)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
..
Caused by: java.lang.LinkageError: duplicate class definition: ...
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        ... 72 more

 

###############################

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message