01-23-2010 04:40 AM - edited 01-23-2010 04:55 AM
i developed one sample app, and i want to deploy it to the device from the server.
as mentioned in this link,
i collected all the cod, jad, jar and alx files and placed on a 'testapp' folder on our test server.
now when i point my blackberry browser to that jad file, it is throwing 404 error.
What are the things i need to manage at the server side to test this kind of deploment. am in the correct direction? or not? what is the step by step procedure for this.
Solved! Go to Solution.
01-23-2010 05:23 AM
just to add some more funda..... now i pointed my jar file from the browser... To my surprise, it asks me to download the app, then i click on download, after few seconds it shows an error alert. It is
"907 invalid jar, descriptor missing required attribute: midlet-1."
i will continue my googling and trails, but ur suggestions and experiences saves my time.
01-23-2010 08:55 AM
The MIME types ned tpo be setup properly for the BB Browser to recognize the JAD file:
Also, you should "crack" your COD file (rename to ZIP extension, then extract the individual COD files).
01-24-2010 11:47 PM
Sorry for the delay in the reply. I wl request our system admin to configure the MIME types.
I need one more info, rite now am pointing to my file as
http://myserver.com/blackberry/myApp.jar -- i got the 907 error,
http://myserver.com/blackberry/myApp.jad -- i got the 404 error, page not found
http://myserver.com/blackberry/myApp.cod -- i got the 404 error, page not found, when tried from the BB browser.
you suggestem to zip all the files and then tru to download, if i zip the files, then where should i need to point? i need the format of the url with the right extensions.
Thanks for your help!!!
01-25-2010 01:09 AM
"http://myserver.com/blackberry/myApp.jar -- i got the 907 error,"
Following link having will give the idea when this error will come and it workaround
"http://myserver.com/blackberry/myApp.jad -- i got the 404 error, page not found"
" http://myserver.com/blackberry/myApp.cod -- i got the 404 error, page not found, when tried from the BB browser."
since you have not set MIME type for .cod filed in your web server, you are receiving this error. refer this link for mime type for .cod files
also make sure that .cod file was placed in the same folder where you have placed the jad file
01-25-2010 02:29 AM
i asked my system admin to configure the mime types and he did as given in the KB article. now i tried to download, but no luck now it gives me "Error 400:bad request error".
01-25-2010 04:03 AM
are you getting this error at the time of downloading cod file or jad file?
01-25-2010 07:33 AM - edited 01-25-2010 07:34 AM
have you set the mime type for jad file also in you web server? if so, can you please reset/remove it from your web server and can you please have a try once
One more quick question, are you able to download the jad file from the browser (either IE/firefox)?
01-25-2010 08:25 AM
"you suggestem to zip all the files and then tru to download, if i zip the files, then where should i need to point? i need the format of the url with the right extensions."
I did not suggest that you "zip" the COD files, I suggested that you "unzip" them. When your program excceeds 64K code and 64K data, the compiler will create multiple COD files (since there is a size limit on a single COD file), then aggragate the files into a single large COD file which is really just a ZIP file.
This large COD file will not download on many networks, resulting in a 907 error,
You copy the COD to the ZIP extension, then unzip the individual COD files. They will be named "MyApp-1, MyApp-2", etc (assuming you app is named MyApp).