jdiameter-ha- * ClassNotFoundException

时间:2018-10-11 16:46:03

标签: maven restcomm

我试图通过配置Maven项目使用jdiameter-ha-apijdiameter-ha-impl依赖项来在服务器实现(本质上是示例服务器的扩展版本)中引入高可用性模式(通过JBoss Cache) jdiameter-apijdiameter-impl中的第一个,除了为jdiameter-config.xml添加了以下扩展名:

<Extensions>
    <SessionDatasource value="org.mobicents.diameter.impl.ha.data.ReplicatedSessionDatasource"/>
    <TimerFacility value="org.mobicents.diameter.impl.ha.timer.ReplicatedTimerFacilityImpl"/>
</Extensions>

现在,当我从Eclipse运行服务器时,它可以正常工作,即它以集群模式启动(带有JBoss Cache),但是,当我尝试运行{{1}生成的jar时},它会引发以下错误:

mvn install

鉴于它可以在Eclipse中正常启动,我假设我的POM文件未正确管理依赖项,因此最后的2018-10-11 18:24:13,899 - (-)(-)(-)(-)(-) Starting Mobicents DIAMETER Stack v1.7.0-SNAPSHOT (-)(-)(-)(-)(-) 2018-10-11 18:24:13,959 - Failure creating stack 'Server' org.jdiameter.api.InternalException: java.lang.reflect.InvocationTargetException at org.jdiameter.client.impl.StackImpl.init(StackImpl.java:135) at com.company.charging.diameter.ocf.utilities.StackCreator.<init>(StackCreator.java:37) at com.company.charging.diameter.ocf.utilities.StackCreator.<init>(StackCreator.java:71) at com.company.charging.diameter.ocf.server.Ocf.<init>(Ocf.java:187) at com.company.charging.diameter.ocf.server.Ocf.main(Ocf.java:157) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) at org.jdiameter.client.impl.StackImpl.init(StackImpl.java:129) ... 4 more Caused by: java.lang.ClassNotFoundException: org.mobicents.diameter.impl.ha.timer.ReplicatedTimerFacilityImpl at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:291) at org.jdiameter.client.impl.helpers.AssemblerImpl.fill(AssemblerImpl.java:139) at org.jdiameter.client.impl.helpers.AssemblerImpl.<init>(AssemblerImpl.java:91) ... 9 more 缺少这些类。这是我的jar的相关部分:

pom.xml

0 个答案:

没有答案