Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 265309 - [director] [macosx] cannot run director on macosx
Summary: [director] [macosx] cannot run director on macosx
Status: CLOSED DUPLICATE of bug 57349
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-18 10:21 EST by Ketan Padegaonkar CLA
Modified: 2011-06-12 20:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ketan Padegaonkar CLA 2009-02-18 10:21:51 EST
Running the p2 director app on macosx searches for plugins and folders inside Eclipse.app/Contents/MacOS/[plugins|features].

Here's a part of the stack trace along with the command line. It's looking for plugins inside the wrong directory (/Volumes/data/workspaces/twist/eclipse/eclipse/Eclipse.app/Contents/MacOS/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar) instead of (/Volumes/data/workspaces/twist/eclipse/eclipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar)

A work around is to create symlinks for plugins and features into the Eclipse.app/Contents/MacOS folder

+ /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -Declipse.p2.data.area=/Volumes/data/workspaces/twist/artifacts-3.4/p2 -Xmx768m -cp /Volumes/data/workspaces/twist/eclipse/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar org.eclipse.equinox.launcher.Main -data /tmp/test-workspace-twist -nosplash -consoleLog -debug -application org.eclipse.equinox.p2.director.app.application -destination /Volumes/data/workspaces/twist/artifacts-3.4 -bundlepool /Volumes/data/workspaces/twist/artifacts-3.4 -metadataRepository file:/Volumes/data/workspaces/twist/build/src/repo -artifactRepository file:/Volumes/data/workspaces/twist/build/src/repo -metadataRepositoryName 'Twist Update Site' -artifactRepositoryName 'Twist Artifacts' -installIU com.thoughtworks.twist.eclipse.ui.product -version 1.0.0.4000-dev -profile TwistProfile -profileProperties org.eclipse.update.install.features=true -p2.os macosx -p2.ws carbon -p2.arch x86 -roaming
Install location:
    file:/Volumes/data/workspaces/twist/eclipse/eclipse/
Configuration file:
    file:/Volumes/data/workspaces/twist/eclipse/eclipse/configuration/config.ini loaded
Configuration location:
    file:/Volumes/data/workspaces/twist/eclipse/eclipse/configuration/
Framework located:
    file:/Volumes/data/workspaces/twist/eclipse/eclipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
Framework classpath:
    file:/Volumes/data/workspaces/twist/eclipse/eclipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
Debug options:
    file:/Volumes/data/workspaces/twist/build/.options not found
Time to load bundles: 38
location=file:/Volumes/data/workspaces/twist/eclipse/eclipse/Eclipse.app/Contents/MacOS/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
java.util.zip.ZipException: No such file or directory
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
	at java.util.jar.JarFile.<init>(JarFile.java:132)
	at java.util.jar.JarFile.<init>(JarFile.java:97)
	at org.eclipse.equinox.internal.frameworkadmin.utils.Utils.getOSGiManifest(Utils.java:266)
	at org.eclipse.equinox.internal.frameworkadmin.utils.Utils.getManifestMainAttributes(Utils.java:248)
	at org.eclipse.equinox.internal.frameworkadmin.utils.Utils.getClausesManifestMainAttributes(Utils.java:244)
	at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxBundlesState.isSystemBundle(EquinoxBundlesState.java:176)
	at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxBundlesState.getSystemBundleFromBundleInfos(EquinoxBundlesState.java:139)
	at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxBundlesState.getSystemBundleFromBundleInfos(EquinoxBundlesState.java:148)
Comment 1 Pascal Rapicault CLA 2009-02-18 14:51:16 EST
Are you trying to create a new install or adding something on top of an existing one?
Comment 2 Ketan Padegaonkar CLA 2009-02-18 15:47:48 EST
(In reply to comment #1)
> Are you trying to create a new install or adding something on top of an
> existing one?

I'm creating a new install by pulling in a product IU.
Comment 3 Ketan Padegaonkar CLA 2009-02-18 15:48:33 EST
Just as an FYI the command line arguments are also pasted in comment 0
Comment 4 Pascal Rapicault CLA 2009-02-18 20:19:24 EST
Your command line seems to contain unnecessary arguments but is also lacking some. Please take a look at the section on "installing a complete product"  http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html 
Comment 5 Pascal Rapicault CLA 2011-06-12 20:21:55 EDT

*** This bug has been marked as a duplicate of bug 57349 ***