wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes lookup for remote bean - failure (only from eclipse) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "lookup for remote bean - failure (only from eclipse)" Watch "lookup for remote bean - failure (only from eclipse)" New topic
Author

lookup for remote bean - failure (only from eclipse)

Yaron Rel
Greenhorn

Joined: Aug 04, 2009
Posts: 20
Hi,
My problem is that for some reason, the path to my remote bean is being duplicated by the InitialContext as you can see also in the exception:
/my-app-ear-name/GeneralDao/my-app-ear-name/GeneralDao/remote

It happens only when I run unit-test from eclipse.
If this test run with maven, it works OK.
why is that happening?
How can I avoid this?
I work with jboss-5.1.0.GA , java 6.0.12

The way I do the lookup:


The exeption:


my remote bean declaration:


GeneralDaoIfcRemote:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: lookup for remote bean - failure (only from eclipse)
 
Similar Threads
Spring JUnit error
Class cast exception when grabbing remote EJB 3 interface
Getting an EJB session bean which uses @SecurityDomain annotation, in a unit test case through JNDI
rampart security issue
problem: Deployment of same EJB components with different JNDI name.