[Fwd: Re: [Fwd: Re: [CXF-2.2.5][Spring2.5.5][jre1.5] No mapped method]]

2010-01-27 Thread Gabo Manuel
--- Begin Message --- Hi Sergey, Some corrections: payload type http method jetty tomcat iplanet submitted interceptor method invoked http method on invoke method invoked http method on invoke method

[Fwd: Re: [CXF-2.2.5][Spring2.5.5][jre1.5] No mapped method]

2010-01-27 Thread Gabo Manuel
--- Begin Message --- Hi Sergey, I added the following details: 1. I have the interceptor that processes the authentication details display the http method. 2. I have the methods display the http method The code I used to retrieve the method is as follows: PhaseInterceptorChain.getCurrent

RE: CXF with JAX-RS : No operation matching request path /detail/ is found

2010-01-27 Thread Yong-Loh
Hi David, Thanks for the reply. I have hit the WADL address. I could only see /content/. Cant find out /detail/. One question: Is it mandatory that, I need to pass all the queryparams in the URL. Because, when I removed all the parameters from the getLocalDetail method signature, it works. I g

Regarding fault section in WADL..

2010-01-27 Thread Ashishz
Hello Guys, I want to know.. How to generate fault section in WADL using CXF?? Please help me in this regards.. Thank you very much in advance.. Ashish.. -- View this message in context: http://old.nabble.com/Regarding-fault-section-in-WADL..-tp27351601p27351601.html Sent from the cxf-user m

RE: CXF with JAX-RS : No operation matching request path /detail/ is found

2010-01-27 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Yong-Loh [mailto:vasantha_rap...@infosys.com] > Sent: Wednesday, January 27, 2010 8:15 PM > To: users@cxf.apache.org > Subject: CXF with JAX-RS : No operation matching request path /detail/ > is found > > > Hi All, > > We are using CXF with JAX-RS for buildin

Re: Custom Transport and Creating a JaxWS Client

