1. Please open the HOSTS file under the Winnt / System32 / Drivers / etc directory, add the machine name you want to virtual, such as I added this.
127.0.0.1 www www.www.systemtekgz.com.cn
Here at www.systekgz.com.cn is my domain name.
WWW is a virtual name
And my machine's own name is FANGM, in the domain is fangm.www.systekgz.com.cn
2. Open the Tomcat4-Service.xml file in the server / default / deploy directory in the JBoss-Tomcat installation directory, the original file is like this
XML Version = "1.0" encoding = "UTF-8"?>
The default value is what of the jboss / catalina bundle where there
JAKARTA-TOMCAT-4.0.3-Le-JDK14 Is Included as jboss_dist / catalina
->
]>
->
Name = "jboss.web: service = EmbeddedCatalinasx"> Prefix = "localhost_access" suffix = ".log" Pattern = "Common" Directory = "../server/default/log" /> Host> Engine> Port = "8080" MINPROCESSORS = "3" maxprocessors = "10" enablelookups = "True" Acceptcount = "10" debug = "0" connectionTIMEOUT = "60000" /> Service> Server> attribute> mbean> server> First, find Second, add as follows Note that Of course, you can also do not modify The complete document has been changed as follows: XML Version = "1.0" encoding = "UTF-8"?>
The default value is what of the jboss / catalina bundle where there JAKARTA-TOMCAT-4.0.3-Le-JDK14 Is Included as jboss_dist / catalina ->
]>
-> Name = "jboss.web: service = EmbeddedCatalinasx"> Verbositylevel = "trace" category = "org.jboss.web.localhost.Engine" /> Prefix = "localhost_access" suffix = ".log" Pattern = "Common" Directory = "../server/default/log" /> Host> Host> Engine> Port = "8080" MINPROCESSORS = "3" maxprocessors = "10" enablelookups = "True" Acceptcount = "10" debug = "0" connectionTIMEOUT = "60000" /> service> Server> attribute> mbean> server> Third, when you publish. UAR applications, you find a package. War's web app is, please add the following in the jboss-web.xml file. jboss-web> You can visit http: // www.www.systekgz.com.cn:8080. If you appear Apache Tomcat / 4.0.3 - HTTP Status 500 - No Context Configured to Process This Requestine This is because you did not release applications.