注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

love3400wind的blog

like

 
 
 

日志

 
 
 
 

Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource  

2011-12-12 14:04:53|  分类: IT |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

环境:aix + weblogic8.1.6

以前在windows下部署正常,换小机上就出问题了。。部署失败。

2011-12-12 11:06:23,467 ERROR (ContextLoader.java:205) - Context initialization failed< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Can't resolve reference to bean 'CrimeService' while setting property 'urlMap[/Crime.ws]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CrimeService' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Initialization of bean failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CrimeService' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Initialization of bean failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException

javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException

        at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:75)

        at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:136)

        at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)

        at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)

        at org.codehaus.xfire.util.STAXUtils.<clinit>(STAXUtils.java:48)

        at org.codehaus.xfire.util.jdom.StaxBuilder.<init>(StaxBuilder.java:150)

        at org.codehaus.xfire.aegis.XMLClassMetaInfoManager.getDocument(XMLClassMetaInfoManager.java:47)

        at org.codehaus.xfire.aegis.XMLClassMetaInfoManager.findMapping(XMLClassMetaInfoManager.java:64)

        at org.codehaus.xfire.aegis.type.XMLTypeCreator.findMapping(XMLTypeCreator.java:142)

        at org.codehaus.xfire.aegis.type.XMLTypeCreator.createClassInfo(XMLTypeCreator.java:239)

        at org.codehaus.xfire.aegis.type.AbstractTypeCreator.getElementName(AbstractTypeCreator.java:361)

        at org.codehaus.xfire.aegis.AegisBindingProvider.getSuggestedName(AegisBindingProvider.java:249)

        at org.codehaus.xfire.service.binding.DefaultServiceConfiguration.getInParameterName(DefaultServiceConfiguration.java:162)

        at org.codehaus.xfire.service.binding.ObjectServiceFactory.getInParameterName(ObjectServiceFactory.java:1063)

        at org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:817)

        at org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:761)

        at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:444)

        at org.codehaus.xfire.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:176)

        at org.codehaus.xfire.spring.remoting.XFireExporter.afterPropertiesSet(XFireExporter.java:30)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:225)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1013)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)

        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)

        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

        at weblogic.servlet.internal.WebAppServletContext$FireContextListenerAction.run(WebAppServletContext.java:7110)

        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))

        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Compiled Code))

        at weblogic.servlet.internal.WebAppServletContext.notifyCreated(WebAppServletContext.java:1757)

        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3378)

        at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:6262)

        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:892)

        at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2181)

        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2222)

        at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2521)

        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2439)

        at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2156)

        at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2255)

        at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2150)

        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2402)

        at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:884)

        at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:592)

        at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:501)

        at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)

        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))

        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java(Compiled Code))

<Dec 12, 2011 11:06:23 AM GMT+08:00> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Can't resolve reference to bean 'CrimeService' while setting property 'urlMap[/Crime.ws]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CrimeService' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Initialization of bean failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException.>

<Dec 12, 2011 11:06:23 AM GMT+08:00> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Can't resolve reference to bean 'CrimeService' while setting property 'urlMap[/Crime.ws]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CrimeService' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Initialization of bean failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException.>

<Dec 12, 2011 11:06:23 AM GMT+08:00> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating Deploy task for application ServiceCrime.>

<Dec 12, 2011 11:06:23 AM GMT+08:00> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 1 for the application ServiceCrime.

weblogic.management.DeploymentException:

Exception:weblogic.management.ApplicationException: start() failed.

        Module: ServiceCrime    Error: weblogic.management.DeploymentException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Can't resolve reference to bean 'CrimeService' while setting property 'urlMap[/Crime.ws]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CrimeService' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Initialization of bean failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException - with nested exception:

[javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException]

 

        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2441)

        at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2156)

        at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2255)

        at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2150)

        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2402)

        at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:884)

        at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:592)

        at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:501)

        at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)

        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))

        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java(Compiled Code))

--------------- nested within: ------------------

weblogic.management.ManagementException:  - with nested exception:

[weblogic.management.DeploymentException:

Exception:weblogic.management.ApplicationException: start() failed.

        Module: ServiceCrime    Error: weblogic.management.DeploymentException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Can't resolve reference to bean 'CrimeService' while setting property 'urlMap[/Crime.ws]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CrimeService' defined in ServletContext resource [/WEB-INF/xfire-servlet.xml]: Initialization of bean failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException - with nested exception:

[javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException]

]

        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2414)

        at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:884)

        at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:592)

        at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:501)

        at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)

        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))

        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java(Compiled Code))

>

^C$


解决方法:尝试删除项目中的  IServiceCrime.aegis.xml,删除后正常。。
  评论这张
 
阅读(5586)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017