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,我追加给分,谢谢了!
...全文
673 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
  • 打赏
  • 举报
回复
有人能帮忙么?十分感谢!

81,092

社区成员

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

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