Can you please send your InitialContext configuration in the JUnit
test case, as well as the output you receive when running the test
case. With this I mean the Stdout+Stderr, not the filtered output IDEs
usually provide. If I'm not mistaken, you will find this in Eclipse's
"Console" view.
Q
On Tue, Sep 8, 2009 at 12:16 PM, sL07 <lucio@asteriski.com> wrote:
>
> hi all
>
> openEJB3.1.1 cant seem to find my EJB classes when in an eclipse 3.5 multi
> project workspace.
>
> I have project A, project B.
> Project A has the EJB classes.
> Project B has the openEJB test case.
>
> Project B reference Project A EJB's classes using 'add class folder' in
> build path.
>
> The test correct compiles in eclipse but when it is executed in Junit, it
> states it cant find reference to EJB.
>
> java.lang.IllegalArgumentException: Unknown entity:
> com.asteriski.itpflow.entity.ProjectActivityReference
> at
> org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:223)
> at
> org.apache.openejb.persistence.JtaEntityManager.persist(JtaEntityManager.java:97)
> at
> com.asteriski.itpflow.business.ReferenceBusinessTest.findAllWithDifferentReferenceType(ReferenceBusinessTest.java:58)
> 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.InvokeMethod.evaluate(InvokeMethod.java:20)
> 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.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 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)
>
>
>
> But when i copy the actual EJB classes into the local project bin directory
> the test executes correctly.
>
> Q1. is this a eclipse issue, a user error?
>
> any help is appreciated
>
> -lp
>
> --
> View this message in context: http://www.nabble.com/EJB-classpath-problem-in-eclipse3.5-tp25343341p25343341.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>
--
Quintin Beukes
|