VSCODE jsp 실행방법 (tomcat)

    VSCODE jsp 실행방법 (tomcat) 

    server.xml에 일부분을 수정해주도록 한다.

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Server port="8010" shutdown="SHUTDOWN">
      <Listener className="org.apache.catalina.startup.VersionLoggerListener"/>
      <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
      <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
      <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
      <GlobalNamingResources>
        <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml"/>
      </GlobalNamingResources>
      <Service name="Catalina">
        <Connector port="82" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>
        <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
        <Engine name="Catalina" defaultHost="localhost">
          <Realm className="org.apache.catalina.realm.LockOutRealm">
            <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
          </Realm>
          <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" workDir="">
            <Context path="" docBase="E:/practice/"/>
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b"/>
          </Host>
        </Engine>
      </Service>
    </Server>

    Host worDir과 Context에 Path docBase를 지정해주면 되는데

    docBase는 jsp파일이 존재하는 폴더를 지정해주면 된다. 

    댓글

    Designed by JB FACTORY

    1 2 3 4 5 6 7 8 1 2 3 4 5 1 1 2 3 4 5