Author Topic: Composer with external Tomcat  (Read 2478 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Composer with external Tomcat
« 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

Offline Rutger

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: Composer with external Tomcat
« Reply #1 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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Composer with external Tomcat
« Reply #2 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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Composer with external Tomcat
« Reply #3 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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Composer with external Tomcat
« Reply #4 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


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Composer with external Tomcat
« Reply #5 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