06-03-2011 09:24 PM
I’ve stumbled across a deployment issue which I’m sure has a simple answer but it’s late in the day and I’m stumped. This was all working before so I must be doing something wrong now…
I am trying to rebuild and redeploy our BlackBerry app using the COD files via OTA. I am copying all the generated COD, JAR, files to our download server, but I get an error on the BlackBerry device at the end of the download which says that the download is failing due to “COD” file not found.
I believe that this error is occurring because there are no files of the form …-1.COD, …-2.COD, …-3.COD, etc. I only see a single COD file being generated, and a whole bunch of “debug” files.
If I put back my old files the download works fine so I know the server is setup fine.
I'm using the BlackBerry version of the Eclipse IDE. What is the step-by-step guide to generating all the necessary files within a project? I'm having to pretend to run a debug test through the simulator before I can get updated files. Surely there's a simpler way to just build the files I need for OTA deployment.
Any help greatly appreciated....
Solved! Go to Solution.
06-03-2011 09:30 PM
Just to add some more details
When I click
BlackBery / Sign / Sign With Signature Tool....
I get a window with all the separate "COD" files listed and successfully signed. All the "...-1.COD", "...-2.COD", etc. files are all listed there. But I can't see where these are in the deliverables folder -- all I see instead is the main COD and JAR files.
I can test just fine with that.
06-03-2011 10:05 PM
You only need to deploy the .cod files and one .jad file. If your app is large than 64K, there will be multiple .cod files starting xxx.cod, xxx-1.cod, xxx-2.cod and so on. You can see this in the .jad file. However, the JDE puts all these .cod file inside one file (xxx.cod). You need to extract the individule .cod files for deployment. Just use winzip to extract the individule .cod files and copy them to your web server along with the .jad file. Then point the broswer to the .jad and your app will be installed.
06-05-2011 08:42 PM
Copy all the COD files and the JAD from the deliverables/Web/x.x directory to your server. Do no copy the ones from the Standard directory.
06-06-2011 11:48 AM
Doh! I was copying them from the Standards folder instead of the Web folder as you pointed out. It was late in the evening and I didn't see the mistake I was making. Thanks so much for responding :-)