|
From: Tomas G. <to...@pr...> - 2018-10-03 07:18:12
|
It looks like your EJBCA did not get deployed in WildFly. After "ant deployear" you should check WildFly that it has started correctly without errors. The most common cause of failyre to deploy are errors in the database configuration. Regards, Tomas On 2018-10-02 17:35, Gregory Edigarov wrote: > ok. doing the steps described in the doc > > https://www.ejbca.org/docs/WildFly_10___JBoss_EAP_7.html > > ant runinstall > > press entrer to all questions leaving it to default for now (it is a > test install) > > and have the following : > > 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] WildFly Naming version 1.0.7.Final > [java] ELY00001: WildFly Elytron version 1.2.2.Final > [java] Exception in thread "main" > java.util.ServiceConfigurationError: > org.ejbca.ui.cli.infrastructure.command.CliCommandPlugin: Provider > org.ejbca.ui.cli.ra.AddEndEntityCommand 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:55) > > [java] at > org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:39) > > [java] at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29) > [java] Caused by: javax.ejb.NoSuchEJBException: EJBCLIENT000079: > Unable to discover destination for request for EJB StatelessEJBLocator > for "ejbca/cesecore-ejb/GlobalConfigurationSessionBean", view is > interface org.cesecore.configuration.GlobalConfigurationSessionRemote, > affinity is None > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:567) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503) > > [java] at > org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503) > > [java] at > org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503) > > [java] at > org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:108) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503) > > [java] at > org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503) > > [java] at > org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503) > > [java] at > org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:913) > > [java] at > org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:177) > > [java] at > org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112) > > [java] at com.sun.proxy.$Proxy0.getCachedConfiguration(Unknown > Source) > [java] at > org.ejbca.ui.cli.ra.AddEndEntityCommand.<init>(AddEndEntityCommand.java:93) > [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 > [java] Suppressed: javax.ejb.NoSuchEJBException: No such EJB: > ejbca/cesecore-ejb/GlobalConfigurationSessionBean @ > http-remoting://localhost:4447 > [java] at > org.jboss.ejb.protocol.remote.EJBClientChannel$MethodInvocation.handleResponse(EJBClientChannel.java:1070) > > [java] at > org.jboss.ejb.protocol.remote.EJBClientChannel$MethodInvocation.handleResponse(EJBClientChannel.java:997) > > [java] at > org.jboss.remoting3.util.InvocationTracker.signalResponse(InvocationTracker.java:167) > > [java] at > org.jboss.ejb.protocol.remote.EJBClientChannel.processMessage(EJBClientChannel.java:186) > > [java] at > org.jboss.ejb.protocol.remote.EJBClientChannel.access$100(EJBClientChannel.java:112) > > [java] at > org.jboss.ejb.protocol.remote.EJBClientChannel$1$1.handleMessage(EJBClientChannel.java:675) > > [java] at > org.jboss.remoting3.remote.RemoteConnectionChannel.lambda$handleMessageData$3(RemoteConnectionChannel.java:430) > > [java] at > org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:926) > > [java] at > org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) > > [java] at > org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985) > > [java] at > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487) > > [java] at > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378) > > [java] at java.lang.Thread.run(Thread.java:748) > > what's that? > > On 02.10.18 12:31, Tomas Gustavsson wrote: >> Hi, >> >> If you are running WildFly you should absolutely not run "ant deploy". >> >> See the WildFly installation instructions. >> https://www.ejbca.org/docs/WildFly_10___JBoss_EAP_7.html >> >> Regards, >> Tomas >> >> On 2018-10-02 10:56, Gregory Edigarov wrote: >>> >>> On 01.10.18 17:52, Gregory Edigarov wrote: >>>> >>>> On 01.10.18 17:24, Tomas Gustavsson wrote: >>>>> Congratulations. First tester o WildFly 14 :-) >>>> good to know :-) >>>> well, I am absolutely not bound to it. I think I will try WildFly 12, >>>> if you advise. >>>>> I've never tried on that, WildFly 12 and JBoss EAP 7.1 is known to >>>>> work >>>>> though. >>>>> >>>>> Related to the error, do you have any idea what the "smallrye" is? >>>>> This >>>>> seem to be the failing part in the deployment. >>> Hello, Thomas >>> >>> I've tried and things seemed to be going smooth, except one small >>> caveat. My datasource is already configured via web interface >>> so I want to skip creation of datasource when I do deployment via 'ant >>> deploy'. Is that possible? >>> >>> -- >>> With best regards, >>> Gregory Edigarov >>> >>> >>> _______________________________________________ >>> Ejbca-develop mailing list >>> Ejb...@li... >>> https://lists.sourceforge.net/lists/listinfo/ejbca-develop >> >> _______________________________________________ >> Ejbca-develop mailing list >> Ejb...@li... >> https://lists.sourceforge.net/lists/listinfo/ejbca-develop > > > > _______________________________________________ > Ejbca-develop mailing list > Ejb...@li... > https://lists.sourceforge.net/lists/listinfo/ejbca-develop |