Home > error org ejbca ui cli cainitcommand > error org.ejbca.ui.cli.cainitcommand

Error Org.ejbca.ui.cli.cainitcommand

EJBCA, JEE PKI Certificate Authority Brought to you by: anatom, jeklund, mikekushner, netmackan Summary Files Reviews Support Wiki Mailing Lists News Discussion External Link ▾ Donate Browse SVN Create Topic Stats Graph Forums EJBCA-usuarios 40 ejbca-develop 183 ejbca-news 3 Help 1870 Open Discussion 121 Help Formatting Help multiple instances of ejbca on one server Forum: Help Creator: John Created: 2010-10-25 Updated: 2013-02-18 John - 2010-10-25 Hi, I am trying to set up two instances of ejbca on one system. I am using jboss-5.1.0.GA and ejbca.3.10.5. I have no problem to run multiple instance of jboss on one server. But when I run "ant install" command, I got the "jce cannot authenticate the provider BC" error. I modified my java.security   and added line security.provider.9=org.bouncycastle.jce.provider.BouncyCastleProvider and copied all bcprov-jdk15.jar bcmail-djk15.jar bctsp-jdk15.jar from /lib  to  /jre/lib/ext directory. But I still go  error.  Here is the detailed error message       Creating CA…       Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand       org.ejbca.ui.cli.ErrorAdminCommandException: java.rmi.ServerException: EJBException:; nested exception is:       javax.ejb.EJBException: java.io.IOException: exception encrypting data - java.lang.SecurityException: JCE cannot authenticate the provider BC       at org.ejbca.ui.cli.ca.CaInitCommand.execute(CaInitCommand.java:304)       at org.ejbca.ui.cli.EjbcaEjbCli.executeCommand(EjbcaEjbCli.java:117)       at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:79)       Caused by: java.rmi.ServerException: EJBException:; nested exception is:       javax.ejb.EJBException: java.io.IOException: exception encrypting data - java.lang.SecurityException: JCE cannot authenticate the provider BC       at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)       at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)       at org.jboss.ejb.Container.invoke(Container.java:1029)       at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)       at java

I run the "ant install" command. (I followed a french tutorial, and all the other steps were done correctly). here is part of the messages that are generated : [echo] Initializing CA with AdminCA1 'CN=AdminCA1,O=EJBCA Sample,C=SE' soft null 2048 RSA 3650 null SHA1WithRSA conf/catoken.properties... [echo] ca init AdminCA1 "CN=AdminCA1,O=EJBCA Sample,C=SE" soft null 2048 RSA 3650 null SHA1WithRSA conf/catoken.properties [java] Initializing CA https://sourceforge.net/p/ejbca/discussion/123123/thread/eb8fa5ae/ [java] Generating rootCA keystore: [java] CA name: AdminCA1 [java] DN: CN=AdminCA1,O=EJBCA Sample,C=SE [java] CA token type: soft [java] CA token password: null [java] Keyspec: 2048 [java] Keytype: RSA [java] Validity (days): 3650 [java] Policy ID: null [java] Signature alg: SHA1WithRSA [java] CA token properties: null [java] Initalizing Temporary Authorization Module. http://osdir.com/ml/java.ejbca.devel/2008-11/msg00034.html [java] 2 [main] ERROR org.ejbca.ui.cli.CaInitCommand - [java] org.ejbca.core.ejb.ServiceLocatorException: javax.naming.NameNotFoundException: AuthorizationSession not bound [java] at org.ejbca.core.ejb.ServiceLocator.getObject(ServiceLocator.java:160) [java] at org.ejbca.core.ejb.ServiceLocator.getRemoteHome(ServiceLocator.java:85) [java] at org.ejbca.ui.cli.BaseCommand.getAuthorizationSession(BaseCommand.java:268) [java] at org.ejbca.ui.cli.CaInitCommand.initAuthorizationModule(CaInitCommand.java:239) [java] at org.ejbca.ui.cli.CaInitCommand.execute(CaInitCommand.java:134) [java] at org.ejbca.ui.cli.ca.main(ca.java:32) I have several messages like this (ie javax.naming.NameNotFoundException). there was no error when I ran the ant bootstrap (I tried with ant clean ; ant bootstrap, and I get systematically the same error). how can I check for the AuthorizationSession in the /opt/java directory ? thanks -- View this message in context: http://www.nabble.com/ant-install-error-tp20563274p20563274.html Sent from the EjbCA - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ Thread at a glance: Previous Message by Date: EJBCA 3.7.4 released

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us error org.ejbca.ui.cli.cainitcommand Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow error org.ejbca.ui.cli.cainitcommand Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Creating CA… Unexpected Error java.lang.NoSuchFieldError: BasicConstraints up vote 0 down vote favorite im using jboss-5.1.0.GA-jdk6 ejbca_4_0_10 upon ant install it gives me this exception Creating CA... Could not run execute method for class class org.ejbca.ui.cli.ca.CaInitCommand org.ejbca.ui.cli.ErrorAdminCommandException: javax.ejb.EJBException: Unexpected Error java.lang.NoSuchFieldError: BasicConstraints at org.ejbca.util.CertTools.genSelfCertForPurpose(CertTools.java:1421) at org.ejbca.util.CertTools.genSelfCert(CertTools.java:1331) at org.ejbca.util.CertTools.genSelfCert(CertTools.java:1325) at org.ejbca.core.model.ca.catoken.CATokenContainerImpl.generateKeys(CATokenContainerImpl.java:456) at org.ejbca.core.ejb.ca.caadmin.CAAdminSessionBean.createCA(CAAdminSessionBean.java:241) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111) at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69) at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73) at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59) at sun.reflect.GeneratedMethodAccessor326.invoke(Unknown Source) at sun.reflect.DelegatingMethodA

 

Related content

No related pages.