• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

ProxyFactory Problem

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, this is my first post since I am new at Spring and all, first of all I apologizes if this has being post already I try to look for it but didn't find the solution, however I found a similar problem in this post:

https://coderanch.com/t/453277/Spring/Application-Frameworks/Hello-World-with-AOP#2018936


Allow me to explain my situation, I am trying to implement a simple AOP aspect into my main Class, my program consist in two classes:
1)

2)

When I try to run this program I get the following error:

I have mark in red the line that is causing problem in the compiler, when I look up the error It said that it was a CLASSPATH error but don't know how to fix it.

If anyone has a solution or comment please you are more than welcome, and if more information is needed please ask away

Thanks in advance

Eddie
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What libraries are you deploying? Looks like you're missing the ASM jar.
 
Javier Montagna
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:What libraries are you deploying? Looks like you're missing the ASM jar.



I am using spring-2.5.jar , but inside I do have the org.springframework.asm

I don't know if I answer your question haha, let me know if something is missing

PS: I am ussing NetBeans 6.8

Thanks for the reply
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you're missing the ASM library.
 
Javier Montagna
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:Yes, you're missing the ASM library.



Yes thank you very much!! It's working now jeje.

The solution is the following in case someone has the same problem:

1) Visit the following website: http://forge.ow2.org/project/download.php?group_id=23&file_id=12944 and download the file
2) Extract the zip file
3) Add the following library:
a) asm-all-3.2

Then run and it works.

Thanks again (I surely wish the book mention this ha-ha)

Have a great day
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All of the Spring dependencies are included in the Spring download that includes dependencies; it's important to use the correct version.

Glad you got it working!
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic