NutzCN Logo
问答 导入喊activiti的模板工程时候 报错,求原因
发布于 3355天前 作者 qq_a57b3bf3 2367 次浏览 复制 上一个帖子 下一个帖子
标签: activity

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tasks': Cannot create inner bean '(inner bean)#49867870' of type [com.auto.webservice.server.TasksServiceImpl] while setting bean property 'serviceBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#49867870' defined in URL [jndi:/localhost/wzflow/WEB-INF/cxf-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.auto.webservice.server.TasksServiceImpl]: Constructor threw exception; nested exception is org.nutz.ioc.IocException: For object [formService] - type:[interface org.activiti.engine.FormService]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#49867870' defined in URL [jndi:/localhost/wzflow/WEB-INF/cxf-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.auto.webservice.server.TasksServiceImpl]: Constructor threw exception; nested exception is org.nutz.ioc.IocException: For object [formService] - type:[interface org.activiti.engine.FormService]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1093)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
... 47 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.auto.webservice.server.TasksServiceImpl]: Constructor threw exception; nested exception is org.nutz.ioc.IocException: For object [formService] - type:[interface org.activiti.engine.FormService]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1086)
... 51 more
Caused by: org.nutz.ioc.IocException: For object [formService] - type:[interface org.activiti.engine.FormService]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:201)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:219)
... 53 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'formService' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:144)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166)
... 61 more
十月 16, 2015 3:47:18 下午 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /wzflow threw load() exception
org.nutz.ioc.ObjectLoadException: Object 'formService' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:144)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:219)
** xml配置文件**
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:soap="http://cxf.apache.org/bindings/soap"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd"

<!-- IP地址输入拦截器 -->
<bean id="ipAddressInInterceptor"
      class="com.auto.webservice.servlet.IpAddressInInterceptor" />

<jaxws:server id="tasks" serviceClass="com.auto.webservice.server.TasksService" address="/tasks">
    <jaxws:serviceBean>
        <bean class="com.auto.webservice.server.TasksServiceImpl" />
    </jaxws:serviceBean>
</jaxws:server>
1 回复

出错信息很明显了吧,有个类没被扫描到或没写IocBean
自豪地采用 NutzCN ionic

添加回复
请先登陆
回到顶部