×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Unhappy Midlet Deployment Issue .......

    I signed my MIDlet App using the following steps !

    I am just copying the commands,

    keytool -genkey -alias Huzefa -keyalg RSA -validity 365 -keystore silentmmobile.sks

    keytool -export -alias Huzefa -keystore silentmmobile.sks -file silentmmobile.crt

    jarsigner -keystore silentmmobile.sks -storepass netpace SilentMMobile.jar Huzefa

    java -jar D:\tools\wkt23\bin\JadTool.jar -addcert -alias Huzefa -storepass netpace -keystore silentmmobile.sks -inputjad SilentMMobile.jad -outputjad SilentMMobile.jad

    java -jar D:\tools\wkt23\bin\JadTool.jar -addjarsig -alias Huzefa -jarfile D:\Huzefa\J2MEPractise\SilentMMobile\dist\SilentMMobile.jar -keystore silentmmobile.sks -storepass netpace -keypass netpace -inputjad SilentMMobile.jad -outputjad SilentMMobile.jad



    After performing all the above process, I copied the SilentMMobile.jar, SilentMMobile.jad, and silentmmobile.crt in the Mobile Sony Ericcson P990i and also on N95.

    Then add the cretificate by clicking on the silentmmobile.crt
    Then click on the SilentMMobile.jar

    Installation started and at the end of the installation,
    Error Appeared: That is,
    "
    Security Information
    Component failed security check
    Cannot install.
    "

    Authentication Failed.

    Please any one can tell me the reason
    I will be thank full....

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Midlet Deployment Issue .......

    You can use only certificates which are already availble on the phone for MIDlet signing (Verisign, Thawte, or JavaVerified). You cannot sign your MIDlet with a certificate which you have created, as you cannot add that certificate on the phone to allow MIDlet signing.

    Hartti

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Thankx alot...... But....

    Thankx alot...... But....

    Then how can I check/execute/test my code ...

    Is it possible to get the certificate from the phone and then sign my midlet from that certificate by doing a reverse process some how....

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Thankx alot...... But....

    IMHO, its not necessary that a MIDLet must be signed for testing and evaluation purposes. Signing the MIDlet would make the app trusted and removes the permission request messages. As Hartti mentioned in his previous post, for Signing you have to use Certificates from Verisign, Thawte, or JavaVerified. Its not possible to retrive the Certificate from the phone.

    Regards
    Gopal

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Re: Midlet Deployment Issue .......

    When I am installing the MIDlet without signing .....

    then at the time of installation it is giving the following error..

    "certificate error. contact the application supplier
    Authentication Failed
    "

    And when I do googling regarding this error,
    I concluded that it requires a Signed MIDlet.
    And so I shift my concentration on "How to Sign the MIDlet"

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Midlet Deployment Issue .......

    If you are using an N95, Go to App Manager(might be inside Installations folder) > LSK Options > Settings > Change - Software installation to "All" and Online Certificate Check to "Off"

    Regards
    Gopal

  7. #7
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Re: Midlet Deployment Issue .......

    Thanks Gopal,

    BUTTTTTTTTTT


    I had did this already....

    But didn't work, then I again did some googling regarding this issue,
    I find that it was a bug in S60 ver 1 and 2 that the midlets were installed without authentication, and now in ver 3 this has been resolved.

    So, it wont installed without authentication.

    However Now I am using Sony Ericcson P990i, and I tried to find out this option, but I didn't find any such thing.

  8. #8
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Midlet Deployment Issue .......

    With which phone you have issues now, Nokia or Sony Ericsson.

    Are you having an Operator specific firmware on your N95 ?

    Regards
    Gopal

  9. #9
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Re: Midlet Deployment Issue .......

    Now I am having issue with Sony Ericcson P990i.

  10. #10
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Midlet Deployment Issue .......

    Please note that Sony Ericsson Developer Discussions are available here http://developer.sonyericsson.com/forumindex.jspa

    Regards
    Gopal

  11. #11
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Re: Midlet Deployment Issue .......

    Thanks Gopal.........

    But I think or may be; it is a Device Independent issue ......

    Because my midlet is using FileConnection API(I don't known exactly the JSR), and the Signing of the MIDlet is part of its specification.

    However, Thanks for all this help.

    Iff it will be possible, I will try to install my MIDlet on N70(S6 ver 3) also,
    And then let you known !!

  12. #12
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Midlet Deployment Issue .......

    afezuh_z,

    it looks like that the JAD file of your MIDlet contains some signing related attributes (by mistake) and hence the phone thinks the MIDlet is signed (and the certificate does not exist on the phone).
    Please remove all MIDlet-Certificate-n-n and MIDlet-Jar-RSA-SHA1 entries from the JAD file and try to install the app again...

    Hartti

  13. #13
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Red face Re: Midlet Deployment Issue .......

    Hartti

    I acted according to your advice, and I also cofrimed it, by reading JAD before copying it on phone and at the time of installation,

    But it didn't work.

    Error Occured:

    Cannot Install
    Authorization Failed

  14. #14
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Re: Midlet Deployment Issue .......

    Please check either the systax of my jad file is correct or not .....

    Without Certificate:
    --------------------
    MIDlet-1: UploadVideoMIDlet,,com.videoventure.view.UploadVideoMIDlet
    MIDlet-Jar-Size: 7180
    MIDlet-Jar-URL: SilentMMobile.jar
    MIDlet-Name: SilentMMobile
    MIDlet-Permissions: javax.microedition.io
    MIDlet-Vendor: Vendor
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0



    With Certificate:
    -----------------
    MIDlet-1: UploadVideoMIDlet,,com.videoventure.view.UploadVideoMIDlet
    MIDlet-Certificate-1-1: MIIBlTCB/wIERynEnTANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQDEwd0cnVzdGVkMB4XDTA3MTEwMTEyMjA0NVoXDTA4MDQyOTEyMjA0NVowEjEQMA4GA1UEAxMHdHJ1c3RlZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAjwGhabrKuUDgZrpeAdu8PJPHHkuIjNeUgxcegcaulCED/Fa5upXJ0TJpdOuMkdv/CISdomKSJlvQFjCo2avZp7jZzoqg7SugYJQDsoixF99V+b9UAHE5tTv84Okw7zEZx5nXGbtLUU8FX/L8jWIYGkw4JzQFk8cHJS8jBtwwOqcCAwEAATANBgkqhkiG9w0BAQQFAAOBgQBxtKjj8Ldv37KLMWvOc0PR5gP/qhu9hLds9LtZVEWvMnupCnbXV95fbgYMmcZDNg6WCQMc4LsLt22xJL7ynuYwXy/qgDkGGH9wD1y6AcUFjT2DcUbSfVLDvsNY1cqFsQbEO7QEHZQTCFIyWX+fccVCT1Wh44G8BBOmTyOqGZbsQA==
    MIDlet-Jar-RSA-SHA1: C4lvGcfLVLWZFMTaI9GSQF5E82Nwj/OLEwbZ5xXq9FfirF/Brq6uCIUYIbtqXpFoq+YBUAG7ztKgw2Q3U98eWAD9njBwDNN1ikU6npL4RrHd3MSBkcGpckKuvQScCbQohiFGDK7bJ5LKoWQ3hxYafMrOtaqaFs09oiaDVo+dbiY=
    MIDlet-Jar-Size: 7180
    MIDlet-Jar-URL: SilentMMobile.jar
    MIDlet-Name: SilentMMobile
    MIDlet-Permissions: javax.microedition.io
    MIDlet-Vendor: Vendor
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0

  15. #15
    Registered User
    Join Date
    Jan 2008
    Posts
    37

    Re: Midlet Deployment Issue .......

    Well, Thank God !!


    Thankx To Gopal And Hartti, for the helped !!!

    I have find where the error was .....
    The following link also helped me to identify the problem http://developers.sun.com/mobility/m...s/permissions/


    My Old Jad File:
    -------------------------------------------------------------
    MIDlet-1: UploadVideoMIDlet,,com.videoventure.view.UploadVideoMIDlet
    MIDlet-Jar-Size: 7180
    MIDlet-Jar-URL: SilentMMobile.jar
    MIDlet-Name: SilentMMobile
    MIDlet-Permissions: javax.microedition.io
    MIDlet-Vendor: Vendor
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0


    My New and Correct Jad File:
    -------------------------------------------------------------
    MIDlet-1: UploadVideoMIDlet,,com.videoventure.view.UploadVideoMIDlet
    MIDlet-Jar-Size: 7284
    MIDlet-Jar-URL: SilentMMobile.jar
    MIDlet-Name: SilentMMobile
    MIDlet-Permissions: javax.microedition.io.Connector.file.read, javax.microedition.io.Connector.http, javax.microedition.io.Connector.https
    MIDlet-Vendor: Vendor
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0



    Problem:
    -------------------------------------------------------------
    In Old File: MIDlet-Permissions: javax.microedition.io
    In New File: MIDlet-Permissions: javax.microedition.io.Connector.file.read, javax.microedition.io.Connector.http, javax.microedition.io.Connector.https


    I have check my MIDlet on Sony Ericsson p990i, and Nokia N70
    and it installed.

Similar Threads

  1. Issue related to Unlock midlet for NFC Nokia 6131
    By dppati in forum Near Field Communication
    Replies: 9
    Last Post: 2010-02-27, 10:53
  2. Pushregistry, Security Alert after signing the midlet?
    By juppi in forum Mobile Java Networking & Messaging & Security
    Replies: 15
    Last Post: 2007-08-08, 11:04
  3. Issue with APp deployment on 6265i
    By romar_mro in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-09-10, 07:15
  4. Email deployment of MIDlet to the 6600
    By paulstraylight2 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-12-09, 10:07
  5. OTA Midlet deployment on 3410
    By fabs2000 in forum Mobile Java General
    Replies: 5
    Last Post: 2003-04-29, 17:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×