As I see we can introduce the directory in which the EAR file is located, in
this case, we encounter following error message:

org.apache.openejb.OpenEJBException: Invalid path to module Could not find
resource 'classes': Could not find resource 'classes'
        at
org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:222)
        at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:126)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:390)
        at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:309)
        at 
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:249)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:149)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:288)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:267)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
        at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:62)
        at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
        at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at 
com.kishware.common.locator.BeanLocator.initialize(BeanLocator.java:99)
        at
com.kishware.common.locator.SessionBeans.initializeLocator(SessionBeans.java:146)
        at com.kishware.common.locator.SessionBeans.init(SessionBeans.java:77)
        at 
com.kishware.core.deposit.service.ServiceTest.setUp(ServiceTest.java:46)
        at
com.kishware.core.deposit.service.main.TestDepositAccountManagement.setUp(TestDepositAccountManagement.java:24)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
        at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
        at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.io.IOException: Could not find resource 'classes'
        at org.apache.xbean.finder.ResourceFinder.find(ResourceFinder.java:127)
        at
org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:217)
        ... 38 more


-----
--
Regards

Mohammad Norouzi

Help each other to reach the future faster

http://pixelshot.wordpress.com Pixelshot Photoblog 

http://brainable.blogspot.com Brainable Blog 


-- 
View this message in context: 
http://www.nabble.com/problem-with-running-junit-test-cases-tp24887267p25151352.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to