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
2
votes
2 answers

Spring loaded 1.2.5 + Spring Boot 1.3.2. can't seem to get it to work

I came across a video on youtube ( https://www.youtube.com/watch?v=GTrNkhVnJBU ) where it demos Spring Loaded. I'm trying to duplicate the same behavior but am still unsuccessful so far. What I'm using: Spring Tool Suite 3.7.2 Spring Boot…
Ronner
  • 183
  • 1
  • 6
2
votes
1 answer

How do I get SpringLoaded to work with Maven in IntelliJ (or on the commandline)?

I have a project that will run fine with mvn spring-boot:run, and I would like the ability to hot swap automatically after compiling. I setup the dependency as follows: org.springframework.boot
end-user
  • 2,845
  • 6
  • 30
  • 56
2
votes
1 answer

Spring Boot work with Spring Loaded and Gradle

I am trying to get a simple Spring-Boot application to work with Spring Loaded and Gradle without any success. I have tried the following: Using Spring-Boot with the bootRun task simply reloads static resources just fine with a simple F5 in the…
ChrisGeo
  • 3,807
  • 13
  • 54
  • 92
2
votes
1 answer

Breakpoints does not work after reloading classes with springloaded in Intellij

I'm running my java application with an "Application" configuration in Intellij and I'm using these vm options for using springloaded: -javaagent:.../springloaded-1.2.0.RELEASE.jar -noverify The class reloading with springloaded works fine. But the…
Matthias M
  • 12,906
  • 17
  • 87
  • 116
2
votes
1 answer

How to scan only specific folders in Spring loaded?

I would like to configure spring-loaded in Eclipse JUNO. I have downloaded the spring-loaded.jar and put it in the eclipse directory where the eclipse.exe is located. I have opened the jetty build.xml file and added the following to the…
JavaTechnical
  • 8,846
  • 8
  • 61
  • 97
2
votes
1 answer

How do I configure spring-loaded with spring tc server?

I run my spring based web application using spring tc server. I run tc server from the command line. D:\vfabric-tc-server-developer\base-instance\bin>tcruntime-ctl.bat run I just came to know about spring loaded which is a JVM agent for reloading…
ajm
  • 12,863
  • 58
  • 163
  • 234
1
vote
1 answer

Unexpected problem processing bytes for class in Grails with Elasticsearch

I'm trying to get Elasticsearch working in my Grails project. I'm using the Java Rest High-level client in Elasticsearch documented here [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.3/java-rest-high-getting-started-maven.html].…
uncommon_breed
  • 172
  • 2
  • 2
  • 13
1
vote
2 answers

Can a bean class instantiate another class inside, and if/how should we avoid it?

Suppose the bean is registered here. @Configuration public class configuration{ @Bean(name = "MyClass") public MyClass getMyClass(@Value("avalue") final String s){ return new MyClass(s); } } } And the class has another…
1
vote
0 answers

auto-reload / hot swap plain groovy dependency in Grails multi-project build

I have a Grails project that includes a separate Gradle project containing utility Java/Groovy classes that are shared among many projects. I am using a multi-project build so that I can develop both projects simultaneously. The utility classes in…
Michael Knopf
  • 121
  • 1
  • 2
  • 4
1
vote
0 answers

kotlin with springloaded on eclipse

I've tried Kotlin with springloaded on spring-boot , eclipse for simple web. For Java class it can do hot deploy. But not for Kotlin file. pom.xml is almost exactly from http://start.spring.io/ except add springloaded.
1
vote
1 answer

Hybris error with Spring-Loaded

I am using Spring-Loaded to realize hot deployment in Hybris project, but there are some errors. And I am using Java Service Wrapper. Start server with command hybrisserver.bat debug wrapper-debug.conf segment: wrapper.java.command=C:\Program…
licaomeng
  • 919
  • 2
  • 13
  • 27
1
vote
0 answers

How to test hotswap with spring-loaded

I run a small Hello! project using spring-boot with spring-loaded. It seems to work but I'm not sure how to actually write a test that tests that the classes are reloading after a change. I can open the code in intellij-idea, start it with gradle,…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
1
vote
2 answers

Grails 2.5.4 auto reloading not working

I am working with grails version 2.5.4. My application is running fine for me but I can't get any change or update if I change my controller code. I am using Intellij Idea 14. When I run my application my code is as below: def index() { render…
1
vote
0 answers

IntelliJ + Gradle + SpringLoaded

I'm trying to add SpringLoaded to project which uses gradle, but hot swapping doesn't work. Here is build.gradle apply plugin: 'war' apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'spring-boot' apply plugin:…
1
vote
0 answers

how to use Spring-Loaded with jboss?

How to use spring-loaded project with jboss 4. As far as I've found that we need to interact with java agent in order to hot swap *.class but how to use it for jboss or how to interact with jboss java-agent?
manojsingh
  • 61
  • 6