Hi all

I have a method in my bean which tries to invoke a package protected constructor
of a helper class. The helper class is in the same package as the bean class.
When the client tries to invoke the particular bean method, it throws
IllegalAccessError. If I write call the same bean class' method as a normal java
class (i.e without involving container), it works fine (and it should work!).

More details below :-

     package bean;
     Bean.java
       public Helper getHelper();

     Home.java

     Remote.java
       public Helper getHelper()

     Helper.java
       Helper(); // package protected method

The bean client calls getHelper() method on the bean. Bean tries to construct an
instance of Helper class by using the package protected constructor of the
Helper class.  Server throws this Error:

     Transaction: '957272964973_2' rolled back due to EJB exception:
     java.lang.IllegalAccessError: try to access method
     bean.Helper.<init>()V from class bean.Bean

Im using Weblogic 4.51 on NT.

Thanks for any help.
--
shiv
[EMAIL PROTECTED]



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to