You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Josef Bajada <Jo...@go.com.mt> on 2008/10/24 16:41:38 UTC

CXF incompatibility with AspectJ on Spring and Tomcat

I am trying to use @AspectJ with CXF on Spring 2.5.5 and Tomcat 6.0.18
however I am getting this strange error. If I remove the CXF jars then
everything works fine, so I am suspecting that some JAR file (if not
more) is causing some incompatibility.

 

I wish to have an aspect which advices a JAX-WS style webservice, so I
wish AspectJ to work with CXF, however I am stuck with this issue.

 

Has anyone encountered this error? 

 

Thanks,

Josef

 

 

 

INFO: Bean factory for application context
[org.apache.cxf.bus.spring.BusApplicationContext@1c79dfc]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@881
cb3

24-Oct-2008 15:59:38
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons

INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@881
cb3: defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apa
che.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.Bus
ExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apach
e.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryMana
ger,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.tr
ansport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apac
he.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.
apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.Serv
erRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf
.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHan
dlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache
.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,or
g.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.bin
ding.corba.CorbaBindingFactory,org.apache.cxf.binding.corba.wsdl.WSDLExt
ensionRegister#0,org.apache.cxf.jaxws.context.WebServiceContextResourceR
esolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cx
f.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransp
ortFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache
.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.A
ddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.Addressing
PolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddre
ssingAssertionBuilder,org.apache.cxf.javascript.JavascriptQueryHandlerRe
gistry,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.c
xf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.trans
port.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.htt
p.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.Cli
entOnlyHTTPTransportFactory,org.apache.cxf.management.InstrumentationMan
ager,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.a
pache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.binding.objec
t.ObjectBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory,or
g.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.ws.policy.Assertio
nBuilderRegistry,org.apache.cxf.ws.policy.PolicyConstants,org.apache.cxf
.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.at
tachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.poli
cy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apac
he.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org
.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,o
rg.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache
.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.M
TOMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMManager,org.apache.c
xf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAsser
tionBuilder]; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@737
371

[TomcatInstrumentableClassLoader@10e3293] abort trouble in: 

 class com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl extends
java.lang.Object implements com.sun.xml.bind.v2.model.core.TypeInfoSet:

  public final com.sun.xml.bind.v2.model.nav.Navigator nav
[Signature(Lcom/sun/xml/bind/v2/model/nav/Navigator<TT;TC;TF;TM;>;)]
[RuntimeVisibleAnnotations]

  public final com.sun.xml.bind.v2.model.annotation.AnnotationReader
reader
[Signature(Lcom/sun/xml/bind/v2/model/annotation/AnnotationReader<TT;TC;
TF;TM;>;)] [RuntimeVisibleAnnotations]

  private final java.util.Map builtins
[Signature(Ljava/util/Map<TT;Lcom/sun/xml/bind/v2/model/core/BuiltinLeaf
Info<TT;TC;>;>;)]

  private final java.util.Map enums
[Signature(Ljava/util/Map<TC;Lcom/sun/xml/bind/v2/model/impl/EnumLeafInf
oImpl<TT;TC;TF;TM;>;>;)]

  private final java.util.Map arrays
[Signature(Ljava/util/Map<TT;Lcom/sun/xml/bind/v2/model/impl/ArrayInfoIm
pl<TT;TC;TF;TM;>;>;)]

  private final java.util.Map beans
[Signature(Ljava/util/Map<TC;Lcom/sun/xml/bind/v2/model/impl/ClassInfoIm
pl<TT;TC;TF;TM;>;>;)] [RuntimeVisibleAnnotations]

  private final java.util.Map beansView
[Signature(Ljava/util/Map<TC;Lcom/sun/xml/bind/v2/model/impl/ClassInfoIm
pl<TT;TC;TF;TM;>;>;)] [RuntimeVisibleAnnotations]

  private final java.util.Map elementMappings
[Signature(Ljava/util/Map<TC;Ljava/util/Map<Ljavax/xml/namespace/QName;L
com/sun/xml/bind/v2/model/impl/ElementInfoImpl<TT;TC;TF;TM;>;>;>;)]

  private final Iterable allElements
[Signature(Ljava/lang/Iterable<+Lcom/sun/xml/bind/v2/model/impl/ElementI
nfoImpl<TT;TC;TF;TM;>;>;)]

  private final com.sun.xml.bind.v2.model.core.NonElement anyType
