Skip to content

Instantly share code, notes, and snippets.

@xorpaul
Last active June 13, 2017 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xorpaul/7bedef0bda0732e0e0fe1c4f869aa927 to your computer and use it in GitHub Desktop.
Save xorpaul/7bedef0bda0732e0e0fe1c4f869aa927 to your computer and use it in GitHub Desktop.

Using EJBCA community edition 6.5.0.5 with WildFly 10 and Java 8:

[...]
<subsystem xmlns="urn:jboss:domain:remoting:3.0">
    <endpoint/>
    <connector name="legacy-remoting-connector" socket-binding="legacy-remoting" security-realm="ApplicationRealm">
        <properties>
            <property name="org.xnio.Options.SSL_STARTTLS" value="false"/>
        </properties>
    </connector>
    <http-connector name="http-remoting-connector" connector-ref="remoting" security-realm="ApplicationRealm"/>
</subsystem>
[...]
  <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
        <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
        <socket-binding name="http" port="${jboss.http.port:8080}"/>
        <socket-binding name="https" port="${jboss.https.port:8443}"/>
        <socket-binding name="iiop" interface="unsecure" port="3528"/>
        <socket-binding name="iiop-ssl" interface="unsecure" port="3529"/>
        <socket-binding name="legacy-remoting" port="4447"/>
        <socket-binding name="messaging" port="5445"/>
[...]
$ telnet localhost 4447
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

        localhost
# /opt/ejbca_ce_6_5.0.5/bin/ejbca.sh
Exception in thread "main" java.util.ServiceConfigurationError: org.ejbca.ui.cli.infrastructure.command.CliCommandPlugin: Provider org.ejbca.ui.cli.keybind.InternalKeyBindingModifyCommand could not be instantiated
        at java.util.ServiceLoader.fail(ServiceLoader.java:232)
        at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
        at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:53)
        at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:38)
        at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:30)
Caused by: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:ejbca, moduleName:cesecore-ejb, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@4c15e7fd
        at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:798)
        at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128)
        at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186)
        at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:255)
        at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:200)
        at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:183)
        at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:146)
        at com.sun.proxy.$Proxy0.getAvailableTypesAndProperties(Unknown Source)
        at org.ejbca.ui.cli.keybind.InternalKeyBindingModifyCommand.<init>(InternalKeyBindingModifyCommand.java:80)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
        ... 5 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment