[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-23 Thread JIRA

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

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";>






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

Well, I'm comfortable by using , 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.



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-21 Thread JIRA

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

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

CXF 2.1.3, I don't really want... I preffer to use geronimo cxf ws engine... 
but removing  org.apache.cxf.
leads to : 

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: 
Unexpected exception parsing XML document from class path resource 
[META-INF/common/applicationContext.xml]; nested exception is 
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

... 

thanks for the link, I haven't found it before...

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-21 Thread Jarek Gawor (JIRA)

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

Jarek Gawor commented on GERONIMO-4508:
---

Ok. First, make sure to add BOTH filters for spring (for classes and resources):

org.springframework.
META-INF/spring

for CXF classes add:

org.apache.cxf.

and since you want to use CXF 2.1.3 which is based on JAX-WS 2.1 and Geronimo 
2.1.3 supports JAX-WS 2.0 you also have to filter additional classes (something 
like):

javax.xml.ws
javax.xml.bind
com.sun.xml.bind



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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-21 Thread Jarek Gawor (JIRA)

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

Jarek Gawor commented on GERONIMO-4508:
---

Btw, you can experiment with 2.2-SNAPSHOT right now, just download a binary and 
see: http://people.apache.org/builds/geronimo/server/binaries/trunk/latest/


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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-21 Thread JIRA

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

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

BTW, are those dates intended to be postponed?
http://cwiki.apache.org/GMOxPMGT/geronimo-22-release-status.html

I don't want to build geronimo 2.2 in my environment, I prefer to wait until it 
release if it really happens in 01/30/2009... 


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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-21 Thread JIRA

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

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

by the way... are those dates intended to be postponed?
http://cwiki.apache.org/GMOxPMGT/geronimo-22-release-status.html

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-21 Thread JIRA

[ 
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 )

org.springframework.


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

org.springframework.
org.apache.cxf.


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.



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-21 Thread Jarek Gawor (JIRA)

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

Jarek Gawor commented on GERONIMO-4508:
---

I'm confused. Didn't Kevan's [suggestions | 
https://issues.apache.org/jira/browse/GERONIMO-4508?focusedCommentId=12663337#action_12663337]
 work? With that enabled and by including the spring jars with your application 
there should be no conflicts or problems with the spring version included in 
Geronimo.


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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-20 Thread JIRA

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

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

Fine, I was worried by using spring components from different versions. 

I'll wait until geronimo 2.2 release.

Thanks Donald,

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-20 Thread Donald Woods (JIRA)

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

Donald Woods commented on GERONIMO-4508:


BTW - The branches/2.1 (2.1.4-SNAPSHOT) code was updated yesterday to use the 
Spring 2.5.6 binaries, just as trunk (2.2-SNAPSHOT.)
But, the 2.1.4 release still uses the older aspectjrt-1.5.3.

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-20 Thread JIRA

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

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

I'd like to add another comment to this issue:
After downgrading my spring to 2.0.5 I've got several errors using spring IoC 
feature;

"org.springframework.beans.factory.BeanCurrentlyInCreationException: Error 
creating bean with name 'accountService': Bean with name 'accountService' has 
been injected into other beans [accountUtil, nfpUtil, filemanagerUtil, 
sfzWebServiceUtil] in its raw version as part of a circular reference, but has 
eventually been wrapped (for example as part of auto-proxy creation). This 
means that said other beans do not use the final version of the bean. This is 
often the result of over-eager type matching - consider using 
'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example."

I've partially solved this by using lazy-init in some beans... but it is not 
desirable...  and it does not work using AOP proxy factory beans... (I need 
proxy factory beans because i have to work with JPA Interceptor stuff)...

I haven't found any solution until now for this problem... 

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-13 Thread Kevan Miller (JIRA)

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

Kevan Miller commented on GERONIMO-4508:


This is the old conversation that I remembered -- 
http://www.nabble.com/Re%3A-svn-commit%3A-r574694---in--geronimo-server-trunk%3A-configs-jetty6-deployer-src-main-plan--configs-jetty6-deployer-src-plan--configs-tomcat6-deployer-src-main-plan--configs-tomcat6-deployer-src-plan--modules-geronimo-cxf-src-main-java-org-apache-ger-td12681830.html

I guess the "application classloader visibility" that I was remembering was the 
behavior of the naming-builder...

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-13 Thread Kevan Miller (JIRA)

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

Kevan Miller commented on GERONIMO-4508:


I thought there was a requirement for Spring to be visible in the application 
classloader. In general, I understand and agree with you. I could be mistaken, 
but recall that we had some implicit filtering in place that would have already 
prevented this problem. However, that filtering couldn't be used due to some 
CXF requirements... I'd have to spend some time reviewing old emails to swap in 
all the details... 

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-13 Thread Gianny Damour (JIRA)

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

Gianny Damour commented on GERONIMO-4508:
-

Hi Kevan,

This is a recurrent problem; now that we have a private class support whereby 
we can explicitly configure specific classes and resources as private for a 
given config, I believe we should use this mechanism to insulate CXF children 
configurations.

Thanks,
Gianny



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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-13 Thread JIRA

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

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

Using spring 2.0.5 EAR app could load properly...

Unfortunately I had some work since one of my web-app uses external 
web-services and I have to use SOAPHandler, only spring 2.5.6 support 
BindingProvider exposing 
(http://static.springframework.org/spring/docs/2.5.x/changelog.txt)... 

Well, I included just spring-web.jar spring-core.jar and spring-context.jar 
from 2.5.6 release and added to EAR lib and included those libs in web-app 
manifest... everything loads and works fine as soon as now... 

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



[jira] Commented: (GERONIMO-4508) Spring AOP AspectJ conflict when using Apache CXF

2009-01-13 Thread Kevan Miller (JIRA)

[ 
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):


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";>
  

  org.mygroup
  MyApp
  1.1
  car



  org.springframework.
  META-INF/spring

  





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