3 Replies Latest reply on Oct 15, 2011 1:11 AM by vineet.reynolds

    Tomcat 7 quickstart

    ben_utzer

      Hi guys,

       

      I've followed the documentation but cannot get my test to run under Tomcat 7 (managed (embedded seems even more difficult)). I have downloaded the latest Tomcat 7. Running the test gives a 401 response from tomcat with the message: (unauthorized). So I've created a user in tomcat-users.xml and ran startup.bat and then http:/localhost:8080/manager/text/list gives me some result which is what Arquillian does to test if the server is running.

       

      I then created the arquillian.xml file with the same user/password as in tomcat-users.xml (why is this not parsed by arquillian btw?).

      Now trying to running everything from eclipse I can see that nothing has changed (except I see my configuration has been picked up now), still 401 unauthorized.

       

      Can anyone help, please?

       

      Regards,

      Ben

        • 1. Re: Tomcat 7 quickstart
          ben_utzer

          Ok, so again another umlaut problem. While tomcat allows umlauts arquillian obviously doesn't. This kind of problem will probably stay with me for my whole life as software developer but I'm grateful I don't need any chinese characters yet...

          • 2. Re: Tomcat 7 quickstart
            vineet.reynolds

            This looks like a bug in Arquillian-Core or ShrinkWrap. The arquillian.xml file is parsed correctly by Xerces (the embedded JAXP implementation in Oracle JDK), for the first time. The parsed XML is then post-processed as a String to resolve system properties specified as EL expressions in the XML. Something appears to go wrong here, resulting in a MalformedByteSequenceException being thrown when parser parses the modified XML.

            1 of 1 people found this helpful
            • 3. Re: Tomcat 7 quickstart
              vineet.reynolds

              SHRINKDESC-97 is the bug raised in JIRA. Take a look at the suggested workaround and see if it suits your needs for now.