6 Replies Latest reply on Dec 13, 2013 7:54 AM by chaluwa

    Errai Dev Mode not refreshing content

    cristianmiranda

      Hi guys,

       

           I've implemented JBoss Launcher (New Development Mode Setup in Errai 3.0 Milestone 2 | Errai Developer Blog | Planet JBoss Community) in my Errai 2.4.2.Final application but I can't see client-side changes reflected when I refresh my browser, I always have to re run the application to see them applied.

       

           Here is my pom.xml: http://pastebin.com/Ujw1wSnB  ... I'm using jboss7 profile.

       

      Am I missing something?

       

      Thanks in advance,

      Regards,

        • 1. Re: Errai Dev Mode not refreshing content
          magick93

          I am using 2.4.2 - not with the new development mode, but with jetty - and also cannot see client changes when I refresh.

           

          This makes developing painfully slow.

          • 2. Re: Errai Dev Mode not refreshing content
            mbarkley

            Hi Cristian,

             

            Relating to the discussion we had on IRC, I checked out the errai-ui-i18n-demo and I managed to fix the Dev Mode refreshing in that project.

             

            Can you please try adding this to your pom in the build section:

                <resources>
                  <resource>
                    <directory>src/main/java</directory>
                  </resource>
                </resources>
            

            Then do an "Maven" > "Update Project" in Eclipse.

             

            This gets Eclipse to copy java source files to src/main/webapp/WEB-INF/classes, which seems to be necessary for Dev Mode to update.

             

            Please let me know if this works for you.

             

            Cheers.

            • 3. Re: Re: Errai Dev Mode not refreshing content
              chaluwa

              I have the same issue with my project, which is based on the errai-tutorial demo for 3.0-SNAPSHOT. My pom already has the entry, but I cannot refresh tto see changes:

              <build>
                  <finalName>${project.artifactId}</finalName>
                  <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
              
              
                  <resources>
                    <resource>
                      <directory>src/main/java</directory>
                    </resource>
                    <resource>
                      <directory>src/main/resources</directory>
                    </resource>
                  </resources>
              
              
              
              ....
              
              • 4. Re: Re: Errai Dev Mode not refreshing content
                edewit

                I had the same problem I had to do a mvn compile to see the changes

                • 5. Re: Errai Dev Mode not refreshing content
                  cristianmiranda

                  I have the same in my pom.xml. Are you using Eclipse or Intellij IDEA?

                  • 6. Re: Re: Errai Dev Mode not refreshing content
                    chaluwa

                    I just did mvn clean complie. It downloaded a lot of stuff and compiled successfully, but still not refreshing to see changes.