项目部署出现500错误

superguobo 2014-04-30 09:58:57

type Exception report

message Filter execution threw an exception

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause

java.lang.ExceptionInInitializerError
org.apache.axis.client.Service.getAxisClient(Service.java:104)
org.apache.axis.client.Service.<init>(Service.java:113)
com.paxar.soap.SpecStarUserSoapStub.getUserDetail(SpecStarUserSoapStub.java:72)
com.avery.mms.filter.UserFilter.doFilter(UserFilter.java:79)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause

org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.))
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
org.apache.axis.client.Service.getAxisClient(Service.java:104)
org.apache.axis.client.Service.<init>(Service.java:113)
com.paxar.soap.SpecStarUserSoapStub.getUserDetail(SpecStarUserSoapStub.java:72)
com.avery.mms.filter.UserFilter.doFilter(UserFilter.java:79)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause

org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
org.apache.axis.client.Service.getAxisClient(Service.java:104)
org.apache.axis.client.Service.<init>(Service.java:113)
com.paxar.soap.SpecStarUserSoapStub.getUserDetail(SpecStarUserSoapStub.java:72)
com.avery.mms.filter.UserFilter.doFilter(UserFilter.java:79)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause

org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
org.apache.axis.client.Service.getAxisClient(Service.java:104)
org.apache.axis.client.Service.<init>(Service.java:113)
com.paxar.soap.SpecStarUserSoapStub.getUserDetail(SpecStarUserSoapStub.java:72)
com.avery.mms.filter.UserFilter.doFilter(UserFilter.java:79)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)



用maven进行打包,查看jar包只有一个commons-logging-1.0.4.jar

...全文
431 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
小律律 2014-04-30
  • 打赏
  • 举报
回复
找到冲突的包。删除就ok了。 lib下
liuyuejianghu 2014-04-30
  • 打赏
  • 举报
回复
引用 1 楼 linminqin 的回复:

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
同意一楼的说法,可能是由于你jar包冲突的原因 你去找找看你的项目lib下的commons-logging是不是多个版本存在,你可以选择删除低版本保留高版本的做法
空白-键 2014-04-30
  • 打赏
  • 举报
回复
引用 6 楼 superguobo 的回复:
[quote=引用 5 楼 linminqin 的回复:] [quote=引用 3 楼 superguobo 的回复:] [quote=引用 1 楼 linminqin 的回复:]

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
在我本地电脑发布tomcat是成功的,香港同事发布时有这个错误,我这边应该怎么做[/quote] 香港同事是开发的(既部署自己机子开发环境),还是实际环境部署,如果是开发的,你让他看看是不是他自己的eclipse同时也引入logging包;如果是实际环境部署,让他检查lib下的jar,有没有多个logging包。[/quote] 他是部署,我是开发,我直接给的war给他,让他检查项目下的lib吗[/quote] 检查下打包的war里面有没有冲突,还有检查下他那边tomcat根目录下的lib文件夹里面是不是也有放了logging jar文件
superguobo 2014-04-30
  • 打赏
  • 举报
回复
引用 5 楼 linminqin 的回复:
[quote=引用 3 楼 superguobo 的回复:] [quote=引用 1 楼 linminqin 的回复:]

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
在我本地电脑发布tomcat是成功的,香港同事发布时有这个错误,我这边应该怎么做[/quote] 香港同事是开发的(既部署自己机子开发环境),还是实际环境部署,如果是开发的,你让他看看是不是他自己的eclipse同时也引入logging包;如果是实际环境部署,让他检查lib下的jar,有没有多个logging包。[/quote] 他是部署,我是开发,我直接给的war给他,让他检查项目下的lib吗
空白-键 2014-04-30
  • 打赏
  • 举报
回复
引用 3 楼 superguobo 的回复:
[quote=引用 1 楼 linminqin 的回复:]

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
在我本地电脑发布tomcat是成功的,香港同事发布时有这个错误,我这边应该怎么做[/quote] 香港同事是开发的(既部署自己机子开发环境),还是实际环境部署,如果是开发的,你让他看看是不是他自己的eclipse同时也引入logging包;如果是实际环境部署,让他检查lib下的jar,有没有多个logging包。
小灯光环 2014-04-30
  • 打赏
  • 举报
回复
引用 3 楼 superguobo 的回复:
[quote=引用 1 楼 linminqin 的回复:]

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
在我本地电脑发布tomcat是成功的,香港同事发布时有这个错误,我这边应该怎么做[/quote] 那就是你香港同事那边的部署环境下有冲突的org.apache.commons.logging包,让他冲突的包删掉
superguobo 2014-04-30
  • 打赏
  • 举报
回复
引用 1 楼 linminqin 的回复:

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
在我本地电脑发布tomcat是成功的,香港同事发布时有这个错误,我这边应该怎么做
tony4geek 2014-04-30
  • 打赏
  • 举报
回复
就是楼上说的。找不到用那一个了。
空白-键 2014-04-30
  • 打赏
  • 举报
回复

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
Mr-稻帅 2014-04-30
  • 打赏
  • 举报
回复
引用 4 楼 wlwlwlwl015 的回复:
[quote=引用 3 楼 superguobo 的回复:] [quote=引用 1 楼 linminqin 的回复:]

You have more than one version of 'org.apache.commons.logging.Log' visible
版本冲突了,你看看你是不是有不同版本的commons-logging的jar包
在我本地电脑发布tomcat是成功的,香港同事发布时有这个错误,我这边应该怎么做[/quote] 那就是你香港同事那边的部署环境下有冲突的org.apache.commons.logging包,让他冲突的包删掉[/quote]正解

67,550

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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