有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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

爪哇。lang.IllegalStateException:在http://127.0.0.1:8080/启动测试时出错。。。当我将@WebContext注释放入要测试的操作中时,得到302(找到)

我正在尝试测试一个操作,该操作以EJB方法和使用SecurityDomain进行身份验证的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) 个答案