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>