#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Gold Goast - Australia
    Posts
    1
    Rep Power
    0

    Question Resin config wrong?


    Can you guys help me to config the server (Resin 2.1.9). The Nokia 7210 emulator and N5100 SDK are able to download the jad file but not the jar file! "File format unknown" is the message I get with the N7210! I assume it's the server config that is not correct!? The URL in the jad file is correct! This is how it looks like in the config file:

    <web-app id='/'>


    <classpath id='WEB-INF/classes' source='WEB-INF/classes' compile='true'/>

    <mime-mapping extension='.wml' mime-type='text/vnd.wap.wml'/>
    <mime-mapping extension='.wml' mime-type='text/x-wap.wml'/>
    <mime-mapping extension='.wbmp' mime-type='image/vnd.wap.wbmp'/>
    <mime-mapping extension='.png' mime-type='image/vnd.wap.png'/>
    <mime-mapping extension='.jad' mime-type='text/vnd.sun.j2me.app-descriptor'/>
    <mime-mapping extension='.jar' mime-type='application/java'/>
    <mime-mapping extension='.jar' mime-type='application/java-archive'/>
    <mime-mapping extension='.jar' mime-type='application/x-java-archive'/>
    ......
    ......

    </web-app>


    What can be the problem?


    Config file attached!

    Thanks!
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    ksa
    Posts
    11
    Rep Power
    0
    i have the same problem, but i am able to download smaller files less than 20kb, testing it on an actual 7210 everything was ok. I guess there is a download limit on my gateway simulator or on the 7210 emulator itself...

    if you want more details on the error message add a MIDlet-Install-Notify: attribute on the JAd file. And then point it to a script(im using php so its notify.php) and read the variable $HTTP_RAW_POST_DATA and you will see more details on the error. (like 900 Success)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    249
    Rep Power
    11
    Hi,

    I also use Resin, but have no idea how to setup an emulator. You are obviously much further in this area. Can you give me some pointers?

    http://galileo.spaceports.com/~ibidris/

IMN logo majestic logo threadwatch logo seochat tools logo