Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Package sar in ear-how?

avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I use maven2 for build.
i package my application as an ear with the following structure:
lib - with third parties jars.

As you see I use sar in order to startup task when the application is loaded (I put dependency on the MBean in order to load after all ejb were loadeded )

The server-startup use classes in server and server-inf.
The sar is loaded after all ejb were loaded , but I get ClassNotFound when I try in server-startup code to load classes from server.jar

Any solution will be more than welcome.

Thank you
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic