Oscar G. Rodriguez

+ Follow
since Nov 05, 2011
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Oscar G. Rodriguez

Hi Tim,

the server doesn't use cxf, only the client.

The service works ok, every day o we process thousands f request but sometimes appears a few of them that have this error. I have no problem with the error in the client side, I only want to avoid the error in the server side.

As I said, I know the request is correct because client is logging it, and if I send it to the service by SoapUI it works. It's not a data problem, and I think that neither request size because I have bigger request that work.

It's like the request arrives to the server and it can't identify it as a soap request, but I can't see the whole request in the server, only the final tag in the localhost_access_log file. I don't know how I can log it in the server or why it is happening. I don't know if it's only a coincidence, but with the dump property I haven't this problem, maybe the dump introduce a needed delay or avoid a problem with a buffer.

10 years ago

I'm using tomcat 7.0.42 to process several jax-ws webservice.

Sometimes requests are not processed, and the only info about it in tomcat that I've found, is the localhost_access_log file. - - [26/Apr/2014:22:11:59 +0200] "POST /app/Service HTTP/1.1" 200 778 - - [26/Apr/2014:22:12:00 +0200] "POST /app/Service HTTP/1.1" 200 778 - - [26/Apr/2014:22:12:00 +0200] "nvelope>POST /app/Service HTTP/1.1" 501 1155

In client log (cxf client) this is the error

PhaseInterceptorChain [ActiveMQ Session Task-956] |: Interceptor for {http://www.vorwerk.com/SASO/TransactionStatusNotify}ITransactionStatusNotifyServiceService#{http://www.vorwerk.com/SASO/TransactionStatusNotify}notifyTransactionStatus has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <html><head><title>Apache Tomcat/7.0.42 - Informe de Error</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>Estado HTTP 501 - El Metodo e>POST no esta implementado por este servlet para esta URI</h1><HR size="1" noshade="noshade"><p><b>type</b> Informe de estado</p><p><b>mensaje</b> <u>El Metodo e>POST no esta implementado por este servlet para esta URI</u></p><p><b>descripción</b> <u>El servidor no soporta la funcionalidad necesaria para rellenar este requerimiento.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.42</h3></body></html>
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:79)

The tomcat message says that

Status HTTP 501 - Method e>POST is not implemented by this servlet for this URI

type Status report

messagge Method e>POST is not implemented by this servlet for this URI

description Server doesn't support the functionality to fullfill the requirement

Sorry about the transalation, but I didn't find the english message.

It happens in two different services, and if I take the request from the client log and send it with SoapUI it works ok. It's like the request is truncated.

Tomcat is responding a HTML error about wrong service, but the request and service are OK. I don't know if it is coincidence, but for a month we started tomcat with the Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true property to catch more info about the error and we didn't have it, when we removed the property, we have this error again.

Any idea about what is happening or how we can look for more info?

Thanks and regards.
10 years ago
I know, but how I can force the container to create this thread?

I receive a webservice request and after a delay and some internal process, I send a webservice request to other server. This is the function of the new thread.

I think about to use a queue (activeMQ), but I don´t want to add it only for this process.

Any idea to avoid my forced thread?

Thank you Steve, the previous code was a test to check the method, I was creating the Thread with the Runnable object, but I was calling thread run mehod instead start one !!!

You opened my eyes

I have a JAX-WS webservice that has to start a long process that is not required for the webservice response.

I tried to create a new Runnable thread and start it from the webservice method, but it waits for the runnable thread to finish before send the response.

This is an example, where Hilo is a Runnable class

