1: Chinese issues Summary 1.1 Form encountered garbled when submitted data, because Tomcat default encoded is ISO ****, so you need to be reconciled, you can set it in Web.xml.
This method is from AppFuse.
First declare a tomcattasks.properties, used to declare Tomcat's Ant task:
deploy = org.apache.catalina.ant.DeployTask install = org.apache.catalina.ant.InstallTask list = org.apache.catalina.ant.ListTask reload = org.apache.catalina.ant.ReloadTask remove = org.apache. catalina.ant.RemoveTask resources = org.apache.catalina.ant.ResourcesTask roles = org.apache.catalina.ant.RolesTask start = org.apache.catalina.ant.StartTask stop = org.apache.catalina.ant.StopTask undeploy = Org.apache.catalina.ant.undeploytask Defines a Tomcat.Properties file for Tomcat parameters
# Properties for tomcat server tomcat.server = localhost tomcat.manager.URL = http: // $ {Tomcat.server}: 8080 / manager Tomcat.usename = admin tomcat.password = admin
Then it is build.xml
target> The following information appears in the start-up console, log4j's Warn, what is the reason for this ?? log4j: Warn no appenders Could Be Found for logger (Org.apache.catalina. Startup.tldconfig) .log4j: war4j: war4j system properly. Oh, you will take my job. This error is because the cause of log4j.properties is not found. Log4j Law is in classpath Find this file. . You can put him under Classes. Don't be so troublesome