Stefan Geelen

Ranch Hand
+ Follow
since Nov 19, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stefan Geelen

All,

I need to delete some old directories (this means which are older than 1 hour) but the code below refuses to do this.
It is difficult to 'debug' and see where the problem is.

Any suggestions ...

11 years ago
Hi Jeanne,

thanks for responding.

I need to load the values into a MySQL table, and afterwards check if the 3rd value is 'true' or 'false'.

I'll check the forEach task but if you have other ideas please let me know.

Regards,

S.
12 years ago
Hi,

I can't seem to find an example to read the last line (of a log-file) , which is a csv file, and to split the various fields into a property.

I have following sofar:

CSV example:
1236101844039,355,true,25900




I can load the last line into a property ${src.file.tail} and then I would like to split the fields into a property, so that for example:

${prop1} = 1236101844039
${prop2} = 355
${prop3} = true
${prop4} = 25900

Has anyone an example how this could be done ?

Regards,



12 years ago
Hi,

I made a new context (webapp) in our Tomcat enviroment (version 6.x).

In the WEB-INF/classes folder, I made a logging.properties file, with following content:



Now I would like to have the directory pointing dynamically to the context's log folder.

Question: Ho do I do that ?

I could not find a variable that point to the context's folder.

Can I use a variable defined by Tomcat so I can define it as:

org.apache.juli.FileHandler.directory = ${whatVariableToUse?}/logs

Any one any idea ?

Thanks already.



12 years ago
All,

I have a strange problem with following:

A created a POJO class with following method:



I generated the WSDL automatically with java2wsdl

For info: The client is also Axis2

Everything works fine if I pass values for the 3 variables from the client to the server, the webservice body is like following:



But when only the documentID is passed, the body is:



and I get following error

ERROR: DocumentURI has not been defined: null

(This is an error the program throws when no DocumentID is defined).

When I do some debugging it seems that:
- the fieldnames array has 1 value, the value of the documentURI !?
- the fieldvalues array is empty
- the documentURI is null.

Isit not possible to pass empty arrays to a webservice ?

Is this a bug or am I doing something wrong ?

Let me know if you need more info.

Already thanks for reading this message.

Regards,

Stefan



12 years ago
Me again,

problem solved, I forgot to save the axis2.xml file.

It works now.
12 years ago
Hi,

I followed the instructions (Axis2) and the applet shows in the browser. No problem sofar (port 5001 - like in the guide).

When I invoke my webservice (port 8080) nothing happens in the monitor.

Do I need to do something more to have the monitor working ?

I need to have the monitor working to solve my other problems.


Below the axis2.xml phases part (dit I miss something ?)



Thanks for any reply
12 years ago
Me again,

adding a parameter to the method solves the problem, so it becomes:



I added the dummy parameter.

I get another error but that seems that the webservice cannot extend HttpService. I'll remove that one, giving me another problem that I'll discuss in another topic.
12 years ago
I checked the internet and there were some posts of people having the same problem but none the answer

The problem comes up with following method exposed as webservice:

public String getContextPath() {
return this.getServletContext().toString();
}

and defined in the services.xml as:



When genering the client stubs using wsdl2java I get following warning:



Is this normal behavior ?

Anyone some idea how to solve this ?

Thanks
12 years ago
Hi,

I need to be able to fork my own customer task, something like this:



So the custom java class I made (that supports the custom <mill> task) should run in its own JVM.

Should the task implement an interface ?
I already browed through the Ant source code but could not find how to do it.

Any insight or code example is very appreciated !

Regards,

Stefan
14 years ago
Hi,

I need to use secure ftp in an Ant target

Seems that the <ftp> task only support non-secure ftp.

Does anyone know an extension to use secure ftp with Ant ?

Regards,

Stefan
15 years ago
Hi, thanks for the solution.
16 years ago
Hi,

that was just a typo error when entering the message. It is correct is my Editor .

I have the impression that NetBeans is wrong here. Can someone else try this in another editor ?

Stefan
16 years ago
Hi ,

I have following char[] array (partially reproduced:



The problem is that my compiler (NetBeans) gives an ' unclosed character literal' error for the values 096 and 097, but not 100 and 101.

Any idea why ?

Regards
16 years ago
Hi,

thanks for the reply. We did in the past some testing on double to string and the algorithm was indeed much faster than the toString method in the Double class (in SDK 1.3)

Now we want to convert the doubles to float in the application (as it only consumes 4 bytes instead of 8 for a double) and where wondering if there was a FloatToString algorithm like the one in the article (follow the URL).

We do not really have any performance problem, we just do not want to lose performance when switching to floats.

Stefan
16 years ago