This is a weird one. The error only happens when I run through eclipse and Junit. It works fine when I release the identical code to a full blown web container and it works fine when I externalize the code into a stand alone Java application. The error is
java.lang.NoClassDefFoundError: com.filenet.apiimpl.util.J2EEUtil (initialization failure)
The error is reporting that the class can't be initialized, but there is no other detail as to what the J2EEUtil class is dependent on. I am having trouble figuring out how to prove or disprove this.
I have confirmed through verbose class loading that the JAR (Jace.jar) and the class itself are being loaded.
I am also looking for other ideas and thoughts if you believe I have misdiagnosed the problem. Thanks a lot.
PS - I am running it by right clicking on the JUnit testing class and choosing Run As -> JUnit Test. I have included the following annotations at the top of the JUnit test to load Spring artifacts:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("/SpringConfig.xml")
@EnableTransactionManagement
@TransactionConfiguration(defaultRollback=true)
@Transactional