Error: Could Not Send Message

2010-01-28 Thread Suneet Shah
Hello: I have Spring MVC app that works with my service layer that is built using CXF. It works fine for several hours and then I start to get Socket Time Out errors or Could Not Send Messages. The exception is below. This is running in JBoss 4.2.3. Any thoughts on what could be wrong? Than

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

2010-01-28 Thread Yong-Loh
Hi Sergey, Thanks a lot for the inputs provided. This issue got resolved. Problem is with the annotations used in ContentProcessImpl. I have used QueryParam annotations in the method signature in ContentProcessImpl. I think, it would be better if the issue is logged somewhere why a particular

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

2010-01-28 Thread Gabo Manuel
Hi Sergey, Just a few follow up questions. 1. Is there a way for me to tell CXF that this sub-resource locator method should only accept GET? Atleast apart from throwing an exception from inside the method. 2. How come this is not encountered in Jetty? Maybe some settings in Jetty could be

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

2010-01-28 Thread Sergey Beryozkin
Just FYI, I've changed "OnewayMessage" to "OnewayRequest". Also added a @Oneway annotation and updated the client api to support it too (web clients, proxies), so it should work over HTTP... CXF runtime has just so much code waiting to be reused :-). I'll tap into its async code later on Sergey

Re: Wrong Content type set in REST web services

2010-01-28 Thread Vincenzo Vitale
yes, not touching the header at all doesn't change the result. On Thu, Jan 28, 2010 at 5:51 PM, Sergey Beryozkin wrote: > Hi > > I'll need more info please. I belive you're writing some custom headers > directly into HttpServletResponse ? Will you see text/html if you don't > write directly to th

Re: Wrong Content type set in REST web services

2010-01-28 Thread Sergey Beryozkin
Hi I'll need more info please. I belive you're writing some custom headers directly into HttpServletResponse ? Will you see text/html if you don't write directly to the HttpServletResponse ? Sergey Hi, I have a service exposed like this: @POST @Path("/login") @Produces( { MediaTyp

Re: How to strip down the namespace generated by JAXb

2010-01-28 Thread Sergey Beryozkin
Hi there're few options, see [1], just fixed few typos... 1. register a custom JAXBElementProvider's outTransformElements. Ex, if you have http://books"/> going on the wire then you can can have the following pair in outTransformElements : {http:books}books : books // and for other elements i

How to strip down the namespace generated by JAXb

2010-01-28 Thread SaravananRamamoorthy
Hi Experts, I have a scenario that the application calls the webservice client and the result is rendered using JAX RS. I have created webservice client using wsdl2java, the generated files having the response bean. When I call the webservice , I can able to get the response and tried to use J

Wrong Content type set in REST web services

