运行项目的时候遇到一些报错,找不到原因,各位帮帮忙

qq_27044115 2016-08-20 11:13:47
大家好,运行项目代码的时候遇到报错.

HTTP Status 404 -
type Status report
message
description The requested resource is not available.
Apache Tomcat/7.0.70

项目上有错误,如下

Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
'aop:config'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/aop/
spring-aop-3.2.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of
the document is not <xsd:schema>.

当我重新运行的时候有提示

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).

这到底是哪里出了问题,谁能帮我看一下? QQ: 52240774
...全文
458 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
伄跳墻 2016-08-30
  • 打赏
  • 举报
回复
引用 7 楼 u013185616 的回复:
下面那个确实是端口冲突了,上面那块是因为你的Spring头文件出错了,检查下http://www.springframework.org/schema/aop/ spring-aop-3.2.xsd的配置
可以直接在浏览访问这个地址 http://www.springframework.org/schema/aop/spring-aop-3.2.xsd 你应该是访问不到这个文件,原因可能是中间带有空格之类的字符串
qq_27044115 2016-08-23
  • 打赏
  • 举报
回复
当我在services.msc上启动apache的时候提示 Window could not start the tomcat 7 on Local Computer.For more information, review the System Events Logs.If this is a non-Microsoft service,contact service vendor, and refer to service-specific error code 1 是不是因为这个没有启动导致运行的时候报404错误啊?
qq_27044115 2016-08-23
  • 打赏
  • 举报
回复
谢谢大家,还有问题,当我运行代码的时候提示 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). 我了解到要更换apache的端口,但是具体不知道怎么换这三个端口,还有换成什么端口可以. QQ: 52240774 请帮忙,做为感谢,我教大家韩语和日语
I,Frankenstein 2016-08-22
  • 打赏
  • 举报
回复
下面那个确实是端口冲突了,上面那块是因为你的Spring头文件出错了,检查下http://www.springframework.org/schema/aop/ spring-aop-3.2.xsd的配置
Qrcode2 2016-08-22
  • 打赏
  • 举报
回复
执行web项目用run on server
京城阿飞 2016-08-22
  • 打赏
  • 举报
回复
引用 4 楼 qq_27044115 的回复:
我想问,项目启动的时候执行的是哪一个文件里的内容啊?这个怎么看啊? 我下载启动 Run On Server就能出来内容,但是Run As Java applciation就报错,这两个有什么区别?
Run On Server是运行的JavaWeb项目 Run As Java applciation是运行的Java Application,就是以main方法为入口的那个程序。
wrong1111 2016-08-22
  • 打赏
  • 举报
回复
引用 7 楼 u013185616 的回复:
下面那个确实是端口冲突了,上面那块是因为你的Spring头文件出错了,检查下http://www.springframework.org/schema/aop/ spring-aop-3.2.xsd的配置
支持
qq_27044115 2016-08-21
  • 打赏
  • 举报
回复
我想问,项目启动的时候执行的是哪一个文件里的内容啊?这个怎么看啊? 我下载启动 Run On Server就能出来内容,但是Run As Java applciation就报错,这两个有什么区别?
qq_27044115 2016-08-21
  • 打赏
  • 举报
回复
现在运行又不报那个端口错误了,就报 HTTP Status 404 - type Status report message description The requested resource is not available. Apache Tomcat/7.0.70
codingjav 2016-08-21
  • 打赏
  • 举报
回复
端口被占用,处理下就好了
夜色的黑影 2016-08-21
  • 打赏
  • 举报
回复
D:\apache-tomcat-8.0.32\bin目录下有个shutdown.bat的运行下,你的错误是说已经有服务启动了,端口被占用了,要释放端口,才能重新启动。 希望能帮到你。

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