Date: Wed, 10 Mar 1999 00:14:07 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> To: Joe Shevland <J_Shevland@TurnAround.com.au> Cc: Nate Williams <nate@mt.sri.com>, freebsd-java@FreeBSD.ORG Subject: Re: Java wrapper/Jikes question Message-ID: <199903100814.AAA16648@rah.star-gate.com> In-Reply-To: Your message of "Wed, 10 Mar 1999 18:34:55 %2B1100." <36E6209F.161A73B3@TurnAround.com.au>
index | next in thread | previous in thread | raw e-mail
Lets anchor the discussion . GnuJSP implements the Sun Java Server Pages
specifications .
Something is needed to execute the class org.gjt.jsp.JSPServlet that somehing
usually is
a servlet engine. In apache you may configure jsp as follows:
Sample Apache JServ configuration file Hello.properties:
....
# Servlet Aliases
##################
# This defines aliases from which servlets can be invoked.
# Each alias give a new instance of the servlet. This means that if a servlet
# is invoked both by class name and by alias name, it will result in _TWO_
# instances of the servlet being created.
# Syntax: servlet.[alias].code=[classname] (String)
# Default: NONE
# servlet.snoop.code=SnoopServlet
# servlet.hello.code=org.fool.Dummy
servlet.jsp.code=org.gjt.jsp.JSPServlet
servlet.jsp.initArgs=classfiles=/maxtor/k-serv/gsp-classes,compiler=/usr/local/
bin/jikes,compiler.options= -
classpath .:/maxtor/k-serv/gsp-classes:/maxtor/k-serv/classes/jsdk.jar:/maxtor/
k-serv/classes:/maxtor/k-serv
/classes/gnujsp.jar:/maxtor/k-serv/gsp-classes/
gsp-classes is the directory where the compiled jsp pages ended up in
jserv.properties:
....
wrapper.classpath=/maxtor/k-serv/classes/gnujsp.jar
wrapper.classpath=/maxtor/k-serv/gsp-classes
jserv.conf:
.....
... How to tell apache how to handle java server pages ...
# Syntax: ApJServMountCopy [on/off]
# Default: "On"
# Note: This directive is meaninful only when virtual hosts are being used
ApJServMountCopy on
# Executes a servlet passing filename with proper extension in PATH_TRANSLATED
# property of servlet request.
# Syntax: ApJServAction [extension] [servlet-uri]
# Defaults: NONE
# Notes: This is used for external tools such as JSP (Java Servlet Pages),
# GSP (GNU Server Pages) or Java server side include.
ApJServAction .jsp /example/jsp
Got to alias /example
The above to say the least is rather cryptic so if you are interested in
configuring
apache / Jserv see:
http://www.servletcentral.com/1999-01/jserv.dchtml
Have fun
Amancio
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903100814.AAA16648>
