Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 jar in lib, not found in classpath

open
None
5
2010-09-07
2010-09-07
Dave B
No

I am using onejar to build a spring based executable jar from a set of maven configured projects all developed in an eclipse 3.5.2 environment. First off, onejar configured in the project.xml and executed from a eclipse initiated mvn package failed to build a complete jar. The jar was void of any locally available dependent project. The fix for that was to open up a console to the directory of the main project and run mvn package from there. So all dependencies seem to be included.

Now when I attempt to run the jar, I get the following error:

Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.

I made sure the library cglib-2.1_3.jar is included in the jar lib directory.

Any help is appreciated!
Hope this is enough information
Thanks
Dave

Discussion

  • P. Simon Tuffs
    P. Simon Tuffs
    2010-09-07

    I will try to take a look at this this week. Can you provide your pom.xml file, this may help me figure out what's up.

    Simon.

     
  • P. Simon Tuffs
    P. Simon Tuffs
    2010-09-07

    • assigned_to: nobody --> simontuffs
     
  • Dave B
    Dave B
    2010-09-07

    Effective POM copied from eclipse

     
    Attachments
  • Dave B
    Dave B
    2010-09-07

    Thanks very much!

    I've added the Effective POM of the project I am attempting to package as a onejar. There are many other POMs in the dependency tree. Let me know if you need any more.