Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: cavagnaro on July 19, 2019, 08:43:30 PM

Title: Composer with external Tomcat
Post by: cavagnaro on July 19, 2019, 08:43:30 PM
Hi guys
Wondering if any you have used Composer without the embedded Tomcat and used a new instance? This is because customer has banned embedded Tomcat due to security failures.
So I tried to use Composer with a clean Tomcat (Deployment) and doesn't work...


Complains:
[quote]

Failed to deploy the Composer Project
Got unexpected response: FAIL - Failed to deploy application at context path /Pesquisa_DIGITAL
.  Please make sure the project name does not have the following invalid characters: % & , =
[/quote]


But if I use original Tomcat does work fine...any idea? Maybe some config needed at Tomcat side? Tomcat 8 being tested
Title: Re: Composer with external Tomcat
Post by: Rutger on July 22, 2019, 03:09:31 PM
We don't use embedded Tomcat as well. It takes a little bit more time to do deployments, but you will get used to it.
It's just a matter op Generating the code. Export project to war file and then upload the war file manually to the Tomcat server anywhere in the network.
Title: Re: Composer with external Tomcat
Post by: cavagnaro on July 23, 2019, 01:24:54 PM
Yes, that is what I am doing now, just got curious why can't use another Tomcat...something must be missing...curiosity just triggered me to investigate it more
Title: Re: Composer with external Tomcat
Post by: René on July 31, 2019, 07:02:27 AM
Hi Cav,

Following changes are needed if you want to use standard Tomcat instance with Composer:

- add roles admin,manager,manager-script
- add user 'admin' with roles above
- copy all files from ComposerBackend folder to Tomcat's lib folder

Roles and users are configured in tomcat-users.xml file

[code]
  <role rolename="manager"/>
  <role rolename="admin"/>
  <role rolename="manager-script"/>
  <user username="admin" password="admin" roles="admin,manager,manager-script"/>
[/code]

Once you done changes above and restarted Tomcat, you can configure connection to this new Tomcat in Composer configuration and it should work.

R.
Title: Re: Composer with external Tomcat
Post by: cavagnaro on August 02, 2019, 03:31:55 PM
Hi Rene
Did as suggested but didn't work.
Still getting that message about invalid characters...

Enviado de meu SM-G9650 usando o Tapatalk

Title: Re: Composer with external Tomcat
Post by: cavagnaro on August 02, 2019, 07:30:36 PM
Well..now it works, why exactly no clue. What I did...delete all vxml files and regenerate them.
Now, no problems...weird.
Thanks Rene