From: Sozet F. <flo...@at...> - 2008-05-22 10:25:30
|
Hello, I try to install EJBCA 3.6.1 with MySQL database, on Red Hat server. - server : Linux tqmutu01b 2.6.9-11.EL #1 Fri May 20 18:17:57 EDT 2005 i686 i686 i386 GNU/Linux - JDK : jdk1.6.0_05 - Ant : apache-ant-1.7.0 - JBoss : jboss-4.2.2.GA - MySQL : mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i386) To run many JBoss instances on the same machine, I use Service Binding in $APPSRV_HOME/server/default/conf/jboss-service.xml This allow me to not use JBoss default ports. I used the same method to install EJBCA 3.5.6 on this machine (same jdk, ant, jboss, mysql, ... version), and it worked. This is the difference between original jboss-service.xml and modified jboss-service.xml : [cnt2dev2@tqmutu01b conf_jboss]$ diff jboss-service.xml jboss-service.xml.v0 190d189 < --> 194,195c193,194 < <attribute name="ServerName">ports-02</attribute> < <attribute name="StoreURL">${jboss.home.url}/wlt-ports/ports-02.xml</attribute> --- > <attribute name="ServerName">ports-01</attribute> > <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute> 199a199 > --> [cnt2dev2@tqmutu01b conf_jboss] The command "ant bootstrap" is ok (BUILD SUCCESSFUL) The tables in database have been created. Then I started JBoss : OK But I get this error when I run "ant install" : [cnt2dev2@tqmutu01b ejbca]$ ant install Buildfile: build.xml [echo] Merging available external modifications from /home/cnt2dev2/ejbca-custom. [copy] Warning: /home/cnt2dev2/ejbca-custom not found. Trying to override old definition of task apt install: check:bootstrapdone: ejbca:noprompt: ejbca:prompt: [input] skipping input as property ca.name has already been set. [input] skipping input as property ca.dn has already been set. [input] skipping input as property ca.keyspec has already been set. [input] skipping input as property ca.keytype has already been set. [input] skipping input as property ca.signaturealgorithm has already been set. [input] skipping input as property ca.validity has already been set. [input] skipping input as property ca.policy has already been set. [input] skipping input as property httpsserver.hostname has already been set. [input] skipping input as property httpsserver.dn has already been set. [input] skipping input as property superadmin.password has already been set. [input] skipping input as property superadmin.batch has already been set. [input] skipping input as property java.trustpassword has already been set. ejbca:init: [echo] [echo] ------------------- CA Properties ---------------- [echo] ca.name : AdminCA1 [echo] ca.dn : CN=AdminCA1,O=EJBCA Sample,C=SE [echo] ca.tokentype : soft [echo] ca.tokenpassword : null [echo] ca.keyspec : 2048 [echo] ca.keytype : RSA [echo] ca.signaturealgorithm : SHA1WithRSA [echo] ca.validity : 3650 [echo] ca.policy : null [echo] ca.tokenproperties : conf/catoken.properties [echo] httpsserver.hostname : tqmutu01b [echo] httpsserver.dn : CN=tqmutu01b,O=MPE,C=FR [echo] httpsserver.password : serverpwd [echo] superadmin.password : ejbca [echo] superadmin.batch : true [echo] java.trustpassword : changeit [echo] appserver.home : /home/cnt2dev2/jboss [echo] ejbca:install: [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 [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. [java] Creating CA... [java] java.rmi.MarshalException: MarshalException; nested exception is: [java] org.jboss.invocation.JBossLazyUnmarshallingException: getArguments failed [java] Java Result: 255 ejbca:adminweb: [echo] setup setdefaultbaseurl tqmutu01b ejbca [echo] ra adduser tomcat serverpwd "CN=tqmutu01b,O=MPE,C=FR" "null" AdminCA1 null 1 JKS [java] java.lang.reflect.UndeclaredThrowableException [java] Java Result: 255 [echo] ra setclearpwd tomcat serverpwd [java] Setting clear text password serverpwd for user tomcat [echo] ra adduser superadmin ejbca "CN=SuperAdmin" null AdminCA1 null 65 P12 [java] java.lang.reflect.UndeclaredThrowableException [java] Java Result: 255 [echo] ra setclearpwd superadmin ejbca [java] Setting clear text password ejbca for user superadmin [java] java.lang.reflect.UndeclaredThrowableException [java] at $Proxy5.loadGlobalConfiguration(Unknown Source) [java] at org.ejbca.ui.cli.batch.BatchMakeP12.<init>(BatchMakeP12.java:144) [java] at org.ejbca.ui.cli.batch.BatchMakeP12.main(BatchMakeP12.java:591) [java] Caused by: java.io.InvalidClassException: org.ejbca.core.model.ra.raadmin.GlobalConfiguration; local class incompatible: stream classdesc serialVersionUID = 2856510835761341209, local class serialVersionUID = 1878129553872070458 [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562) [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583) [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [java] at java.rmi.MarshalledObject.get(MarshalledObject.java:142) [java] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:134) [java] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365) [java] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197) [java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) [java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70) [java] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112) [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) [java] ... 3 more [java] Java Result: 1 BUILD FAILED /home/cnt2dev2/ejbca_3_6_1/build.xml:40: The following error occurred while executing this line: /home/cnt2dev2/ejbca_3_6_1/bin/cli.xml:116: The following error occurred while executing this line: /home/cnt2dev2/ejbca_3_6_1/bin/cli.xml:140: Batch generation failed! Total time: 29 seconds [cnt2dev2@tqmutu01b ejbca] These are the only differences in EJBCA configuration files (compare with properties.sample) : [cnt2dev2@tqmutu01b conf_ejbca]$ diff ./database.properties /home/cnt2dev2/ejbca/conf/database.properties.sample 27c27 < database.name=mysql --- > #database.name=mysql 42c42 < datasource.mapping=mySQL --- > #datasource.mapping=mySQL 58c58 < database.url=jdbc:mysql://127.0.0.1:3306/cnt2dev2 --- > #database.url=jdbc:mysql://127.0.0.1:3306/ejbca 71c71 < database.driver=com.mysql.jdbc.Driver --- > #database.driver=com.mysql.jdbc.Driver 82c82 < database.username=ejbca --- > #database.username=ejbca 87c87 < database.password=ejbcapwd --- > #database.password=ejbca [cnt2dev2@tqmutu01b conf_ejbca]$ [cnt2dev2@tqmutu01b conf_ejbca]$ diff ./web.properties /home/cnt2dev2/ejbca/conf/web.properties.sample 26c26 < httpsserver.hostname=tqmutu01b --- > httpsserver.hostname=localhost 30c30 < httpsserver.dn=CN=tqmutu01b,O=MPE,C=FR --- > httpsserver.dn=CN=localhost,O=EJBCA Sample,C=SE 34c34 < #httpserver.pubhttp=8280 --- > #httpserver.pubhttp=8080 38c38 < #httpserver.pubhttps=8642 --- > #httpserver.pubhttps=8442 42c42 < #httpserver.privhttps=8643 --- > #httpserver.privhttps=8443 [cnt2dev2@tqmutu01b conf_ejbca] Thanks in advance for your help Best regards, Florent ________________________________ Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. |