Anybody that successfully have configured Tomcat 5.5 (running as a windows service) in Genesys CME 7.5, so that Tomcat can be both monitored in SCI and started/stopped?
I have tried with the section start_stop on Annex tab (with options start_command=net start Tomcat5 and stop_command=net stop Tomcat5). This gives me error messages from the OS: OS Error=5. Access is denied.
This usually works good with third party applications.
I would like to be able to both monitor status in SCI, and start/stop it.
I’ve tried it using Genesys CME 7.2 and SCS 7.1 and it works. I was able to reproduce the error “OS Error=5” by a mistake only - creating the section “start_stop” on Options tab instead of Annex tab.
Hey,
I’m trying to achieve the same thing. I have created an Application object in CME of type Third Party Server and I am able to start the Tomcat5.5 server as a service. Unfortunately, the status is not updated in SCI.
Do you know how to do that as well? Or anybody else ???
I attached screenshots of my CME application object as well. I tried a few things with the Command Line field but without success. Did you configure anything on the Options tab? I didn’t. And on the Annex tab I only have the start_stop section.
By the way, what did you use as Application Template? I created one myself with nothing specified on Options tab or Annex tab.
Hope you can help me…
Your configuration in CME is wrong. It’s necessary to split command line and command line arguments. Correct configuration is:
Command line: C:\ApacheTomcat5_5\bin\tomcat5.exe
Command Line Arguments: //RS//“Apache Tomcat” (<-- check that the parameters correspond to your service configuration - only part visible on the screenshot)
Let do this change and try. If not working then I would change type of your application to “Third Party Server”.
AHAAA. I found the solution. It is a nasty one!!! Really nasty!
It was not crucial to put the command line arguments in the other box. The error was that I had “Apache Tomcat” as the service name while it had to be “Tomcat5”!!!
How did I discover this? Well, from what I found online I understood that I had to put the service name behind //RS//… but the nasty thing is that this is not the Name as it appears on the Services panel of your server. What you see there is the DISPLAY name, so that’s quite confusing! If you double-click the service, it becomes clear. On the General tab it first says Service name (that’s the one you need to put in CME) and then it says Display name (that’s the one that shows on the services panel of your server).
So, in brief the solution for this thread:
Application Type: Third Party Server (I had this from the start)
Command line: C:\ApacheTomcat5_5\bin\tomcat5.exe
Command Line Arguments: //RS//Tomcat5 (<— the Name of the service, NOT the DISPLAY name)
create a section “start_stop” on the Annex tab with 2 subsections
start_command = net start “Apache Tomcat”
stop_command = net stop “Apache Tomcat”
As you can see from the latter, it is allowed to use the DISPLAY name in the net start and net stop statements…
Hope this is usefull for others, it is for me!!!
Thank’s to everyone who contributed to this solution
You just has to be sure that you’re start_command is exactly the same as the output for the “ps -ef | grep catalina” in Linux. For example, your start_command should be something like “/bin/sh /opt/Tomcat/bin/catalina.sh start” assuming Tomcat is installed in /opt/Tomcat
but, still din’t solved.
when i start the Tomcat application from SCI…it’s trying to start the application…initializing…pending…and then getting stopped. but, when i check the same in linux server using “ps -ef|grep catalina” catalina is started.
the issue may be with SCI… b’coz on server tomcat is started, but SCI is not able to show the correct status.
these are the parameters i’ve configured in Tomcat Application object.
working directory: /opt/Tomcat/bin
command line: ./startup.sh
command line arguments: .
There are 2 Tomcat instances running on that server.
Application in CME is based on Third Party Server template. Command line: /bin/sh, command line parameters: bin/catalina.sh start (please note that I remove the actual tomcat installation directory). start_command: /opt/GCTI/MCR/Tomcat_GAD/bin/startup.sh, stop_command: /opt/GCTI/MCR/Tomcat_GAD/bin/shutdown.sh