Eclipse3.3 plugin for Glassfish

From Foochal

Jump to: navigation, search


Unable to install Eclipse3.3 plugin for Glassfish

I followed the Eclipse 3.3 plugin installation documentation by creating a new server in eclipse by finding the Glassfish plugin through the 'Download additional server adapters' link. Eclipse downloads the plugin and restarts eclipse. However, when I go to 'create new server' I don't see glassfish server, as indicated in the documentation.

Short answer

Permission problems writing to the eclipse plugin directory

Long answer

I had eclipse installed in the /usr/share/eclipse directory and the installation directory was owned by 'root'. However, I was running the installation process as a user. Eclipse downloaded the plugin but was unable to install it due to permission problems:

org.eclipse.core.runtime.CoreException: Unable to complete action for feature "GlassFish Java EE 5 Server" due to errors.
        at org.eclipse.update.core.Utilities.newCoreException(Utilities.java:223)
        at org.eclipse.update.core.Utilities.newCoreException(Utilities.java:254)
        at org.eclipse.update.core.Feature.install(Feature.java:551)
        at org.eclipse.update.internal.core.SiteFile.install(SiteFile.java:96)
        at org.eclipse.update.internal.core.ConfiguredSite.install(ConfiguredSite.java:155)
        at org.eclipse.update.internal.core.ConfiguredSite.install(ConfiguredSite.java:119)
        at org.eclipse.wst.server.ui.internal.extension.ExtensionUtility.install(ExtensionUtility.java:245)
        at org.eclipse.wst.server.ui.internal.wizard.ExtensionWizard$5.run(ExtensionWizard.java:119)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.runtime.CoreException[0]: org.eclipse.core.runtime.CoreException: Unable to create file "/usr/share/eclipse/plugins/com.sun.enterprise.jst.server.sunappsrv_1.0.1.jar1205267243640.tmp". [/usr/share/eclipse/plugins/com.sun.enterprise.jst.server.sunappsrv_1.0.1.jar1205267243640.tmp (Permission denied)]
        at org.eclipse.update.core.Utilities.newCoreException(Utilities.java:223)
        at org.eclipse.update.core.Utilities.newCoreException(Utilities.java:254)
        at org.eclipse.update.internal.core.SiteFilePackedPluginContentConsumer.store(SiteFilePackedPluginContentConsumer.java:64)
        at org.eclipse.update.internal.core.PluginEntryContentConsumer.store(PluginEntryContentConsumer.java:37)
        at org.eclipse.update.core.Feature.install(Feature.java:464)
        at org.eclipse.update.internal.core.SiteFile.install(SiteFile.java:96)
        at org.eclipse.update.internal.core.ConfiguredSite.install(ConfiguredSite.java:155)
        at org.eclipse.update.internal.core.ConfiguredSite.install(ConfiguredSite.java:119)
        at org.eclipse.wst.server.ui.internal.extension.ExtensionUtility.install(ExtensionUtility.java:245)
        at org.eclipse.wst.server.ui.internal.wizard.ExtensionWizard$5.run(ExtensionWizard.java:119)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.runtime.CoreException[0]: java.io.FileNotFoundException: /usr/share/eclipse/plugins/com.sun.enterprise.jst.server.sunappsrv_1.0.1.jar1205267243640.tmp (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at org.eclipse.update.internal.core.UpdateManagerUtils.copyToLocal(UpdateManagerUtils.java:235)
        at org.eclipse.update.internal.core.SiteFilePackedPluginContentConsumer.store(SiteFilePackedPluginContentConsumer.java:62)
        at org.eclipse.update.internal.core.PluginEntryContentConsumer.store(PluginEntryContentConsumer.java:37)
        at org.eclipse.update.core.Feature.install(Feature.java:464)
        at org.eclipse.update.internal.core.SiteFile.install(SiteFile.java:96)
        at org.eclipse.update.internal.core.ConfiguredSite.install(ConfiguredSite.java:155)
        at org.eclipse.update.internal.core.ConfiguredSite.install(ConfiguredSite.java:119)
        at org.eclipse.wst.server.ui.internal.extension.ExtensionUtility.install(ExtensionUtility.java:245)
        at org.eclipse.wst.server.ui.internal.wizard.ExtensionWizard$5.run(ExtensionWizard.java:119)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I moved the eclipse installation to user directory, /home/foochal/software/eclipse, and the problem went away.


Personal tools