2010-01-28 Thread Vincenzo Vitale
Hi, I have a service exposed like this: @POST @Path("/login") @Produces( { MediaType.TEXT_HTML }) @Consumes( { MediaType.APPLICATION_FORM_URLENCODED }) public void login(@FormParam("username") String username, @FormParam("password") String password, @Fo

RE: Optional encryption/decryption

2010-01-28 Thread Siarhei Kaneuski
Hi Dan, Thank you for pointing out WS-SecurityPolice option. I need some time to dive in it, it's definitely more complicated than wss4j interceptors configurations. Thanks, Siarhei -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: Thursday, January 28, 2010 4:10 P

Re: JAX RS - how to publish endpoint using cxf

2010-01-28 Thread Sergey Beryozkin
Hi thanks for confirming it, great stuff ! Sergey - Original Message - From: "SaravananRamamoorthy" To: Sent: Thursday, January 28, 2010 2:31 PM Subject: Re: JAX RS - how to publish endpoint using cxf Hi Sergey, Thanks for your continous support. Its works fine for me. Now I c

Re: JAX RS - how to publish endpoint using cxf

2010-01-28 Thread SaravananRamamoorthy
Hi Sergey, Thanks for your continous support. Its works fine for me. Now I can able to run JAX RS through the endpoint. Also able to create webservice client and call throiugh JAX RS. Thank you once again for your support. Regards Saravanan R Sergey Beryozkin-2 wrote: > > Hi, > >> >> Hi

Re: Optional encryption/decryption

2010-01-28 Thread Daniel Kulp
Actually, when I thought about this some more, with the WS-SecurityPolicy route, you can tag the policies as optional. Thus, the policies on the incoming side wouldn't need to be asserted as they'd be completely optional. Dan On Wed January 27 2010 5:44:40 pm Daniel Kulp wrote: > One "optio

RE: Optional encryption/decryption

2010-01-28 Thread Hannes Angst
You can catch the exception anyway, and check whether it was thrown because of a missing enc. On Wed January 27 2010 4:09:54 pm Siarhei Kaneuski wrote: > Hi Werner, > > First of all, thank you for clarification. The behavior was designed in > this way - I get it. > > What WSS4J could do (when

Dynamic Client dumping messages to catalina.out

2010-01-28 Thread Vinicius Carvalho
Hello there! We have a dynamic service client on our system, and since we introduced the CXF Jars, we are getting some strange messages to the catalina.out: Jan 28, 2010 11:24:48 AM org.apache.cxf.configuration.spring.ConfigurerImpl getBeanName INFO: Could not determine bean name for instance of

Re: Jaxb question

2010-01-28 Thread Vinicius Carvalho
Thanks I solved this by doing: On Wed, Jan 27, 2010 at 8:25 PM, Daniel Kulp wrote: > On Wed January 27 2010 11:44:10 am Vinicius Carvalho wrote: >> Hello there! How can I inform the org.apache.cxf.jaxb.JAXBDataBinding >> w

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

2010-01-28 Thread Sergey Beryozkin
Hi I can not reproduce it. You haven't send the source so this is the source I've come up with : @Path("/") public interface ContentProcess { @GET @Path("/content/") @Produces("application/xml") public Book getContent(@QueryParam("address") String address); @GET @Path("/detail/") @Produ

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

2010-01-28 Thread Yong-Loh
Hi Sergey, I have to leave right now. Please let me know your findings so that I can work on them tomorrow morning when I come in. Thanks & Regards, Yong-Loh Yong-Loh wrote: > > Hi Sergey, > > I have uploaded it. I can see a link samplewar.zip in the earlier post. > > Are you not able to se

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

2010-01-28 Thread Yong-Loh
Hi Sergey, I have uploaded it. I can see a link samplewar.zip in the earlier post. Are you not able to see the link? Thanks & Regards, Yong-Loh Sergey Beryozkin-2 wrote: > > Where is the link to the uploaded war ? > > thanks, Sergey > >> >> Hi Sergey, >> >> We are using the CXF latest versi

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

2010-01-28 Thread Sergey Beryozkin
HI Gabo You may recall that this is exactly what I suggested was happening in the very first reply in this thread. Basically, you have various resource methods (which are not subresource locators) annotated with text/xml. You have a POST application/xml request coming in and thus neither if th

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

2010-01-28 Thread Sergey Beryozkin
Where is the link to the uploaded war ? thanks, Sergey Hi Sergey, We are using the CXF latest version..i.e 2.2.6. I have uploaded the sample war(Just need to add the required jar files in the lib folder to make it work). I have a resource class with two GET methods(one with the path /conten

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

2010-01-28 Thread Gabo Manuel
Hi Sergey, To answer my own question, adding @Consumes("text/xml") in the MyObject class solves the issue in tomcat. Just an fyi. This will suffice for now on my side. Thanks!! Gabo Gabo Manuel wrote: Hi Sergey, Thanks for the info on how to set up the debug. The result: In JAXRSUtils.fi

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

2010-01-28 Thread Yong-Loh
Hi Sergey, We are using the CXF latest version..i.e 2.2.6. I have uploaded the sample war(Just need to add the required jar files in the lib folder to make it work). I have a resource class with two GET methods(one with the path /content and the other with /detail). The one with /content is wo

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

2010-01-28 Thread Sergey Beryozkin
HI Gabo You may recall that this is exactly what I suggested was happening in the very first reply in this thread. Basically, you have various resource methods (which are not subresource locators) annotated with text/xml. You have a POST application/xml request coming in and thus neither if th

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

2010-01-28 Thread Sergey Beryozkin
Hi There's no need to upload the complete war application. Please create a test war which will include : WEB-INF/web.xml WEB-INF/beans.xml WEB-INF/classes/Content class (empty class will do, just add the annotations there if any which are actually used) WEB-INF/classes/ContentProcess interfac

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

2010-01-28 Thread Gabo Manuel
Hi Sergey, Thanks for the info on how to set up the debug. The result: In JAXRSUtils.findTargetMethod, the candidate that gets selected is the subresource locator: getMyObjectProperty(). This method in turn invokes the method getMyObject(). As to why, do I have to specify the Consumes and Pro

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

2010-01-28 Thread Yong-Loh
Hi Sergey, I am not able to upload the war file(its of 9MB). It says file is too large. How do I attach it to JIRA? Thanks & Regards, Yong-Loh Sergey Beryozkin-2 wrote: > > Hi > > What CXF version you're using ? The reason why this method is not selected > should've been logged (definitely s

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

2010-01-28 Thread Gabo Manuel
Hi Sergey, Almost: "but in the method it suddenly becomes GET" the method remains as PUT/POST at the method level. I checked the logs, there is no presence of either _method or Override in the URI and header respectively. I'll try to follow the steps to setup eclipse. Gabo. Sergey Beryozk

Re: Regarding fault section in WADL..

2010-01-28 Thread Sergey Beryozkin
Hi You can not do it in WADL. Application exceptions may be mapped to various response types so at the moment you can only have a WADL instance listing possible response/error codes for individual resources which is not possible to implement in a java-first case. You can use a CXF JAXRS @Descri

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

2010-01-28 Thread Sergey Beryozkin
Hi Gabo according to this table, what happens is that when you specify a Content-Type (application/xml) which does not match the one used by the resource class (text/xml), you see a @GET annotated getMyObject() invoked for borth PUT and POST invocations on tomcat/iplanet but not on jetty. Moreo

setting cxf property on "3rd party service" call

2010-01-28 Thread Marc Logemann
Hi, Daniel was so nice to get me informed that you can disable jaxb-validation with "set-jaxb-validation-event-handler" -> "false" Now i want to apply that for a client call. But i cant apply this to a because i dont have that service under control (means, its not my service) Here is my cli

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-28 Thread Gabo Manuel
Hi Yong-Loh, I did not use the beans.xml part. I just used a server class similar to the samples in the downloads: JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); sf.setResourceClasses(MyService.class); sf.setResourceProvider(MyService.class, new Singl

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-28 Thread Yong-Loh
Hi Gabo, That was another issue where we had problem during deployment. Now, the deployment is done successfully. We dont have that serviceexception. Its really wondering how come one path works and the other does not. Can we get any clues looking at the findTargetMethod in JAXRSUtils class? B

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

2010-01-28 Thread Sergey Beryozkin
Hi What CXF version you're using ? The reason why this method is not selected should've been logged (definitely starting from 2.2.5), can you set a log level to DEBUG and see what is going on. I feel there's some important detail which is missing. I do not see any reason why @Path("/detail/")

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-28 Thread Gabo Manuel
Hi Yong-Loh, I made a simple implementation class based on the interface you posted. It works, i.e. content and detail paths are included in the wadl and could be invoked via firefox browser. I had to add @Consumes("text/xml") in the class declaration though. Although this fixed the client sid

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-28 Thread Yong-Loh
Hi Gabo, First Question: Yes. The serviceLayer folder exists and it has WEB-INF and other stuff as well. Second Question: I have tried passing the three parameters as well. But, no luck. As suggested by David, I have looked at the wadl address. It does not have any resource with path '/detail'.

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 Serv

Re: CXF with JAX-RS : ServiceException during deployment

2010-01-28 Thread Yong-Loh
Hi Sergey, We are stuck with the below issue which has already been posted on the forum. Below is the link. Request your inputs in resolving the issue. http://old.nabble.com/CXF-with-JAX-RS-%3A-No-operation-matching-request-path--detail--is-found-tt27350904.html http://old.nabble.com/CXF-with-J