|
From: Christian F. <pu...@fe...> - 2014-09-03 14:03:34
|
Hello, I have a problem with EJBCA 4.0.14 on cli: $ cd ~ejbca/ejbca $ bin/ejbca.sh ca listcas javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Exception while trying to locate proxy factory in JNDI, at key ProxyFactory/ejbca/CaSessionBean/ejbca/CaSessionRemote] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) at javax.naming.InitialContext.lookup(InitialContext.java:409) at org.ejbca.core.ejb.JndiHelper.getRemoteSession(JndiHelper.java:57) at org.ejbca.core.model.util.EjbRemoteHelper.getCaSession(EjbRemoteHelper.java:101) at org.ejbca.ui.cli.ca.CaListCAsCommand.execute(CaListCAsCommand.java:39) at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118) at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80) Caused by: java.lang.RuntimeException: Exception while trying to locate proxy factory in JNDI, at key ProxyFactory/ejbca/CaSessionBean/ejbca/CaSessionRemote at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getProxyFactoryFromJNDI(ProxyObjectFactory.java:249) at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:157) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321) at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483) at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500) ... 8 more Caused by: javax.naming.NameNotFoundException: ProxyFactory not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) at org.jnp.server.NamingServer.getObject(NamingServer.java:785) at org.jnp.server.NamingServer.lookup(NamingServer.java:396) at sun.reflect.GeneratedMethodAccessor523.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getProxyFactoryFromJNDI(ProxyObjectFactory.java:240) ... 12 more Could not run execute method for class class org.ejbca.ui.cli.ca.CaListCAsCommand org.ejbca.ui.cli.ErrorAdminCommandException: java.lang.NullPointerException at org.ejbca.ui.cli.ca.CaListCAsCommand.execute(CaListCAsCommand.java:61) at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:118) at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:80) Caused by: java.lang.NullPointerException at org.ejbca.ui.cli.ca.CaListCAsCommand.execute(CaListCAsCommand.java:39) ... 2 more $ EJBCA 4.0.14 is running on JBoss 5.1.0GA as user ejbca and MySQL. Platform is RedHat ES 6.5 EJBCA installation on web works, it creates CRLs and allows signing certificates, so I consider that problem is local to CLI only. Is there a way to fix that? best Regards Christian |