wildfly18版本启动项目Unable to start the JaccService service异常
在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异常》
相关技术视频
QQ技术交流2群:715840230
CSDN学院:《Drools7规则引擎进阶教程》
CSDN学院:《Drools7规则引擎入门教程》
CSDN学院:《Drools7系列优惠套餐》
关注公众号:程序新视界,一个让你软实力、硬技术同步提升的平台
除非注明,否则均为程序新视界原创文章,转载必须以链接形式标明本文链接
本文链接:https://choupangxia.com/2019/10/24/wildfly18-path-error/