char3
char3
采纳率50%
2017-05-26 01:55 阅读 7.0k

dubbo发布到tomcat7之后无法访问,提示404,日志显示启动报错

发布在webapps目录下
图片说明
但访问报错
图片说明
8080可以正常访问,而且manager app下显示/dubbo的running状态为false
图片说明
启动日志如下:
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCa
che', 'org.apache.jasper.compiler.TldLocationsCache@5fdddbf6')
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j system
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
May 26, 2017 1:10:47 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.alibaba.citrus.webx.context.WebxContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'uriBrokerService': Cannot create inner bean '(inner bean)' of type [com.
alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl$URIBrokerInfo] while
setting bean property 'brokers' with key [0]; nested exception is org.springfram
ework.beans.factory.BeanCreationException: Error creating bean with name '(inner
bean)#25': Cannot create inner bean 'server' of type [com.alibaba.citrus.servic
e.uribroker.uri.GenericURIBroker] while setting constructor argument; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Error creatin
g bean with name 'server': Error setting property values; nested exception is or
g.springframework.beans.NotWritablePropertyException: Invalid property 'URIType'
of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean
property 'URIType' is not writable or has an invalid setter method. Does the pa
rameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveManagedList(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
"localhost.2017-05-26.log" 362L, 43836C 1,1 Top
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 26, 2017 1:10:34 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@5fdddbf6')
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j system
May 26, 2017 1:10:38 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
May 26, 2017 1:10:47 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.alibaba.citrus.webx.context.WebxContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uriBrokerService': Cannot create inner bean '(inner bean)' of type
[com.alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl$URIBrokerInfo] while setting bean property 'brokers' with key [0]; nested exception is or
g.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#25': Cannot create inner bean 'server' of type [com.ali
baba.citrus.service.uribroker.uri.GenericURIBroker] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreation
Exception: Error creating bean with name 'server': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyExcepti
on: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType' is not writable or has a
n invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)

求大神们帮忙看看什么情况
(zookeeper已经启动了)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • xyc_csdn 萧逸才 2017-05-26 09:55

    换个更高版本的tomcat试一下

    点赞 1 评论 复制链接分享

相关推荐