1 Reply Latest reply on Feb 24, 2017 6:55 AM by Bartosz Majsak

    Arquilian with managed Tomcat

    Vagharshak Baghdasaryan Newbie



      I run my tests until now agains a embedded Tomcat container.


      After some problems with classloaders during running one ui project with several REST webservice projects (jdbc library is loaded multiple times and causes conflicts) I decided to give a try to Managed Tomcat Container.


      Are there some complete working examples (in git would be perfectly)? Documentation about it is very rar. Despite of the fact, I declare in my arquillian.xml file user and pass properties (like described here: Creating an Arquillian in-container test on Tomcat 7 (managed) · GitHub ) and in my tomcat-users.xml file proper roles "manager" and "manager-script" and proper user (like described here: Alfresco mit Arquillian #1 – “Managed Tomcat” | Under the (Content-)Hood ), I am still getting a 404 error:



      Caused by: org.jboss.arquillian.container.spi.ConfigurationException: Unable to connect to Tomcat manager. The server command (/text/list) failed with responseCode (404) and responseMessage (Not Found).



      Please make sure that you provided correct credentials to an user which is able to access Tomcat manager application.

      These credentials can be specified in the Arquillian container configuration as "user" and "pass" properties.

      The user must have aapropriate role specified in tomcat-users.xml file.



        at org.jboss.arquillian.container.tomcat.TomcatManager.processResponse(TomcatManager.java:210)

        at org.jboss.arquillian.container.tomcat.TomcatManager.execute(TomcatManager.java:192)

        at org.jboss.arquillian.container.tomcat.TomcatManager.list(TomcatManager.java:105)

        at org.jboss.arquillian.container.tomcat.TomcatManager.isRunning(TomcatManager.java:111)

        at org.jboss.arquillian.container.tomcat.managed.TomcatManagedContainer.start(TomcatManagedContainer.java:187)




      I am using latest arquillian-tomcat-managed-7 library in version 1.0.0.CR8 and tomcat 8.


      Very thanks in advance



      Vagharshak Baghdasaryan