jboss - NoClassDefFoundError for EJB Home class -


i'm using jboss 4.2.3, ejb2, xdoclet , have deployed 1 ear ejbs in it, , other ears various websites in them.

when trying access ejb 1 of websites, noclassdeffounderror. seems lookup successful. can see, example, getcontext().lookup(securityserviceremotehome.jndi_name) returns of class "$proxy266". see in jboss's jndi view binding:

remote (proxy: $proxy266 implements interface com.icumed.ifactory.service.session.securityserviceremotehome,interface javax.ejb.handle) 

fyi, securityserviceremotehome.jndi_name = "ejb/ifactory/securityservice/remote"

right after lookup, call this, error thrown:

home = (securityserviceremotehome)portableremoteobject.narrow(obj,     securityserviceremotehome.class); 

i've heard might unnecessary , can straight type conversion here, don't think that's problem. i've read on web far, seems maybe securityserviceremotehome cannot loaded. perhaps ancillary classes missing? don't see errors indicating this, though. what's best way go debugging this?

after more digging around, found answer. has jboss-app.xml file , loader-repository element. background had 1 complete ear file wars , ejbs in it. have decided break them apart, , when did so, modified jboss-app.xml files archive name different each one. wrong. must same between ear ejbs , ears wars (yes, don't need ear file if it's war...except on oc4j). furthermore, must have loader-repository element present archive name. leaving out causes other problems.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -