bi java web uygulamasının web-inf dizini ve içinde web.xml dosyası olması lazım
iucoders in server.xml i bu
<Context path="/test" debug="5" crossContext="true" reloadable="true" docBase="/home/iucoders/public_html" >
bu senin virtual directory ni gostermesi lazım.
<Server port="9163" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the administration web application -->
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase"
description="User database" pathname="conf/tomcat-users.xml"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory" />
</GlobalNamingResources>
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector address="127.0.0.1" port="9663" enableLookups="false" protocol="AJP/1.3"
connectionTimeout="30000" maxThreads="90" minSpareThreads="1" maxSpareThreads="6" />
<Engine name="Catalina" defaultHost="iucoders.com">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host name="iucoders.com" appBase="/home/iucoders/_webapps" unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.iucoders.com</Alias>
<Context path="" debug="5" crossContext="true" reloadable="true" docBase="/home/iucoders/public_html" >
</Context>
</Host>
</Engine>
</Service>
</Server>
N/A
|