resin启动报错:guava-15.0.jar!/META-INF/beans.xml:5: <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"> is an unexpected top-level tag. 异常

  项目完成,经过本地的测试,最后在部署的时候,发现服务器resin启动失败,报错信息如下:

  从报错信息上看,应该是guava.jar有问题。

排查问题

  查看项目引入的guava.jar,信息如下:

    boneco.jar引入了子包guava-15.0.jar,cache-client.jar引入了guava-18.0.jar。

    

  

    所以不难明白,guava-15.0.jar肯定不能兼容guava-18.0.jar!但是guava-18.0.jar肯定兼容guava-15.0.jar,所以需要保证项目中引入的是guava-18.0.jar。

  下面我们来看看我们的pom.xml中的信息

  

  bonecp.jar在cache-client.jar前面,所以先会加载bonecp.jar下面的guava-15.0.jar,后面cache-client.jar就不会再加载guava-18.0.jar了......

解决办法:

  guava-18.0.jar所在jar放在guava-15.0.jar所在jar前面,如下:

  

  重新部署成功!

  

时间: 2024-10-05 04:04:52

resin启动报错:guava-15.0.jar!/META-INF/beans.xml:5: <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"> is an unexpected top-level tag. 异常的相关文章

spring boot + jersey工程由jar包转为war包在tomcat中启动报错问题

第一步: 在maven下,将Spring Boot工程由jar转换为war包启动,很简单,将pom.xml文件中的packaging改为war <packaging>war</packaging> 如果你使用Gradle,你需要修改build.gradle来将war插件应用到项目上: apply plugin: 'war'第二步: 产生一个可部署war包的第一步是提供一个SpringBootServletInitializer子类,并覆盖它的configure方法.这充分利用了Sp

关于web.xml3.0启动报错

九月 08, 2017 10:18:19 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:war_item' did not find a matching property. 九月 08, 20

SQL Developer 4.0 启动报错“unable to create an instance of the java virtual machine located at path”

安装了Oracle之后,第一件事情就是想想怎么去连接,进而操作.SQL Developer是官方提供的强大工具,个人看来也是第一选择. 目前官网提供的最新版是4.0.1.14.48,下载下来之后,就跃跃欲试了.将下载下来的包解压,直接运行sqldeveloper.exe这个文件,选择了本地安装的JDK路径,之后却不幸的报错了,提示"unable to create an instance of the java virtual machine located at path",具体界面

转 Nexus启动报错:Unsupported major.minor version 51.0

转:http://www.th7.cn/Program/java/201408/269316.shtml Nexus启动报错: Unsupported major.minor version 51.0 1.遇到问题 今天搭建Nexus私服,出现了以前没遇到过的错误. a).采用console-nexus.bat开启报错: wrapper| --> Wrapper Started as Consolewrapper| Launching a JVM...jvm 1| java.lang.Unsup

virtualbox 5.0.6 在debian jessie amd64启动报错

通过dmesg发现vboxdrv启动报错: [ 18.844888] systemd[1]: [/lib/systemd/system/vboxdrv.service:5] Failed to add dependency on $syslog.service, ignoring: Invalid argument 修改/lib/systemd/system/vboxdrv.service文件 After=$syslog.service 修改为: After=syslog.service 就可以

zookeeper启动报错(数据目录权限不对)

zookeeper启动报错日志: 2016-11-16 11:19:43,880 [myid:3] - INFO [WorkerReceiver[myid=3]:[email protected]] - Notification: 3 (n.leader), 0x200111a88 (n.zxid), 0x1 (n.round), LOOKING (n.state), 3 (n.sid), 0x2 (n.peerEPoch), LOOKING (my state) 2016-11-16 11:1

Weblogic 启动报错:java.lang.NoClassDefFoundError

Weblogic 启动报错:java.lang.NoClassDefFoundError  ####<2015-6-17 下午03时30分47秒 CST> <Error> <HTTP> <HDQSDOCMTAPP4> <zonyappserver> <[ACTIVE] ExecuteThread: '15' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS

JBOSS启动报错Failed to start service jboss.web.deployment.default-host.

14:10:01,487 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start serv

elk中elasticsearch安装启动报错

elasticsearch安装之后.启动报错.elasticsearch版本为5.4.1 下载安装: wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.1.tar.gz tar zxf elasticsearch-5.4.1.tar.gz mv elasticsearch-5.4.1 /usr/local/elasticsearch cd /usr/local/elasticsearch/ ./