| Eclipse 4 and p2 [message #1005171] |
Thu, 24 January 2013 10:30  |
Beat Schaller Messages: 31 Registered: July 2009 |
Member |
|
|
We are working with a pure E4 Application.
After reading some posts and all the necessary stuff to get working the p2 update we still have a problem.
http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial_36/
http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application
http://aniefer.blogspot.ch/2009/03/building-p2-rcp-products-in-eclipse.html
http://www.vogella.com/articles/EclipseP2Update/article.html
All seems to work as long as we test on a file repository. The update is done, no error.
But if we copy the repository to our Web-Server we got an error. The first part - check if an update is needed works...
final UpdateOperation operation = new UpdateOperation(session);
final SubMonitor sub = SubMonitor.convert(monitor, "Checking for application updates...", 200);
IStatus status = operation.resolveModal(sub.newChild(100));
if (status.getCode() == UpdateOperation.STATUS_NOTHING_TO_UPDATE) {
LOG.debug("nothing to update");
return status;
}
if (status.getSeverity() == IStatus.CANCEL) {
LOG.debug("update - cancel");
throw new OperationCanceledException();
}
if (status.getSeverity() != IStatus.ERROR) {
LOG.debug("update - install");
final ProvisioningJob job = operation.getProvisioningJob(null);
status = job.runModal(sub.newChild(100));
if (status.getSeverity() == IStatus.CANCEL) {
LOG.debug("update - install - cancel");
throw new OperationCanceledException();
} else if (status.getSeverity() == IStatus.OK) {
LOG.debug("update - install - ok");
} else {
LOG.debug("update - install - " + status.getSeverity() + "/" + status.getMessage());
}
}
after the check in status = job.runModal(sub.newChild(100)); we got an error: >> An error occurred while collecting items to be installed
Why there is a difference between file and http?? no other message
And - the plugin to update is now on the client side, but the client allways tries to update...
Any hints?
Thx
Beat
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Eclipse 4 and p2 [message #1021642 is a reply to message #1016073] |
Wed, 20 March 2013 08:59  |
Yves Schumann Messages: 1 Registered: March 2013 |
Junior Member |
|
|
Hi Alex,
Beat is a colleague of me and pointed me to your question, so here are some details on how we fixed this issue.
You need to start the IIS Manager. Then navigate to your site and doubleclick MIME Types. Now you see the list of all known MIME types. Click Add... on the Actions on the right side of the manager, type ".*" as the file name extension and "application/x-zip-comressed" as the MIME type. Last step is to restart the web site. That's it.
Kind regards,
Yves
|
|
|
Powered by
FUDForum. Page generated in 0.02270 seconds