This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Ejb Problem" Watch "Ejb Problem" New topic

Ejb Problem

Sridhar Raman

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
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
at allaire.ejipt._ContextPool._getContext(allaire/ejipt/_ContextPool.jav
at allaire.ejipt._SessionHomeObject._create(allaire/ejipt/_SessionHomeOb
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$ Source)
at Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ Sour
at Source)
My ejb-xml.jar file is
<?xml version="1.0"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD EnterpriseJavaBeans 1.1//EN" "">

My is
grant {
I agree. Here's the link:
subject: Ejb Problem
Similar Threads
EJBs in WebSphere
Jboss + Spring + Ejb (Null Pointer Exception Problem)
ejb deployment on weblogic 6.0
JBoss Remote Lookup
naming exception