Announcement Announcement Module
Collapse
No announcement yet.
Using spring-agent.jar from Command Line Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using spring-agent.jar from Command Line

    I have a Spring JPA desktop application that works just fine in Eclipse 3.5. The app uses load-time-weaving and loads spring-agent.jar at run time. I export the project to a jar file and I can't get it to work. I'm trying this command line:

    java -javaagent:C:\path\to\spring-agent.jar -jar MovieVideosSpringJPA.jar

    The error output mentions the DAO, the EMF, then what I believe is the real problem:

    nested exception is java.lang.IllegalStateException: Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation.

    I've double and triple checked the path to spring-agent.jar which was cut and pasted anyway to prevent any error. I think I'm doing something fundamentally wrong on the command line. Any help appreciated.

    Mike
Working...
X