关于Javaweb的问题

XYUimm 发布于 2015/10/18 13:53
阅读 494
收藏 0

写了一个Javaweb程序,在启动tomcat服务时出现了下面错误:

十月 18, 2015 1:43:57 下午 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\jdk1.8.0_60\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;D:\java\jdk1.8.0_60\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth Software\syswow64;C:\ProgramData\Lenovo\ReadyApps;C:\Program Files (x86)\Common Files\Autodesk Shared\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Ultimatte\AdvantEdge\Tcl\bin;D:\Mysql\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;.
十月 18, 2015 1:43:57 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:wedjava' did not find a matching property.
十月 18, 2015 1:43:57 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:webjava01' did not find a matching property.
十月 18, 2015 1:43:57 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:MyJavaWeb01' did not find a matching property.
十月 18, 2015 1:43:57 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
十月 18, 2015 1:43:57 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
十月 18, 2015 1:43:57 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 632 ms
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\apache安装\me-webapps\apache安装\me-webapps\apache安装\me-webapps\wedjava does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5055)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5235)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error in resourceStart()
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error getConfigured
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/wedjava] startup failed due to previous errors
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\apache安装\me-webapps\apache安装\me-webapps\apache安装\me-webapps\webjava01 does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5055)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5235)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error in resourceStart()
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error getConfigured
十月 18, 2015 1:43:57 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/webjava01] startup failed due to previous errors
十月 18, 2015 1:43:58 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [269] milliseconds.
十月 18, 2015 1:43:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache安装\webapps\docs
十月 18, 2015 1:43:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache安装\webapps\manager
十月 18, 2015 1:43:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache安装\webapps\ROOT
十月 18, 2015 1:43:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
十月 18, 2015 1:43:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
十月 18, 2015 1:43:58 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1196 ms


然后运行老是说Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).这个错误

怎么办呀

加载中
0
zigzagroad
zigzagroad
端口 已经被占用了;需要先停止之前已经已启动的tomcat,然后再启动tomcat
0
游客
游客
端口被占用,另外,目录名不要用中文
0
阿丢丢
阿丢丢
端口已经被占用了  然后上面说 wedjava 这个文件夹不存在什么 你看看你里面是不是没有
0
萧小蚁
萧小蚁
端口 已经被占用了;打开资源管理器,停止正在用的服务,看看里面有没有tomcat,如果有,停止。然后再启动tomcat
0
aqu
aqu
taskkill /im java.exe -f
返回顶部
顶部