4 Replies Latest reply on Oct 5, 2010 1:33 PM by dan.j.allen

    IllegalStateException ... Kept on getting 404s.

    ssilvert

      I'm trying to run an Arquillian/JSFUnit test.  I get this error:

       

      Caused by: java.lang.IllegalStateException: Error launching test at http://localhost:8080/test/ArquillianServletRunner?outputMode=serializedObject&className=org.jboss.jsfunit.example.hellojsf.FacadeAPITest&methodName=testGetCurrentViewId. Kept on getting 404s.
          at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:125)
          at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)
          ... 33 more

       

      It looks like Arquillian is undeploying the WAR before it calls ArquillianServletRunner.  I think that's the reason for the 404.  The deployment is no longer there.  Any idea what I'm doing wrong?

       

      server.log:

       

      08:59:23,170 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHa
      ndler] invoke, payload: {DeploymentTargetID=names=[test.war], clientAddress=/127
      .0.0.1}, parameter: start
      09:00:21,975 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] dep
      loy, ctxPath=/test
      09:00:23,215 INFO  [javax.enterprise.resource.webcontainer.jsf.config] Initializ
      ing Mojarra 2.0.2 (FCS b10) for context '/test'
      09:00:34,696 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHa
      ndler] invoke, payload: {DeploymentTargetID=names=[test.war], clientAddress=/127
      .0.0.1}, parameter: stop
      09:00:34,705 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] und
      eploy, ctxPath=/test
      09:01:08,979 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHa
      ndler] invoke, payload: {DeploymentTargetID=names=[test.war], clientAddress=/127
      .0.0.1}, parameter: remove

       

      access.log:

      127.0.0.1 - - [04/Oct/2010:09:00:34 -0400] "GET /test/ArquillianServletRunner?outputMode=serializedObject&className=org.jboss.jsfunit.example.hellojsf.FacadeAPITest&methodName=testGetCurrentViewId HTTP/1.1" 404 1043
      127.0.0.1 - - [04/Oct/2010:09:00:34 -0400] "GET /test/ArquillianServletRunner?outputMode=serializedObject&className=org.jboss.jsfunit.example.hellojsf.FacadeAPITest&methodName=testGetCurrentViewId HTTP/1.1" 404 1043
      127.0.0.1 - - [04/Oct/2010:09:00:34 -0400] "GET /test/ArquillianServletRunner?outputMode=serializedObject&className=org.jboss.jsfunit.example.hellojsf.FacadeAPITest&methodName=testGetCurrentViewId HTTP/1.1" 404 1043