From: John L. <joh...@ke...> - 2008-02-14 18:41:36
|
Hi, I'm experimenting with the IAIK OpenTC PrivacyCA, and I am having a few problems getting it working. I was hoping someone might be able to point me in the direction, if possible. I'm getting a run-time error when anything tries to connect to the service. The full output is given at the end of the email. Although I have downloaded all the libraries and followed instructions, I am concerned that I haven't got the right version of JAXB installed. From the website, I could only find some of the jar files - lib/jaxb/activation.jar lib/jaxb/jaxb-api.jar lib/jaxb/jsr173_1.0_api.jar Plus the additional (i presume this replaces the jaxb-impl.jar) lib/jaxb/JAXB2_20070917.jar I have modified the classpath in pki-server.sh accordingly. If you have any suggestions, they would be much appreciated! I'm really keen to use the IAIK libraries, as they will save me huge amounts of time (for which I'm already very grateful!) Thanks very much, Regards, John Lyle ./pki-server.sh *** *** *** Welcome to the IAIK JCE Library *** *** *** *** This version of IAIK JCE is licensed for educational and research use *** *** and evaluation only. Commercial use of this software is prohibited. *** *** For details please see http://jce.iaik.tugraz.at/sales/licences/. *** *** This message does not appear in the registered commercial version. *** *** *** ===== OpenTC XKMS PKI server, build 0.1-20070625-104139 ===== running on Java 1.5.0_13 JTpmTools: 0.3a 20070903 11:16:26 JTSS_TSP: 0.2 20070903 09:47:28 JTSS_JNI: unknown XKMS: 0.2-20070208 TCcert: 0.2.2-20070423-111432 ============================================================== 18:26:16:638 [INFO] XKMSServer::run (42): XKMSServer startup... 18:26:16:660 [INFO] XKMSServer::run (52): adding servicehook: /aik 18:26:16:660 [INFO] XKMSServer::run (52): adding servicehook: /ek 18:26:16:660 [INFO] XKMSServer::run (52): adding servicehook: /validate 18:26:16:666 [INFO] XKMSServer::run (67): bound to port: 20000, waiting for connections *** *** *** Welcome to the IAIK XKMS Library *** *** *** *** This version of XKMS is licensed for educational, research use *** *** and evaluation only. Commercial use of this software is prohibited. *** *** *** *** *** *** Welcome to the IAIK XML Security Toolkit (XSECT) *** *** *** *** This version of XSECT is licensed for educational and research use *** *** and evaluation only. Commercial use of this software is prohibited. *** *** For more details please see http://jce.iaik.at/products/. *** *** This message does not appear in the registered commercial version. *** *** *** Exception in thread "main" java.lang.RuntimeException: cannot instantiate new XKMSContext, cannot continue: ERROR: couldn't initialise JAXBContext (maybe autogen classes missing in classpath?), aborting at iaik.xkms.server.handler.AbstractHandler.<init>(AbstractHandler.java:50) at iaik.xkms.server.handler.AbstractHandler.<init>(AbstractHandler.java:55) at iaik.xkms.server.handler.HTTPHandler.<init>(HTTPHandler.java:47) at iaik.xkms.server.XKMSServer.run(XKMSServer.java:76) at iaik.tc.apps.pki.server.TCServer.main(TCServer.java:158) ------------------- |
From: Martin P. <Mar...@ia...> - 2008-02-15 08:43:11
Attachments:
smime.p7s
|
Hi.... John Lyle wrote: > I'm getting a run-time error when anything tries to connect to the > service. The full output is given at the end of the email. > Exception in thread "main" java.lang.RuntimeException: cannot > instantiate new XKMSContext, cannot continue: ERROR: couldn't initialise > JAXBContext (maybe autogen classes missing in classpath?), aborting You may be missing JAXB. According to the README you need: lib/jaxb/activation.jar lib/jaxb/jaxb-api.jar lib/jaxb/jaxb-impl.jar lib/jaxb/jsr173_1.0_api.jar According to the README at time of release it was last tested with JAXB 2.03, which can be obtained here: https://jaxb.dev.java.net/2.0.3/ Decompressing/installing JAXB2_20061013.jar gives you all the 4 required libraries. I don't know about compatibility with newer JAXB builds, I havn't tested them. > If you have any suggestions, they would be much appreciated! IAIK XKMS currently only runs with Java 1.5, see mailing list archive for the Java 1.6 patch. > JTSS_TSP: 0.2 20070903 09:47:28 > JTSS_JNI: unknown The JTSS 0.2 release has a small bug, you need to additionally install iaik_jtss_tcs.jar (and add it to the classpath) for your PrivacyCA to work. You may want to read the PCA install experiences of Carolin in the mailing list archive. > I'm really > keen to use the IAIK libraries, as they will save me huge amounts of > time (for which I'm already very grateful!) Note that this is a proof-of-concept setup. This is experimental software with lots of sharp edges... :-) Hope that helps, Martin |
From: John L. <joh...@ke...> - 2008-02-15 11:30:40
|
Martin Pirker wrote: > Hi.... > > John Lyle wrote: > >> I'm getting a run-time error when anything tries to connect to the >> service. The full output is given at the end of the email. >> > > >> Exception in thread "main" java.lang.RuntimeException: cannot >> instantiate new XKMSContext, cannot continue: ERROR: couldn't initialise >> JAXBContext (maybe autogen classes missing in classpath?), aborting >> > > You may be missing JAXB. > > According to the README you need: > lib/jaxb/activation.jar > lib/jaxb/jaxb-api.jar > lib/jaxb/jaxb-impl.jar > lib/jaxb/jsr173_1.0_api.jar > > According to the README at time of release it was last tested with JAXB 2.03, > which can be obtained here: https://jaxb.dev.java.net/2.0.3/ > Decompressing/installing JAXB2_20061013.jar gives you all the 4 required libraries. > > I don't know about compatibility with newer JAXB builds, I havn't tested them. > > > >> If you have any suggestions, they would be much appreciated! >> > > IAIK XKMS currently only runs with Java 1.5, see mailing list archive for > the Java 1.6 patch. > > > >> JTSS_TSP: 0.2 20070903 09:47:28 >> JTSS_JNI: unknown >> > > The JTSS 0.2 release has a small bug, you need to additionally install > iaik_jtss_tcs.jar (and add it to the classpath) for your PrivacyCA to work. > You may want to read the PCA install experiences of Carolin in the mailing > list archive. > > > >> I'm really >> keen to use the IAIK libraries, as they will save me huge amounts of >> time (for which I'm already very grateful!) >> > > Note that this is a proof-of-concept setup. This is experimental > software with lots of sharp edges... :-) > > > Hope that helps, > Martin > Thanks Martin, using the right version of JAXB (and installing it properly!) did the trick. Thanks again for your help John |