Duke 116 posts since
Oct 17, 2007
12.
Re: Desktop integration [Nitro beta] Apr 29, 2008 12:48 PM

in response to:
URPradhan
I think you want to use the Pro IDE tools for deploying OCC applets, although I think you can do it without the Pro IDE tools. From the section on OCC in the IDE documentation, here are two relevant paragraphs:
====
The applet above uses occ-root-installer, which assumes that a curl-timestamp.txt file, as well as an appropriate curl-contents.txt or curl-archive.car file, are present in the curl-root directory on the Web server. The IDE can generate these files (see below). If there is no local copy, or the curl-timestamp.txt file indicates that the local copy is out of date, then the files listed in the curl-contents.txt file are acquired, or the files contained in the curl-archive.car file are extracted, and the curl-timestamp.txt file is copied, yielding a new local copy of the application.
.....
Deploying for OCC
As described above, occ-root-installer depends on the server having a special curl-timestamp.txt file, and a special curl-archive.car file, at the curl-root of the applet. The occ-module-installer also depends on these files, and it also uses a special curl-modules.txt file to indicate inter-module dependencies. The deployment tools available through the IDE can generate these files, and manage other aspects of OCC deployment.
====
The curl-timestamp.txt file is supposed to have a time in it, on one line apparently, like "2007-11-14 21:22:44.145000 +0000" (no quotes in file). I suspect the reason you are getting the error message about "must have exactly one line" but do not have the file anywhere is that your webserver is responding with some error page but not giving a 404 status, so that the Curl RTE is reading the text of the error page as being the contents of the expected curl-timestamp.txt file , and having an error because the contents are not in the expected format. Webservers that do odd things with 404 errors (special human readable error pages) can result in this kind of error message from the Curl RTE; it can be a little puzzling until you realize what is happening.