1 / 17

Implementing Tomcat with Java on Linux Environment

Learn how to set up Tomcat and Java on Linux, including installing necessary JDK and using NetBeans for development. Follow steps for servlet configuration and deployment. Utilize web.xml for mapping servlets efficiently.

nelia
Download Presentation

Implementing Tomcat with Java on Linux Environment

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. Linux????????JAVA??????? ???@?? 2003?7?12? lilo LMS

    2. ???????JAVA????????? J2SDK??????? http://java.sun.com/j2se/downloads.html J2SE1.4.2SDK???

    3. ??????????(Linux bin) With NetBeans ????? Linux RPM self-extracting file?????? JRE SDK ???????? ??? NetBeans???????? http://homepage2.nifty.com/konnokiyotaka/netbeans/index.htm

    4. ?????? ?????????????????????????

    5. ????? accept ??????????

    9. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/rpms/

    10. Tomcat ?????? tomcat4-4.1.24-full.2jpp.noarch.rpm tomcat4-webapps-4.1.24-full.2jpp.noarch.rpm tomcat4-admin-webapps-4.1.24-full.2jpp.noarch.rpm

    11. Tomcat ??? /etc/tomcat4/tomcat4.conf ? sdk ??????

    12. Tomcat4 ??

    13. ????JSP

    14. /var/tomcat/webapps????????????? /var/tomcat4/webapps/seminar/ index.jsp ??? Tomcat??? WEB-INF???? ?????? Tomcat??? ??

    15. ?????

    16. ???

    17. ??servlet??? seminar/WEB-INF/classes/lilo /usr/java/j2sdk1.4.2/bin/javac HelloServlet.java HelloServlet.java:5: ?????javax.servlet.http??????????????? export CLASSPATH=/var/tomcat4/common/lib/servlet.jar ??????????????HelloServlet.class??????? ??????????????????????? Seminar/WEB-INF/web.xml???????

    18. web.xml <?xml version="1.0" encoding=“EUC-JP"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/apps/*</url-pattern> </servlet-mapping> </web-app>

More Related