geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno César Brito Sant'Anna (JIRA) <j...@apache.org>
Subject [jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF
Date Wed, 21 Jan 2009 18:53:59 GMT

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

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

Jarek,

I've tried Kevan's first suggestion, which was downgrading spring to 2.0.5... it worked partially
but as I said before (https://issues.apache.org/jira/browse/GERONIMO-4508?focusedCommentId=12665440#action_12665440)
i had other problems...

Now with your post I decided to modify geronimo-application.xml, (I confess you I hadn't modified
it before)... I tried some workarounds but other problems appeared:

1st (attached file: dep_trace.txt)
Added this to geronimo_application.xml (below <dep:moduleId>)
<dep:hidden-classes>
	<dep:filter>org.springframework.</dep:filter>
</dep:hidden-classes>

and... got this error:
org.springframework.beans.FatalBeanException: Class [org.apache.cxf.jaxws.spring.NamespaceHandler]
for namespace [http://cxf.apache.org/jaxws] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler]
interface

2nd (attached file: dep_trace_2.txt)
I downloaded cxf version 2.1.3, added cxf-2.1.3 to EarContent/lib and manifest.mf, modified
geronimo_application.xml to
<dep:hidden-classes>
	<dep:filter>org.springframework.</dep:filter>
	<dep:filter>org.apache.cxf.</dep:filter>
</dep:hidden-classes>

and... got this error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountWebServiceEndpoint':
Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/ws/soap/MTOM

3rd (attached file: dep_trace_3.txt)
added geronimo-jaxws_2.1_spec-1.0.jar and jaxb-api-2.1.jar to EarContent/lib and manifest.ml
and tried again... 
got this error (when creating webservice endpoint):
org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for
http://schemas.xmlsoap.org/soap/


... I hope geronimo 2.2 can solve this issue since its related to library versions... 



> 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.


Mime
View raw message