Hi Haruo;

That did it!  Thanks. :-)
Does this change cause anything else to break?  Is there any reason not to
include it in a build?

Thanks;
-Christopher Hull


Haruo Fukuda wrote:

> Hi,
>
> As far as I know, current Tomcat (release 3.1) uses an original
> jar protocol handler and it causes the problems you mentioned.
>
> I made a small change to the file
> "jakarta-tomcat/src/share/org/apache/tomcat/protocol/jar/Handler.java",
> and it looks fine.
>
> ==============
> 85c85,87
> <           return new WARConnection(url);
> ---
> >           //return new WARConnection(url);
> >           return new sun.net.www.protocol.jar.JarURLConnection(url,
> >                             new sun.net.www.protocol.jar.Handler());
> ==============
>
> I hope this change will help you.
>
> Regards,
> Haruo
>
> Christopher Hull wrote:
> >
> > I've got a jini-based servlet which operates under JServ but not under
> > Tomcat.
> >
> > Tomcat (or more likely, my servlet, but the stack trace doesn't seem to
> > get back to me) throws a ClassNotFound exception
> > com.sun.jini.reggie.RegistrarProxy, which is typical if the class can
> > not be downloaded.  The servlet does not do this under JServ, and the
> > main() bypass works fine from the command line.
> >
> > Djava-security-policy is set ot JINI_HOME\example\lookup\policy.all
> > Djava-rmi-server-codebase is set to my -dl.jar
> > The lookup service downloads my jar.
> > The only difference appears to be Tomcat vs JServ.
> >
> > The servlet has a debugging switch which varifies that the servlet is
> > starting up under the JINI group I want, and the classpath looks
> > correct.   The servlet will display this info even as these exceptions
> > are being thrown (I think they are thrown in the discovery thread).
> >
> > Is there some security config I need to do in servlet.xml or web.xml for
> > Tomcat to be happy?
> >
> > Thanks
> > -Chris
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff JINI-USERS".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> > To view past JINI-USERS postings, please see:
> > http://archives.java.sun.com/archives/jini-users.html
> >
> > To participate in the community, please visit:
> > http://www.jini.org
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JINI-USERS".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> To view past JINI-USERS postings, please see:
> http://archives.java.sun.com/archives/jini-users.html
>
> To participate in the community, please visit:
> http://www.jini.org

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to