I am running WebSphere version 2.0 with multiple entries for the same
servlets.
(eg: in
\WebSphere\AppServer\properties\server\servlet\servletservice\servlets.prope
rties

servlet.snoop.code=SnoopServlet
servlet.snoop.initArgs=initparm1=value1,initparm2=value2
servlet.snoopy.code=SnoopServlet

works just fine!

John Zerbe - Mellon Bank
Phone:  412-234-1048   E-Mail: [EMAIL PROTECTED]



> -----Original Message-----
> From: Erik-Amlie [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 07, 1999 8:39 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Problem putting servlet class files in subdirectory
>
> To Whom It May Concern:
>         You can't have duplicate references to the same Servlet...The
> Servlet engine gets totally cornfused! I (also) would think you should be
> able to, essentially, alias two names to the same Servlet, but the (at
> least
> WebSphere, anyway) Servlet engine wants nothing to do with it...In fact,
> if
> I recall, he/she/it won't even start!
> -Erik
>
> -----Original Message-----
> From: Jim Preston [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 06, 1999 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: Problem putting servlet class files in subdirectory
>
>
> Hi all, I'm fairly new to servlets, so bear with me. For the moment, I'm
> using
> servletrunner, and I'm wanting to put a servlet in a subdirectory of the
>
> server_root/servlets dir, but can't get it to work. I took the
> SnoopServlet.class
> file and copied it into a "snoopdir" subdirectory. I have two lines in
> servlet.properties, like this:
>
> servlet.snoop.code=SnoopServlet
> servlet.snoop2.code=snoopdir/SnoopServlet
>
> If I access the "snoop" servlet, it works fine. But if I access
> "snoop2", the
> servletrunner complains:
>
> ClassFormatError: Duplicate name.
>
> Thinking that it might be getting confused because there is a
> SnoopServlet.class
> file in two places, I removed the one in the server_root/servlets dir
> leaving just
> server_root/servlets/snoopdir/SnoopServlet.class. Now servletrunner
> still complains
> about a ClassFormatError, but the "Duplicate name" part is no longer
> included.
> The stacktrace in both cases indicates the error is in
> ServletLoader.loadClass
> (ServletLoader.java:230).
>
> I also tried adding a leading "/" to the second line above, like so:
>
> servlet.snoop2.code=/snoopdir/SnoopServlet
>
> and got the same error.
>
> So am I doing something wrong, or do subdirectories just not work? Oh,
> this is on
> Windows NT.
>
> --Jim Preston
>
> __________________________________________________________________________
> _
> 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
>
> __________________________________________________________________________
> _
> 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

___________________________________________________________________________
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