This is how I solved the problem in my context:
The server is launched through an ANT script with jvm configured using an agent (the property name "agentfile" below is associated with a value pointing to the agent library)
Now I get the error message "java result 1" every time the server starts without any indication of the actual error.
.
1) (..) 2 .
2) , ANT, - : . , C , , Java.
: , , ANT - . , , , java result 1.