首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ejbca ant runinstall失败

Ejbca ant runinstall失败
EN

Stack Overflow用户
提问于 2017-02-01 11:03:18
回答 1查看 2K关注 0票数 0

我正在使用:

代码语言:javascript
复制
ejbca_ce_6.3.1.1
wildfly10
java jdk8 update 121
MariaDb 10.1.21
ant 1.10

我是按照这个页面上的说明操作的https://www.ejbca.org/docs/installation.html

我无法通过这些步骤: ant runinstall it抛出以下错误:

代码语言:javascript
复制
ejbca:install:

ejbca:initCA:
     [echo] Initializing CA with 'ManagementCA' 'CN=ManagementCA,O=EJBCA Sample,C=SE' 'soft' <ca.tokenpassword hidden> '2048' 'RSA' '3650' 'null' 'SHA256WithRSA'
  -superadmincn 'SuperAdmin'...
     [java] Exception in thread "main" java.util.ServiceConfigurationError: org.ejbca.ui.cli.infrastructure.command.CliCommandPlugin: Provider org.ejbca.ui.cli.ke
ybind.InternalKeyBindingCreateCommand could not be instantiated
     [java]     at java.util.ServiceLoader.fail(ServiceLoader.java:232)
     [java]     at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
     [java]     at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
     [java]     at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
     [java]     at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
     [java]     at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:53)
     [java]     at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:38)
     [java]     at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29)
     [java] Caused by: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:ejbca, moduleName:cesecore-ejb, distinctN
ame:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@1dde4cb2
     [java]     at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:798)
     [java]     at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:255)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:200)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:183)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:146)
     [java]     at com.sun.proxy.$Proxy0.getAvailableTypesAndProperties(Unknown Source)
     [java]     at org.ejbca.ui.cli.keybind.InternalKeyBindingCreateCommand.<init>(InternalKeyBindingCreateCommand.java:69)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
     [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
     [java]     at java.lang.Class.newInstance(Class.java:442)
     [java]     at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
     [java]     ... 5 more

BUILD FAILED
C:\ejbca2\build.xml:70: The following error occurred while executing this line:
C:\ejbca2\bin\cli.xml:94: The following error occurred while executing this line:
C:\ejbca2\bin\cli.xml:112: The following error occurred while executing this line:
C:\ejbca2\bin\cli.xml:186: Java returned: 1

Total time: 17 seconds

cli.xml: 112的详细信息

代码语言:javascript
复制
<ejbca:cli-hideargs arg="ca init &quot;${ca.name}&quot; &quot;${ca.dn}&quot; ${ca.tokentype} ${ca.tokenpassword} ${ca.keyspec} ${ca.keytype} ${ca.validity} ${ca.policy} ${ca.signaturealgorithm} ${install.catoken.command} ${install.certprofile.command} -superadmincn &quot;${superadmin.cn}&quot;"/>

在“蚂蚁清洁部署年”之前的这一步表明构建已经成功。

我在网上找了又找不到,请帮帮忙

EN

回答 1

Stack Overflow用户

发布于 2017-03-24 21:43:53

我得到了相同的堆栈跟踪,原因是EJBCA (6.5.0.4)在"ant clean deployed“结束时没有部署到WildFly (尽管它显示出了成功)。因此,在运行deployear时,请检查server.log。对我来说,部署失败是因为默认数据库不是mysql而是H2,并且它试图执行对H2有效但对MariaDB无效的SQL语句(在MariaDB上,错误是:information_schema中的未知表'sequences‘)。我不得不在conf/database.properties中定义database.name=mysql,并再次运行"ant clean“,它解决了这个问题。由于您使用的是MariaDB,因此很可能会出现完全相同的错误。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41971223

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档