Trouble getting started with AOP, what exactly are the dependencies?
Toby Eggitt
Ranch Hand
Joined: Dec 08, 2004
Posts: 31
posted
0
Hi all,
A long time ago in a galaxy far away, spring provided a jar that included all the dependencies. Well, they don't do that any more, and that's fair enough.... But, given that I don't use (and don't want to use) Maven/Ivy etc. how do I know what supporting jars I need, and where do I find them.
I've been rummaging in the spring docs for two days now, on and off, and have failed to find it. I've been chasing down the class not found exceptions one at a time, and each has just led to something new. Now I have a class not found but all the online comments I can find about that particular class claim that I need a jar I already have (the jar really does not contain the problem class).
Can anyone give a complete list, ideally with the locations they should come from to ensure they're the right versions?
Unzip and Install into a well-known and accessible location. This is where you will locate the jars.
Now that you have the framework, and you are correct, each module is now nicely independently packaged,
from http://www.springsource.org/documentation pick which one interests
you. For instance, if you want to play with SpringBatch then download that.
Pat.
Toby Eggitt
Ranch Hand
Joined: Dec 08, 2004
Posts: 31
posted
0
Hi Pat, thanks for your reply, unfortunately, that doesn't (appear to) work.
The archive contains all the Spring stuff, but not the dependencies. I have the Spring stuff already, but I'm trying to work with AOP, and that needs more support. I've chased down AspectJ, AOP Alliance, and some other things, but do not yet have a full working set, nor do I know if the particular versions I have are the right ones, so I'm still getting class not found exceptions. It's the external dependencies I need to know about, rather than the core jar. Sorry I wasn't clear.
I get that, but it seems there are transitive dependencies too, and those are not listed. B uh t thanks anyway. I will stay with 2.5.5 until I can learn maven, I guess.
Toby Eggitt wrote:I get that, but it seems there are transitive dependencies too, and those are not listed. B uh t thanks anyway. I will stay with 2.5.5 until I can learn maven, I guess.
Maybe just the aopalliance jar. But there aren't any other jars that you need.
Well, if you are stuck, you could make a mini maven project with all the spring dependencies that you need, and run mvn dependency::tree to get all the dependencies. Much better than tracking down individual ClassNotFoundExceptions I think
Doesn;t need much. Your problem might be that you have an older version of aopalliance.jar or commons-logging.jar. If you use maven to dwnload your dependencies, the correct version will end up in your local repo.
Manish Sridharan
Ranch Hand
Joined: Jul 19, 2005
Posts: 62
posted
0
I too have similar dependency issue while using spring 3.1.1. I have downloaded following jars
1. aopalliance-1.0.jar
2. asm-all-4.0_RC1.jar
3. aspectj-1.6.12.jar
4. aspectjrt.jar
5. aspectjtools.jar
6. aspectjweaver.jar
7. cglib-2.2.2.jar
8. commons-dbcp-1.4.jar
9. commons-pool-1.6.jar