Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open the file D:\Program Files\Tomcat 8.x.x\conf\server.xml.
  2. Remove all content from the server.xml and replace it with:

    Code Block
    themeEclipse
    <?xml version='1.0' encoding='utf-8'?>
    <Server port="8005" shutdown="SHUTDOWN">
       <GlobalNamingResources>
          <!-- Userdatabase is used to secure admin pages! Make sure path is ok otherwise the admin jsps will not work -->
          <Resource name="WMUserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="XperienCentral user database" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="D:/Program Files/Tomcat 8.5/conf/admin-users.xml" />
       </GlobalNamingResources>
       <Service name="WebManager">
          <Connector port="8009" enableLookups="false" redirectPort="8443" debug="1" protocol="AJP/1.3" URIEncoding="UTF-8" secretRequired="false" connectionTimeout="600000" />
          <Engine name="WebManager" defaultHost="localhost">
             <Realm className="org.apache.catalina.realm.LockOutRealm" >
                <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="WMUserDatabase"/>
             </Realm>
             <Host name="localhost" unpackWARs="true" autoDeploy="false" deployOnStartup="false" appBase="D:/XperienCentral/deploy">
                <Valve className="org.apache.catalina.authenticator.SingleSignOn"/>
                <Context path="/web" docBase="webmanager-backend-webapp-1.0-SNAPSHOT.war">
                <Valve className="org.apache.catalina.authenticator.DigestAuthenticator" cache="true" />
                <Resource name="jdbc/WebManagerDb" auth="Container" type="javax.sql.DataSource" username="sa" password="admin" driverClassName="net.sourceforge.jtds.jdbc.Driver" url="jdbc:jtds:sqlserver://localhost:1433/webmanagerdb;useLOBs=false" maxTotal="100" maxIdle="10" maxWaitMillis="10000" testWhileIdle="true" timeBetweenEvictionRunsMillis="900000" removeAbandonedOnBorrow="false" removeAbandonedOnMaintenance="false" removeAbandonedTimeout="30" logAbandoned="true" validationQuery="select 1" />
                </Context> 
             </Host> 
          </Engine>
       </Service> 
    </Server>  
    


...