Quick start
From Resin 3.0
(Difference between revisions)
(migration) |
|||
(One intermediate revision by one user not shown) | |||
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. | ||
Line 9: | Line 10: | ||
* '''Browse''' <tt>http://localhost:8080</tt> | * '''Browse''' <tt>http://localhost:8080</tt> | ||
* Add '''JSP''' files like <tt>resin-3.0.x/webapps/ROOT/hello.jsp</tt>. The URL in your browser is <tt>http://localhost:8080/hello.jsp</tt> | * Add '''JSP''' files like <tt>resin-3.0.x/webapps/ROOT/hello.jsp</tt>. The URL in your browser is <tt>http://localhost:8080/hello.jsp</tt> | ||
− | * Add '''servlets''' like <tt>resin-3.0.x/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java</tt>, and a [[servlet]] and [[servlet-mapping]] | + | * Add '''servlets''' like <tt>resin-3.0.x/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java</tt>, and a [[servlet]] and [[servlet-mapping]] directive in <tt>resin-3.0.x/webapps/ROOT/WEB-INF/[[web.xml]]</tt> |
* Add '''[[.war]]''' files like <tt>resin-3.0.x/webapps/hello.war<tt>, url in your browser is <tt>http://localhost:8080/hello</tt> | * Add '''[[.war]]''' files like <tt>resin-3.0.x/webapps/hello.war<tt>, url in your browser is <tt>http://localhost:8080/hello</tt> | ||
* Create '''[[web-app]]s''' directly like <tt>resin-3.0.x/webapps/hello/index.jsp</tt> url in your browser is <tt>http://localhost:8080/hello</tt>. | * Create '''[[web-app]]s''' directly like <tt>resin-3.0.x/webapps/hello/index.jsp</tt> url in your browser is <tt>http://localhost:8080/hello</tt>. | ||
* Create a '''[[web.xml]]''' file like <tt>resin-3.0.x/webapps/hello/WEB-INF/web.xml</tt> to configure the 'hello' web application. | * Create a '''[[web.xml]]''' file like <tt>resin-3.0.x/webapps/hello/WEB-INF/web.xml</tt> to configure the 'hello' web application. | ||
</ol> | </ol> |
Latest revision as of 19:06, 2 December 2011
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.