diff --git a/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java b/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java index 6016cf665a5..a715d26280f 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java +++ b/org.springframework.context/src/main/java/org/springframework/context/weaving/DefaultContextLoadTimeWeaver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,8 +80,8 @@ public class DefaultContextLoadTimeWeaver implements LoadTimeWeaver, BeanClassLo this.loadTimeWeaver.getInstrumentableClassLoader().getClass().getName()); } catch (IllegalStateException ex) { - throw new IllegalStateException(ex.getMessage() + " Specify a custom LoadTimeWeaver " + - "or start your Java virtual machine with Spring's agent: -javaagent:spring-agent.jar"); + throw new IllegalStateException(ex.getMessage() + " Specify a custom LoadTimeWeaver or start your " + + "Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar"); } } } diff --git a/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java b/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java index 02808a1807f..fb71a522191 100644 --- a/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java +++ b/org.springframework.context/src/main/java/org/springframework/instrument/classloading/InstrumentationLoadTimeWeaver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,15 +32,14 @@ import org.springframework.util.ClassUtils; * *
Start the JVM specifying the Java agent to be used, like as follows: * - *
-javaagent:path/to/spring-agent.jar
+ *
-javaagent:path/to/org.springframework.instrument.jar
*
- *
where spring-agent.jar is a JAR file containing the
- * {@link InstrumentationSavingAgent} class.
+ *
where org.springframework.instrument.jar is a JAR file containing
+ * the {@link InstrumentationSavingAgent} class, as shipped with Spring.
*
- *
In Eclipse, for example, set the "Run configuration"'s JVM args - * to be of the form: + *
In Eclipse, for example, set the "Run configuration"'s JVM args to be of the form: * - *
-javaagent:${project_loc}/lib/spring-agent.jar
+ *
-javaagent:${project_loc}/lib/org.springframework.instrument.jar
*
* @author Rod Johnson
* @author Juergen Hoeller