Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat4 RMI class loading bermuda triangle

Thread Tools

Tomcat4 RMI class loading bermuda triangle

Posts: n/a
Hi every body,
I'm trying to fix this problem for one week and i'm turning crazy
right now.
I have this servlet working perfectly, finding every package i put in
/var/tomcat4/shared/lib except that it doesn't find my RMIServer class
for casting
i get a
[java.lang.ClassNotFoundException] - myRMIServerClass
org.apache.catalina.loader.StandardClassLoader.loa dClass(Unknown
org.apache.catalina.loader.StandardClassLoader.loa dClass(Unknown
java.lang.Class.forName0(Native Method)

all classes are in the jar with the stub and skeleton (i tried to put
classes in WEB_INF/classes of my servlet but same problem... so i
guess this is not the real problem)

I have set in catalina policy file a:
grant {
to be sure there's no problem of security. i changed the
init.d/tomcat4 script to add -security to the starting line to be sure
that it is started the right way

i used to try the same code with tomcat 3 and i changed to tomcat 4
because of a rmi jni problem reported on mailing lists (i spent so
much time on tomcat4 that i can't remember what was the previous one)
but i can't even get that far with tomcat4

my version is a rpm 4.2.1 for Red Hat

does someone understand what's going on
Reply With Quote
Posts: n/a
henri wrote:
> [java.lang.ClassNotFoundException] - myRMIServerClass

This will either have everything or nothing to do with your problem.
I note that the class name is not package-qualified. This would
suggest that it's in the default package. Without seeing the source
for the class and the output of 'jar tf <jarfile>' then it's
impossible to say further. It should be noted that class naming
problems are frequently encountered by people new to Java.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sprill: The Mystery of the Bermuda Triangle dryrt Wireless Networking 0 04-19-2008 10:15 AM
Wireless Bermuda Triangle pubscout Wireless Networking 2 04-15-2008 12:45 AM
Bermuda triangle in my living room? Wireless Networking 1 05-30-2007 09:56 AM
DVD Verdict reviews: THE BERMUDA TRIANGLE, LIL' PIMP, and more! DVD Verdict DVD Video 0 03-11-2005 09:15 AM
Button Click events going into Bermuda Triangle, news at 10 Michael Johnson Jr. ASP .Net 2 12-11-2003 07:36 AM