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

Bruno César Brito Sant'Anna commented on GERONIMO-4508:
-------------------------------------------------------

Got it running under Geronimo 2.2-SNAPSHOT after some work:

Set geronimo-application.xml as default (removed  <dep:hidden-classes> stuff)

First run I got a class not found exception 
(org/aopalliance/intercept/MethodInvocation.class), because I had a client bean 
in my application context which follows spring jaxws client based on 
JaxWsPortProxyFactoryBean ( 
http://static.springframework.org/spring/docs/2.5.x/reference/remoting.html#remoting-web-services-jaxws-access
 ), even after adding aopalliance.jar to classpath the error continues...

After some work I configured CXF <jaxws:client> instead of spring's  
JaxWsPortProxyFactoryBean... It was troublesome because this webservice is 
based on MS .net framework, which uses unsupported bindings (SOAP 1.2)... well 
it took a while.

Here follows cxf bean configuration (it might help someone...)

<jaxws:client id="arquivoCFClient"
        serviceClass="net.apoema.nfp.webservice.sfz.cf.ArquivoCFSoap12"
        xmlns:sfz="https://www.nfp.sp.gov.br/ws"; serviceName="sfz:ArquivoCF"
        address="https://www.nfp.fazenda.sp.gov.br/ws/arquivocf.asmx";
        wsdlLocation="https://www.nfp.fazenda.sp.gov.br/ws/arquivocf.asmx?WSDL";>
        <jaxws:binding>
                <soap:soapBinding mtomEnabled="true" version="1.2" />
        </jaxws:binding>
</jaxws:client>


Now i'm missing eclipse wtp geronimo 2.2 plugin... but it might take a while... 

Well, I'm comfortable by using <jaxws:client>, I feel this is a better solution.


> 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: dep_trace.txt, dep_trace_2.txt, dep_trace_3.txt, 
> 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