Как решить "Не удалось инициализировать класс org.dcm4che3.opencv.NativeJLSImageWriter" - PullRequest
0 голосов
/ 25 сентября 2018

Я пытаюсь развернуть dcm4chee-arc-light на локальном WildFly 11 на macOS X High Sierra.

Я получил эту ошибку

[standalone@localhost:9990 /] deploy /Users/ebeid/code/dcm4chee-arc-light/dcm4chee-arc-ear/target/dcm4chee-arc-ear-5.14.0-psql.ear
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"dcm4chee-arc-ear-5.14.0-psql.ear\".\"dcm4chee-arc-service-5.14.0.jar\".component.ArchiveServiceImpl.START" => "java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: javax.ejb.EJBException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke private void org.dcm4chee.arc.impl.ArchiveDeviceProducer.init() on org.dcm4chee.arc.impl.ArchiveDeviceProducer@68a9426c
    Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke private void org.dcm4chee.arc.impl.ArchiveDeviceProducer.init() on org.dcm4chee.arc.impl.ArchiveDeviceProducer@68a9426c
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.UnsatisfiedLinkError: no opencv_java in java.library.path"}}}}

Теперь я получаю эту ошибку

[standalone@localhost:9990 /] deploy /Users/ebeid/code/dcm4chee-arc-light/dcm4chee-arc-ear/target/dcm4chee-arc-ear-5.14.0-psql.ear
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"dcm4chee-arc-ear-5.14.0-psql.ear\".\"dcm4chee-arc-service-5.14.0.jar\".component.ArchiveServiceImpl.START" => "java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: javax.ejb.EJBException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke private void org.dcm4chee.arc.impl.ArchiveDeviceProducer.init() on org.dcm4chee.arc.impl.ArchiveDeviceProducer@2c9c434
    Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke private void org.dcm4chee.arc.impl.ArchiveDeviceProducer.init() on org.dcm4chee.arc.impl.ArchiveDeviceProducer@2c9c434
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.dcm4che3.opencv.NativeJLSImageWriter"}}}}

Я знаю, что мне нужно включить OpenCV jar, но я незнать, где его развернуть.Я следовал этому учебнику , чтобы получить OpenCV.Конечный результат: ➜ / cd /usr/local/Cellar/opencv/3.4.2/share/OpenCV/java ➜ java ls libopencv_java342.dylib opencv-342.jar

Что мне делать дальше?

...