Hi all,
Thanks for the preceeding answers i've been able to correct some
remaining bugs.
On the server side of Lokahi:
- MySQL : a remaining reference to SYSDATE instead of NOW() in the
sp_tmc_job_update store proc
- setup/config: the tomcat worker wasn't attached to the tomcat pool.
I've updated manually the relationship table - because creating a second
tomcat pool by the interface seems to have worked. BTW, I guess that
it's intended that it's not possible to add Tomcat workers or Apache
workers directly with the web UI ? ("The function AddTomcatWorker has
not been found." and nothing is coded in the action?)
On the Agent not all works yet and i have encountered the following
problems:
- it seems that the JARs packaged with the build-agent target aren't
sufficient for it to work properly. I haven't identified what are the
missing dependencies (i have just put all the jars in the agent folder
and the agent.sh file add them to the classpath). Now it works, i
receive jobs.
- the job is sent with a null string for the environment, i guess this
is a problem with my setup but i have added a check for a null value in
the setEnvironment method of HttpTomcat, so it return directly if the
environment string is null.
- i haven't been able to run the ReloadContext job/task (and this is the
only one i have tried) : at one point, in the
HttpTomcat.httpRequest(String url) method, a connection is opened on
"http://127.0.0.1:" + httpPort +
"/TMAgent/TMAgentManagerServlet?command=" + url)
(
ret = TMCAgentBrowser.get(new URL("http://127.0.0.1:" + httpPort +
"/TMAgent/TMAgentManagerServlet?command=" + url));
)
This last point let me wonder if i need to install a special context on
the tomcat i want to administer with the lokahi agent. Is it the case (a
context named TMAgent with a TMAgentMAnagetServlet perhaps ?) ? Or
should i just adjust the url in the code to a Tomcat Manager webapp ?
Thanks for any answer, i will open issues and try to submit patches for
each point which need it (i've probably again missed something in the
code ;-),
Best regards,
--
Cordialement,
Ludo - http://www.ubik-products.com
---
"L'amour pour principe et l'ordre pour base; le progres pour but" (A.Comte)