Re: WebServiceContext is null

2007-10-05 Thread Mustafa Egilmezbilek
@Transactional annotation did not help either. I guess Facade solution might be the only solution for now ... Thanks, On 10/5/07, Willem2 <[EMAIL PROTECTED]> wrote: > > > Yes , the key is we can't inject the WebContext resource into implementor > which is enhanced by Spring AOP. > > Can try you

Re: WebServiceContext is null

2007-10-05 Thread Willem2
Yes , the key is we can't inject the WebContext resource into implementor which is enhanced by Spring AOP. Can try you add the transaction annotation to setWsContext method? And there is an another way to walk around it just by adding a facade which do not use any Spring AOP stuff and wraps th

Re: WebServiceContext is null

2007-10-05 Thread Willem2
You can try to run my test case ResourceInjectorTest[1] with mvn test -Dtest=ResourceInjectorTest in the trunk\common\common\ directory. I do not thing this NPE is caused by jdk1.6. [1] https://svn.apache.org/repos/asf/incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/common/injection

Re: WebServiceContext is null

2007-10-05 Thread Mustafa Egilmezbilek
Willem, I tested by removing , and worked well. I got the WebServiceContext. But when I put it back I got null again. On 10/5/07, Mustafa Egilmezbilek <[EMAIL PROTECTED]> wrote: > > :( > > Still null pointer exception > > You said your tests were successful. Which jdk are you using. Do you think

Re: WebServiceContext is null

2007-10-05 Thread Mustafa Egilmezbilek
:( Still null pointer exception You said your tests were successful. Which jdk are you using. Do you think it might be because of jdk 1.6 ? On 10/5/07, Willem2 <[EMAIL PROTECTED]> wrote: > > > Hi, > > Can you define the below method in your implementor's interface? >void setWsContext(final

Re: WebServiceContext is null

2007-10-05 Thread Willem2
Hi, Can you define the below method in your implementor's interface? void setWsContext(final WebServiceContext wsContext) ; We could add the annotation @WebMethod(exclude = true) in the method to exclude it from the wsdl operation. Sprint Dynamical Proxy is based on the interface, so we nee

Re: WebServiceContext is null

2007-10-05 Thread Mustafa Egilmezbilek
Willem I got the latest trunk and the got rid of the: java.lang.IllegalArgumentException: object is not an instance of declaring class ... exception. But WsbServiceContext is still null :( On 10/5/07, Mustafa Egilmezbilek <[EMAIL PROTECTED]> wrote: > > When did you commit your code ? I started to

Re: WebServiceContext is null

2007-10-04 Thread Mustafa Egilmezbilek
When did you commit your code ? I started to get the latest trunk version . Here is the stack trace (looks like the old ones): Oct 5, 2007 8:51:23 AM org.apache.cxf.common.annotation.AnnotationProcessorvisitAnnotatedElement SEVERE: an AnnotationVisitor ( [EMAIL PROTECTED]) raised an exception on

Re: WebServiceContext is null

2007-10-04 Thread Willem2
Can you show me the stack trace and try the code that I just committed ? Willem. blacksheep wrote: > > Hi Willem, > > Mine still fails :( Last version of my code is like this: > > public WebServiceContext wsContext; > > @Resource > public final void setWsContext(final WebService

Re: WebServiceContext is null

2007-10-04 Thread Mustafa Egilmezbilek
Hi Willem, Mine still fails :( Last version of my code is like this: public WebServiceContext wsContext; @Resource public final void setWsContext(final WebServiceContext wsContext) { this.wsContext = wsContext; } On 10/4/07, Willem2 <[EMAIL PROTECTED]> wrote: > > > Hi,

Re: WebServiceContext is null

2007-10-04 Thread Willem2
Hi, I just get the unit test workable :) Can you try it with the setter Resource annotation? Willem. Willem2 wrote: > > OK, on the bright side, we have a small test case to show how to get the > exception. > I will try to dig the resource injection part then :) > > Willem. > > > blackshee

Re: WebServiceContext is null

2007-10-04 Thread Willem2
OK, on the bright side, we have a small test case to show how to get the exception. I will try to dig the resource injection part then :) Willem. blacksheep wrote: > > I did it already but no luck :( > > On 10/4/07, Willem2 <[EMAIL PROTECTED]> wrote: >> >> >> Can you try to remove the @Resour

Re: WebServiceContext is null

2007-10-04 Thread Mustafa Egilmezbilek
I did it already but no luck :( On 10/4/07, Willem2 <[EMAIL PROTECTED]> wrote: > > > Can you try to remove the @Resource for the wsContext class member? > I just wrote some tests on the proxy object injection, I always get some > java.lang.IllegalArgumentException here. :( > > Willem. > > blackshe

Re: WebServiceContext is null

2007-10-04 Thread Willem2
Can you try to remove the @Resource for the wsContext class member? I just wrote some tests on the proxy object injection, I always get some java.lang.IllegalArgumentException here. :( Willem. blacksheep wrote: > > I noticed it and set endorsing lib to use jaxb-2.1.jar. > > By the way I change

Re: WebServiceContext is null

2007-10-04 Thread Mustafa Egilmezbilek
I noticed it and set endorsing lib to use jaxb-2.1.jar. By the way I changed my code to: @Resource public WebServiceContext wsContext; @Resource public final void setWebContext(final WebServiceContext wsContext) { this.wsContext = wsContext; } Is this right because I

Re: WebServiceContext is null

2007-10-04 Thread Willem2
Hi, Maybe you can try it with the set method Injection. @Resource public final void setWebContext(final WebServiceContext argResource) { this.resource = argResource1; } BTW, Current CXF trunk is changing to use JAXB2.1 , so you can't use jdk1.6 to build without endorsing t

Re: WebServiceContext is null

2007-10-04 Thread Mustafa Egilmezbilek
Hi Willem, Thanks for your effort. I got the latest trunk this morning but had a problem during maven install. I am using jdk1.6 and it gave me some trouble . I switched to jdk 1.5 and I was able to build the latest trunk but then my test failed: Oct 4, 2007 2:29:23 PM org.apache.cxf.common.anno

Re: WebServiceContext is null

2007-10-03 Thread Willem2
Hi blacksheep, I just committed a quick fix for CXF-1074. Can you test it (the trunk version of CXF) with your application? I did not test it with your configuration file , because I did not have all your environments yet. Tell me if it works :) Willem. blacksheep wrote: > > Hi Willem, > >

Re: WebServiceContext is null

2007-10-01 Thread blacksheep
Hi Willem, Any luck ? Please inform me. Thanks, blacksheep wrote: > > Thanks. I attached my spring configuration file. > > On 9/30/07, Willem2 <[EMAIL PROTECTED]> wrote: >> >> >> I just wrote a test case of injecting the resource to an enhanced object >> by >> CGLIB, and it worked well. >>

Re: WebServiceContext is null

2007-09-30 Thread Mustafa Egilmezbilek
Thanks. I attached my spring configuration file. On 9/30/07, Willem2 <[EMAIL PROTECTED]> wrote: > > > I just wrote a test case of injecting the resource to an enhanced object > by > CGLIB, and it worked well. > Currently , I can't inject any resource to the instance of JDK Dynamical > Proxy whi

Re: WebServiceContext is null

2007-09-29 Thread Willem2
I just wrote a test case of injecting the resource to an enhanced object by CGLIB, and it worked well. Currently , I can't inject any resource to the instance of JDK Dynamical Proxy which is also a part of Spring AOP solution. Can you send me a same sample of using the tx:annotation-driven ?

Re: WebServiceContext is null

2007-09-28 Thread Willem Jiang
Hi , Currently I do not find a way to work around and I can't put much time on it now :(. You can monitor the JIRA , and you can still work on you code by removing the tx:annotaiton-driven. This is a common issue of CXF , we will resolved it soon :) Willem. Mustafa Egilmezbilek wrote: Hi,

Re: WebServiceContext is null

2007-09-28 Thread Mustafa Egilmezbilek
Hi, I am using in my spring.xml . What's the workaround for this case ? Thanks, Karakoyun On 9/28/07, Willem Jiang <[EMAIL PROTECTED]> wrote: > > Hi , > > How do you set up your endpoint implementor? > > I know there is an issue that if your implementor is came from a Spring > bean which is

Re: WebServiceContext is null

2007-09-28 Thread Dave Kallstrom
Here are the relevent parts of my cxf.xml config file. And my SEI anno

Re: WebServiceContext is null

2007-09-27 Thread Mustafa Egilmezbilek
Thanks Dave, How do you set http transport in CXF ? On 9/27/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote: > > This is how i get the httpRequest > @Resource > private WebServiceContext context; > private HttpServletRequest getHttpRequest() > { > MessageContext ctx = getContext().getMe

Re: WebServiceContext is null

2007-09-27 Thread Willem Jiang
Hi , How do you set up your endpoint implementor? I know there is an issue that if your implementor is came from a Spring bean which is enhanced by Spirng AOP will not get any WebServiceContext resource injected. You can find the detail information about the JIRA here [1] [1]https://issues.

Re: WebServiceContext is null

2007-09-27 Thread Dave Kallstrom
This is how i get the httpRequest @Resource private WebServiceContext context; private HttpServletRequest getHttpRequest() { MessageContext ctx = getContext().getMessageContext(); HttpServletRequest request = (HttpServletRequest) ctx.get( AbstractHTTPDestination.HTTP_REQUEST);