This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

STS fails to start after installing extensions on OSXPage Title Module

The diff (diff -rq springsource springsource2) of the directories before installing the extensions and after is (springsource2 is the clean install):

Code:

Only in springsource: .DS_Store
Only in springsource/sts-2.2.1.RELEASE/STS.app/Contents/MacOS: sts.ini
Files springsource/sts-2.2.1.RELEASE/artifacts.xml and springsource2/sts-2.2.1.RELEASE/artifacts.xml differ
Files springsource/sts-2.2.1.RELEASE/configuration/.settings/org.eclipse.ui.ide.prefs and springsource2/sts-2.2.1.RELEASE/configuration/.settings/org.eclipse.ui.ide.prefs differ
Files springsource/sts-2.2.1.RELEASE/configuration/config.ini and springsource2/sts-2.2.1.RELEASE/configuration/config.ini differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.core.runtime/.manager/.fileTable.7 and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.core.runtime/.manager/.fileTable.7 differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.core.runtime/.manager/.fileTable.8 and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.core.runtime/.manager/.fileTable.8 differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.core.runtime/.table.1 and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.core.runtime/.table.1 differ
Only in springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi: .bundledata.1
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi: .bundledata.2
Only in springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/.manager: .fileTable.4
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/.manager/.fileTable.5 and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/.manager/.fileTable.5 differ
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/.manager: .fileTable.6
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/.state.1 and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/.state.1 differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/347/data/SCR and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/347/data/SCR differ
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/365/data: -57300181
Only in springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/365/data: 1553553669
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/cache.timestamps and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/cache.timestamps differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/listener_1925729951/artifacts.xml and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/listener_1925729951/artifacts.xml differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/listener_1925729951/content.xml and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/listener_1925729951/content.xml differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/timestamps-897699915 and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/372/data/timestamps-897699915 differ
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles: 377
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/381/data: -1187023094
Only in springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/381/data: -839923540
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/427/1/.cp/org/eclipse/jface/dialogs/images: help.gif
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles: 543
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/666/1/.cp/icons/full/dlcl16: progress_stop.gif
Only in springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.osgi/bundles/666/1/.cp/icons/full/elcl16: progress_stop.gif
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.update/install.log and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.update/install.log differ
Files springsource/sts-2.2.1.RELEASE/configuration/org.eclipse.update/platform.xml and springsource2/sts-2.2.1.RELEASE/configuration/org.eclipse.update/platform.xml differ
Only in springsource/sts-2.2.1.RELEASE/features: com.springsource.sts.grails_2.2.1.200910210131-RELEASE
Only in springsource/sts-2.2.1.RELEASE/features: org.codehaus.groovy.eclipse.feature_2.0.0.xx-20091108-2000-e35
Only in springsource/sts-2.2.1.RELEASE/features: org.codehaus.groovy.jdt.patch_2.0.0.xx-20091108-2000-e35
Only in springsource/sts-2.2.1.RELEASE/features: org.codehaus.groovy16.feature_2.0.0.xx-20091108-2000-e35
Only in springsource/sts-2.2.1.RELEASE/features: org.codehaus.groovy17.feature_2.0.0.xx-20091108-2000-e35
Files springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile/.data/.settings/org.eclipse.equinox.p2.artifact.repository.prefs and springsource2/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile/.data/.settings/org.eclipse.equinox.p2.artifact.repository.prefs differ
Files springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile/.data/.settings/org.eclipse.equinox.p2.metadata.repository.prefs and springsource2/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile/.data/.settings/org.eclipse.equinox.p2.metadata.repository.prefs differ
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile/.data/.settings: org.eclipse.equinox.p2.ui.sdk.prefs
Files springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile/.data/.settings/org.eclipse.equinox.p2.ui.sdk.scheduler.prefs and springsource2/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile/.data/.settings/org.eclipse.equinox.p2.ui.sdk.scheduler.prefs differ
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile: 1259282188939.profile.gz
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile: 1259282190952.profile.gz
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile: 1259282620776.profile.gz
Only in springsource2/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile: 1259283337909.profile.gz
Only in springsource2/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.engine/profileRegistry/com.springsource.sts.ide.profile: 1259283339243.profile.gz
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: compositeContent1095413072.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: compositeContent1300562221.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content-1313268167.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content-1964146205.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content-445678946.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content-485972093.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content-836065428.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content-888347553.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content1048691197.jar
Only in springsource/sts-2.2.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache: content816442617.jar

I removed all the diffs for files in springsource/sts-2.2.1.RELEASE/plugins as it made the post to long.

thanks for those many details. This is a recurring issue with STS 2.x and Mac OS. You are the first to report using the case sensitive filesystem, which might actually make the difference as I was never able to re-create this issue.

Nevertheless the root cause to this will be fixed with STS 2.3.0. To work-around that now, please restore the missing "sts-2.2.1.RELEASE/STS.app/Contents/MacOS/sts.ini" after you installed new plugins. For whatever reason file gets lost during the update. It is safe to just restore a copy from before the installation.

Let me know if that helps.

Christian

Comment

I'm confused by the workaround you gave. sts-2.2.1.RELEASE/STS.app/Contents/MacOS/sts.ini gets created when the plugins are installed. In the clean install there is sts-2.2.1.RELEASE/STS.app/Contents/MacOS/STS.ini and after installing plugins both sts.ini and STS.ini are present in sts-2.2.1.RELEASE/STS.app/Contents/MacOS/. STS.ini remains unchanged after adding the plugins and sts.ini cotains:

Code:

-configuration
../../../configuration

I have tried every combination of these files I can think of (including merging them) and still it won't start.

Comment

Does the described workaround works for you as well? Just asking...
And are you on a case-sensitive file system as well?

-Martin

MBP OS X 10.7.4

I've just installed the Spring Source Toolsuite v sts-2.9.2.RELEASE and each time I install to /applications I encountered the above error...well, in that the application would present the:
'cannot open the application STS because it may be damaged or incomplete'
message after the first STS boot.

I installed to ~/ [user folder] instead and the STS application would boot fine on numerous occasions.

copying STS.ini to the /applications/STS folder did not resolve the issue for me; however, I did notice that the application had rights/privileges for user [read/write], staff and everyone [read only] but no admin rights which might be the sticking point here for some installations?

just a thought. I would test this with modified rights to a /applications installation and repost but just at this moment my poker tournaments have gone mental - my apologies for a half-hearted response.

Thanks for the additional details. I usually install and run STS on my OSX machine with the admin rights user, so it is easily possible that I never came across those permission problems you are seeing. I will go ahead and try that as well. In the meantime, whenever you find some more details, let us know.

Thanks,
Martin

Comment

Installed STS to ~/springsource as a user with admin rights (and I only use the tool suite as the same user) with some success for a while. I needed to install the XCode command line tools for mac ports and after the next restart "boom", STS cannot be started because it is damaged or incomplete.

Permissioning looked aright @ 755 throughout. I also have not tried the .ini suggestion because I am unsure of where I can find a valid copy to replace it with. Here is the current content of the sts.ini file:

It is strange that the installation of the Xcode tools from Apple causes this kind of problem. The content of the sts.ini file looks ok. What happens if you rename sts.ini to STS.ini? And what happens with a fresh installation of STS? Does that work? (just trying to find out where the problem might be)