You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Joseph Shraibman <jk...@iname.com> on 1999/10/06 00:31:00 UTC
mod_jserv/5104: Naming.lookup() fails from withing a servlet
>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
>Last-Modified:
>Originator: jks@iname.com
>Organization:
apache
>Release: 1.3.9 + 1.1-b1
>Environment:
Redhat 6.0 with jdk1,1,7B (blackdown) and also jdk1.2
>Description:
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?
>How-To-Repeat:
Start rmiregistry. Bind something to it. Do a Naming.lookup within an servlet. Then outside a servlet.
>Fix:
I don't really know. I'm just guessing it's a security manager bug.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@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! ]