aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Ejb Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Ejb Problem" Watch "Ejb Problem" New topic
Author

Ejb Problem

Sridhar Raman
Greenhorn

Joined: Jun 29, 2001
Posts: 12
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;
};
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ejb Problem
 
Similar Threads
naming exception
ejb deployment on weblogic 6.0
EJBs in WebSphere
Jboss + Spring + Ejb (Null Pointer Exception Problem)
JBoss Remote Lookup