Linux centos6.8部署tomcat启动异常请大家帮忙!

hanguoji84 2018-01-15 02:26:59
有两台linux虚拟机,其中一台正常部署成功了,但另一台linux虚拟机报了如下问题,网上也没找到解决办法,用的是:struts2+spring2.0+tomcat 9+jdk 1.8.0-121 请大家帮帮忙,如果方便的可以加我qq帮忙调一下:360 467 73,我追加给分,谢谢了!
...全文
672 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
hanguoji84 2018-01-25
  • 打赏
  • 举报
回复
引用 7 楼 glucose 的回复:
上下文初始化失败,估计是包冲突,用maven试试
、 maven能检查出包冲突么?我们似乎SSH。。。。
hanguoji84 2018-01-25
  • 打赏
  • 举报
回复
引用 5 楼 liubowin 的回复:
1、检查下Spring jar包,是否有重复的jar包导致冲突的; 2、检查下配置文件xml头部的schema声明,看看是不是正确的;
您能帮看看xml么?想看哪个xml我可以提供,或者您加我qq给看下:36046773,十分感谢。。。
hanguoji84 2018-01-25
  • 打赏
  • 举报
回复
引用 8 楼 u011594442 的回复:
bus元素有问题?把你的配置文件贴出来看看呗

<?xml version="1.0" encoding="UTF-8"?>
       <beans xmlns="http://www.springframework.org/schema/beans"
			  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			  xmlns:cxf="http://cxf.apache.org/core"
			  xmlns:jaxws="http://cxf.apache.org/jaxws"
			  xmlns:soap="http://cxf.apache.org/bindings/soap"
			  xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
			  xsi:schemaLocation="
			  http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
			  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
			  http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
			  http://cxf.apache.org/jaxws
			  http://cxf.apache.org/schemas/jaxws.xsd
			  http://cxf.apache.org/transports/http/configuration 
			  http://cxf.apache.org/schemas/configuration/http-conf.xsd">
          <import resource="classpath:META-INF/cxf/cxf.xml" />  <!-- 这些xml文件在cxf-2.5.0.jar的META-INF目录下-->
          <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
          <!--  警告提示已经废弃了cxf-extension-soap.xml文件-->
          <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
          <!-- 定义拦截器 -->
          <bean id="loggingInInterceptor" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
          <bean id="loggingOutInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
          <bean id="ipAddressInInterceptor" class="com.iwork.webservice.interceptor.IpAddressInInterceptor"/>
          <bean id="userPWDInInterceptor" class="com.iwork.webservice.interceptor.UserPWDInInterceptor"/>
          <bean id="headerIpAddressInInterceptor" class="com.iwork.webservice.interceptor.HeaderIpAddressInInterceptor"/>
          <bean id="headerUserPWDInInterceptor" class="com.iwork.webservice.interceptor.HeaderUserPWDInInterceptor"/>
          <!-- 统一配置全局拦截器 -->
          <cxf:bus>
			      <cxf:inInterceptors>
			          <ref bean="loggingInInterceptor"/>
			      </cxf:inInterceptors>
			      <cxf:outInterceptors>
			          <ref bean="loggingOutInterceptor"/>
			      </cxf:outInterceptors>
			    </cxf:bus> 
			    
          <!-- 发布WebService -->
          <jaxws:endpoint id="userDaoBean" implementor="com.iwork.webservice.text.UserDaoImpl" address="/users"></jaxws:endpoint>
          <jaxws:endpoint id="commonWebService" implementor="com.iwork.webservice.webservice.CommonWebService" address="/common">
			      <jaxws:inInterceptors>
			        <ref bean="ipAddressInInterceptor"/>
			        <ref bean="userPWDInInterceptor"/>
            </jaxws:inInterceptors>
            <jaxws:outInterceptors>
            </jaxws:outInterceptors>
			    </jaxws:endpoint>
				  <!-- 开启tomcat服务器 ,访问http://localhost:8080/WebExam/services/zipTest?wsdl 
                	  http://localhost:8080/WebExam是本项目的访问地址
                	  services是由于web.xml配置所得,zipTest是由于Spring配置文件中的address属性所得
                  -->
        </beans>
Sunyiban 2018-01-16
  • 打赏
  • 举报
