Sebastien Alborini wrote:
> Hi,
> 
> I get the same exception with the stateful bean in testbeans
> (BMTStatefulBean).  The declared field is: private SessionContext
> sessionContext;
> 
> javax.ejb.SessionContext is an interface, the actual field is
> org.jboss.ejb.StatefulSessionContext.StatefulSessionContextImpl, which
> is an inner protected class, and apparently the constructor can't be
> accessed from
> org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager... (I tried
> to switch to a public inner class, without any luck)
> 
> Any ideas?
> 
> Sebastien

AFAIK: you can never create an instance of an inner class from outside
its parent class. I think this is valid for static innerclasses too. 

solution: move from innerclass to real class

May somebody correct me if I m wrong!

\Daniel

Reply via email to