[ 
https://issues.apache.org/jira/browse/GERONIMO-4508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663337#action_12663337
 ] 

Kevan Miller commented on GERONIMO-4508:
----------------------------------------

Geronimo uses Spring 2.0.5, internally. Can you use that Spring version, 
instead? Another option is to use Axis2, which should not have this Spring 
issue.

IIUC, for some webservices functions, CXF will perform some client 
configuration within the application's classloader - so CXF needs the internal 
Spring version exposed to the applications classloader. Jarek or Dan might be 
able to comment on the specifics... I don't recall what these specific features 
are.

You can filter Spring and allow your application-provided version of Spring to 
override. Something like the following should work (with some loss of 
functionality):

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; 
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"; 
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";>
  <dep:environment>
    <dep:moduleId>
      <dep:groupId>org.mygroup</dep:groupId>
      <dep:artifactId>MyApp</dep:artifactId>
      <dep:version>1.1</dep:version>
      <dep:type>car</dep:type>
    </dep:moduleId>
    <!-- 
         Don't load spring classes or resources from parent ClassLoaders.
      -->
    <dep:hidden-classes>
      <dep:filter>org.springframework.</dep:filter>
      <dep:filter>META-INF/spring</dep:filter>
    </dep:hidden-classes>
  </dep:environment>
</web-app>




> Spring AOP AspectJ conflict when using Apache CXF
> -------------------------------------------------
>
>                 Key: GERONIMO-4508
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4508
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>         Environment: Spring 2.5.6, Geronimo JEE Tomcat 2.1.3, AspectJ 1.6.2
>            Reporter: Bruno César Brito Sant'Anna
>         Attachments: jetty_trace.txt, trace.txt
>
>
> I'm trying to create a WebService Bean on Geronimo using Spring IoC container.
> Well, I followed this tutorial 
> http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html
> My GERONIMO_OPTS var value is "-Dorg.apache.geronimo.jaxws.provider=cxf 
> -Dorg.apache.geronimo.saaj.provider=axis2  
> -Dorg.apache.cxf.jaxws.checkPublishEndpointPermission=false"
> When server starts, when reading Spring AOC Config my server crashes...
> Summary stack trace: 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 
> 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor': 
> Instantiation of bean failed; nested exception is 
> java.lang.AbstractMethodError: 
> org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.determineConstructor(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Constructor;
> It took me several hours to discover that cxf environment was messing around 
> with Spring... 
> reseting GERONIMO_OPTS and removing cxf webservice stuff from my 
> applicationContext.xml made my server run again.
> Looks like I cannot use CXF with AOP...
> I'll attach full stack trace...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to