Ok. I got the project working when running from a main-method within the same project.
When running from another project and inside a test-case (the same code as the main method mentioned) i get a NameNotFoundException (see below) and that my session bean is not bound. I asume this is because it cannot find my EJBs on the classpath and therefore do not bind them. Correct? I have checked your list several times, and I have no idea what to do. I have tried to manipulate the classpath settings, tried to add the EJB project to the reference panel of the test project (in eclipse) and tried to add a jar with all the EJBs to the test project. Nothing helps.. | javax.naming.NameNotFoundException: org.jboss.tutorial.archive.CustomerDAOLocal not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:516) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:524) | at org.jnp.server.NamingServer.getObject(NamingServer.java:530) | at org.jnp.server.NamingServer.lookup(NamingServer.java:282) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at test.CustomerTest.testFindCustomer(CustomerTest.java:49) | 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:585) | at junit.framework.TestCase.runTest(TestCase.java:154) | at junit.framework.TestCase.runBare(TestCase.java:127) | at junit.framework.TestResult$1.protect(TestResult.java:106) | at junit.framework.TestResult.runProtected(TestResult.java:124) | at junit.framework.TestResult.run(TestResult.java:109) | at junit.framework.TestCase.run(TestCase.java:118) | at junit.framework.TestSuite.runTest(TestSuite.java:208) | at junit.framework.TestSuite.run(TestSuite.java:203) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) | | Anyone got an idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916882#3916882 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916882 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
