Composer with external Tomcat

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:

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: % & , =

But if I use original Tomcat does work fine…any idea? Maybe some config needed at Tomcat side? Tomcat 8 being tested

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.

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

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


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

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

R.

Hi Rene
Did as suggested but didn’t work.
Still getting that message about invalid characters…

Enviado de meu SM-G9650 usando o Tapatalk

Well..now it works, why exactly no clue. What I did…delete all vxml files and regenerate them.
Now, no problems…weird.
Thanks Rene