Quick start

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(renamed tag to directive)
 
Line 1: Line 1:
 +
{{Cleanup}}
 
The Resin standalone web server starts listening to HTTP requests on port 8080.
 
The Resin standalone web server starts listening to HTTP requests on port 8080.
  

Latest revision as of 19:06, 2 December 2011

40px-Edit-clear.png This article requires cleanup and may refer to a legacy version of Resin.

Please visit http://www.caucho.com/documentation/ for the most up-to-date documentation.

The Resin standalone web server starts listening to HTTP requests on port 8080.

    • Download Resin.
    • Install JDK 1.4 or later. On Unix, set the JAVA_HOME variable or link /usr/java to the java home. On Windows, check to make sure the JDK installation set JAVA_HOME correctly.
    • unzip/untar the Resin download
    • On Unix (including Mac OS X), execute ./configure; make; make install
    • Start on Unix resin-3.0.x/bin/httpd.sh on Windows resin-3.0.x/httpd.exe
    • Browse http://localhost:8080
    • Add JSP files like resin-3.0.x/webapps/ROOT/hello.jsp. The URL in your browser is http://localhost:8080/hello.jsp
    • Add servlets like resin-3.0.x/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java, and a servlet and servlet-mapping directive in resin-3.0.x/webapps/ROOT/WEB-INF/web.xml
    • Add .war files like resin-3.0.x/webapps/hello.war<tt>, url in your browser is <tt>http://localhost:8080/hello
    • Create web-apps directly like resin-3.0.x/webapps/hello/index.jsp url in your browser is http://localhost:8080/hello.
    • Create a web.xml file like resin-3.0.x/webapps/hello/WEB-INF/web.xml to configure the 'hello' web application.
Personal tools