9 Replies Latest reply on Jan 13, 2014 11:45 AM by mbarkley

    "new development mode" problems

    magick93

      HI

       

      I'm trying to setup my development environment as described here - http://errai-blog.blogspot.dk/2013/11/new-development-mode-setup-in-errai-30.html

       

       

       

      But, when I try to deploy my app, I get the following error. Does anyone have any suggestions?

       

              00:00:09.236 [ERROR] Could not deploy webapp.war 

      org.jboss.as.cli.CommandFormatException: {
          "outcome" => "failed",
          "failure-description" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"webapp.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"webapp.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"webapp.war\""}},
          "rolled-back" => true
      }
           at org.jboss.as.cli.handlers.OperationRequestHandler.handle(OperationRequestHandler.java:79)
           at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:442)
           at org.jboss.errai.cdi.server.as.JBossServletContainerAdaptor.<init>(JBossServletContainerAdaptor.java:125)
           at org.jboss.errai.cdi.server.gwt.JBossLauncher.start(JBossLauncher.java:113)
           at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
           at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)
           at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
           at com.google.gwt.dev.DevMode.main(DevMode.java:311)
        • 1. Re: "new development mode" problems
          mbarkley

          Hi Anton,

           

          Can you see if there's any more description of the error in the Development Window under the Server tab?

           

          Cheers.

          • 2. Re: "new development mode" problems
            magick93

            Hi Max

             

            The only node with any info is the one selected in the image below.

            And, while it says the jboss is 'widlfly' it actually Jboss 7.1 - we are running our errai app on this server successfully elsewhere.

            Image 42.png

            • 3. Re: "new development mode" problems
              magick93

              I noticed this in the console:

               

              15:55:05,237 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-13) MSC00001: Failed to start service jboss.deployment.unit."webapp.war".STRUCTURE: org.jboss.msc.service.StartException in servic

              e jboss.deployment.unit."webapp.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "webapp.war"

                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]

                      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

              Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content

                      at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                      ... 5 more

              Caused by: java.io.FileNotFoundException: C:\Users\Anton\git\wildfly\bin\UsersAntongitapp.uiapp.uisrcmainwebapp (The system cannot find the file specified)

                      at java.io.FileInputStream.open(Native Method) [rt.jar:1.7.0_25]

                      at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.7.0_25]

                      at org.jboss.vfs.spi.RootFileSystem.openInputStream(RootFileSystem.java:57) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]

                      at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:238) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]

                      at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:567) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]

                      at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:97) [jboss-as-server-7.1.1.Final.jar:7.1.1.

              Final]

                      at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:87) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                      ... 6 more

               

               


              C:\Users\Anton\git\wildfly\bin\UsersAntongitapp.uiapp.uisrcmainwebapp (The system cannot find the file specified)

              Im not sure what this line should be- perhaps a path to the compiled war file?

              Anyway, it is very wrong.


              Ive tried changing these lines:

              <errai.jboss.home>C:\Users\Anton\git\wildfly\</errai.jboss.home>

              <settings.localRepository>C:\Users\Anton\.m2\repository\</settings.localRepository>

               

              to

               

              <errai.jboss.home>C:\\Users\\Anton\\git\\wildfly\\</errai.jboss.home>

              <settings.localRepository>C:\\Users\\Anton\\.m2\\repository\\</settings.localRepository>

               

              But it did not change the result.


              • 4. Re: "new development mode" problems
                mbarkley

                Hi Anton,

                 

                Are there any other error messages or stack traces printed to the terminal?

                • 5. Re: "new development mode" problems
                  mbarkley

                  Hi Anton,

                   

                  Am I correct in assuming you're using milestone 2 as the version for development mode? There was a critical issue resolved for dev mode on windows in the next milestone. Could you try using 3.0.0.20131205-M3 as the version for errai dev mode and see if that fixes the issue?

                  • 6. Re: "new development mode" problems
                    magick93

                    Hi Max

                     

                    There are no other error messages.

                     

                    And using 3.0.0.20131205-M3 did not change the result.

                     

                    Thanks

                    • 7. Re: "new development mode" problems
                      mbarkley

                      Hi Anton,

                      C:\Users\Anton\git\wildfly\bin\UsersAntongitapp.uiapp.uisrcmainwebapp (The system cannot find the file specified)

                      I'm guessing that file is supposed to be the absolute path to your "src/main/webapp" directory in your project.

                       

                      Can you please post the <deployments> section of the generated standalone-errai-dev.xml to confirm this? The file is put in $JBOSS_HOME/standalone/configuration when dev mode starts, but deleted on exit so you'll have to copy it after doing a `mvn gwt:run`.

                       

                      It might also help to see the configuration of the maven-gwt-plugin in your pom.

                       

                      Cheers.

                      • 8. Re: "new development mode" problems
                        srrehman

                        Hi Max

                        I m having the same problem and I m using Windows7. Following is my deployments section:

                        <deployments>

                                <deployment name="webapp.war" runtime-name="webapp.war" enabled="false">

                                    <fs-exploded path="C:UsersSana Shafqatgitapp.ui-newsrcmainwebapp"/>

                                </deployment>

                            </deployments>

                         

                        This is very weried . It should be like this

                        C:\Users\Sana Shafqat\git\app.ui-new\src\main\webapp

                        • 9. Re: "new development mode" problems
                          mbarkley

                          Hi Saif,

                           

                          I've spent some more time looking in to this, but I've still been unable to reproduce the problem. But I would really love to get to the bottom of this issue, so if you have the time I encourage you to submit a bug on Jira, with any relevant details of your build environment and the contents of your pom.xml.