public class Calculator implements CalculatorWs {

public int sum(int add1, int add2) {

Hilo h = new Hilo();
return add1 + add2;

public int multiply(int mul1, int mul2) {
return mul1 * mul2;

I need to send the response before Hilo finishes. What am I missing?


I'm trying to develop a test webservice without the sun-jaxws.xml, I'm using Tomcat 7 as is, adding the jaxws-rt 2.2.7 dependency in the eclipse project by maven. The dynamic web module facet is the 3.0.

The SEI is

It works without the web.xml file, but not without the sun-jaxws. The request always have a 404 response, only works with the sun-jaxws.xml.

The url may be http://localhost:8080/helloservice/HelloService?wsdl, attending to the example of


Maybe the url is wrong or I need another annotation, I also found this explanation


Of course, with the use of jax-ws annotations, even configuration sun-jaxws.xml can be made optional making it completely descriptor free, but that requires specifying a default url-pattern like in JSR-109 or custom pattern like in Jersey REST services, in the JAX-WS specification.

but I don't know how to specify the url-pattern by annotation.

11 years ago
The problam was the dependency


was the correct one.

I'm trying to test EJB with WASCE embedded container, JDK 7 and EJB 3.1, but it doesn't work for me.

I have a normal faceted EJB project, and the pom.xml with the dependency

The EJB is a simple Stateless one with annotations, and the test class (in the same project) is

When I execute this the EJBContainer is null, without errors.

I think that I miss some configuration files, but I didn't see anything in the examples that I found.


I'm working with a PowerPC 7 machine, with Suse Server ppc64.

I know that in OpenSuse the default VM is OpenJDK, but in our installation (another person installed it) there is any VM operative, only some directories (/opt/ibm) with IBM SDK 5 and 6 that works.

We tried to install the Oracle 1.7JDK64 rpm package, and we got this error

package jdk-1.7.0_11-fcs.x86_64 is intended for a x86_64 architecture

Does it mean that there is not an oracle jdk/jre version for ppc? We must use the IBM SDK?

The project uses Spring, CXF, ActiveMQ and MuleESB, then I don't know if its 100% compatible with the IBM VM. I know that OpenJDK fails.


11 years ago
Ok, thanks a lot.

I understand that i was mixing both ways, XML and annotations.

If I want to inject a String property by @Autowire in property (only for study purpose) I need to create a String Bean like

And when I defined the required=false it worked because I was mixing both at same time, the annotation way didn't inject anything but not fail, and the XML did.

My confussion came because I didn't see a clear way to create a String bean, and I supposed that I had to use the property tag.
11 years ago

I'm learning Spring from the 3.1 spring_tutorial.PDF, and in @Autowired on Properties section we can read

I've understood that it works without the setter method, then I've tried

without/with setter method, but always throws an exception

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [java.lang.String] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

If I use the @Autowired(required=false), the msg property is injected if it's defined in the xml, and I have no exception if I comment it, but only with the setter method.

When I comment the setter method I obtain

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'msg' of bean class [BeanTest]: Bean property 'msg' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

It only works with defined bean objects but not with String? Why it works with required=false? It's needed the setter method?

I'm wrong or it is an issue?

11 years ago
Well, I don't know if I wrote what I want to said, my English isn't very good.

I think that he ought to use toCharArray(), another one was me because I understood that you said the same.

Sorry for the misunderstanding.
12 years ago
Another one that thinks you have to use toCharArray(), but if you don't want to, you can try with

String [] p=args[0].split("");

You'll obtain the String[], but the first element will be "".
12 years ago
Hi Peter,

thanks for your comment and sorry for my English, it isn`t as good as I'd like.

Well, I've tried to explain that with an external maven installation, I can change the .m2 location, but not from eclipse plugin, even using the same settings.xml.

I change the settings.xml, pointed by "Global settings for embedded installation" for my modified one.

Finally, I add my external maven to eclipse maven plugin installations, and then it works.

I imagine that the settings.xml that the embedded maven uses, can't be modified by pointing to another one from "Global settings for embedded installation"

This is the configuration that works for me, but if I mark the embedded one, it uses the ~/.m2 folder.

12 years ago
Hi everybody.

I'm trying to change the default location of local repository (~/.m2) to a partition.

First, I added <localRepository>I:\.m2\repository</localRepository> in this file.

I change the settings.xml, pointed by "Global settings for embedded installation" for my modified one.

After this, I pointed in Eclipse > Preferences > Maven > User Settings > Local repository (From merged user and global settings) to my new repository path, and even created a user settings.xml at my new location.

I could achieve this with a external maven (3.0.3v), and I'm using the same settings.xml for the maven embedded (3.0.2v), but it didn't work in eclipse. When I do a maven install goal, my project goes to the default repository ~/.m2

Anybody knows what is wrong?


Edit: Well, finally I did it, but I have to add my external maven to Maven > Installations. Isn't there any way to do it without a external Maven?
12 years ago