0

' ' を実行する Spring Bean を開始するときに、vFabric tc サーバーが JNI ライブラリのロードに失敗しますSystem.loadLibrary("...")。実際、vFabric tcServer エディション (STS) Spring Tools Suite にデプロイされた Spring Bean から JNI 共有ライブラリを実行する必要があります。

Customizing the environment or JVM options for vFabric tc Server (2030216)」のアドバイスに従いましたが、エラーが表示され続けました:「nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [my.JniServiceFactory]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: no myJNIsharedLib in java.library.path

さらに、tc サーバー インスタンス ディレクトリのファイルでエラーを発見 wrapper.log.../bin/winx86_64ましUnable to open configuration file. C:\java\SpringTools\vfabric-tc-server-developer-2.9.6.RELEASE\base-instance\bin\winx86_64\wrapper.conf た。そのため、Windows アカウントを管理者に昇格させ、UAC をオフにしました...これにより、wrapper.exe エラーは解決されましたが、tc サーバーでアプリを起動するときに UnsatisfiedLinkError は解決されませんでした。wrapper -q ..\..\conf\wrapper.confwrapper | OpenSCManager failed - Access is denied. (0x5)

setenv.batまた、tc サーバー インスタンス ディレクトリの下に' ' ファイルがあり、' ' という行が含まれていることを発見しましたset JAVA_LIBRARY_PATH=。また、システム プロパティでグローバル環境変数 JAVA_LIBRARY_PATH を設定しようとしたため、Spring Tools を起動してから tc サーバーを起動したときに使用できました... まさか。

4

1 に答える 1