0

I have a JEE web project that I first created in Eclipse. I used the Eclipse jrebel plugin to debug, and everything works fine. Now I have migrated it to IntelliJ, and am using the JRebel plugin. The project seems to deploy fine when I run it. Breakpoints on startup code are hit. However, when I bring up the home page in my browser I get an error 'Request not understood by server. (404)'. REST calls are not working. I have not trying to make any in-flight changes to the code, just want to get it working first.

I have looked in jrebel.log, there is nothing special there.

nitind
  • 19,089
  • 4
  • 34
  • 43
user2689782
  • 747
  • 14
  • 31
  • Check the deployment context in the run configuration, see the server logs. Make sure you open the correct URL that corresponds to the deployment context. – CrazyCoder Apr 30 '19 at 21:19
  • It is the correct URL - it works fine if run in plain debug in the IDE. These issues are only when running with JRebel Debug – user2689782 Apr 30 '19 at 21:58

1 Answers1

0

I found the solution - don't use the rebel.xml files that are generated by IntelliJ, use the maven plugin instead. Add this to the maven file in your parent pom -

<build>
...
 <plugin>
                    <groupId>org.zeroturnaround</groupId>
                    <artifactId>jrebel-maven-plugin</artifactId>
                    <version>1.1.9</version>
                    <executions>
                          <execution>
                                <id>generate-rebel-xml</id>
                                <phase>process-resources</phase>
                                <goals>
                                      <goal>generate</goal>
                                </goals>
                          </execution>
                    </executions>
              </plugin>
...
</build>
user2689782
  • 747
  • 14
  • 31