Languages

Menu
Sites
Language
Package signing fails - XMLSecurityException not found

Signing packages (native apps) fails inside the IDE and from command-line :

"/home/olivier/tizen-sdk/tools/smart-build-interface/../ide/bin/native-signing" "/home/olivier/Projects/Post13/workspace/Test3/Debug/.tpk" "/home/olivier/tizen-sdk/tools/certificate-generator/certificates/developer/tizen-developer-ca.cer" "/home/olivier/tizen-sdk-data/keystore/author/eke.p12" "****" "/home/olivier/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12" "****" "/home/olivier/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-ca.cer" "" "****" "" ""
The message is "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/security/exceptions/XMLSecurityException
    at org.tizen.common.sign.signer.TizenSigner.main(TizenSigner.java:89)
Caused by: java.lang.ClassNotFoundException: org.apache.xml.security.exceptions.XMLSecurityException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 1 more"
Signing failed!

Configuration : Ubuntu 13.04. Tizen IDE/SDK - Version : 3.0 (developer version) - Build id : 20140226-2134

Oracle Java installed following this procedure : https://developer.tizen.org/downloads/sdk/installing-sdk/prerequisites-tizen-sdk

OpenJDK *not* uninstalled (otherwise I would have to uninstall a lot of important SW)

tizen-sdk/tools/ide/lib-ncli/xmlsec-1.5.3.jar is present and contains org/apache/xml/security/exceptions/XMLSecurityException.class, so I don't understand why it is not found.  (Even if the wrong version of java was being used, the OpenJDK installation also has xmlsec installed.)

Any idea ?

Thx

 

Edited by: Olivier Delbeke on 10 Mar, 2014

Responses

2 Replies
Olivier Delbeke

I got past the error by adding all jar files I found in tools/ide/lib-ncli (with the exception of slf4j-log4j12-1.6.4.jar) to the JAR variable of the script "tools/ide/bin/native-signing". (This was probably not the right thing to do, though.)

Once I've done that, the package gets signed and transferred to the emulator but the installation fails :

Cannot install application.

Error code: FATAL_ERROR
Error message:
Command: /usr/bin/pkgcmd -q -i -t tpk -p /opt/usr/apps/tmp/GVRHFpyd4D-2.0.1-i586.tpk
Management: Installation or uninstallation is not working temporarily.

When I try the same command from the wayland-terminal in my emulator, I do not get more info (only "FATAL_ERROR [61]").

Any idea ?

 

 

Olivier Delbeke

I read somewhere that the SDK was not able to create native applications for Tizen-IVI. That would probably explain the error I get.

Is this (still) true ? Do I have to use GBS to create native apps for Tizen-IVI ?