Skip to content

@RequestMapping (Spring MVC) not remapped, beans and methods are hotSwapped properly #300

@janboksay

Description

@janboksay

Beans are hotSwapped correctly (I can add methods, and such, and hotswapping will be done correctly in the deployed application), but changing a mapping value inside a controller won't trigger remapping.

Versions and stuffs:

Java jdk1.8.0_181 with altjvm 25.71-b01-dcevmlight-26
Hotswap agent 1.3.0
Maven
WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final)
Spring MVC 4.2.6.RELEASE
Hibernate Core 5.0.7.Final
hibernate Search 5.5.1.Final
Lucene - LUCENE_CURRENT

Don't know if you need those, but I'll throw them in for good measure:
XNIO version 3.3.4.Final
PicketBox 4.9.4.Final
Undertow 1.3.15.Final
JBoss Modules version 1.5.1.Final
JBoss MSC version 1.2.6.Final
JBoss Remoting version 4.0.18.Final
JBossWS 5.1.3.Final (Apache CXF 3.1.4)

PS: There are some WARNINGs about some classes not having default constructors and HotSwap Agent is thus unable to reload them - those are read-only classes, so reloading is not needed.

I've set the level of HotSwap logging to debugging, so that you may see what exactly is loaded, etc. in the log (also added controller xml definitions to the start of the log file). I'm adding the log to this issue.

The only thing that I did to produce the log was to -

  1. start the application fully
  2. Change the mapping in controller from /new to /new2
  3. Try it out in browser, to no avail
  4. Revert the change and try changing the controller mapping again a second time.

BugReportHotSwapAgent.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions