www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Shraibman <...@iname.com>
Subject mod_jserv/5104: Naming.lookup() fails from withing a servlet
Date Tue, 05 Oct 1999 22:31:00 GMT

>Number:         5104
>Category:       mod_jserv
>Synopsis:       Naming.lookup() fails from withing a servlet
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Oct  5 15:40:02 PDT 1999
>Originator:     jks@iname.com
>Release:        1.3.9  + 1.1-b1
Redhat 6.0 with jdk1,1,7B (blackdown) and also jdk1.2
Whenever I try to do a Naming.lookup() from within a servlet I get an exception like this:

java.rmi.UnmarshalException: error unmarshalling
return; nested exception is:
        java.lang.ClassNotFoundException: com.xtenit.rds.RMIDataServer_Stub
        at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:104
        at java.rmi.Naming.lookup(Naming.java:53)
        at DSServTest.doGet(DSServTest.java:65)

When I run the same code on the same machine outside a servlet it works fine.  Is this a securitymanager
error, perhaps?
Start rmiregistry. Bind something to it. Do a Naming.lookup within an servlet. Then outside
a servlet.
I don't really know. I'm just guessing it's a security manager bug.
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message