[Signature(Lcom/sun/xml/bind/v2/model/core/NonElement<TT;TC;>;)]

  private java.util.Map xmlNsCache
[Signature(Ljava/util/Map<Ljava/lang/String;Ljava/util/Map<Ljava/lang/St
ring;Ljava/lang/String;>;>;)]

  static final boolean $assertionsDisabled

  public void <init>(com.sun.xml.bind.v2.model.nav.Navigator,
com.sun.xml.bind.v2.model.annotation.AnnotationReader, java.util.Map):

                    ALOAD_0     //
Lcom/sun/xml/bind/v2/model/impl/TypeInfoSetImpl; this   (line 149)

                    INVOKESPECIAL java.lang.Object.<init> ()V

    constructor-execution(void
com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl.<init>(com.sun.xml.bind.v
2.model.nav.Navigator,
com.sun.xml.bind.v2.model.annotation.AnnotationReader, java.util.Map))

    |               ALOAD_0     //
Lcom/sun/xml/bind/v2/model/impl/TypeInfoSetImpl; this   (line 92)

    |               NEW java.util.LinkedHashMap

    |               DUP

    |               INVOKESPECIAL java.util.LinkedHashMap.<init> ()V

    |               PUTFIELD
com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl.builtins Ljava/util/Map;

    |               ALOAD_0     //
Lcom/sun/xml/bind/v2/model/impl/TypeInfoSetImpl; this   (line 96)

    |               NEW java.util.LinkedHashMap

    |               DUP

    |               INVOKESPECIAL java.util.LinkedHashMap.<init> ()V

    |               PUTFIELD
com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl.enums Ljava/util/Map;

    |               ALOAD_0     //
Lcom/sun/xml/bind/v2/model/impl/TypeInfoSetImpl; this   (line 100)

    |               NEW java.util.LinkedHashMap

    |               DUP

    |               INVOKESPECIAL java.util.LinkedHashMap.<init> ()V

    |               PUTFIELD
com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl.arrays Ljava/util/Map;

    |               ALOAD_0     //
Lcom/sun/xml/bind/v2/model/impl/TypeInfoSetImpl; this   (line 112)


RE: CXF incompatibility with AspectJ on Spring and Tomcat

Posted by Josef Bajada <Jo...@go.com.mt>.
I upgraded to AspectJ 1.6.2 but still the same problem.

Do you think it is an AspectJ issue? I will try to post it on the
AspectJ mailing list.

Thanks,

Josef



-----Original Message-----
From: Stein M. Hugubakken [mailto:dulci@start.no] 
Sent: 25 October 2008 15:54
To: users@cxf.apache.org
Subject: Re: CXF incompatibility with AspectJ on Spring and Tomcat

Josef Bajada wrote:
> I am trying to use @AspectJ with CXF on Spring 2.5.5 and Tomcat 6.0.18
> however I am getting this strange error. If I remove the CXF jars then
> everything works fine, so I am suspecting that some JAR file (if not
> more) is causing some incompatibility.
> 
>  
> 
> I wish to have an aspect which advices a JAX-WS style webservice, so I
> wish AspectJ to work with CXF, however I am stuck with this issue.
> 
>  
> 
> Has anyone encountered this error? 
> 

Yes.

We solved it by upgrading to AspectJ 1.6.2, but we're still using Tomcat

6.0.16 since we had problems to get 6.0.18 working.

Stein M.


Re: CXF incompatibility with AspectJ on Spring and Tomcat

Posted by "Stein M. Hugubakken" <du...@start.no>.
Josef Bajada wrote:
> I am trying to use @AspectJ with CXF on Spring 2.5.5 and Tomcat 6.0.18
> however I am getting this strange error. If I remove the CXF jars then
> everything works fine, so I am suspecting that some JAR file (if not
> more) is causing some incompatibility.
> 
>  
> 
> I wish to have an aspect which advices a JAX-WS style webservice, so I
> wish AspectJ to work with CXF, however I am stuck with this issue.
> 
>  
> 
> Has anyone encountered this error? 
> 

Yes.

We solved it by upgrading to AspectJ 1.6.2, but we're still using Tomcat 
6.0.16 since we had problems to get 6.0.18 working.

Stein M.