Want more features on Pastebin? Sign Up, it's FREE!
Guest

Mirrored ver. of Palm webOS SDK Eclipse plugin fails to load

By: a guest on Aug 30th, 2011  |  syntax: None  |  size: 4.62 KB  |  views: 83  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. GOAL:
  2.   Trying to install palm-webos-sdk Eclipse plugin from an offline/mirrored location.
  3.  
  4.  
  5. PROCEDURE:
  6.   1. Mirror the palm-webos-sdk plugin site.
  7.   2. Install the mirrored plugin, using either the "dropins" folder, or the older "links" method.
  8.  
  9.  
  10. PROBLEM:
  11.   Eclipse refuses to load the plugin, and logs one of the two following error blocks to the Error Log View:
  12.  
  13. - "An error occurred while installing the items"
  14.   - "Failed to prepare partial IU: [R]com.palm.pdt 2.0.0.201106022334."
  15.   - "session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.palm.pdt 2.0.0.201106022334, action=)."
  16. - "The artifact file for osgi.bundle,com.palm.pdt,2.0.0.201106022334 was not found."
  17.  
  18. or:
  19.  
  20. - Provisioning exception
  21.   - No repository found at file:/C:/Applications/Eclipse/eclipse/dropins/palm-webos-sdk/.
  22.  
  23.  
  24. ECLIPSE INFORMATION:
  25. Eclipse SDK
  26. Version: 3.7.0
  27. Build id: I20110613-1736
  28.  
  29.  
  30. RELEVANT LINKS:
  31.   <http://stackoverflow.com/questions/1371176/downloading-eclipse-plug-in-update-sites-for-offline-installation>
  32.   <http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring#Running_the_Mirroring_Tools>
  33.   <http://www.venukb.com/2006/08/20/install-eclipse-plugins-the-easy-way/>
  34.   <http://wiki.eclipse.org/Equinox_p2_Getting_Started#Supported_dropins_formats>
  35.  
  36.  
  37. MY PROGRESS (SO FAR):
  38.   1. Contents of my custom "mirror-palm-webos-sdk.bat":
  39.  
  40. $eclipse_home/eclipsec -nosplash -verbose -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source https://cdn.downloads.palm.com/sdkdownloads/eclipse/update-site/ -destination palm-webos-sdk-artifact
  41. $eclipse_home/eclipsec -nosplash -verbose -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source https://cdn.downloads.palm.com/sdkdownloads/eclipse/update-site/ -destination palm-webos-sdk-metadata
  42. java -jar $eclipse_home/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from https://cdn.downloads.palm.              com/sdkdownloads/eclipse/update-site/ -to palm-webos-sdk-artifact
  43. mkdir palm-webos-sdk
  44. mv palm-webos-sdk-artifact/* palm-webos-sdk/
  45. mv palm-webos-sdk-metadata/* palm-webos-sdk/
  46. rmdir palm-webos-sdk-artifact
  47. rmdir palm-webos-sdk-metadata
  48.  
  49.   2. Resulting directory structure:
  50. palm-webos-sdk/
  51. palm-webos-sdk/features/
  52. palm-webos-sdk/features/com.palm.pdt.feature_2.0.0.201106022334.jar
  53. palm-webos-sdk/plugins/
  54. palm-webos-sdk/plugins/com.palm.pdt.core_2.0.0.201106022334.jar
  55. palm-webos-sdk/plugins/com.palm.pdt.debug.core_2.0.0.201106022334.jar
  56. palm-webos-sdk/plugins/com.palm.pdt.debug.ui_2.0.0.201106022334.jar
  57. palm-webos-sdk/plugins/com.palm.pdt.ui_2.0.0.201106022334.jar
  58. palm-webos-sdk/plugins/com.palm.pdt_2.0.0.201106022334.jar
  59. palm-webos-sdk/artifacts.jar
  60. palm-webos-sdk/content.jar
  61. palm-webos-sdk/site.xml
  62.  
  63.   3. Copied resulting "palm-webos-sdk" directory structure to the "$eclipse_home/dropins" directory.
  64.  
  65.      Result: Eclipse failed to load the plugin, and logged the first error block listed above to the Error Log View.
  66.  
  67.   4. Restructured the "$eclipse_home/dropins/palm-webos-sdk" directory structure to look like the following:
  68. palm-webos-sdk/eclipse/
  69. palm-webos-sdk/eclipse/features/
  70. palm-webos-sdk/eclipse/features/com.palm.pdt.feature_2.0.0.201106022334.jar
  71. palm-webos-sdk/eclipse/plugins/
  72. palm-webos-sdk/eclipse/plugins/com.palm.pdt.core_2.0.0.201106022334.jar
  73. palm-webos-sdk/eclipse/plugins/com.palm.pdt.debug.core_2.0.0.201106022334.jar
  74. palm-webos-sdk/eclipse/plugins/com.palm.pdt.debug.ui_2.0.0.201106022334.jar
  75. palm-webos-sdk/eclipse/plugins/com.palm.pdt.ui_2.0.0.201106022334.jar
  76. palm-webos-sdk/eclipse/plugins/com.palm.pdt_2.0.0.201106022334.jar
  77. palm-webos-sdk/eclipse/artifacts.jar
  78. palm-webos-sdk/eclipse/content.jar
  79. palm-webos-sdk/eclipse/site.xml
  80.  
  81.      Result: Eclipse failed to load the plugin, and logged the second error block listed above to the Error Log View.
  82.  
  83.   5. Restored the "palm-webos-sdk" directory structure to its original form (no intermediate "eclipse" directory), and moved it outside of the "$eclipse_home" directory; created an "$eclipse_home/links" directory, and created a file in "$eclipse_home/links/" called "palm-webos-sdk.link", containing the following text:
  84.  
  85. path=C:/path/to/palm-webos-sdk
  86.  
  87.      Result: Eclipse failed to load the plugin, and logged the first error block listed above to the Error Log View.
  88.  
  89.   6. Recreated the "eclipse" directory below "palm-webos-sdk" and moved everything into it.
  90.  
  91.      Result: Eclipse failed to load the plugin, and logged the second error block listed above to the Error Log View.
  92.  
  93.  
  94. Does anybody know what I'm doing wrong?
clone this paste RAW Paste Data