How do you put servlets into a .jar without any directory separators, and
maintain package relationships?

-----Original Message-----
From: Mike Hogarth <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, December 03, 1999 11:21 AM
Subject: Re: JServ and Apache: Servlets in a Jar File


>I believe that if you put your servlets into a .jar without any directory
separators, after you set the CLASSPATH, they are callable by their name
(servletA in this example).  It makes things a little messier in the .jar
file, but who cares?
>
>*********** REPLY SEPARATOR  ***********
>
>On 12/03/1999 at 7:52 AM Ron Reynolds wrote:
>
>>i tried the below form of URL (http://localhost/servlet/my.foo.servletA)
>>with my servlets in packages problem from a few days ago on JRun/IIS and
>>never got that working.  aliasing appears (read, "as far as i know") to
>>be the only way to put servlets into packages and having them be
>>callable through a URL.  i would be interested in knowing if there are
>>alternatives to that approach (the idea of having to add an alias for
>>every one of my servlets is less distasteful than putting all my sevlets
>>in the default (global) package).
>>
>>Mike Hogarth wrote:
>>>
>>> I believe you add the .jar file to the CLASSPATH used by Apache, then
invoke the servlet with the correct signature. For example, if the servlet
in the jar is under /my/foo/servletA, you alias my.foo.servletA to servletA,
then invoke it through a URL as:
>>> http://localhost/servlet/servletA.
>>>
>>> I don't believe you can use http://localhost/servlet/my.foo.servletA
>>>
>>> --Mike H
>>>
>>> *********** REPLY SEPARATOR  ***********
>>>
>>> On 12/02/1999 at 1:15 PM John Poncherello wrote:
>>>
>>> >Hi there,
>>> >   Anyone knows how to put and invoke a Servlet
>>> >deployed as a Jar file in a Apache Server using JServ
>>> >on Windows?
>>> >
>>>
>>>
___________________________________________________________________________
>>> 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

___________________________________________________________________________
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