1 2 Previous Next 15 Replies Latest reply on Aug 21, 2014 11:15 AM by dmatej Go to original post
      • 15. Re: GlassFish 3.1 Embedded: IllegalArgumentException: ArquillianServletRunner not found
        dmatej

        The problem is not in Glassfish, but in Arquillian. Glassfish deploys the ear without problems, but Arquillian cannot find the correct context. It seems it ignores application.xml file, so when you have there context other than what it is defaultly resolved from war name, Arquillian is lost. It took me two hours to find it, because Arquillian does not log too much ...


        Solution:
        1) Testable.archiveToTest() - specifies which war will be used by Arquillian for his own servlet.

        2) This war must have the same name as the context specified in application.xml (or delete application.xml if you don't need it!)

        1 of 1 people found this helpful
        1 2 Previous Next