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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/")
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
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'.
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
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
38 matches
Mail list logo