From: Ronald T. <ron...@ia...> - 2010-03-23 09:36:20
|
Hi Benedikt, To narrow down the problem, please (re)start the daemon and immediately connect to http://localhost:30004 using a web browser (before attempting any TPM/jTSS operation). If you find the services, it is most likely an issue with device access permissions. If you don't, there is a problem with starting the daemon. What's written in the log file? Also see the debain package for an example on how to configure jTSS for your platform. Regards, Ronald Benedikt Schröfel wrote: > Hello, > > I use the latest version of the tpm emulator (0.7) of the ETH Zurich and > the jTSS Stack 0.5. > Up to now I used the direct connection to access the tpm (for > development). I tried to get soap bindings running, but whenever I try > to connect to the context, I receive the following error: > > 09:15:50:688 [ERROR] TcTcsBindingSoap::connect (108): There seems no > TCS running > No C based TSS found. Using IAIK jTSS... > 09:15:50:699 [ERROR] TcTcsBindingSoap::connect (108): There seems no > TCS running > iaik.tc.tss.api.exceptions.tsp.TcTspException: > > TSS Error: > error layer: 0x3000 (TSP) > error code (without layer): 0x0103 > error code (full): 0x3103 > error message: Core Service connection failed. > > I use these commands for the connection: > > TcIContext context_ = > CommonSettings.getTssFactory().newContextObject(); > context_.connect(CommonSettings.getHostname()); > //null=localhost > > I've done the following steps: > > - I included the external .jar files from the ext_lib folder in my classpath > - I included the .jar files (jtss_tcs and tsp and their soap colleagues) > in my classpath > - I copied the tcs.wsdl file into the soap folder and applied the patch > > - I loaded the emulator kernel module > - I started the emulator > - I started the tcd_daemon as root (using bash tcs_daemon.sh start) > - I excecuted my programm trying to connect to the daemon (I tried port > no. 30003 and 30004) > > The emulator and daemon are started in an extra terminal. > I have no (other) trousers daemon running. > The result is the error message above. Moreover the daemon terminates > its' excecution. > The stacktrace shows me, that the error occurs at the second line: > > context_.connect(CommonSettings.getHostname()); //null=localhost > > What can I do to get my connection working? > The xerces.jar is not available on my system, but it is referenced in > the daemon script. Could this cause the problem? > > Thank you very much for your help! > > Kind regards > > Beni > -- Dipl.-Ing. Ronald Tögl phone +43 316/873-5502 Trusted Computing Labs fax +43 316/873-5520 IAIK ron...@ia... Graz University of Technology http://www.iaik.tugraz.at |