[jboss-dev-forums] [Design of JBoss internal QA (Test Suite)] - Problem with start ant task in trunk
ivanneto
do-not-reply at jboss.com
Thu May 24 11:49:10 EDT 2007
I was trying to run some testsuite tests and noticed that after starting a server with the "start" ant task, the server was started but the ant script stayed blocked and a long time after failed. I looked at the server log and the server was started correctly. So, I thought that the "start" task wasn't able to detect that the server was successfully initiated.
Looking at:
org.jboss.test.util.server.ServerController.isServerStarted(Server server)
I saw how the "start" ant task checks to see if the server has been started. It opens a HttpURLConnection to the server and then calls getResponseCode(). With an old version of the SVN trunk (some months old), the getResponseCode() returns 200 and everything works OK. With the SVN trunk version from yesterday (05/24/2007), I don't know why the server answers with the HTTP 400 code. Then this check:
if (responseCode > 0 && responseCode < 400)
in ServerController.isServerStarted() fails and the ant "start" task fails.
My point is: if there's a Web server answering with a 400 code, shouldn't org.jboss.test.util.server.ServerController assume that the server has been started correctly?
Regards,
Ivan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048370#4048370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048370
More information about the jboss-dev-forums
mailing list