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

AS7 Adapter : Deployment of OSGI projects fails if the temporary folder doesn't exist

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.3.0.M3
    • Fix Version/s: 3.3.0.M4
    • Component/s: server
    • Labels:
      None
    • Environment:

      JBossTools 3.3.0.M3-H18

    • Steps to Reproduce:
      Hide

      In order to reproduce, I believe (haven't tried) you can :

      Show
      In order to reproduce, I believe (haven't tried) you can : create an AS7 server delete the temp deployment folder try to deploy a OSGI bundle (see https://docs.jboss.org/author/display/AS7/Helloworld+OSGi+quickstart )
    • Estimated Difficulty:
      Low

      Description

      I noticed that, in the context of JBIDE-9133, for the existing broken AS7 server instances the utility projects were not zipped to the deployment area.
      On the other hand, creating a new server instance fixed the issue.

      So it seems the temporary folder is only created at the same time as the server instance.
      It's an issue in the sense that you can not guarantee the temporary folder will exist at deployment time (could have been deleted by the user ...).

      Solution is to call tempdir.mkdirs() right before the actual deployment occurs.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lzoubek Libor Zoubek
                  Reporter:
                  lzoubek Libor Zoubek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: