在wildfly-18.0.0.Final下部署drools Workbench会出现以下异常:

20:09:46,404 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."kie-wb.war".jboss.security.jacc: org.jboss.msc.service.StartException in service jboss.deployment.unit."kie-wb.war".jboss.security.jacc: WFLYSEC0012: Unable to start the JaccService service
	at org.jboss.as.security.service.JaccService.start(JaccService.java:107)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Invalid prefix pattern in URLPatternList
	at javax.security.jacc.URLPatternSpec.setURLPatternArray(URLPatternSpec.java:308)
	at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:79)
	at javax.security.jacc.WebResourcePermission.<init>(WebResourcePermission.java:160)
	at org.wildfly.extension.undertow.security.jacc.WarJACCService.createPermissions(WarJACCService.java:303)
	at org.wildfly.extension.undertow.security.jacc.WarJACCService.createPermissions(WarJACCService.java:64)
	at org.jboss.as.security.service.JaccService.start(JaccService.java:86)
	... 8 more

20:09:46,438 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 2) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "kie-wb")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"kie-wb.war\".jboss.security.jacc" => "WFLYSEC0012: Unable to start the JaccService service

出现该异常的主要原因是wildfly-18.0.0.Final的一个bug引起的。主要原因是wildfly-18.0.0.Final对路径的处理出现了问题,详情可参看官方的issue:https://issues.jboss.org/browse/WFLY-12655

目前该问题已经在wildfly19中修复,但wildfly18依旧无法使用。因此,当你使用wildfly18出现此问题时,建议使用较低版本或较高版本。

原文链接:《wildfly18版本启动项目Unable to start the JaccService service异常

相关五分11选5视频

QQ五分11选5交流2群:715840230

CSDN学院:《Drools7大发3d引擎进阶教程》

CSDN学院:《Drools7大发3d引擎入门教程》

CSDN学院:《Drools7系列优惠套餐》

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注