zoukankan      html  css  js  c++  java
  • My first thought of reading this book《Head First sServlets & JSP》

    The first thing you read this book is to prepare you brain to study.

    The first work you need to learn this book is to install and config Tomcat.

    Before I have done a few projects use MyEclipse or Eclipse, In these IDE, I never think how tomcat to start by only click an button.Now without the IDE  ,before you can see the tomcat welcome page ,you must start the tomcat service .

    In windows the file to start the tomcat service is in E:\study\MyStudy\JAVA study\apache-tomcat-6.0.30\apache-tomcat-6.0.30\bin called startup.bat .The content of the startup.bat is :

    @echo off
    rem Licensed to the Apache Software Foundation (ASF) under one or more
    rem contributor license agreements.  See the NOTICE file distributed with
    rem this work for additional information regarding copyright ownership.
    rem The ASF licenses this file to You under the Apache License, Version 2.0
    rem (the "License"); you may not use this file except in compliance with
    rem the License.  You may obtain a copy of the License at
    rem
    rem     http://www.apache.org/licenses/LICENSE-2.0
    rem
    rem Unless required by applicable law or agreed to in writing, software
    rem distributed under the License is distributed on an "AS IS" BASIS,
    rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    rem See the License for the specific language governing permissions and
    rem limitations under the License.
    
    if "%OS%" == "Windows_NT" setlocal
    rem ---------------------------------------------------------------------------
    rem Start script for the CATALINA Server
    rem
    rem $Id: startup.bat 908749 2010-02-10 23:26:42Z markt $
    rem ---------------------------------------------------------------------------
    
    rem Guess CATALINA_HOME if not defined
    set "CURRENT_DIR=%cd%"
    if not "%CATALINA_HOME%" == "" goto gotHome
    set "CATALINA_HOME=%CURRENT_DIR%"
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    cd ..
    set "CATALINA_HOME=%cd%"
    cd "%CURRENT_DIR%"
    :gotHome
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    echo The CATALINA_HOME environment variable is not defined correctly
    echo This environment variable is needed to run this program
    goto end
    :okHome
    
    set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"
    
    rem Check that target executable exists
    if exist "%EXECUTABLE%" goto okExec
    echo Cannot find "%EXECUTABLE%"
    echo This file is needed to run this program
    goto end
    :okExec
    
    rem Get remaining unshifted command line arguments and save them in the
    set CMD_LINE_ARGS=
    :setArgs
    if ""%1""=="""" goto doneSetArgs
    set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    shift
    goto setArgs
    :doneSetArgs
    
    call "%EXECUTABLE%" start %CMD_LINE_ARGS%
    
    :end
    

     You double click this file and start the service .The startup info  is :

    2011-8-21 11:03:34 org.apache.catalina.core.AprLifecycleListener init

    信息: The APR based Apache Tomcat Native library which allows optimal performanc

    e in production environments was not found on the java.library.path: D:\Program

    Files (x86)\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\

    Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system

    32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.

    0\;D:\Program Files (x86)\Java\jdk1.6.0_26\bin;C:\Program Files (x86)\Common Fil

    es\Thunder Network\KanKan\Codecs;D:\Program Files (x86)\China Mobile\Fetion;D:\P

    rogram Files (x86)\Tencent\QQ\Bin;D:\Program Files (x86)\eclipse-SDK-3.7-win32\e

    clipse;.

    2011-8-21 11:03:35 org.apache.coyote.http11.Http11Protocol init

    信息: Initializing Coyote HTTP/1.1 on http-8080

    2011-8-21 11:03:35 org.apache.catalina.startup.Catalina load

    信息: Initialization processed in 546 ms

    2011-8-21 11:03:35 org.apache.catalina.core.StandardService start

    信息: Starting service Catalina

    2011-8-21 11:03:35 org.apache.catalina.core.StandardEngine start

    信息: Starting Servlet Engine: Apache Tomcat/6.0.30

    2011-8-21 11:03:35 org.apache.catalina.startup.HostConfig deployDescriptor

    信息: Deploying configuration descriptor host-manager.xml

    2011-8-21 11:03:35 org.apache.catalina.startup.HostConfig deployDescriptor

    信息: Deploying configuration descriptor manager.xml

    2011-8-21 11:03:35 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory docs

    2011-8-21 11:03:35 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory examples

    2011-8-21 11:03:35 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory ROOT

    2011-8-21 11:03:35 org.apache.coyote.http11.Http11Protocol start

    信息: Starting Coyote HTTP/1.1 on http-8080

    2011-8-21 11:03:35 org.apache.jk.common.ChannelSocket init

    信息: JK: ajp13 listening on /0.0.0.0:8009

    2011-8-21 11:03:35 org.apache.jk.server.JkMain start

    信息: Jk running ID=0 time=0/23  config=null

    2011-8-21 11:03:35 org.apache.catalina.startup.Catalina start

    信息: Server startup in 631 ms


    The first step to learn is to learn what it is ,then why it is ,then make it is. 

    跟我走啊~~
  • 相关阅读:
    中国剩余定理
    Codeforces 240 F. TorCoder
    ZOJ 1202 Divide and Count
    洛谷 3380 【模板】二逼平衡树(树状数组套权值线段树)
    bzoj 3196/ Tyvj 1730 二逼平衡树 (线段树套平衡树)
    uva 10791
    uva 699 The Falling Leaves
    uva 839 Not so Mobile
    2017 济南综合班 Day 5
    2017 济南综合班 Day 4
  • 原文地址:https://www.cnblogs.com/wrh526/p/2147842.html
Copyright © 2011-2022 走看看