Questions tagged [load-time-weaving]

Binary weaving of aspects when a class is loaded.

Load-Time Weaving (LTW) is instrumentation (binary weaving of aspects) at class loading time in a VM.

For example, in Java, it is implemented by AspectJ.

Alternatively, in the .NET world, it is also called "Runtime Weaving" (see the PostSharp documentation).

162 questions
0
votes
1 answer

Where is the openjpa jar used as a -javaagent for websphere 8 applications located?

Or do i have to provide my own? I want to provided load-time JPA entity enhancement following the documentation here: java -javaagent:path/to/openjpa.jar com.xyz.Main i want to find path/to/. Am I on the right track? Is this why my entities are not…
coderatchet
  • 8,120
  • 17
  • 69
  • 125
0
votes
0 answers

WebSphere Load-Time weaving not enhancing jpa entities

I have re-written my entire question with my latest configuration. I have been changing and testing multiple times and still have not found the proper solution. I am having difficulty enabling load-time-weaving for jpa class enhancement in my…
coderatchet
  • 8,120
  • 17
  • 69
  • 125
0
votes
1 answer

Spring transaction stops to work when i add ejb module

I have a ear which consist one ejb and one war module, and other local jar dependencies such as dao and services. I've placed project on github https://github.com/SunPj/spring-load-time-weaving I use spring load time weaving. My dao application…
kraken
  • 484
  • 7
  • 18
0
votes
3 answers

I got ClassNotFoundException when i tried to switch spring to use load time weaving

I've added a in my application context. And i've added necessary libraries and javaagent to my pom.xml Then i got following error 2014-05-23T17:48:11.549+0600 SEVERE Unable to find class…
kraken
  • 484
  • 7
  • 18
0
votes
1 answer

Load-time weaving with AspectJ in the Spring Framework Private methods

I have built an application to test injecting log information (Entering and Exiting) around classes. I have built it using spring and used the following example for building it.…
Jonas P
  • 1
  • 1
  • 2
0
votes
1 answer

Spring AOP using AspectJ LTW not working

I am using spring aop and have defined some aspects. Spring LTW is enabled on my tomcat. In my application context: Aspects are working fine too! but the target class…
AmirMV
  • 215
  • 1
  • 11
0
votes
1 answer

AspectJ aspect not weaving Spring MVC methods with @RequestMapping annotation

I have a standalone aspectJ library ( not related to spring in any way) that I added to app server classpath to monitor the running applications using Load Time Weaving The aspect work perfectly with all methods ( domain, service, DAO...) but for…
Sammy
  • 4,538
  • 8
  • 33
  • 52
0
votes
1 answer

Inter Type Declaration on Compiled Class File

Is it possible to do Inter Type Declarations with AspectJ on Compiled Class Files at Load Time Weaving? As an example: I compile some Groovy code and want to add fields or methods with IDT.
Thorben
  • 953
  • 13
  • 28
0
votes
2 answers

Junit fails due to Aspect

I have a custom security framwork based on annotations.I use the aspectj maven plugin to weave the aspect when it comes across the security annotation for the method. I use jenkins to build the project and the aspectj maven plugin goals are set for…
0
votes
1 answer

Spring maven project BeanCreationException

I have upgraded to Spring source 3.1.0 and i am not sure why my project can no longer find the ReflectiveLoadTimeWeaver I have made sure to add the server runtime libraries in my build path but i still end up with BeancreationExceptions. The stack…
Warz
  • 7,386
  • 14
  • 68
  • 120
0
votes
1 answer

OpenJPA enhancer or load-time weaver

I am getting this exception . org.apache.openjpa.persistence.ArgumentException: Could not locate metadata for the class using alias "Customer". This could mean that the OpenJPA enhancer or…
user888263
  • 111
  • 2
  • 12
0
votes
1 answer

How to interpret my stacktrace?

I use IBM RAD 8 and deploy to websphere and then I get this stacktrace: ERROR ArendeProcessLoginServlet:142 - Fel i ArendeProcessLoginServlet, performTask(): javax.ejb.EJBTransactionRolledbackException: nested exception is: javax.ejb.EJBException:…
1 2 3
10
11