• Post Reply Bookmark Topic Watch Topic
  • New Topic

Package sar in ear-how?  RSS feed

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

I use maven2 for build.
i package my application as an ear with the following structure:
lib - with third parties jars.
Server.jar
Server-inf.jar
Persistence.jar
Server-startup.sar

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
Boost this thread!