[CXF2.4] WARNING: No resource methods

2013-02-20 Thread Gabo Manuel
Hi All, Am encountering the error above on one server _but not the other._ The method to be displayed is just an implementation of an interface, so as a result it is a public method. The most that I could find from the threads related to this error is that the methods are not visible. The

[cxf-2.2.9] Retrieve method invoked via interceptor.

2010-10-12 Thread Gabo Manuel
Hi All, I am already able to retrieve the endpoint using the following: Exchange exchange = ...;// retrieved from message exchange.getEndpoint().getEndpointInfo().getName() I was wondering if it is possible to retrieve the actual service method invoked. Am doing all this at a registered out

Re: [cxf-2.2.9] Retrieve method invoked via interceptor.

2010-10-12 Thread Gabo Manuel
Hi Sergey, Thanks!!! Just to note: 1. OperationInfo opInfo = ex.get(OperationInfo.class); works for SOAP 2. Object nameProperty = ex.get(org.apache.cxf.resource.operation.name); works for ReST Just curious though. I just noticed that if the method is mapped to the root path (for ReST), e.

[CXF2.2.9] Failed to use semi-colon as delimiter

2010-06-23 Thread Gabo Manuel
Hi All, This is something we encountered by accident while trying to create a client for mobile. Given the following: @GET @Path(/Bar/) public Bar getBar( @QueryParam(barID) @WebParam(name=barID) long barID) throws Exception; I invoke the

Re: [CXF2.2.9] Failed to use semi-colon as delimiter

2010-06-23 Thread Gabo Manuel
;foo=321 then replace a Message.QUERY_STRING in a request filter by replacing ';' with '?' in the original query http://1.1.1.1/Bar/barID=1234;foo=321cheers, Sergey On Wed, Jun 23, 2010 at 8:04 AM, Gabo Manuel kman...@solegysystems.comwrote: Hi All, This is something we encountered

[CXF-2.2.8][JAXWS] Very very minor Issue with @XmlTransient

2010-06-04 Thread Gabo Manuel
Hi All, Not exactly an issue, more of, wouldn't it be better to just let it slide with a warning than throw an error? Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions @javax.xml.bind.annotation.XmlTransient annotation is found on two

Re: Newbie question

2010-05-31 Thread Gabo Manuel
Hi Ted, Try: message.getExchange() from an interceptor or PhaseInterceptorChain.getCurrentMessage().getExchange() for a more generic approach. If you really need access to the session, afaik, the Exchange object has a getter for the session. Not sure if this answers your question. Gabo

Re: [CXF-2.2.5][JDK1.5][Spring-2.5.5] WADL generator does not include response object

2010-05-11 Thread Gabo Manuel
On Mon, Mar 29, 2010 at 9:25 AM, Gabo Manuel kman...@solegysystems.comwrote: Hi Team, Given the following: @WebService(name=FooService, targetNamespace=http://foos.domain.com/;) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(*/xml) @Produces(text/xml) @Path(/Foos) public interface

Re: Passing data from interceptor to a service....

2010-04-27 Thread Gabo Manuel
Hi Steve, This is something I got from Dan before: You could do it without the injection since you are relying on CXF specific code making it non portable. Just do: PhaseInterceptorChain.getCurrentMessage().getExchange(). That should give you the exchange you need. Dan Hth. Gabo

Re: interceptors - message

2010-04-27 Thread Gabo Manuel
Hi Ernst, I do not think that is how Exchange works. My suggestion is for your client's out interceptor to place those values as header parameters. Then your server in interceptor to catch those headers and place it in the message's exchange. Hth. Gabo Ernst Oberortner wrote: i'm

Re: [CXF-2.2.5][JDK1.5][Spring-2.5.5] WADL generator does not include response object

2010-03-30 Thread Gabo Manuel
Anyone? :'( Gabo Manuel wrote: Hi Team, Given the following: @WebService(name=FooService, targetNamespace=http://foos.domain.com/;) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(*/xml) @Produces(text/xml) @Path(/Foos) public interface FooService{ @GET @Path

[CXF-2.2.5][JDK1.5][Spring-2.5.5] WADL generator does not include response object

2010-03-29 Thread Gabo Manuel
Hi Team, Given the following: @WebService(name=FooService, targetNamespace=http://foos.domain.com/;) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(*/xml) @Produces(text/xml) @Path(/Foos) public interface FooService{ @GET @Path(/) @WebMethod @WebResult(name=Foo)

Re: [CXF-2.2.5][JAVA-1.6] ReST on enums

2010-03-09 Thread Gabo Manuel
having no JAXRS parameter annotations) that can be linked to a corresponding element in the grammar section... cheers, Sergey On Tue, Mar 9, 2010 at 5:09 AM, Gabo Manuel kman...@solegysystems.comwrote: Hi All, Just would like to inquire how to make certain set of enums show in the wadl

[CXF-2.2.5][JAVA-1.6] ReST on enums

2010-03-08 Thread Gabo Manuel
Hi All, Just would like to inquire how to make certain set of enums show in the wadl. Given the following: @WebService(name=MyService, targetNamespace=http://some.domain.com/;) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(*/xml) @Produces(text/xml) @Path(/MyService) public

Re: JAXRS : WADL and external schemas

2010-02-08 Thread Gabo Manuel
Hi Sergey, Just to confirm. Both features will be included in 2.2.7 or are they already included in 2.2.6? Thanks again! Gabo Sergey Beryozkin wrote: I've updated the WADL Generator to support the inclusion of the external schemas. The following options are supported : 1. Schemas are

[CXF2.2.5][JAX-RS] On parameter type

2010-02-03 Thread Gabo Manuel
Hi All, A few questions: 1. On methods annotated as POST/PUT/DELETE, should the parameters be using @QueryParam or @FormParam. I see no compilation error in using both, but I see no change in the generated WADL. Actuallt, using @FormParam still yields the WADL generated as style=query 2. I

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-28 Thread Gabo Manuel
Hi Yong-Loh, I'll be giving this a shot: 1. The link you provided the following: We use Tomcat as the container. After deploying the war, when I try to hit the URL from the browser(http://localhost:8080/ServiceLayer/detail/), its giving the below warning. I am assuming that the folder

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-28 Thread Gabo Manuel
. It does not have any resource with path '/detail'. The other one with '/content' is working fine without even giving the parameters in the URL. Whats going wrong? Thanks Regards, Yong-Loh Gabo Manuel wrote: Hi Yong-Loh, I'll be giving this a shot: 1. The link you provided the following: We use

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

2010-01-28 Thread Gabo Manuel
Message - From: Gabo Manuel kman...@solegysystems.com To: users@cxf.apache.org Sent: Thursday, January 28, 2010 11:56 AM Subject: Re: [Fwd: Re: [CXF-2.2.5][Spring2.5.5][jre1.5] No mapped method] Hi Sergey, Thanks for the info on how to set up the debug. The result

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

2010-01-27 Thread Gabo Manuel
---BeginMessage--- 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:

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

2010-01-27 Thread Gabo Manuel
Gabo Gabo Manuel wrote: Subject: Re: [CXF-2.2.5][Spring2.5.5][jre1.5] No mapped method From: Gabo Manuel kman...@solegysystems.com Date: Thu, 28 Jan 2010 06:44:21 +

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

2010-01-24 Thread Gabo Manuel
Hi Sergey, Sorry for the troubles. It's a red herring, something to do with the securities set by our Sys Admin. I see the the transactions recorded as: 222.127.215.98 - - [25/Jan/2010:04:40:53 +] POST /MyService/?comment=test HTTP/1.1 401 0 222.127.215.98 - - [25/Jan/2010:04:40:53

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

2010-01-22 Thread Gabo Manuel
); After changing this to text/xml. POST and DELETE succeeded. Remaining issue: 1. Why was no exception thrown? 2. Why did it revert to GET? 3. PUT still requires that basic authentication, although I would be checking with our SysAdmin. I think this would be server specific. Gabo Gabo Manuel

Re: JAX-RS : initial WADL support

2009-12-10 Thread Gabo Manuel
Hi Sergey, Given he following: @WebService(name=MyService, targetNamespace=http://some.domain.com/;) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(text/xml) @Produces(text/xml) @Path(/) public interface MyService { @GET @Path(/search/) @WebMethod

Re: [CXF-2.2.5][Java1.5] Define namespace by configuration

2009-12-10 Thread Gabo Manuel
qualified, and would be more cumbersome in other cases as it would require users to list all the elements, but it would be easy to fix. XSLTJaxbProvider wiull also work both ways cheers, Sergey - Original Message - From: Gabo Manuel kman...@solegysystems.com To: users@cxf.apache.org Sent

[CXF-2.2.5][Java1.5] Define namespace by configuration

2009-12-09 Thread Gabo Manuel
Hi All, To explain the scenario, we provide back-end support for service providers. The end client therefore should have no knowledge we exist. Is there a way to configure from a text file the namespace to be used by the service classes and objects involved? This way there would be no need

Re: JAX-RS : initial WADL support

2009-12-07 Thread Gabo Manuel
Hi Sergey, Sorry about that. But you did get the idea tho. :D Is it the wadl:request element which has no links to the schema types ? If yes then it is expected when @Consumes is set to */*, given that it may even be that only a non-XML format which is accepted by a method... Shouldn't the

Re: JAX-RS : initial WADL support

2009-12-06 Thread Gabo Manuel
Hi Sergey, Re: prefix definition I tried to view page source, and the prefix definition is there. I think this behavior is just with firefox, did not need to do this with IE. Re: interceptor check for _wadl Yep, did the same after I sent the email before. Re: */* If I set the annotation

Re: JAX-RS : initial WADL support

2009-12-04 Thread Gabo Manuel
to the local name ? cheers, Sergey Gabo Manuel wrote: Hi Sergey, I am a bit confused. How do I supply the namespace needed? I thought the package-info.java would be enough. Yes, for now I would be limiting the consume to just text/xml. The initial intent was to take advantage of CXF's handling

Re: No message body writer found for response class : ArrayList

2009-10-25 Thread Gabo Manuel
Hi, Just a pair of questions, is the message subject the exception message encountered? And, is the MessageBodyWriter intentionally marked as List while the method response is Collection? I think making it the other way around should set it straight. Gabo rconline wrote: Hi Guys, Read

Re: [CXF2.2.3][JAX-WS][Code-First][RPC/Lit] Handling null response

2009-09-08 Thread Gabo Manuel
a nillable (or minOccurs=0) element in it. Dan On Fri September 4 2009 4:27:04 am Gabo Manuel wrote: Hi All, I developed a basic crud service. It is set to RPC/Lit. Everything works fine for valid transactions, i.e. those with non-null results. But when I try to retrieve a non-existing record

Re: JAXRS - Best way to retrieve path parameters in request handler

2009-09-03 Thread Gabo Manuel
Hi Kynan, I am not sure if this answers your question, I'll try: These are what I use for an inbound handler extending AbstractPhaseInterceptorMessage at phase Phase.RECEIVE 1. message.get(Message.BASE_PATH) would give you the path 2. message.get(Message.QUERY_STRING) should give you

[JAX-WS][CXF-2.2.3][Client] Unable to instantiate generated client

2009-09-01 Thread Gabo Manuel
Hi All, I generated client code using wsdl2java tool using the following command: wsdl2java -client http://domain/service?wsdl The service is also using CXF. But as I try to create the client service: Service_Service service = new Service_Service(new URL(http://domain/service?wsdl;); I get

Re: [JAX-WS][CXF-2.2.3][Client] Unable to instantiate generated client

2009-09-01 Thread Gabo Manuel
is what's found on the classpath. Dan On Tue September 1 2009 3:50:23 am Gabo Manuel wrote: Hi All, I generated client code using wsdl2java tool using the following command: wsdl2java -client http://domain/service?wsdl The service is also using CXF. But as I try to create the client service

Re: JAX-RS : initial WADL support

2009-08-26 Thread Gabo Manuel
actually link to some other non-WADL namespace. WADL processors should have no problems in processing 'prefix1'/prefix2', etc, 'tns' won't be even visible to them cheers, Sergey Gabo Manuel wrote: Hi Sergey, A few things: 1. I have both XmlRootElement and XmlType annotations in my object. I

Re: JAX-RS : initial WADL support

2009-08-25 Thread Gabo Manuel
Sergey Beryozkin wrote: Hi Gabo MyObject has @XmlRootElement with only a local name specified. Does package-info.java has a namespace specified too, in addition to the local name ? cheers, Sergey Gabo Manuel wrote: Hi Sergey, I am a bit confused. How do I supply the namespace needed? I

Re: JAX-RS : initial WADL support

2009-08-25 Thread Gabo Manuel
Hi Sadhana, Any chance that an out interceptor is enclosing the result? I think the generation of wadl is still treated as a regular transaction so all in and out interceptor chains apply. Gabo Sadhana Jain wrote: Hi Sergey, Thanks for the WADL generation support in CXF JAX-RS

Re: JAX-RS : initial WADL support

2009-08-24 Thread Gabo Manuel
link to a generated schema element thanks for raising this issue Sergey Sergey Beryozkin wrote: Hi Gabo MyObject has @XmlRootElement with only a local name specified. Does package-info.java has a namespace specified too, in addition to the local name ? cheers, Sergey Gabo Manuel

Re: JAX-RS : initial WADL support

2009-08-20 Thread Gabo Manuel
on the map cheers, Sergey Gabo Manuel wrote: Hi Sergey, Sorry for the late response. I may have misrepresented the method, it should be as follows: @WebService(name=MyObjectService) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(*/*) @Produces(text/xml) @Path(/MyObjects) public

Re: JAX-RS : initial WADL support

2009-08-19 Thread Gabo Manuel
Hi Sergey, Sorry for the late response. I may have misrepresented the method, it should be as follows: @WebService(name=MyObjectService) @SOAPBinding(use=Use.LITERAL, style=Style.RPC) @Consumes(*/*) @Produces(text/xml) @Path(/MyObjects) public interface MyObjectService{ @GET @Path(/)

Re: How to get the exception response?

2009-08-16 Thread Gabo Manuel
Hi Sergey, Actually, I want the opposite to happen in my case. I do not want the stacktrace to get included in the response. And at certain cases, hide the actual error altogether. An email to maintenance (me) would include the stacktrace. Mappers are enough for my needs right now. Gabo

Re: [JAXWS] Inquiry on jaxws:server

2009-08-16 Thread Gabo Manuel
Hi Dan, Thanks for the response. I'll see what I could do from the MediatorInInterceptor class you mentioned. But for now, I'll stay with the multiple tags. :) Thanks! Gabo Daniel Kulp wrote: On Thu August 13 2009 5:10:08 am Gabo Manuel wrote: Hi Guys, Just want to check

Re: JAX-RS : initial WADL support

2009-08-14 Thread Gabo Manuel
Hi Sergey, I just want to say that the service list page looks great! And the wadl display in firefox is perfect. Kudos!! Gabo Gabo Manuel wrote: Hi Sergey, I sent one directly to your iona address. Also, I'll take note of that. Good thing you mentioned that. It would have driven me

Re: Design questions CXF//my need

2009-08-14 Thread Gabo Manuel
Hi Nono, is there some documentation around on how to do them both together ? The only thing close to it I found is this blog entry : http://sberyozkin.blogspot.com/2008/07/rest-and-soap-united-in-cxf.html which makes it seems not straightforward. I am not sure how it is not as

Re: JAX-RS : initial WADL support

2009-08-14 Thread Gabo Manuel
Hi Sergey, By looking at the generated WADL, how does one tell if there is an expected payload with the method involved. If I have the following annotated method: @PUT @Path(/somepath/) @WebMethod @WebResult(name=result) public long insert( Object ap,

Re: Design questions CXF//my need

2009-08-14 Thread Gabo Manuel
. Then the blog entry is speaking of filters which can of afraid me :$ thanks again, digging in :) ++ 2009/8/14 Gabo Manuel kman...@solegysystems.com: Hi Nono, is there some documentation around on how to do them both together ? The only thing close to it I found is this blog entry : http

Re: [CXF2.2.3] On exception handling

2009-08-11 Thread Gabo Manuel
Hi Sergey, Sergey Beryozkin wrote: Hi Gabo I'm wondering, how I can reproduce it... I have two exception mappers in the system tests area, the first one catching an application exception, the second one a spring security exception. I've tried updating the status code in [1] from 500 to 401

Re: JAX-RS : initial WADL support

2009-08-09 Thread Gabo Manuel
of extending the implementation such that if the first matching resource has no matching operation then then next matching one, if any, is tried next. cheers, Sergey Gabo Manuel wrote: Hi Sergey, Sergey Beryozkin wrote: I'm not sure we can do it at the XML level, XML Parsers used

Re: JAX-RS : initial WADL support

2009-08-07 Thread Gabo Manuel
Hi Sergey, Just tested the recent release 2.2.3. I was able to retrieve the generated wadl using _wadl. Some comments: 1. The resources tags could use a new line after the closing tag for readability. Just a nice to have. 2. Example: Class 1 is annotated with @Path(/Service) Class 2 is

[CXF2.2.3] On exception handling

2009-08-07 Thread Gabo Manuel
Hi All, I created and registered an ExceptionMapper implementation as follows: public class RuntimeExceptionMapper implements ExceptionMapperRuntimeException{ private static Logger logger = Logger.getLogger(RuntimeExceptionMapper.class); public Response toResponse(RuntimeException

Re: JAX-RS : initial WADL support

2009-08-07 Thread Gabo Manuel
Hi Sergey, Sergey Beryozkin wrote: I'm not sure we can do it at the XML level, XML Parsers used by Firefox/IE would just most likely skip it as the ignorable whitespaces. HTML WADL view will also be done/available later on and it will make the whole WADL instance more readable, I was

Re: Handling CollectionJAXBElement returns via JAX-RS

2009-08-06 Thread Gabo Manuel
Hi Sergey, By default, pluralized XMLRootElement name attribute will be used as a wrapper, namespace-prefixed if needed, if no name attribute is there then a lower-case pluralized class name will be used. Just tested the latest release 2.2.3. The rest services handle the collections. Just a

Re: [CXF-2.2.2][JAXWS] Resource injection problem

2009-06-08 Thread Gabo Manuel
Hi Dan, Daniel Kulp wrote: You could do it without the injection since you are relying on CXF specific code making it non portable. Just do: PhaseInterceptorChain.getCurrentMessage().getExchange(). That should give you the exchange you need. Thanks!! That did exactly what I needed.

Re: [CXF-2.2.2][JAXWS] Resource injection problem

2009-06-07 Thread Gabo Manuel
Hi Sergey, If you use exchange to get to one of the message properties inside the application code then I believe you can use JAXWS WebServiceContext and CXF JAX-RS MessageContext extension... That is exactly the work-around I mentioned. However, it would be nice if I could reduce it to

Re: [CXF-2.2.2][JAXWS] Resource injection problem

2009-06-05 Thread Gabo Manuel
Hi Dan, Sergey, On Thu June 4 2009 4:46:25 am Ga @Resource private Exchange exchange; The main reason is that JAX-RS, by default, creates a new instance per request and thus is injected per request. Not sure what exactly I changed and I cannot trace it anymore, the Exchange

[CXF-2.2.2][JAXWS] Resource injection problem

2009-06-04 Thread Gabo Manuel
Hi All, Problem #1 : I am implementing a service with both WS and RS annotations. I encounter the following problem: @Resource private Exchange exchange; @GET @Path(/) @WebMethod @WebResult(name=object) public Object getObject(long id) {

Re: Strugging getting JAX-RS annotations working with CXF

2009-06-03 Thread Gabo Manuel
Hi Neale, This might be similar to this case: http://www.nabble.com/After-updating-to-2.1.4:-No-DestinationFactory-was-found-for-the-namespace-http:--schemas.xmlsoap.org-soap-http-td21952242.html or this:

Re: [CXF2.2][wsdl2java][RPC/Lit] Unable to create stubs

2009-05-26 Thread Gabo Manuel
Hi Dan, Just want to say thanks. I checked the latest release (2.2.1) and works like a charm. Gabo Daniel Kulp wrote: On Tue April 14 2009 6:14:29 am Gabo Manuel wrote: Hi Dan, Any update on this issue? I mean, if there is a work around (use Aegis data binding perhaps?)? Just

Re: [JAXRS][IE] subresource locator feature getting confused

2009-05-26 Thread Gabo Manuel
Hi Sergey, Sorry for the late reply. I have just tested 2.2.1 and it works for both IE and firefox. Thanks again! Gabo Sergey Beryozkin wrote: Hi Gabo Either way, I'll get it fixed for 2.2 (the issue highlighted by your original example) Not in a rush. :) I doubt the client is going to

Re: [JAXRS][IE] subresource locator feature getting confused

2009-05-26 Thread Gabo Manuel
Hi Sergey, Sorry for the late reply. I have just tested 2.2.1 and it works for both IE and firefox. Thanks again! Gabo Sergey Beryozkin wrote: Hi Gabo Either way, I'll get it fixed for 2.2 (the issue highlighted by your original example) Not in a rush. :) I doubt the client is going to

Re: JAXRS: Problems with POST

2009-04-16 Thread Gabo Manuel
Hi Vishal, In what way does the call to the second method fail? Does it get invoked? Are the parameters empty or null? Was the post request properly structured (you can check using tcpmon or some similar tool)? Gabo Vishal.a wrote: Hello All, I am trying to haave multiple POST methods

Re: [CXF2.2][wsdl2java][RPC/Lit] Unable to create stubs

2009-04-14 Thread Gabo Manuel
Hi Dan, Any update on this issue? I mean, if there is a work around (use Aegis data binding perhaps?)? Thanks in advance. Gabo P.S. Did you receive the attachment in my previous reply? Daniel Kulp wrote: On Tue March 31 2009 12:04:05 am Gabo Manuel wrote: Hi Dan, I saw your latest

Re: [CXF2.2][wsdl2java][RPC/Lit] Unable to create stubs

2009-03-31 Thread Gabo Manuel
Hi Dan, Daniel Kulp wrote: Ah. Didn't realize this was a java first thing producing that wsdl. The JIRA item just really mentioned running wsdl2java on the wsdl. Sorry I forgot to mention that in the subject. But yes, this is a java first service. Hmmm Any chance of getting the

Re: [CXF2.2][wsdl2java][RPC/Lit] Unable to create stubs

2009-03-30 Thread Gabo Manuel
be applying. The zip got stripped off by Apache's mailer. Could you file a JIRA and attach? Thanks! Dan On Wed March 25 2009 5:55:20 am Gabo Manuel wrote: Hi All, I have a service deployed using CXF and was planning to test it using a CXF client as well. Attached is a zip file containing

[CXF2.2][wsdl2java][RPC/Lit] Unable to create stubs

2009-03-25 Thread Gabo Manuel
Hi All, I have a service deployed using CXF and was planning to test it using a CXF client as well. Attached is a zip file containing the service and the wsdl generated. However, when I issue the following: D:\java\cxf\apache-cxf-2.2\binwsdl2java -ant -client -autoNameResolution -exsh true

Re: [CXF2.2][IPLANET6sp6][Spring2.0.6] spring unable to find namespace

2009-03-24 Thread Gabo Manuel
component has a file META-INF/spring.handlers, jaxws and jaxrs componets ship such files. It appears Spring can not find these files for some reasons on the classpath... Cheers, Sergey - Original Message - From: Gabo Manuel kman...@solegysystems.com To: users@cxf.apache.org Cc: Daniel Kulp dk

Re: [CXF2.2][IPLANET6sp6][Spring2.0.6] spring unable to find namespace

2009-03-24 Thread Gabo Manuel
Hi Sergey, Thanks for that. I did not notice that part. It was the cause of the problem. Sorry for the trouble. :( Its going through now. Gabo Sergey Beryozkin wrote: Hi, Actually, CXF 2.2 depends on Spring 2.5.x, while you.re using Sppring 2.0.6 (as the subject says) - can that be the

Re: [CXF2.2][IPLANET6sp6][Spring2.0.6] spring unable to find namespace

2009-03-24 Thread Gabo Manuel
mentioned the Spring version in the subject in the first email in this thread and we noticed it only today, LOL :-) Cheers, Sergey - Original Message - From: Gabo Manuel kman...@solegysystems.com To: users@cxf.apache.org Sent: Tuesday, March 24, 2009 12:19 PM Subject: Re: [CXF2.2][IPLANET6sp6

[CXF2.2] Runtime exception with no message

2009-03-24 Thread Gabo Manuel
Hi All, I encountered this during one of my test: Service.java: @GET @Path(/search/) @WebMethod public MyObjects getMyObjects( @HeaderParam(uri) @WebParam(name=searchObject) SearchObject so) { } SearchObject.java: @XmlRootElement

Re: [CXF2.2] Runtime exception with no message

2009-03-24 Thread Gabo Manuel
Hi All, Just to add, the exception does not have a cause. fault.getCause() returns null. :( Gabo Gabo Manuel wrote: Hi All, I encountered this during one of my test: Service.java: @GET @Path(/search/) @WebMethod public MyObjects getMyObjects( @HeaderParam(uri

Re: [CXF2.2][IPLANET6sp6][Spring2.0.6] spring unable to find namespace

2009-03-23 Thread Gabo Manuel
Hi Dan, Are you using something like dependency:unpack-dependencies or something to combine the various jars into a single jar/war? If so, that will DEFINITELY cause this. Nope. Unless it is used by something by default. I am not using any war. Check the stuff you are deploying for a

Re: [CXF2.2][IPLANET6sp6][Spring2.0.6] spring unable to find namespace

2009-03-22 Thread Gabo Manuel
Hi amine (or Salam?), Try the following annotations in your object declaration: import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; @XmlType(name=MyObject) @XmlAccessorType(XmlAccessType.PROPERTY)

Re: [CXF2.2][IPLANET6sp6][Spring2.0.6] spring unable to find namespace

2009-03-20 Thread Gabo Manuel
Hi Sergey, I have modified the beans.xml as follows: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:jaxws=http://cxf.apache.org/jaxws; xmlns:soap=http://cxf.apache.org/bindings/soap; xsi:schemaLocation=

[JAXRS][IE] subresource locator feature getting confused

2009-02-18 Thread Gabo Manuel
Hi All, I was testing the web service I have created and it works without a hitch when using HttpClient as ... well client. However, if I use I.E. to check (haven't tested fire fox or any browser yet), I encounter the following error: javax.ws.rs.WebApplicationException at

Re: Extracting HTTP authorization header

2009-02-18 Thread Gabo Manuel
Hi, I am not sure what you mean by all resource mappings but the following should work: @HeaderParam(Authorization) on a method parameter of a service implementation will extract the authorization header. Hth. Gabo CXFbanda wrote: Hi, I need to extract HTTP authorization header. I am

Re: [JAXRS][IE] subresource locator feature getting confused

2009-02-18 Thread Gabo Manuel
Hi Sergey, I'll wait for the fix. I cannot move the path annotation from the object to the service since it is possible that the object involve has a whole set of other fields. I also tried the following: //an extra method @GET @Path(/search/) @WebMethod public MyObjects

Re: Extracting HTTP authorization header

2009-02-18 Thread Gabo Manuel
that is better. Gabo Gabo Manuel wrote: Hi, I am not sure what you mean by all resource mappings but the following should work: @HeaderParam(Authorization) on a method parameter of a service implementation will extract the authorization header. Hth. Gabo CXFbanda wrote: Hi, I need

Re: [JAXRS][IE] subresource locator feature getting confused

2009-02-18 Thread Gabo Manuel
Hi Sergey, Let me clarify that Given: @GET @Path(/search/) @WebMethod public MyObjects getObjects(){ //this is the method that I was invoking... supposedly //using a list wrapper as advised in the user's guide return new MyObjects(new MyObject()); } @GET

Re: [JAXRS][IE] subresource locator feature getting confused

2009-02-18 Thread Gabo Manuel
Hi Sergey, I believe in your original post getObjects() had @Path(/), right ? Yes. I have three methods all in all / maps to getObject (an individual record) and getObjectProperty (an individual property of the record) /search/ maps to getObjects (a list of records) Either way, I'll get

Re: [JAX-RS] Fault handling

2009-02-18 Thread Gabo Manuel
Hi Sergey, I checked your ExceptionMapper. I'm not able to find that much difference other than I do some email notifications before returning the response object. :'( Would me using the snapshot got anything to do with it? I got lost somewhere after this:

Re: [OutInterceptor][HttpHeader] Adding Authorization-Info entry to http header

2009-02-17 Thread Gabo Manuel
Hi Sergey, so I'll try to write one and see what happens. Sorry for the late reply. I tried this again with the recent snapshot and the headers are still lost unless I abort the interceptor chain. The implementation I have extends AbstractPhaseInterceptorMessage. Phase is at

Re: [JAX-RS] Fault handling

2009-02-17 Thread Gabo Manuel
=\+RestHandlerUtility.generateNonce(base_path)+\); logger.debug(out message headers: + map); logger.info(response: + response.getEntity()); As of this point, the entity still does not contain the Result tag Again, my thanks. Gabo Gabo Manuel wrote: Hi Sergey, Can you also do System.out.println

Re: [JAX-RS] Fault handling

2009-02-17 Thread Gabo Manuel
lost)? By the way, MultivaluedMap has Lists as values, so if you do prefer to reuse the code which deals with Lists then you just use MultivaluedMap.put(), add() is a utility method which creates a List if it's not there... Thanks, Sergey -Original Message- From: Gabo Manuel [mailto:kman

Re: [JAX-RS] Fault handling

2009-02-17 Thread Gabo Manuel
Hi Sergey, Is it possible to specify a custom provider from an ExceptionMapper implementation? Or maybe a work around to remove the tags? I was hoping to avoid the chain-abort work-around. Again, my thanks. Gabo Sergey Beryozkin wrote: Hi Gabo Many thanks for creating the JIRAs.

Re: [JAX-RS] Fault handling

2009-02-16 Thread Gabo Manuel
Hi Sergey, Can you also do System.out.println(response.getEntity().toString()) in your mapper, before returning ? 2009-02-17 06:25:53,024 | INFO [l0-0][ SolegyFaultMapper] entity: The server encountered some error. Involved personnel have been notified of this incident. Please

Re: [JAX-RS]Http Digest Authentication support?

2009-02-13 Thread Gabo Manuel
would be very welcome. Regards Gabo Manuel wrote: Hi All, I am currently trying to implement a ReST service and was hoping to put some security to it. Afaik, WS-security is already not an option since I am not exposing a SOAP service (am I wrong here?). I tried searching the forums for some

Re: [JAX-RS] Fault handling

2009-02-13 Thread Gabo Manuel
Hi Sergey, Thanks for the quick reply. Well, I would be using the same set of providers for what I am working on. But yes, I'll keep that in mind. I'm not sure which Result tag you're referring to - I couldn't find any references on the wiki. I keep getting this in the tcpmon:

[JAX-RS] Fault handling

2009-02-12 Thread Gabo Manuel
Hi All, I was just wondering if there is a possibility to acquire the actual Exception object, and maybe even replace it with another Exception through interceptors. I was already able to change the response code (400 or 500) depending on whether the exception was a checked exception or

Re: [JAX-RS] Fault handling

2009-02-12 Thread Gabo Manuel
- From: Gabo Manuel kman...@solegysystems.com To: users@cxf.apache.org Sent: Thursday, February 12, 2009 10:11 AM Subject: [JAX-RS] Fault handling Hi All, I was just wondering if there is a possibility to acquire the actual Exception object, and maybe even replace it with another Exception

Re: [JAX-RS][PathParam] object field injection

2009-02-03 Thread Gabo Manuel
Hi Sergey, Just to note down what I did from your suggestions. Currently, I am using 2.2 snapshot. I have modified the code as follows: 1. I have defined the method as follows: @GET @Path(/{search:search.*}) public WSAccounts getAccounts( @PathParam(search)

Re: JAXRS documentation

2009-02-03 Thread Gabo Manuel
Hi Sergey, Well done! :D Some very minor things I noticed while studying: 1. Under Filters : InputStream is = message.getContent(InputStream.class); message.setContent(new MyFilterInputStream(is)); message.put(*m.put(*Message.ACCEPT_CONTENT_TYPE, custom/media); The m is not a declared

Re: [JAX-WS][JAX-RS][JAVA-FIRST] Problem in the auto-generated wsdl

2009-02-02 Thread Gabo Manuel
for the assistance. Gabo Manuel Sergey Beryozkin wrote: Hi Gabo Both snapshots have a fix. Any problems that you see ? Cheers, Sergey - Original Message - From: Gabo Manuel kman...@solegysystems.com To: users@cxf.apache.org Sent: Friday, December 12, 2008 7:50 AM Subject: Re: [JAX-WS][JAX-RS

Re: [JAX-WS][JAX-RS][JAVA-FIRST] Problem in the auto-generated wsdl

2009-02-02 Thread Gabo Manuel
Hi Sergey, Sorry for that. Ignore that email. It is working now. Old versions of cxf and jsr were loaded in the class path. My mistake. :) Gabo Gabo Manuel wrote: Hi Sergey, I'm sorry it took this long for a response. I tried using CXF2.2 snapshot. All is working fine except

Re: [JAX-RS][PathParam] object field injection

2008-12-14 Thread Gabo Manuel
Hi Sergey, It's correct. Given that you're running a 2.1.4-snapshot, you may want to try @Path(value=/search/{params}, unlimited=true) Is there a way that the excess/pattern is not captured? Also, I think the keyword is limited, I'm assuming the value would be false.

Re: [JAX-WS][JAX-RS][JAVA-FIRST] Problem in the auto-generated wsdl

2008-12-12 Thread Gabo Manuel
Hi Sergey, Thanks for the update. I am currently testing 2.1.4-snapshot and the annotations are not messing with each other now. :D I'll try and test the 2.2-snapshot later on. Gabo Sergey Beryozkin wrote: Hi Gabo Both snapshots have a fix. Any problems that you see ? Cheers, Sergey

Re: [JAX-RS][PathParam] object field injection

2008-12-12 Thread Gabo Manuel
, that is the case. I did not annotate anything with bar. I'll run the changes again. but I might be able to respond monday. Again, my thanks. Gabo Sergey Beryozkin wrote: Hi Gabo Gabo Manuel wrote: Hi Sergey, Any specifics on when the fix regarding regex would be uploaded to any snapshot

Re: [JAX-RS][PathParam] object field injection

2008-12-12 Thread Gabo Manuel
Hi Sergey, Any specifics on when the fix regarding regex would be uploaded to any snapshot? Also example I have the following annotations: @GET @Path(/search) @ProduceMime(application/xml) public Accounts getList And I try to access /search/additional/path/here, if no other

Re: [JAX-RS][PathParam] object field injection

2008-12-12 Thread Gabo Manuel
Hi Sergey, I am currently testing 2.1.4-snapshot. Gabo Gabo Manuel wrote: Hi Sergey, Any specifics on when the fix regarding regex would be uploaded to any snapshot? Also example I have the following annotations: @GET @Path(/search) @ProduceMime(application/xml) public

Re: [JAX-WS][JAX-RS][JAVA-FIRST] Problem in the auto-generated wsdl

2008-12-11 Thread Gabo Manuel
, can you put a breakpoint in AbstractJAXBProvider.isReadable, which JAXBElementProvider extends ? Cheers, Sergey Again, thanks for your time. Gabo Manuel No virus found in this incoming message. Checked by AVG

Re: [JAX-RS][PathParam] object field injection

2008-12-05 Thread Gabo Manuel
Hi Sergey, That's another thing I am a bit worried about. Which trail/version should I be using. It is a new project, so somewhat clean slate so to speak. Do you guys plan to support 2 (or more?) different version trails for a long time? I'm thinking of using the version which includes the

  1   2   >