• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Ejb Problem

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends I just started working in EJB using JRUN
I am doing the simple HelloBean
I get following error Can u fix it. I am at loss
java.lang.IllegalAccessException:
on the client side
******************************************************
HelloHome Object createdHelloHomeObject_Stub[RemoteStub [ref: [endpoint:[localho
st:2333](remote),objID:[31b4c3:e77b57615a:-8000, 0]]]]
******************************************************
java.rmi.RemoteException: System exception/error caught by container; nested exc
eption is:
java.lang.IllegalAccessException: HelloBean
java.lang.IllegalAccessException: HelloBean
<<no stack trace available>>
Exception in thread "main" java.lang.RuntimeException: System exception/error ca
ught by container; nested exception is:
java.lang.IllegalAccessException: HelloBean

on the server side
Server is running (type h[elp]<ENTER> for help on commands)
>Exception: [17:33:55] java.lang.IllegalAccessException: HelloBean
java.lang.IllegalAccessException: HelloBean
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at allaire.ejipt._SessionHomeObject._createContext(allaire/ejipt/_Sessio
nHomeObject.java:267)
at allaire.ejipt._ContextPool._getContext(allaire/ejipt/_ContextPool.jav
a:184)
at allaire.ejipt._SessionHomeObject._create(allaire/ejipt/_SessionHomeOb
ject.java:114)
at allaire.ejipt._CallableObject.call(allaire/ejipt/_CallableObject.java
:103)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
ce)
at java.lang.Thread.run(Unknown Source)
My ejb-xml.jar file is
<?xml version="1.0"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD EnterpriseJavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">;
<ejb-jar>
<enterprise-beans>
<session>
<display-name>HelloBean</display-name>
<ejb-name>HelloHome</ejb-name>
<home>HelloHome</home>
<remote>Hello</remote>
<ejb-class>HelloBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<env-entry>
<env-entry-name>ejipt.maxContexts</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>400</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>ejipt.maxFreeContexts</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>20</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>ejb.sessionTimeout</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>60</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>ejipt.isTimeoutFromCreate</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>true</env-entry-value>
</env-entry>
</session>
</enterprise-beans>
</ejb-jar>

My Deploy.properties is
ejipt.classServer.host=localhost
ejb.allowedIdentities=all
ejipt.ejbJars=Hello_ejb.jar
ejipt.logStackTrace=true
security.policy
grant {
permission java.security.AllPermission;
};
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic