That is a WARN level output. It's stating that you have not setup any security for your app (most likely you are using Seam 2.1.x).
as far as killing a process from a Seam component, I've never even thought of or heard of that for a Seam app. That's a strange requirement IMO.
There's a way to terminate the running JVM:
but you're trying to kill a specific process. You may need to use JNI but not sure...
im pretty sure that ¨kill -9 2447¨is triggering the warning
because if i change that line of code to
there is no warning in the log and the folder gets created.
p=Runtime.getRuntime().exec("kill -9 2447¨);
i do get the warning and the process is not killed......
i am using Seam 2.1.1, do you think that by setting up security on my app i can get around this?
if yes, do you have any reference on how to do this?
thanks a lot
I think I had the same problem.
What I did as a workaround is creating a script that did the same thing. Remember to also dobbel check that the jboss or whoever the user is has killing rights.
- kill only works on unix boxens
- exec likes binaries. mkdir is a binary, kill is a shell builtin. You will probably need to execute a shell and execute the kill as a parameter
i tried with a script already,
it is weird because if i run the script myself, the process gets killed, but if i run the script from my seam project it doesnt. i get the same warn as before.....
my user has killing rights, an im the one running jboss. i dont understand this
can u explain me please how to execute a shell with kill as a parameter?
do you mean i should use a shell/bash script???
Depends on the shell, I think -c is common. You could also script it.