Skip to Content
Former Member
Jul 29, 2005 at 02:18 PM

NoSuchMethodException when calling EJB from another EJB


We have 2 development configurations, MasterData and TD. Both contains EJB. We try to call MD from TD.

MD contains methods:

1. Version getVersion(String, int, int)

2. FSI getFSI(String, Version, int, int)

where both Version and FSI are in package.

When we call them:

1. getVersion is called successfuly

2. getFSI is throwing exception:

java.lang.NoSuchMethodException:,, int, int)

at java.lang.Class.getMethod(



at $Proxy40.getFSI(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(

at sun.reflect.DelegatingMethodAccessorImpl.invoke(

at java.lang.reflect.Method.invoke(


at $Proxy41.getFSI(Unknown Source)

at <<<calling method>>>


It seems like EJB container cannot find Version which is there (in library.jar in the root of ear file of TD). I also tried other combination of positioning library.jar but it always failed at least with this error.

How can we create dependency between TD and MD to create correct EAR file for TD (they should be deployed separately)?

Thanks for all answers