J2EE安装好后,安装了tomcat对eclipse的插件,之后点击star Tomcat后出现以下信息:
2011-11-18 18:21:12 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\JDK\jre1.7.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/java/JDK/jre1.7.0/bin/client;D:/java/JDK/jre1.7.0/bin;D:/java/JDK/jre1.7.0/lib/i386;C:\Program Files\PC Connectivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;D:\工具软件\Windows7优化大师;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;D:\工具软件\Win7优化大师\Windows7Master;D:\java\JDK\jdk1.7.0\lib\dt.jar;D:\java\JDK\jdk1.7.0\bin;D:\java\JDK\jdk1.7.0\jre\bin;C:\Program Files\QuickTime\QTSystem\;D:\通讯\QQPCMgr\6.2.2026.202;D:\java\Tomcat 7.0\lib;D:\java\Tomcat 7.0\lib\servlet-api.jar;D:\java\Tomcat 7.0\lib\jsp-api.jar;D:\通讯\QQPCMgr\6.2.2026.202;D:\java\eclipse;
2011-11-18 18:21:12 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
2011-11-18 18:21:12 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
2011-11-18 18:21:12 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 714 ms
2011-11-18 18:21:13 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2011-11-18 18:21:13 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.22
2011-11-18 18:21:13 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2011-11-18 18:21:13 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory manager
2011-11-18 18:21:13 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory myapp
2011-11-18 18:21:13 org.apache.tomcat.util.digester.Digester fatalError
严重: Parse Fatal Error at line 2 column 25: The document type declaration for root element type "web-appPUBLIC" must end with '>'.
org.xml.sax.SAXParseException: The document type declaration for root element type "web-appPUBLIC" must end with '>'.
------解决方案--------------------
web-xml出错了吧
------解决方案--------------------
你敢不敢将web-xml文件最后的<web-app>改成</web-app>
------解决方案--------------------
appname(文件夹,自己取得名字)
WEB-INF(只能取这个名字,文件夹)
classes(存放.class文件,自己写的生成的class温家就放这里)
lib(存放.jar文件,该文件夹可选)
web.xml(部署描述文件 这个里面的东西要写对)
将这个appname文件夹拷贝到tomcat的webapps下面
------解决方案--------------------
用myeclipse 方便点 我用的 这个
------解决方案--------------------