Hi there, I just installed openEJB v3.1.1 in order to unit test the ejbs I am creating in my webapp as part of a TDD approach that I am trying to incorporate. Anyways, I am currently getting the following errors and cannot seem to resolve them.
################################################################################################################################################################ Apache OpenEJB 3.1.1 build: 20090530-06:18 http://openejb.apache.org/ INFO - openejb.home = C:\__Working\Netbeans Projects\MyApp\MyApp-ejb INFO - openejb.base = C:\__Working\Netbeans Projects\MyApp\MyApp-ejb INFO - Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service) INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) INFO - Found EjbModule in classpath: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\build\test\classes INFO - Found ClientModule in classpath: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\lib\hibernate-persistence\javassist.jar INFO - Found ClientModule in classpath: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\lib\JasperReports3.5.2\iText-2.1.0.jar INFO - Found ClientModule in classpath: C:\Program Files\NetBeans 6.7.1\java2\ant\lib\ant.jar INFO - Found ClientModule in classpath: C:\Program Files\NetBeans 6.7.1\java2\ant\lib\ant-launcher.jar INFO - Found ClientModule in classpath: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\lib\OpenEJB\xml-resolver-1.2.jar INFO - Found EjbModule in classpath: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\build\jar INFO - Found ClientModule in classpath: C:\Users\me\Documents\Downloads\glassfish\lib\webservices-tools.jar INFO - Beginning load: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\build\test\classes INFO - Beginning load: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\lib\hibernate-persistence\javassist.jar INFO - Beginning load: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\lib\JasperReports3.5.2\iText-2.1.0.jar INFO - Beginning load: C:\Program Files\NetBeans 6.7.1\java2\ant\lib\ant.jar INFO - Beginning load: C:\Program Files\NetBeans 6.7.1\java2\ant\lib\ant-launcher.jar INFO - Beginning load: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\lib\OpenEJB\xml-resolver-1.2.jar INFO - Beginning load: C:\__Working\Netbeans Projects\MyApp\MyApp-ejb\build\jar INFO - Beginning load: C:\Users\me\Documents\Downloads\glassfish\lib\webservices-tools.jar INFO - Configuring enterprise application: classpath.ear WARN - No application-client.xml found assuming annotations present: classpath.ear, module: javassist.jar WARN - No application-client.xml found assuming annotations present: classpath.ear, module: iText-2.1.0.jar WARN - No application-client.xml found assuming annotations present: classpath.ear, module: ant.jar WARN - No application-client.xml found assuming annotations present: classpath.ear, module: ant-launcher.jar WARN - No application-client.xml found assuming annotations present: classpath.ear, module: xml-resolver-1.2.jar WARN - No application-client.xml found assuming annotations present: classpath.ear, module: webservices-tools.jar java.lang.Exception: Could not load 1/0/com/sun/codemodel/CodeWriter.class at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:730) at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:141) at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:113) at org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:313) at org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:257) at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:184) at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247) at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601) at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:551) at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:380) at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:292) at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:271) at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137) at org.apache.openejb.OpenEJB.init(OpenEJB.java:286) at org.apache.openejb.OpenEJB.init(OpenEJB.java:265) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36) at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71) at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53) at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:197) at us.tx.state.tdcj.ocrt.service.updater.OffenderLocationUpdateSessionBeanTest.setUp(OffenderLocationUpdateSessionBeanTest.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:515) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1031) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:888) java.lang.Exception: Could not load 1/0/com/sun/codemodel/JAnonymousClass.class at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:730) at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:141) at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:113) at org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:313) at org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:257) at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:184) at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247) at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601) at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:551) at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:380) at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:292) at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:271) at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137) ...... java.lang.Exception: Could not load 1/0/com/sun/codemodel/JArray.class java.lang.Exception: Could not load 1/0/com/sun/codemodel/JArrayClass$1.class java.lang.Exception: Could not load 1/0/com/sun/codemodel/JArrayClass.class java.lang.Exception: Could not load 1/0/com/sun/codemodel/JArrayCompRef.class java.lang.Exception: Could not load 1/0/com/sun/codemodel/JAssignment.class java.lang.Exception: Could not load 1/0/com/sun/codemodel/JAssignmentTarget.class ........ java.lang.Exception: Could not load 1/0/com/sun/relaxng/javadt/AbstractDypeImpl.class java.lang.Exception: Could not load 1/0/com/sun/relaxng/javadt/DypeLibraryImpl.class java.lang.Exception: Could not load 1/0/com/sun/relaxng/javadt/JavaIdentifierDype.class java.lang.Exception: Could not load 1/0/com/sun/relaxng/javadt/JavaPackageDype.class java.lang.Exception: Could not load 1/0/com/sun/relaxng/javadt/Name.class java.lang.Exception: Could not load 1/0/com/sun/tools/xjc/AbortException.class java.lang.Exception: Could not load 1/0/com/sun/tools/xjc/BadCommandLineException.class java.lang.Exception: Could not load 1/0/com/sun/tools/xjc/CodeAugmenter.class java.lang.Exception: Could not load 1/0/com/sun/tools/xjc/ConsoleErrorReporter.class ......... java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XSAnnotion.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XStContainer.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XStGroupDecl.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XStributeDecl.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XStributeUse.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XSComplexType.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XSComponent.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XSContentType.class java.lang.Exception: Could not load 1/0/com/sun/xml/xsom/XSDeclarion.class ........ java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/Calog.class java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/CalogEntry.class java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/CalogException.class java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/CalogManager.class java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/Resolver.class java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/Version.class java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/apps/XParseError.class java.lang.Exception: Could not load 1/0/org/apache/xml/resolver/apps/resolver.class .......... ###################################################################################################################################################################### and so on for a bunch of classes. I looked at the 1/0/com/sun/codemodel/*.class files and noticed that they are supposed to be in the jaxb-xjc-2.1.8.jar. So I went ahead and added that to the OpenEJB library, but that did not resolve the isse. Can you tell me what I need to do to get rid of these Exception messages? Thanks for the help in advance !!! Best Regards SG Peter
