Problem starting felix after providing D-OSGi bundles auto start levels

2010-05-20 Thread amogh Chitnis
Hello, I am using the D-OSGi 1.1 multi bundle distribution along with felix framework 2.0.4. I have changed the felix config.properties file (attached) as mentioned here: http://cxf.apache.org/dosgi-multi-bundle-setup.html. When i start felix, it prints out some log statements (attached) and then

Multipart Header Content-Location not Handled Correctly

2010-05-20 Thread Loh Kok Jeng
Dear all, I'm implementing a REST server using CXF. I would like to return a multipart/related response to the client. Unfortunately, the Content-Location header of the multipart attachment, e.g.: "Content-Location: image.jpg", is always set to "content-location: null". Below is an example: --

Re: content location issue in attachment response

2010-05-20 Thread SaravananRamamoorthy
Hi Sergey, As you said the Content-Location being changed to lower case. I checked both while iterating the MimeHeaders (s.o.p in while) and I tried to check the map values before sending the attachment. All having the correct Name(including Content-Location) and Values. Suppose I am sending 3 at

Re: wsdl2java data type mapping discrepancy

2010-05-20 Thread Maharajapuram Ramchandran
Glen, Thanks for the reply. That was the first thing that I thought of and so I went ahead and changed both of them. It still gave me the same int and Integer. So I don't think that is the problem. On Thu, May 20, 2010 at 7:17 PM, Glen Mazza wrote: > > I think the reason is that optional elem

Re: wsdl2java data type mapping discrepancy

2010-05-20 Thread Glen Mazza
I think the reason is that optional elements need to be an Integer instead of just an int because the former lets you specify that no value was provided (you can set an Integer to null but not an int). Glen Maharajapuram Ramchandran wrote: > > Hello, > > We are using CXF 2.2.2 to write a webs

Re: 答复: A runtime excepti on in ws-security scenario

2010-05-20 Thread joelking
Hi, I am developing a web application, its a servlet which basically acts as a front end for a web service, and I use CXF for the web service client, tested under a development tomcat instance and worked fine. I have the spring framework and the rest jars in the lib: wsdl4j-1.6.1.jar wss4j-1.

wsdl2java data type mapping discrepancy

2010-05-20 Thread Maharajapuram Ramchandran
Hello, We are using CXF 2.2.2 to write a webservice and I'm running into this issue: I have 2 operations in the service and for a particular node this is what I have in the XSD. As you can see, the only difference that I have is that the ID is an optional element in the second operation. *Operat

Re: content location issue in attachment response

2010-05-20 Thread Sergey Beryozkin
Hi So what I understand is that the root part has a proper Content-Location (with C & L being capital) header, while all the remaining parts have a 'content-location' header thus when you try to get them (from SoapUI ?) you're getting 'null' because of a case-sensitivity issue... Is it what is hap

Re: CXF RESTful user generated model instead of Annotations in the code?

2010-05-20 Thread Sergey Beryozkin
Hi please see http://cxf.apache.org/docs/jax-rs.html#JAX-RS-RESTfulserviceswithoutannotations for more info cheers, Sergey On Thu, May 20, 2010 at 1:54 PM, yoMrJ wrote: > > Hi folks, > > i was wondering how can I represent a RESTful annotated java class as a > user > generated model? > > Th

content location issue in attachment response

2010-05-20 Thread SaravananRamamoorthy
Hi All, I am trying to send attachment as a response using Jax - RS. The system gets the attachment details from Saaj api to Jax - RS and it need to send as a response. Please see the code below: List responseAttach = new ArrayList(); while(attach.hasNext()) //attach is an Iterator receives f

CXF RESTful user generated model instead of Annotations in the code?

2010-05-20 Thread yoMrJ
Hi folks, i was wondering how can I represent a RESTful annotated java class as a user generated model? This is a example taken from the GreeterService2 service which is part of the greeter_rest sample bundle. Well I understand this but how to user other Annotations such as: @Consumes("appl

Re: Re: Re: Re: CXF Distributed OSGI and RESTful

2010-05-20 Thread Georgi Dimitrov
Hi it's me again :) Jut a brief update: I have found the reason why the example bundles do not work! Take a look at this code in the org.apache.cxf.dosgi.samples.greeter.impl.rest.Activator class of the greeter_rest implementation bundle: public void start(BundleContext bc) throws Exception {

Re: Re: Re: CXF Distributed OSGI and RESTful

2010-05-20 Thread yoMrJ
Hi Sergey, Just checked out our App that has an OSGI Environment a new from our local svn(Clean Configuration). Then just edited the config.ini to add the two bundles: cxf-dosgi-ri-samples-greeter-rest-interface-1.1.jar cxf-dosgi-ri-samples-greeter-rest-impl-1.1.jar Then i checked in the OSGI c