回复
bus元素有问题?把你的配置文件贴出来看看呗
glucose 2018-01-16
  • 打赏
  • 举报
回复
上下文初始化失败,估计是包冲突,用maven试试
dxbj1016 2018-01-15
  • 打赏
  • 举报
回复
你可以从错误着手,看错误是解析xml出错了,是否在xml中有bus这个标签。
天空win 2018-01-15
  • 打赏
  • 举报
回复
1、检查下Spring jar包,是否有重复的jar包导致冲突的; 2、检查下配置文件xml头部的schema声明,看看是不是正确的;
hanguoji84 2018-01-15
  • 打赏
  • 举报
回复
继续请求帮助 1
hanguoji84 2018-01-15
  • 打赏
  • 举报
回复
继续请求帮助
hanguoji84 2018-01-15
  • 打赏
  • 举报
回复
有人能帮忙么?十分感谢!
【资源说明】 基于Java电商评论数据的分析与可视化系统源码+部署说明.zip 1、该资源内项目代码都是经过测试运行成功,功能ok的情况下才上传的,放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载使用,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能。 欢迎下载,欢迎交流,互相学习进步! 电商评论数据的分析与可视化系统 使用WebMagic爬虫完成数据爬取。 使用MapReduce编程框架编写清洗算法从Json数据中提取评论文本。 使用百度ECharts完成数据可视化。 涉及到的技术有:Hadoop相关、Maven、Spring、SpringMVC、Mybatis、ECharts。 实现的功能:对电商评论数据的采集、清洗、存储、分析与可视化。 1.项目介绍 本系统基于Hadoop平台,使用Maven进行项目管理,基于ssm框架开发的项目,使用mysql数据库,前端采用JQuery+Bootstrap+ECharts展示数据。 2.开发工具介绍 开发工具 系统开发过程中使用到的开发工具及软件版本情况 VMware Workstation Pro 12.0 IntelliJ IDEA 2019.1 Xshell 5 CentOS 6.8 Hadoop 2.7.2 JDK 1.8 MySQL 5.5 Tomcat 8.5 3.部署流程 1. 配置Hadoop集群 Hadoop102(192.168.8.2)、Hadoop103(192.168.8.3)、Hadoop104(192.168.8.4) 集群部署规划如下 2. 使用comments.sql创建数据库表 3. 在Linux环境下安装IDEA并导入analysis_visualization_system项目 4. 利用tomcat启动项目 5. 在浏览器中输入http://hadoop102:8080/analysis_visualization_system_war_exploded/
【资源说明】 1、该资源包括项目的全部源码,下载可以直接使用! 2、本项目适合作为计算机、数学、电子信息等专业的课程设计、期末大作业和毕设项目,作为参考资料学习借鉴。 3、本资源作为“参考资料”如果需要实现其他功能,需要能看懂代码,并且热爱钻研,自行调试。 电商评论数据的分析与可视化系统源码+项目说明.zip ### 电商评论数据的分析与可视化系统 使用WebMagic爬虫完成数据爬取。 使用MapReduce编程框架编写清洗算法从Json数据中提取评论文本。 使用百度ECharts完成数据可视化。 涉及到的技术有:Hadoop相关、Maven、Spring、SpringMVC、Mybatis、ECharts。 实现的功能:对电商评论数据的采集、清洗、存储、分析与可视化。 ### 1.项目介绍 本系统基于Hadoop平台,使用Maven进行项目管理,基于ssm框架开发的项目,使用mysql数据库,前端采用JQuery+Bootstrap+ECharts展示数据。 ### 2.开发工具介绍 ### 开发工具 系统开发过程中使用到的开发工具及软件版本情况 VMware Workstation Pro 12.0 IntelliJ IDEA 2019.1 Xshell 5 CentOS 6.8 Hadoop 2.7.2 JDK 1.8 MySQL 5.5 Tomcat 8.5 ### 3.部署流程 1. 配置Hadoop集群 Hadoop102(192.168.8.2)、Hadoop103(192.168.8.3)、Hadoop104(192.168.8.4) 集群部署规划如下 2. 使用comments.sql创建数据库表 3. 在Linux环境下安装IDEA并导入analysis_visualization_system项目 4. 利用tomcat启动项目 5. 在浏览器中输入http://hadoop102:8080/analysis_visualization_system_war_exploded/

81,092

社区成员

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

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