From owner-freebsd-java Wed Mar 10 0:15:23 1999 Delivered-To: freebsd-java@freebsd.org Received: from rah.star-gate.com (rah.star-gate.com [209.249.129.138]) by hub.freebsd.org (Postfix) with ESMTP id DEE4A15068 for ; Wed, 10 Mar 1999 00:15:03 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.9.1/8.8.8) with ESMTP id AAA16648; Wed, 10 Mar 1999 00:14:07 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199903100814.AAA16648@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Joe Shevland Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: Java wrapper/Jikes question In-reply-to: Your message of "Wed, 10 Mar 1999 18:34:55 +1100." <36E6209F.161A73B3@TurnAround.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 Mar 1999 00:14:07 -0800 From: Amancio Hasty Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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