2 Replies Latest reply on Feb 2, 2012 4:11 AM by gvagenas

    Problem with static web resource in web archive

    gvagenas

      I add index.html file in the web archive using webArchive.addAsWebResource("index.html") and the file correctly located in the root of the web archive, but when i am trying to open it using url.openConnection().getInputStream(), i get "java.io.FileNotFoundException: http://localhost:8888/test2/index.html".

      Tests are working fine when i am trying to access a servlet in the same webarchvie (http://localhost:8888/test2/Test)

       

      Any idea of what it could be wrong over here?

       

      I am testing with tomcat-embedded-6, and the latest arquilian from git master.

       

      Regards

      George