1 Reply Latest reply on Jul 16, 2013 11:02 AM by sarah Aldhen

    Unexpected end of file from server while using embedded glassfish 3

    sarah Aldhen Newbie

      Hello,

       

      I've started to use arquillian recently.

      I want to test my application (jpa, login,...) using an embedded glassfish , i've created a domain.xml and set the configurationXml in arquillian.xml.

        <configuration>

                  <property name="configurationXml"> path/domain.xml</property>

      </configuration>

       

      It look like the my file is read and even my application is deployyed , but when runing tests i got the exception :

      ava.net.SocketException: Unexpected end of file from server

                at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:718)

                at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)

                at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:715)

                at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)

                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)

                at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)

                at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:183)

                at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.executeWithRetry(ServletMethodExecutor.java:121)

                at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:99)

                ... 77 more

       

       

      I made some reaserchs, there is who says that this happens when the port 8181 is used but i dont have any process runnig in this port.

       

      Any ideas where is the probleme ??