Tomcat4 RMI class loading bermuda triangle

From: henri (nihil32_at_netcourrier.com)
Date: 06/23/04


Date: 23 Jun 2004 01:41:30 -0700

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.loadClass(Unknown
Source)
   org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
   java.lang.Class.forName0(Native Method)
   java.lang.Class.forName(Class.java:141)

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 {
        permission java.security.AllPermission;
};
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



Relevant Pages

  • Re: apt-get --purge
    ... There seemed to be some serious problem with the tomcat manager installed by tomcat5.5-admin, which stopped tomcat starting, so I tried to de-install it. ... I ran apt-get remove tomcat5.5-admin ... Those files that you deleted probably belong to some other package that tomcat5.5 depends on. ...
    (Debian-User)
  • Re: Tomcat 5.0.24 cant see third party packages?!
    ... > package com.crystaldecisions.sdk.occa.report does not exist ... > I have all other jsp working all of them reference packages that are ... Hmm, may be a config error in your Tomcat setup, ...
    (comp.lang.java)
  • Re: Tomcat 5.0.24 cant see third party packages?!
    ... > package com.crystaldecisions.sdk.occa.report does not exist ... > I have all other jsp working all of them reference packages that are ... Hmm, may be a config error in your Tomcat setup, ...
    (comp.os.linux)
  • Re: jsp - I feel like an ass!
    ... I don't know any reason this shouldn't work off-hand, ... will warn you that using the default package when you interact with JSPs ... where "$TOMCAT" is whatever location you've used to install tomcat. ... To write a valid web application that has a servlet, ...
    (comp.lang.java.programmer)
  • Re: Startup problems with tomcat5.5
    ... I've got a strange problem with the tomcat5.5 package. ... sudo /etc/init.d/tomcat5.5 start ... Tomcat starts up. ... not a named pipe. ...
    (Ubuntu)