当前位置:编程学习 > JAVA >>

jar包冲突还是缺少jar包?

ProjectClassLoader: entry=F:\shopJar\Struts\struts2-osgi-plugin-2.2.1.1.jar
2013-10-25 15:40:09.650:INFO::jetty-6.1.26
2013-10-25 15:40:11.115:INFO:/Shop:Initializing Spring root WebApplicationContext
15:40:18,785 ERROR Dispatcher:38 - Dispatcher initialization failed
java.lang.NullPointerException
at org.apache.struts2.osgi.OsgiConfigurationProvider.init(OsgiConfigurationProvider.java:70)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:214)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:97)
2013-10-25 15:40:18.796:WARN::failed struts2: Class: org.apache.struts2.osgi.OsgiConfigurationProvider|File: OsgiConfigurationProvider.java|Method: init|Line: 70 - org/apache/struts2/osgi/OsgiConfigurationProvider.java:70:-1
2013-10-25 15:40:18.796:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1b38cdc{/Shop,F:\huangchaoWorks2\Shop\WebContent}
Class: org.apache.struts2.osgi.OsgiConfigurationProvider|File: OsgiConfigurationProvider.java|Method: init|Line: 70 - org/apache/struts2/osgi/OsgiConfigurationProvider.java:70:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:97)
2013-10-25 15:40:18.845:INFO::Started SelectChannelConnector@0.0.0.0:8080



我把这个jar包删了上面的错误没了,有个新的错误



新的错误是。。。




求解,这是怎么回事 jar --------------------编程问答-------------------- 无法找到osgi-default父包  --------------------编程问答-------------------- 一般error百度一下应该有答案 --------------------编程问答-------------------- jar包多的话,一般都是重复的,或者与其他冲突的,仔细检查一下吧,另外应大概了解一下各个jar包用处 --------------------编程问答-------------------- 无法找到osgi-default父包 
补充:Java ,  Java EE
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,