2010-01-27 Thread Coder One
I figured out the solution.  The below error is fixed as per below...   Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service {http://gadget.acme.com/}GadgetServiceService   Add the below annotation to the implementing class. @WebService(name

CXF with JAX-RS : No operation matching request path /detail/ is found

2010-01-27 Thread Yong-Loh
Hi All, We are using CXF with JAX-RS for building RESTful webservices. Below is our resource interface. @Path("/") public interface ContentProcess { @GET @Path("/content/") @Produces("application/xml") public Content getContent(@QueryParam("address") String addres

Re: Custom Transport and Creating a JaxWS Client

2010-01-27 Thread Coder One
- Original Message From: Coder One To: users@cxf.apache.org Sent: Wed, January 27, 2010 2:15:28 AM Subject: Custom Transport and Creating a JaxWS Client CXF 2.2.5   I can't seem to create a client-side service instance to invoke my web service via my custom transport. I followed the

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-27 Thread Yong-Loh
Hi Sergey, We will come back to this issue later as we are stuck up with another issue which is of high importance. I will be posting the same on this forum. Thanks & Regards, Yong-Loh Sergey Beryozkin-2 wrote: > > Hi, this looks fine. > > I might need some help here too. It has to work, ass

Re: element not matched using cxf 2.1.5

2010-01-27 Thread Daniel Kulp
Any chance you could strip the wsdl down a bit and create a small test case (no business logic and such)?I'd love to try and see what is going on here. Dan On Wed January 27 2010 10:06:46 am pieb...@gmail.com wrote: > yes, it is with JAXB. > > > the annotations of the bean : > > @Xml

Re: Optional encryption/decryption

2010-01-27 Thread Daniel Kulp
One "option" that I think might work for CXF would be to switch from using the WSS4JIn/Out things to using the WS-SecurityPolicy based implementation. I THINK the XPath based stuff in the CXF WS-SecurityPolicy are in a "if the element exists, do this" type form. Thus, if you use an XPath to

Re: CXF return fault when WS-Addressing MAPs are not present?

2010-01-27 Thread rduhard
I haven't had a chance to create a sample demonstrating the problem yet but I did a little bit of digging... I've found that if you have BOTH the wsa:addressing feature in your Spring configuration and wsaw:UsingAddressing in your WSDL, it will not work. The only way i've gotten it to throw the p

.NET invocation of web service implementing CallbackHandler

2010-01-27 Thread scooter106
Got some web services that some guys developed using a WSPasswordCallback. Works great with a java-based client. Anyone know how to implement .NET-based clients that will work with the CallbackHandler? (or any links, etc. to resources that would explain how the .NET client could/should be writt

Re: Jaxb question

2010-01-27 Thread Daniel Kulp
On Wed January 27 2010 11:44:10 am Vinicius Carvalho wrote: > Hello there! How can I inform the org.apache.cxf.jaxb.JAXBDataBinding > which packages to look at? JAXBDataBinding has a constructor which is a Set that you can use. I BELIEVE if you use that constructor, it won't then scan. Not 10

Re: different behaviour of wsdl2java.bat and maven codegen plugin

2010-01-27 Thread Daniel Kulp
Christian, This is kind of why I want to pull our xjc plugins and such into a sub-project of CXF. A kind of "goal" would be to have a place similar to jaxb2-commons for jaxb xjc plugins to find a home, but a place that is managed better than jaxb2-commons and deploys to central and such for

Re: different behaviour of wsdl2java.bat and maven codegen plugin

2010-01-27 Thread Christian Schneider
Hi Dan, for some time I have searched for a jaxb extension that generates a contructor with all attributes. I have now found two implementations from jaxb2-commons value constructor or even more interesting fluent api. https://jaxb2-commons.dev.java.net/value-constructor/ https://jaxb2-common

Re: Large SOAP Attachment getting truncated using JAX-WS

2010-01-27 Thread Brenda Coulson
The upgrade worked - I can now submit my file successfully. Brenda Coulson wrote: > > Thanks for the quick reply. I am in the process of upgrading to CXF 2.2.6 > and will let you know if that corrects the problem. I did turn off logging > but that did not change the behavior. > > > dkulp wrot

How does client know it needs to implement a callbackhandler?

2010-01-27 Thread scooter106
I'm implementing a web service that uses the callback mechanism to deal with client-authentication. I've set the webservices and my own client up to implement the callback stuff and everything is working as expected. The question I have is this: is there some way, if a person out there in the wo

Re: Large SOAP Attachment getting truncated using JAX-WS

2010-01-27 Thread Brenda Coulson
Thanks for the quick reply. I am in the process of upgrading to CXF 2.2.6 and will let you know if that corrects the problem. I did turn off logging but that did not change the behavior. dkulp wrote: > > > Definitely try with CXF 2.2.6 if you are not already using 2.2.6. We've > made > a lo

Re: DOSGi and JSON responses

2010-01-27 Thread Sergey Beryozkin
This is strange...Hmm... Is it only JSON responses which are empty ? Can you try extending the default JSON provider and just overwrite its writeTo and delegate, just to check, before doing the delegation, if it is actually invoked or if it has some real data passed in ? Also, can you please tr

Re: JMX - JAX-RS multiple service beans - only one is managed

2010-01-27 Thread Sergey Beryozkin
Hi Paul As I've briefly mentioned in the other email, you can have a jaxrs:server/@serviceName attribute (in 2.2.6). This may help even if you have a single service bean. Cyrille and myself worked on ensuring JAXRS Operation stats are displayed properly on client and server sides, including for

Re: SOAP message size limits?

2010-01-27 Thread Henk Flipman
That resolved the issue. Thanks for your help. Henk On Jan 27, 2010, at 12:22 AM, Henk Flipman wrote: > Thanks, Dan. > > This is for debug logging. In production it will be turned off so I'm not too > worried about the memory impact. > > Thanks! > > Henk > > On Jan 26, 2010, at 7:21 PM, Dan

Re: JMS transport for JAX-RS

2010-01-27 Thread Sergey Beryozkin
Hi Paul I have just committed the initial code to trunk/2.2.x-SNAPSHOT. Please see [1], [2], [3]. What is there now should probably work for most of the cases (topics/queues, including the JMS transactions support). Transactions will work if custom exceptions have not been caught by JAXRS mapp

Jaxb question

2010-01-27 Thread Vinicius Carvalho
Hello there! How can I inform the org.apache.cxf.jaxb.JAXBDataBinding which packages to look at? It seems that it is scanning the whole classpath for annotations, and now it throwing errors complaining about my DAOs Interfaces (and JAXB not being able to handle interface) My previous experiences

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread Sergey Beryozkin
Hi, Hi Sergey , I think the problem is with my web.xml Could you please verify my web.xml CXFServlet org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet javax.ws.rs.Application com.nsn.test.MyRest 1 Is it necessary to add servlet-mapping? you definitely need to add it... I ha

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey, Please find the attached war file. I have removed jar files. Regards Saravanan Ramamoorthy http://old.nabble.com/file/p27342133/testproject.war testproject.war Sergey Beryozkin-2 wrote: > > Hi > > Please try CXFJaxrsNonSpringServlet : > > http://cwiki.apache.org/CXF20DOC/jax-rs

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey , I think the problem is with my web.xml Could you please verify my web.xml CXFServlet org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet javax.ws.rs.Application com.nsn.test.MyRest 1 Is it necessary to add servlet-mapping? I have tried to add the servlet mappping wit

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread Sergey Beryozkin
My resource class: @Path("/hello") public class Helloworld{ @GET public void sayHello() { System.out.println("hello world"); } } and my context root is testproject. Totally I have written 1. Resource class (Helloworld) 2. MyRest class which extends Application. 3. web.xml 4. placed necessary

Re: Unmarshal Exception and weird URIMappingInterceptor Message

2010-01-27 Thread Marc Logemann
Hi Dan, makes completely sense now. In fact i have also sseb the differences and wondered why this wasnt a problem before the upgrade to 2.2.5 ;-) Now i know. If i would be a CXF maintainer, i would go exactly the same route. The only gripe is the error message itself. This could be a littl

Re: DOSGi and JSON responses

2010-01-27 Thread Daniel Bimschas
I tried both the ServiceMix bundle and the Jettison 1.2 bundle but both still deliver empty output. Debug output looks fine as far as I can see (it selects org.apache.cxf.jaxrs.provider.JSONProvider for output): ... [btpool3-0] DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Invoking handle

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey, Thanks for your quick reply. My resource class: @Path("/hello") public class Helloworld{ @GET public void sayHello() { System.out.println("hello world"); } } and my context root is testproject. Totally I have written 1. Resource cl

Re: [ANN] Apache CXF versions 2.2.6 and 2.1.9 released

2010-01-27 Thread Edwin Quita
congratulations team CXF! this is one of the reasons why i love CXF! On Tue, Jan 26, 2010 at 3:24 AM, Daniel Kulp wrote: > The Apache CXF team is proud to announce the availability of the latest > patches for the fixes branches: 2.2.6 and 2.1.9 > > Apache CXF is an open source services framework

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread Sergey Beryozkin
Hi Hi Sergey, I have written a class that extends Application and registers all the resource service class. Here is my class: public class MyRest extends Application{ @Override public Set> getClasses() { // TODO Auto-generated method stub Set> s = new HashSet>(); s.add(Helloworld.class); ret

Re: element not matched using cxf 2.1.5

2010-01-27 Thread piebetz
yes, it is with JAXB. the annotations of the bean : @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CheckCriteriaAddressViewForCheckAddressRequest", propOrder = { "maxWishedResults", "checkType", "formattedPostalAddressView", "returnGeographicCoordinates", "typography"

Re: DOSGi and JSON responses

2010-01-27 Thread Daniel Bimschas
Would DOSGi RI 1.1 work with http://repo1.maven.org/maven2/org/codehaus/jettison/jettison/1.2/jettison-1.2.jar or is there any reason it would not? Am 27.01.2010 um 15:49 schrieb Sergey Beryozkin: > Hi > > if you use "org.apache.cxf.rs.provider" string property then it's a > comma-separated l

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread SaravananRamamoorthy
Hi Sergey, I have written a class that extends Application and registers all the resource service class. Here is my class: public class MyRest extends Application{ @Override public Set> getClasses() { // TODO Auto-generated method stub Set> s = ne

Re: DOSGi and JSON responses

2010-01-27 Thread Sergey Beryozkin
Hi if you use "org.apache.cxf.rs.provider" string property then it's a comma-separated list of class names, if using declarative services then you need to have a space separated list of class names listed on separate lines, as shown in the section I linked to. As we discussed eralier on, there's

Re: WSDL wsaw:Action vs soapAction in MAPs on the response message

2010-01-27 Thread Daniel Kulp
Rebecca, On Tue January 26 2010 5:12:34 pm rduhard wrote: > Logged an issue in Jira with potential patch. See > https://issues.apache.org/jira/browse/CXF-2629 Just to let you know that I looked at this a bit last night. With your patch, a BUNCH of the WS-RM related system tests fail. I thi

Re: element not matched using cxf 2.1.5

2010-01-27 Thread Daniel Kulp
On Tue January 26 2010 5:49:56 am pieb...@gmail.com wrote: > Hi again, > > the problem was that the object not mapped started with a uppercase when > request generated by SOAPUI (not working) > and a lower case when I use java to call the service. > > Yet the name of the element starts by an uppe

Re: Spring 3.0, CXF 2.2.6-SNAPSHOT, Websphere 6.1 - valid combo?

2010-01-27 Thread Daniel Kulp
There are some new notes about WebSphere up on the page: http://cxf.apache.org/docs/deployment.html They may just apply to the latest WebSphere versions though. Dan On Wed January 27 2010 7:42:52 am da...@davidkarlsen.com wrote: > On Thu, 21 Jan 2010, Christian Landbo Frederiksen wrote: > > I'

Re: DOSGi and JSON responses

2010-01-27 Thread Daniel Bimschas
Sorry, accidentally sent the last before I finished writing it :) I used maven-scr-plugin to generate the properties of the registered service, therefore the syntax should be ok now. However, it doesn't seem to work. I keep getting empty JSON files :( I'll now check out to do it on the greeter_r

Re: DOSGi and JSON responses

2010-01-27 Thread Daniel Bimschas
Sergey, can you tell me what the exact syntax of a list of providers would be? E.g. one of "jaxb,org.apache.cxf.jaxrs.provider.JSONProvider" ",org.apache.cxf.jaxrs.provider.JSONProvider Am 27.01.2010 um 10:47 schrieb Sergey Beryozkin: > Hi Daniel > > Please see "Registering custom JAXRS p

Any way to participate in distributed transaction?

2010-01-27 Thread Adrian Shum
Hi all, >From what I can find on the web, I think CXF still does not support WS-Transaction/ WS-AtomicTransaction. I wonder if there is any other way to make certain CXF Web Service invocation participates in a distributed transaction? Thanks a lot -- Best Regards, AdRiAN ShUM (-: Don't W

Re: Duplicate attribute in element wsse:BinarySecurityToken

2010-01-27 Thread pinguino
New version - 2.2.6 -solves my problem. Thank you very much for your quick response. dkulp wrote: > > > Can you try with CXF 2.2.6? I THINK this was fixes as part of 2.2.6. > If it > still doesn't work, I'll need a test case. I've haven't been able to > reproduce this other than the o

Re: Default XML namespace for validation with jaxrs

2010-01-27 Thread Sergey Beryozkin
Sorry...It is a bit lame, when I'm documenting I'm just type fast without re-checking the actual property names..."inElementsMap" is the private field's name... Another typo to fix... cheers, Sergey - Original Message - From: "Sertic Mirko, Bedag" To: Sent: Wednesday, January 27, 20

AW: Default XML namespace for validation with jaxrs

2010-01-27 Thread Sertic Mirko, Bedag
Hi Thank you so much. But i think the property should be "inTransformElements" for CXF 2.2.5 Anyway, thanks in advance Mirko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sbery...@progress.com] Gesendet: Mittwoch, 27. Januar 2010 11:18 An: users@cxf.apache.org Betreff: Re: D

Re: Spring 3.0, CXF 2.2.6-SNAPSHOT, Websphere 6.1 - valid combo?

2010-01-27 Thread david
On Thu, 21 Jan 2010, Christian Landbo Frederiksen wrote: I'm just trying to jump in with zero experience with CXF on websphere and keep getting a java.lang.VerifyError when Spring tries to instantiate org.apache.cxf.wsdl11.WSDLManagerImpl during a ?wsdl request. I've tried putting some of the

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-27 Thread Sergey Beryozkin
Hi, this looks fine. I might need some help here too. It has to work, assuming the actual implementation just implements ContentProcess. Perhaps Spring is proxifying it in some way that causes the issues ? Is there any chance you can download the CXF source and debug your application, by adding

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-27 Thread Yong-Loh
Hi Sergey, Thanks for the info provided. We use Tomcat. (Using CATALINA_BASE: D:\apache-tomcat-6.0.20 Using CATALINA_HOME: D:\apache-tomcat-6.0.20 Using CATALINA_TMPDIR: D:\apache-tomcat-6.0.20\temp Using JRE_HOME:C:\Program Files\Java\jdk1.5.0_15) Below is our resource interface.

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-27 Thread Sergey Beryozkin
Hi I can see a (JUL) Log.severe(message) on line 231, just before WebApplicationException is thrown...Not sure why you don't see a message in the log. Either way, the problem is that "com.endpoint.impl.ContentProcessImpl" has not been recognized as a root resource class. Does it have a root @Pa

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-27 Thread Yong-Loh
Hi Sergey, Not exactly. Cant make it out from the logs. Below is the root cause from the logs. Caused by: javax.ws.rs.WebApplicationException at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.checkResources(Abstract JAXRSFactoryBean.java:232) at org.apache.cxf.jaxrs.JAXRSServerFa

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-27 Thread Sergey Beryozkin
Hi Do you see some other hints in the logs ? Where is the exception originating from ? cheers, Sergey Hi, We are using JAX-RS for CXF RESTful webservices. Our service has just one method that handles a GET request. And below is how we have mapped our service in beans.xml.

CXF with JAX-RS : ServiceException during deployment

2010-01-27 Thread Yong-Loh
Hi, We are using JAX-RS for CXF RESTful webservices. Our service has just one method that handles a GET request. And below is how we have mapped our service in beans.xml. We are getting the below exception when

Re: Default XML namespace for validation with jaxrs

2010-01-27 Thread Sergey Beryozkin
There's a typo, for "books" it should be books : {http://books}books though books : {http://books}books is a valid pairtoo provided one needs to change the name too Hi Please see [1], specifically, check an inElementsMap property. So you can configure a provider with a map containing a pai

Re: Default XML namespace for validation with jaxrs

2010-01-27 Thread Sergey Beryozkin
Hi Please see [1], specifically, check an inElementsMap property. So you can configure a provider with a map containing a pair like this : books : {http://books}book where {http://books}book is a QName in the expanded form. What will happen is that if you have say coming in then JAXB Un

Custom Transport and Creating a JaxWS Client

2010-01-27 Thread Coder One
CXF 2.2.5   I can't seem to create a client-side service instance to invoke my web service via my custom transport. I followed the info at http://cxf.apache.org/docs/jax-ws-java-first-with-jms-transport.html, but I am sure I must have missed some steps.   For example, do I need to store a local

Default XML namespace for validation with jaxrs

2010-01-27 Thread Sertic Mirko, Bedag
h...@all I want to know if ist possible to specify a default namespace for incoming REST requests. I have a haxrs:server with a special JAXBElementProvider with configured XML validation. Now comes the tricky point. There are some legacy clients sending requests without an XML namespace. N

FW: Optional encryption/decryption

2010-01-27 Thread Siarhei Kaneuski
Cross-posting from WSS4J maillist. Thanks, Siarhei From: Siarhei Kaneuski Sent: Tuesday, January 26, 2010 8:47 PM To: wss4j-...@ws.apache.org Subject: Optional encryption/decryption Hi everyone, I'm working on implementation of CXF service managing user profiles (which may contain sensitive da

Re: How do i not have to validate a username/password on every call?

2010-01-27 Thread Sergey Beryozkin
This is exactly what we did (as I replied in the other email), we were just passing a base64 encoded token over HTTPs, the identification was done only once...Of course, one need to worry about setting up the server side to ensure a token can not be used for 'life', etc...The other issue we had t

Re: DOSGi and JSON responses

2010-01-27 Thread Sergey Beryozkin
Hi Daniel Please see "Registering custom JAXRS providers" in [1]. There's a couple of options. One is to to use an "org.apache.cxf.rs.provider" property which accepts a list of class names, so you can list the provider you need, ex, "org.apache.cxf.jaxrs.provider.JSONProvider", etc. The other op

Re: How to? Authenticate once then pass a token?

2010-01-27 Thread Sergey Beryozkin
In the project we did awhile back we were passing a computed token (representing a successfully authenticated principal) back to a client as a (custom, non-cookie) response header. This token, when it was coming back, was used to retrieve a previously authenticated Principal (from db) and used fo

Re: JAX RS - how to publish endpoint using cxf

2010-01-27 Thread Sergey Beryozkin
Hi Please try CXFJaxrsNonSpringServlet : http://cwiki.apache.org/CXF20DOC/jax-rs.html#JAX-RS-ConfiguringJAXRSservicesincontainerwithoutSpring cheers, Sergey Hi Experts, Could anyone please explain how to publish JAX RS endpoint using cxf without spring. I can able to run the application us

Re: SOAP message size limits?

2010-01-27 Thread Henk Flipman
Thanks, Dan. This is for debug logging. In production it will be turned off so I'm not too worried about the memory impact. Thanks! Henk On Jan 26, 2010, at 7:21 PM, Daniel Kulp wrote: > On Tue January 26 2010 5:18:38 pm Henk Flipman wrote: >> Hmmm. That outputs: >> >> SOAP Response xml: jav

AW: multiple raxrs:server with same address

2010-01-27 Thread Sertic Mirko, Bedag
Hi Sergey I have the following setup, and want to know it's valid: Two jaxrs:server, each with the same address, /service, one server with serviceBean A, one with serviceBean B. Now, serviceBean A has a @Path("/service1/") annotation, and one method with a @Path("/testmethod1") annotation Ser