I've developed a stand alone application using latest Jackrabbit libraries and now I wish to evolve it in a jboss service (sar) useable in my application. Sadly, while deploying on server, I get "ClassCastException", caused (so I believe) by conflicts between jackrabbit classes provided by my application and portal. I tried to set up a classloaders isolation but it didn't work. My application structure is:
- /lib/a-lot-of.jar <- here are latest jackrabbit libraries too
- Where to place jackrabbit's libraries? (EAR/lib, SAR/lib, etc...)
- How to force my service to work with that libraries?
- How to avoid conflicts between my service and portal?