|
Hello,
When deploying my stateless session bean in JBoss
2.2.1 (JDK 1.3 on Win2K Server), I was getting the following
message:
[Container factory]
java.lang.NoSuchMethodException
[Container factory] at java.lang.Class.getMethod0(Native Method) [Container factory] at java.lang.Class.getMethod(Class.java:888) [Container factory] at org.jboss.ejb.StatelessSessionContainer.setupBeanMapp ing(StatelessSessionContainer.java:368) [Container factory] at org.jboss.ejb.StatelessSessionContainer.init(Stateles sSessionContainer.java:144) ...
I had the following for my remote
interface:
public interface Debuggable extends
EJBObject
{
public void doDebug() throws
RemoteException;
}
public interface Mybean extends
Debuggable
{
public void mymethod() throws
RemoteException;
}
I found out by looking in
org.jboss.ejb.StatelessSessionContainer.setupBeanMapping method that it does not
like the fact that my remote interface does not directly extend from EJBObject!
Is this not allowed in the specs? I could swear that this worked in BEA
Weblogic's but I am not really sure.
Of course when I made my bean's remote interface
exends directly from EJBObject, everything worked fine.
Could you please let me know what you think? I
appreciate your comments.
Regards,
Khaled Aboudan
|
