1 2 Previous Next 19 Replies Latest reply on Feb 5, 2014 8:40 AM by herrherrmann

    JBoss Developer Studio - Installer Error: "Access Denied"

    herrherrmann

      Hey guys,

       

      I'm trying to install the Red Hat JBoss Developer Studio and constantly get the following error after about 3 minutes of installation process (it's at part 2 of the overall progress):

      jbds-installer-error.JPG

       

      Here's the full error message:

      Internal error occured

       

      An error occurred while collecting items to be installed

      session context was:(profile=jbds, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).

      Multiple problems occurred while downloading.

        Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.apache.commons.net_3.2.0.v201305141515.jar.pack.gz.

      Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.apache.commons.net_3.2.0.v201305141515.jar.pack.gz

        Unable to write to repository: file:/D:/jbdevstudio/studio/.

      Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.apache.commons.net_3.2.0.v201305141515.jar (Zugriff verweigert)

      Multiple problems occurred while downloading.

        Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.equinox.p2.ql_2.0.100.v20130327-2119.jar.pack.gz.

      Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.equinox.p2.ql_2.0.100.v20130327-2119.jar.pack.gz

        Unable to write to repository: file:/D:/jbdevstudio/studio/.

      Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.eclipse.equinox.p2.ql_2.0.100.v20130327-2119.jar (Zugriff verweigert)

      Multiple problems occurred while downloading.

        Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.ui.views.log_1.0.400.v20130515-2009.jar.pack.gz.

      Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.ui.views.log_1.0.400.v20130515-2009.jar.pack.gz

        Unable to write to repository: file:/D:/jbdevstudio/studio/.

      Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.eclipse.ui.views.log_1.0.400.v20130515-2009.jar (Zugriff verweigert)

      Multiple problems occurred while downloading.

        Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.ide.eclipse.as.management.wildfly8_2.4.101.Final-v20131206-1843-B159.jar.pack.gz.

      Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.ide.eclipse.as.management.wildfly8_2.4.101.Final-v20131206-1843-B159.jar.pack.gz

        Unable to write to repository: file:/D:/jbdevstudio/studio/.

      Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.jboss.ide.eclipse.as.management.wildfly8_2.4.101.Final-v20131206-1843-B159.jar (Zugriff verweigert)

      Multiple problems occurred while downloading.

        Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.project.examples.cheatsheet_1.5.3.Final-v20131204-2329-B126.jar.pack.gz.

      Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.project.examples.cheatsheet_1.5.3.Final-v20131204-2329-B126.jar.pack.gz

        Unable to write to repository: file:/D:/jbdevstudio/studio/.

      Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.jboss.tools.project.examples.cheatsheet_1.5.3.Final-v20131204-2329-B126.jar (Zugriff verweigert)

      Application failed, log file location: D:\jbdevstudio\studio\p2\director\configuration\1389966467284.log

      "Zugriff verweigert" means "Access denied", so I guess it's a matter of access rights. I just don't know how to grant the missing rights to the folder or installation if that's the problem.

       

      I'm trying to install to the directory D:\jbdevstudio but I also tried other directories with the same result. I also tried disabling EAP during the installation using the installer with EAP included - both without success. The installation (with the same installer) works fine on my MacBook though!

      I know there are ways to just install the Developer Studio additionally to a standard Eclipse environment (which works for me) but this problem with the installer is still bugging me and I'd like to get it running.

       

      My system:

      Microsoft Windows Vista + SP2 (unfortunately) - maybe that's why Vista is not officially supported by Red Hat?

      Java JDK 1.7.0 Update 51

       

      Any help is greatly appreciated!

        • 1. Re: JBoss Developer Studio - Installer Error: "Access Denied"
          dgolovin

          We have alike problem reported, but It happens sometimes not constantly under windows. Could you attach log file from D:\jbdevstudio\studio\p2\director\configuration\1389966467284.log?

          • 2. Re: JBoss Developer Studio - Installer Error: "Access Denied"
            dgolovin
            • 3. Re: JBoss Developer Studio - Installer Error: "Access Denied"
              dgolovin

              One more thing to check is that jar is not damaged.

              • 4. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                herrherrmann

                Hi Denis, thanks for your ideas.

                 

                I tried installing via jar again and this time there is a completely different set of files "affected".

                The error message this time:

                An error occurred while collecting items to be installed

                session context was:(profile=jbds, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.datatools.sqltools.schemaobjecteditor.ui_1.1.1.200810071.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.datatools.sqltools.schemaobjecteditor.ui_1.1.1.200810071.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.eclipse.datatools.sqltools.schemaobjecteditor.ui_1.1.1.200810071.jar (Zugriff verweigert)

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.wst.jsdt.core_1.3.0.v201308282108.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.wst.jsdt.core_1.3.0.v201308282108.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.eclipse.wst.jsdt.core_1.3.0.v201308282108.jar (Zugriff verweigert)

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.wst.xml.ui_1.1.401.v201308132110.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.wst.xml.ui_1.1.401.v201308132110.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.eclipse.wst.xml.ui_1.1.401.v201308132110.jar (Zugriff verweigert)

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.wst.xml.ui.infopop_1.0.400.v201004292007.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.eclipse.wst.xml.ui.infopop_1.0.400.v201004292007.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.eclipse.wst.xml.ui.infopop_1.0.400.v201004292007.jar (Zugriff verweigert)

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.ide.eclipse.as.management.as71_2.4.101.Final-v20131206-1843-B159.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.ide.eclipse.as.management.as71_2.4.101.Final-v20131206-1843-B159.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.jboss.ide.eclipse.as.management.as71_2.4.101.Final-v20131206-1843-B159.jar (Zugriff verweigert)

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.cdi.seam.config.ui_1.5.1.Final-v20131204-0116-B137.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.cdi.seam.config.ui_1.5.1.Final-v20131204-0116-B137.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.jboss.tools.cdi.seam.config.ui_1.5.1.Final-v20131204-0116-B137.jar (Zugriff verweigert)

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.cdi.seam.solder.core_1.5.1.Final-v20131204-0116-B137.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.cdi.seam.solder.core_1.5.1.Final-v20131204-0116-B137.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.jboss.tools.cdi.seam.solder.core_1.5.1.Final-v20131204-0116-B137.jar (Zugriff verweigert)

                Multiple problems occurred while downloading.

                  Artifact not found: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.portlet.core_1.5.1.Final-v20131203-2314-B45.jar.pack.gz.

                Caused by:   java.io.FileNotFoundException: jar:file:///D:/jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar!/jbds/plugins/org.jboss.tools.portlet.core_1.5.1.Final-v20131203-2314-B45.jar.pack.gz

                  Unable to write to repository: file:/D:/jbdevstudio/studio/.

                Caused by:   java.io.FileNotFoundException: D:\jbdevstudio\studio\plugins\org.jboss.tools.portlet.core_1.5.1.Final-v20131203-2314-B45.jar (Zugriff verweigert)

                Application failed, log file location: D:\jbdevstudio\studio\p2\director\configuration\1390207523036.log

                 

                The error log is attached below.

                 

                I don't think the jar is broken because I already tried two different jar files (one with EAP included and one without) and the first jar worked fine on my MacBook anyway.

                • 5. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                  nickboldt

                  Can you try installing with JDK 6 instead of 7? Seemingly random pack.gz file read failures could be the result of a bad unpack200.exe version.

                  • 6. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                    nickboldt

                    For what it's worth, you can install JBDS 7.1.0.GA via Eclipse Marketplace into Eclipse Kepler SR1 via these links:

                     

                    Install this:

                     

                    http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr1

                     

                    Then drag the install link from this page into Eclipse:

                     

                    https://marketplace.eclipse.org/content/red-hat-jboss-developer-studio-kepler

                     

                    If you prefer an offline experience for installing JBDS, there's an update site zip available to use instead of Marketplace, located here:

                     

                    http://www.redhat.com/j/elqNow/elqRedir.htm?ref=http://www.jboss.org/download-manager/content/origin/files/sha256/88/887…

                     

                    Using the zip you'd want to also start with Eclipse Kepler SR1, then Help > Install new software > Add > Archive > browse for the downloaded update site zip > install everything.

                    • 7. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                      herrherrmann

                      Hi Nick,

                       

                      thanks but I am aware of that method and I was already capable of performing an installation like that (Eclipse standalone and installation of JBoss Developer Studio or JBoss Tools as an extension). Nonetheless it would be nice to figure out the solution to the error that's going on with the JBDS installer.

                       

                      I tried installing it with JDK6 but that didn't help unfortunately.

                      • 8. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                        maxandersen

                        Can you test if this works if you run this as administrator on your windows OS ? (see http://www.sevenforums.com/tutorials/11841-run-administrator.html on how)

                         

                        The errors does not seem to be about reading errors, but about permission errors to the file system you are installing to.

                         

                        If you can complete the install as administrator then it is most likely a permission issue.

                        • 9. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                          herrherrmann

                          Hello Max,

                           

                          unfortunately there seems to be no possibility to directly start jar files as an administrator on Windows. What I tried is logging into the administrator account and starting the jar file from a console with administrator rights - but that didn't help either, it still produced the same error as mentioned above.

                          • 10. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                            maxandersen

                            If you run cmd.exe as adminstrator you should be able to run java -jar installer.jar from there and have full admin access. I believe logging in as adminstrator still runs the apps in a "restricted" mode if not explicitly asked (this might be wrong but I just recall having to be very explicit about it

                             

                            Does this error still occur if you try install it on another drive than D ?

                            • 11. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                              herrherrmann

                              Yes, I was also quite paranoid about it and made sure the command line was started with admin rights ("run as admin") additionally to logging in as an administrator. I started the jar the way you described but it didn't help. And yes, I also tried other directories and drives.

                              • 12. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                                dgolovin

                                There are no .pack.gz files in installer, but for some reason p2director tries to unpack them instead of jars.

                                • 13. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                                  dgolovin

                                  Looking through the .log files I see several problems to fix:

                                  1. in ibds p2repo inside jar as meta information in jbds/artifacts.jar that declares there are packed (.pack.gz) and unpacked .jar artifacts, but p2repo contains only .jars

                                  2. org.eclipse.core.net_1.2.200.v20130430-1352.jar is missing in p2director application and that leads to IProxyService ClassNotFound exception

                                  3. After testing on windows I found one more problem in log that is not reported here

                                   

                                  java.lang.RuntimeException: Application "com.jboss.jbds.product.EclipseGenerator" could not be found in the registry. The applications available are: com.jboss.jbds.p2.director, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication. at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248) at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

                                   

                                  Installation works for me Under windows 7, I'll try to test it under Vista at home to see if I can replicate it.

                                   

                                  I guess if there would be no problem (1) above, installer would work. For some reason it decides to install packed artifacts instead of using jar files.

                                  • 14. Re: JBoss Developer Studio - Installer Error: "Access Denied"
                                    nickboldt

                                    Item 3 looks like a refactoring bug in that we have org.eclipse.equinox.p2.publisher.EclipseGenerator but want com.jboss.jbds.product.EclipseGenerator or refer to com.jboss.jbds.product.EclipseGenerator when we should use org.eclipse.equinox.p2.publisher.EclipseGenerator.

                                     

                                    Item 2 could be fixed by adding that to the target platform.

                                     

                                    Item 1 might require that we rebuild the repo w/ pack200 disabled, or perhaps just regen the metadata with FeaturesAndBundlesPublisher to strip out the extra metadata.

                                    1 2 Previous Next