Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9753

multiple content web roots seem to confuse VPE

    Details

      Description

      import AS 7 quickstarts kitchensink and even though the template files are in the right place it doesn't pick it up.

      See http://screencast.com/t/7FI8I2hZBP

      Example is available here: https://github.com/jbossas/quickstart/tree/master/kitchensink

        Gliffy Diagrams

        1. cannot-reproduce.png
          52 kB
        2. resolved.png
          54 kB
        3. screenshot111.png
          191 kB

          Activity

          Hide
          maxandersen Max Rydahl Andersen added a comment -

          note, openOns works and page design options states the right directory.

          Show
          maxandersen Max Rydahl Andersen added a comment - note, openOns works and page design options states the right directory.
          Hide
          maxandersen Max Rydahl Andersen added a comment -

          correction - it actually shows up if I explicitly set the root folder.

          So yeah, multiple root content folders aren't searched properly.

          Show
          maxandersen Max Rydahl Andersen added a comment - correction - it actually shows up if I explicitly set the root folder. So yeah, multiple root content folders aren't searched properly.
          Hide
          maxandersen Max Rydahl Andersen added a comment -

          download of the quickstarts: http://www.jboss.org/tools/download

          Show
          maxandersen Max Rydahl Andersen added a comment - download of the quickstarts: http://www.jboss.org/tools/download
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          I cannot reproduce this behavior:

          Steps I did:

          1. git clone https://github.com/jbossas/quickstart.git
          2. JBDS->Import->Existing Maven Projects->quickstart/kitchensink
          3. Open /jboss-as-kitchensink/src/main/webapp/index.xhtml in VPE

          Do I miss something?

          Show
          yradtsevich Yahor Radtsevich added a comment - I cannot reproduce this behavior: Steps I did: git clone https://github.com/jbossas/quickstart.git JBDS->Import->Existing Maven Projects->quickstart/kitchensink Open /jboss-as-kitchensink/src/main/webapp/index.xhtml in VPE Do I miss something?
          Hide
          dgolovin Denis Golovin added a comment -

          I can confirm it on linux x86_64 at least

          Show
          dgolovin Denis Golovin added a comment - I can confirm it on linux x86_64 at least
          Hide
          akazakov Alexey Kazakov added a comment -

          It's not working on my Ubuntu x86_32 either.

          Show
          akazakov Alexey Kazakov added a comment - It's not working on my Ubuntu x86_32 either.
          Hide
          akazakov Alexey Kazakov added a comment -

          Yahor, what version of WTP are you using?

          Show
          akazakov Alexey Kazakov added a comment - Yahor, what version of WTP are you using?
          Hide
          dgolovin Denis Golovin added a comment -

          Same problem on Windows7 (x86_64)

          Show
          dgolovin Denis Golovin added a comment - Same problem on Windows7 (x86_64)
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          Cannot reproduce on Windows XP x86 and Windows 7 x86.
          JBDS: 5.0.0.M3 (v20110901-1244-H15-M3);
          WTP: 3.3.1.

          I will check this on trunk tomorrow.

          Show
          yradtsevich Yahor Radtsevich added a comment - Cannot reproduce on Windows XP x86 and Windows 7 x86. JBDS: 5.0.0.M3 (v20110901-1244-H15-M3); WTP: 3.3.1. I will check this on trunk tomorrow.
          Hide
          akazakov Alexey Kazakov added a comment -

          Probably it's not reproducible in WTP 3.3.1 which introduced a new tag="defaultRootSource" attribute. I'm testing on WTP 3.3.0.

          Show
          akazakov Alexey Kazakov added a comment - Probably it's not reproducible in WTP 3.3.1 which introduced a new tag="defaultRootSource" attribute. I'm testing on WTP 3.3.0.
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          Cannot reproduce it using trunk, Windows XP x86 and WTP 3.3.0. How do you guys do this?
          I will try to check it under Linux...

          Show
          yradtsevich Yahor Radtsevich added a comment - Cannot reproduce it using trunk, Windows XP x86 and WTP 3.3.0. How do you guys do this? I will try to check it under Linux...
          Hide
          maxandersen Max Rydahl Andersen added a comment -

          this doesn't have anything to do with OS's.

          Its easy - File Import Existing Maven Projects and import the AS7 quickstarts and it should happen.

          Look in the components file and see that there are two resources mapped to "/"

          Show
          maxandersen Max Rydahl Andersen added a comment - this doesn't have anything to do with OS's. Its easy - File Import Existing Maven Projects and import the AS7 quickstarts and it should happen. Look in the components file and see that there are two resources mapped to "/"
          Hide
          dgolovin Denis Golovin added a comment -

          components file is ".settings/org.eclipse.wst.common.component

          Show
          dgolovin Denis Golovin added a comment - components file is ".settings/org.eclipse.wst.common.component
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          This file is missing from my project's folder.

          Show
          yradtsevich Yahor Radtsevich added a comment - This file is missing from my project's folder.
          Hide
          maxandersen Max Rydahl Andersen added a comment -

          Yahor, the .settings folder is hidden by default.

          Use the Navigator in eclipse or look directly on the file system.

          Show
          maxandersen Max Rydahl Andersen added a comment - Yahor, the .settings folder is hidden by default. Use the Navigator in eclipse or look directly on the file system.
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          I figured out why I was unable to reproduce this bug. I did not have m2e WTP integration plugins, that is why my project missed WTP natures, that is why getDefaultWebRoot could not be found, and that is why VPE tried to find linked files by itself (successfully).

          Show
          yradtsevich Yahor Radtsevich added a comment - I figured out why I was unable to reproduce this bug. I did not have m2e WTP integration plugins, that is why my project missed WTP natures, that is why getDefaultWebRoot could not be found, and that is why VPE tried to find linked files by itself (successfully).
          Hide
          akazakov Alexey Kazakov added a comment -

          Yahor, you can use org.jboss.tools.jst.web.WebUtils.getWebRootFolders(IProject project) to get the list of root folders. By default this method will eliminate target folders from the result list. If you need such folders anyway then use WebUtils.getWebRootFolders(IProject project, boolean ignoreDerived)

          Show
          akazakov Alexey Kazakov added a comment - Yahor, you can use org.jboss.tools.jst.web.WebUtils.getWebRootFolders(IProject project) to get the list of root folders. By default this method will eliminate target folders from the result list. If you need such folders anyway then use WebUtils.getWebRootFolders(IProject project, boolean ignoreDerived)
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          RESOLVED

          Show
          yradtsevich Yahor Radtsevich added a comment - RESOLVED
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          4QAs:
          To check this issue, you may:

          1. svn co http://anonsvn.jboss.org/repos/jbosstools/trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/ jsf2test
          2. Import the folder jsf2test into Eclipse as existing project
          3. Open jsf2test/WebContent/pages/JBIDE/9753/welcome.xhtml in VPE (it links to /templates/main-web-content2.xhtml which is under /jsf2test/WebContent2)
          4. If anything is OK, you should see:
          Show
          yradtsevich Yahor Radtsevich added a comment - 4QAs: To check this issue, you may: svn co http://anonsvn.jboss.org/repos/jbosstools/trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/ jsf2test Import the folder jsf2test into Eclipse as existing project Open jsf2test/WebContent/pages/JBIDE/9753/welcome.xhtml in VPE (it links to /templates/main-web-content2.xhtml which is under /jsf2test/WebContent2) If anything is OK, you should see:
          Hide
          vpakan Vlado Pakan added a comment -

          Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-27_16-13-53-H37.

          Show
          vpakan Vlado Pakan added a comment - Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-27_16-13-53-H37.

            People

            • Assignee:
              yradtsevich Yahor Radtsevich
              Reporter:
              maxandersen Max Rydahl Andersen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development