Arquillian java.lang.IllegalStateException:启动测试WebContext身份验证时出错

时间:2019-01-03 19:05:09

标签: java web-services authentication ejb jboss-arquillian

java.lang.IllegalStateException:在http://127.0.0.1:8080/处启动测试时出错...当我在要测试的操作中放置@WebContext批注时,得到302(找到)。

我正在尝试使用SecurityDomain通过身份验证来测试作为EJB方法和Web服务呈现的操作。该测试运行良好,但是当我使用以下方式进行身份验证时:

@WebContext(contextRoot = "apti/servicios", urlPattern = "/*", authMethod = "BASIC", transportGuarantee = "CONFIDENTIAL", secureWSDLAccess = true)

WebContext注释在wildfly 10上运行良好,但是当我尝试实现测试用例时,它将引发以下异常:

java.lang.IllegalStateException: Error launching test at http://127.0.0.1:8080/apti/servicios/ArquillianServletRunner?outputMode=serializedObject&className=uy.antel.asf.automatismos.apti.core.boundary.controller.ConnectionDataBoundaryControllerTest&methodName=test_CP_DC_01&cmd=event. Got 302 (Found)
12:02:11,680 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 35) WFLYUT0022: Unregistered web context: /apti/servicios
12:02:11,684 INFO  [org.jboss.as.webservices] (MSC service thread 1-6) WFLYWS0004: Stopping service jboss.ws.endpoint."apti-core.war".CallBoundaryController
12:02:11,684 INFO  [org.jboss.as.webservices] (MSC service thread 1-2) WFLYWS0004: Stopping service jboss.ws.endpoint."apti-core.war".TelelinkBoundaryController
12:02:11,685 INFO  [org.jboss.as.webservices] (MSC service thread 1-6) WFLYWS0004: Stopping service jboss.ws.endpoint."apti-core.war".CommonPhasesBoundaryController
12:02:11,685 INFO  [org.jboss.as.webservices] (MSC service thread 1-3) WFLYWS0004: Stopping service jboss.ws.endpoint."apti-core.war".RemoteOperationBoundaryController
   at  org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:176)
   at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor$1.run(ServletMethodExecutor.java:201)
   at java.util.TimerThread.mainLoop(Timer.java:555)
   at java.util.TimerThread.run(Timer.java:505)

我已经找到了该线程,但是它不能解决我面临的问题-Arquillian: Got 302 (Found)

我还能采取什么措施解决该问题?

0 个答案:

没有答案
相关问题