> Hi Nikolaus,
>
> Sorry I didn't reply to your message earlier but I've been on
> vacation. You may have resolved your problem by now but in case
> you haven't ...
>
> Your error trace indicates that it's actually the registry that is
> having a problem accessing the stub classes. You said in a
> previous mail that, when launching the ejbserver, the property
> -Djava.rmi.server.codebase=file:///H:/Dolores/ is set.
> Can you check that, from the machine where the registry is running,
> it is really possible to find a file named:
>
> h:/dolores/com/dolores/ejb/utility/sequence
> /JOnASSequenceKeyFactoryBeanSequenceKeyFactoryHome_Stub
>
>
> Kathleen
>
Hello Kathleen,
well, I solved my problem. However, there is a bug in the RMI implementation
of the JDK 1.2.2 that drove me crazy.
The problem was a known Bug in RMI (4205440), which prints out confusing
Exceptions ("ClassNotFoundException"), while it is not being able to
instantiate the Stub class, or so it says. The real problem is that the RMI
server needs to have references to all exceptions and classes being
referenced by the stub class. This causes the misleading
ClassNotFoundException to be thrown on the stub-class (although it is in the
codebase).
That's the reason why ejb11.jar must be in the classpath of the rmiregistry.
I recognized it because when starting Jonas it could deploy some, but not
all beans. This really drove me crazy.
So I suggest to run Jonas under JDK 1.3 if someone has RMI problems, because
1.3 gives a much preciser exception.
My final minimum configuration on starting Jonas is as follows:
1) Start the rmiregistry with an empty classpath set (I used -J-verbose,
which helped a lot on debugging)
2) Start Jonas with the following settings:
CLASSPATH=jta-spec1_0_1.jar;jdbc2_0-stdext.jar;<Oracle_driver>;ejb11.jar;rmi
registry.jar;providerutil.jar;jndi.jar;RMI_Jonas.jar;.
java.security.policy=%JONAS_ROOT%/java.policy (giving all permissions)
java.rmi.server.codebase=ejb11.jar;RMI_jonas.jar;<application_classes>
Thank you for your help.
Best regards
Nikolaus Rumm
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".