2 biyi4351 biyi4351 于 2016.04.27 09:44 提问

java web项目在tomcat中运行时报错,tomcat正常运行

严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.AbstractMethodError: org.apache.crimson.tree.ElementNode2.getTextContent()Ljava/lang/String;
at com.sun.faces.config.processor.AbstractConfigProcessor.getNodeText(AbstractConfigProcessor.java:142)
at com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(FactoryConfigProcessor.java:232)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:189)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5075)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1975)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2016-4-27 9:43:56 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
2016-4-27 9:43:56 org.apache.catalina.core.StandardContext startInternal
严重: Context [/uploadImage] startup failed due to previous errors

4个回答

devmiao
devmiao   Ds   Rxr 2016.04.27 09:44

看下是配置的问题

biyi4351
biyi4351 什么配置,新手不知道如何下手,挺烦恼的
一年多之前 回复
w172087242
w172087242   Ds   Rxr 2016.04.27 09:58

可能是jar包冲突了,看看是不是有重复的jar。

下面这句话可以看看:
The involvement of com.sun.faces in the stack trace however indicates that Mojarra is actually been used. If you're absolutely positive that your webapp bundles MyFaces, then that can only mean that Mojarra is installed elsewhere in the webapp's runtime classpath which has equal or higher classloading precedence over the webapp-supplied libraries, such as locations identified by shared.loader property of Tomcat's /conf/catalina.properties.

w172087242
w172087242 回复biyi4351:你得先检查一下你的所有包,classpath下的
一年多之前 回复
w172087242
w172087242 回复biyi4351:你得先检查一下你的所有包,
一年多之前 回复
biyi4351
biyi4351 没有出现这一句啊,因为要用到http协议,添加了好多包,我是看视频跟着做的,不清楚怎么看是哪些包冲突,可能是引用的包和自带的包之间的冲突?
一年多之前 回复
a1508604839
a1508604839   2016.04.27 09:59

一般是charset的问题,改一下应该可以

biyi4351
biyi4351 似乎没有设置charset
一年多之前 回复
CSDNXIAON
CSDNXIAON   2016.04.27 09:52

项目在eclipse运行正常,但单独部署到tomcat上出现乱码解决办法
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!