java - EAR and EJB classloader error -


i`m developing client uses library overthere 2.3.1. local machine client works perfectly. when try call same code included ejb 3.0, i've got exception not required classes have been loaded.

i`ve looked on source , found class contains protocol annotation scanner (https://github.com/hierynomus/scannit) hardcoded class name:

scannit scannit = new scannit(configuration.config()      .scan("com.xebialabs")      .with(new abstractscanner[] { new typeannotationscanner() })); 

the command

thread.currentthread().getcontextclassloader().getresources("com/xebialabs")  

returns null.

looks ejb runs in separate classloader not have access jars.

the ejb packed ear following structure:

ear     --meta-inf     ----sda-dd.xml ----sap_manifest.mf ----manifest.mf   ----application-j2ee-engine.xml     --ejb.jar     --extlibs.jars 

the manifest.mf file don`t contain referenses external libs in class-path. ear project deployed application server successfully.

the ejb.jar contains meta-inf/manifest.mf value "class-path: ." default.

i`ve tried playing around class-path in manifest files, have no luck.

could me, how build project external libs loaded while ejb runs? have missed resources , classloaders?


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -