Questions tagged [spring-loaded]

Java agent that enables class reloading in a running JVM

Spring Loaded is a JVM agent for reloading class file changes whilst a JVM is running. It transforms classes at loadtime to make them amenable to later reloading. Unlike 'hot code replace' which only allows simple changes once a JVM is running (e.g. changes to method bodies), Spring Loaded allows you to add/modify/delete methods/fields/constructors. The annotations on types/methods/fields/constructors can also be modified and it is possible to add/remove/change values in enum types.

Spring Loaded is usable on any bytecode that may run on a JVM, and is actually the reloading system used in Grails 2.

Online resources:

59 questions
39
votes
5 answers

Spring Boot + Spring-Loaded (IntelliJ, Gradle)

I'd like to use hot swap with my Spring Boot project. Somehow I am not able to make it working by running it in my IDE (IntelliJ), despite of having this topic covered by documentation. I simply run the class with my main method with VM…
kuceram
  • 3,795
  • 9
  • 34
  • 54
12
votes
2 answers

IntelliJ + Tomcat + Spring-Loaded

I would like to try out Spring Source's "Spring Loaded" class reloading agent, with Tomcat run via IntelliJ. https://github.com/SpringSource/spring-loaded I've added the JVM arguments to my Tomcat run configuration, and my webapp starts up without…
sdouglass
  • 2,350
  • 16
  • 25
11
votes
2 answers

Intellij + springboot + maven + spring-loaded

I have an issue where debugging stops working in Intellij, when applying Spring-loaded as a dependency to the maven plugin. Situation 1 (working): Using a autogenerated spring-boot maven (pom.xml) file with a declared "Spring-boot-maven-plugin" I…
Hoof
  • 1,738
  • 2
  • 17
  • 39
8
votes
2 answers

how can I disable reloading in a grails 3.0.0 app?

It appears that the spring reloading causes errors with JDK 8u40 in Grails 3.0.0.M2. Can I disable the reloading in development mode? Is there a key to set in the build.gradle or in the application.yml?
Dierk
  • 1,308
  • 7
  • 13
7
votes
3 answers

Disable reloading in Grails 3.1 / springloaded

I'm trying to disable automatic reload/recompiling in Grails 3.1 as I would like to use JRebel instead. I find springloaded rather limited, but more importantly is constantly fails with File…
runeaen
  • 461
  • 5
  • 22
7
votes
5 answers

Spring Loaded: Integration with Spring MVC maven project

I just stumbled upon the Spring Loaded project on the Spring website today. I'm trying to integrate this into a Spring MVC (using Maven and TOMCAT) I've been working on. As per the instructions on the project page, I've downloaded the JAR file and…
va1b4av
  • 431
  • 9
  • 26
6
votes
2 answers

Reloading Vaadin UIs without restarting the application

I am developing a Vaadin 8 UI. At the moment, each time I modify the UI, I have to restart my application. Is there a better way? I have tried attaching the Java debugger and using IntelliJ's Reload Changed Classes feature, but the hotswap fails. I…
Rich
  • 15,602
  • 15
  • 79
  • 126
6
votes
2 answers

Using Spring loaded in spring mvc framework

I am having some issues using spring loaded with spring mvc. I added the spring loaded jar as a java agent on the server. Now when I added new methods for instance in my case I added a new method testHomes(), and it gives me with this dialog. Below…
Manish Basdeo
  • 6,139
  • 22
  • 68
  • 102
6
votes
3 answers

Grails auto-reloading new controller actions

I've created new Grails 2.4.3 project created TestController set grails.reload.enabled = true in BuildConfig.groovy run application with grails -reloading run-app My controller action code: def index() { render "test" } When I change the…
Xeon
  • 5,949
  • 5
  • 31
  • 52
5
votes
1 answer

Where can I find the source for springloaded-core jar?

I can't seem to find this anywhere and am assuming that this jar is built as part of something else. Anyone know where I can get the source? I am using version 1.0.2.
David Tinker
  • 9,383
  • 9
  • 66
  • 98
4
votes
3 answers

Spring Boot, Spring Loaded, Eclipse, Maven basic example

I find that the basic example setup of Spring Boot with Spring Loaded does not work according to the documentation. I followed the instructions at…
Fletch
  • 4,829
  • 2
  • 41
  • 55
4
votes
5 answers

Grails 2.0.4 Error opening zip file or JAR manifest missing Springloaded

I've just downloaded Grails 2.0.4 and extracted it to /opt/grails/grails-2.0.4/ and made sure that the GRAILS_HOME environment variable is correct. But whenever I try run the "grails" command, I get the following error: Error opening zip file or JAR…
sim
  • 3,552
  • 5
  • 23
  • 23
3
votes
2 answers

Problems with spring-loaded on a spring-boot application

I use spring-boot version 1.3.5.RELEASE together with springloaded 1.2.5.RELEASE. I followed the instructions at http://docs.spring.io/spring-boot/docs/current/reference/html/howto-hotswapping.html and…
thama
  • 31
  • 4
3
votes
1 answer

Spring-Loaded setup for Intellij

I downloaded spring-loaded.jar and tried to set it up for IntelliJ but unfortunately it did not work. So, here is my questions: 1) What needs to be done exactly to set it up? 2) How do I trigger hot-swap?
led
  • 611
  • 4
  • 11
  • 18
2
votes
0 answers

core was generated by springloaded.jar

I use springloaded-1.2.3.jar to implement hot deploy in my project .And my project run with springboot in Linux. i run the main class with -javaagent springloaded.jar -noverify. it works to hot deploy, but problem is Everytime I run the project for…
kim.jx
  • 21
  • 2
1
2 3 4