NutzCN Logo
问答 CXF 集成webservice,添加数据库连接池
发布于 3171天前 作者 qq_a0ce1ea5 5503 次浏览 复制 上一个帖子 下一个帖子
标签:

<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <filter> <filter-name>nutz</filter-name> <filter-class>org.nutz.mvc.NutFilter</filter-class> <init-param> <param-name>modules</param-name> <param-value>com.hits.modules.MainModule</param-value> </init-param> </filter> <filter-mapping> <filter-name>nutz</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <servlet-name>CXFServlet</servlet-name> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>

上面是web.xml配置,添加filter,无法访问webservice,不报错

27 回复

总有点日志

@wendal

一月 28, 2016 4:58:10 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2801 ms
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
ALL Nutz Log via Log4jLogAdapter
一月 28, 2016 4:58:23 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 13173 ms

@qq_a0ce1ea5 log4j都没配置好

@wendal

一月 28, 2016 5:03:34 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2603 ms
2016-01-28 17:03:40,811 [INFO][org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization started
2016-01-28 17:03:40,927 [INFO][org.springframework.web.context.support.XmlWebApplicationContext] - Refreshing Root WebApplicationContext: startup date [Thu Jan 28 17:03:40 CST 2016]; root of context hierarchy
2016-01-28 17:03:41,143 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [applicationContext.xml]
2016-01-28 17:03:41,503 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
2016-01-28 17:03:41,595 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
2016-01-28 17:03:41,670 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
2016-01-28 17:03:42,619 [INFO][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3a2f0fa9: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,myserver]; root of factory hierarchy
2016-01-28 17:03:43,685 [INFO][org.apache.cxf.service.factory.ReflectionServiceFactoryBean] - Creating Service {http://inter.hits.com/}ServerImplService from class com.hits.inter.Server
2016-01-28 17:03:45,596 [INFO][org.apache.cxf.endpoint.ServerImpl] - Setting the server's publish address to be /
2016-01-28 17:03:45,725 [INFO][org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization completed in 4913 ms
ALL Nutz Log via Log4jLogAdapter
2016-01-28 17:03:45,774 [INFO][org.nutz.log.Logs] - Nutz is licensed under the Apache License, Version 2.0 .
Report bugs : https://github.com/nutzam/nutz/issues
2016-01-28 17:03:45,782 [INFO][org.nutz.mvc.NutFilter] - NutFilter[nutz] starting ...
2016-01-28 17:03:47,118 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz Version : 1.b.51 
2016-01-28 17:03:47,119 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is initializing ...
2016-01-28 17:03:47,798 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Scan complete ! Found 1 classes in 1 base-packages!
beans = ["comUtil"]
2016-01-28 17:03:47,830 [INFO][org.nutz.mvc.impl.NutLoading] - Build URL mapping by com.hits.core.UrlMappingSet ...
2016-01-28 17:03:47,904 [WARN][org.nutz.mvc.impl.NutLoading] - None module classes found!!!
2016-01-28 17:03:47,905 [WARN][org.nutz.mvc.impl.NutLoading] - None @At found in any modules class!!
2016-01-28 17:03:47,911 [INFO][org.nutz.mvc.impl.NutLoading] - Setup application...
2016-01-28 17:03:47,956 [INFO][org.springframework.web.context.support.XmlWebApplicationContext] - Closing Root WebApplicationContext: startup date [Thu Jan 28 17:03:40 CST 2016]; root of context hierarchy
2016-01-28 17:03:47,958 [INFO][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3a2f0fa9: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,myserver]; root of factory hierarchy
一月 28, 2016 5:03:48 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 13501 ms

找不到服务

@wendal


@WebService(endpointInterface = "com.hits.inter.Server",targetNamespace="http://inter.hits.com/") public class ServerImpl implements Server {
sql.params().set("name", username);
		sql.params().set("pwd",pwd);
		Dao dao = Mvcs.getIoc().get(Dao.class);
		int user = daoCtl.getIntRowValue(dao, sql);

日志开debug

http://www.wizzer.cn/?p=3140 Nutz:集成 CXF webservice [通过代码]
http://www.wizzer.cn/?p=3154 Nutz:集成 CXF Webservice [通过cxf-servlet.xml配置文件]

@wendal
日志太大发不了

那就分段发啊

另外,这事情, 看楼上的博客吧

@wendal

一月 28, 2016 5:16:02 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 3086 ms
2016-01-28 17:16:08,145 [INFO][org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization started
2016-01-28 17:16:08,297 [INFO][org.springframework.web.context.support.XmlWebApplicationContext] - Refreshing Root WebApplicationContext: startup date [Thu Jan 28 17:16:08 CST 2016]; root of context hierarchy
2016-01-28 17:16:08,540 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [applicationContext.xml]
2016-01-28 17:16:08,550 [DEBUG][org.springframework.beans.factory.xml.DefaultDocumentLoader] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
2016-01-28 17:16:08,637 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Loading schema mappings from [META-INF/spring.schemas]
2016-01-28 17:16:08,646 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Loaded schema mappings: {http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://cxf.apache.org/schemas/policy.xsd=schemas/policy.xsd, http://cxf.apache.org/schemas/configuration/security.xsd=schemas/configuration/security.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://cxf.apache.org/schemas/wsdl/jms.xsd=schemas/wsdl/jms.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd=schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://cxf.apache.org/schemas/configuration/soap.xsd=schemas/configuration/soap.xsd, http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd=schemas/configuration/wsrm-manager.xsd, http://cxf.apache.org/schemas/wsdl/http-conf.xsd=schemas/wsdl/http-conf.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://cxf.apache.org/schemas/jaxws.xsd=schemas/jaxws.xsd, http://www.w3.org/2006/07/ws-policy.xsd=schemas/ws-policy-200607.xsd, http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd=schemas/ws-policy-200409.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://cxf.apache.org/schemas/simple.xsd=schemas/simple.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd=schemas/configuration/wsrm-manager-types.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd=schemas/wsdl/wsdl.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://cxf.apache.org/schemas/bindings/object.xsd=schemas/bindings/object.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsd=schemas/configuration/wsrm-policy.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://cxf.apache.org/schemas/configuration/cxf-beans.xsd=schemas/configuration/cxf-beans.xsd, http://cxf.apache.org/schemas/ws/addressing.xsd=schemas/ws-addr-conf.xsd, http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd=schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://cxf.apache.org/schemas/core.xsd=schemas/core.xsd, http://www.w3.org/2007/02/ws-policy.xsd=schemas/ws-policy-200702.xsd, http://cxf.apache.org/schemas/jaxrs.xsd=schemas/jaxrs.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd=schemas/xmldsig-core-schema.xsd, http://www.w3.org/2001/xml.xsd=schemas/xml.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://cxf.apache.org/schemas/configuration/http-conf.xsd=schemas/configuration/http-conf.xsd, http://cxf.apache.org/schemas/configuration/http-jetty.xsd=schemas/configuration/http-jetty.xsd, http://cxf.apache.org/schemas/configuration/jms.xsd=schemas/configuration/jms.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://schemas.xmlsoap.org/wsdl/http/=schemas/wsdl/http.xsd, http://cxf.apache.org/schemas/configuration/parameterized-types.xsd=schemas/configuration/parameterized-types.xsd, http://cxf.apache.org/schemas/coloc-feature.xsd=schemas/coloc-feature.xsd, http://schemas.xmlsoap.org/wsdl/=schemas/wsdl/wsdl.xsd, http://schemas.xmlsoap.org/ws/2004/08/addressing=schemas/wsdl/addressing.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd}
2016-01-28 17:16:08,653 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd

@wendal

2016-01-28 17:16:08,774 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Found XML schema [http://cxf.apache.org/schemas/jaxws.xsd] in classpath: schemas/jaxws.xsd
2016-01-28 17:16:08,796 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Found XML schema [http://cxf.apache.org/schemas/configuration/cxf-beans.xsd] in classpath: schemas/configuration/cxf-beans.xsd
2016-01-28 17:16:08,835 [DEBUG][org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Loading bean definitions
2016-01-28 17:16:08,885 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
2016-01-28 17:16:08,892 [DEBUG][org.springframework.beans.factory.xml.DefaultDocumentLoader] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
2016-01-28 17:16:08,897 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd
2016-01-28 17:16:08,937 [DEBUG][org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Loading bean definitions
2016-01-28 17:16:09,016 [DEBUG][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loaded 4 bean definitions from location pattern [classpath:META-INF/cxf/cxf.xml]
2016-01-28 17:16:09,017 [DEBUG][org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Imported 4 bean definitions from URL location [classpath:META-INF/cxf/cxf.xml]
2016-01-28 17:16:09,021 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]

@wendal

2016-01-28 17:16:09,029 [DEBUG][org.springframework.beans.factory.xml.DefaultDocumentLoader] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
2016-01-28 17:16:09,034 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd
2016-01-28 17:16:09,073 [DEBUG][org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Loading bean definitions
2016-01-28 17:16:09,100 [DEBUG][org.springframework.beans.factory.xml.BeanDefinitionParserDelegate] - Neither XML 'id' nor 'name' specified - using generated bean name [org.apache.cxf.binding.soap.spring.SoapVersionRegistrar#751a8120]
2016-01-28 17:16:09,102 [DEBUG][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loaded 3 bean definitions from location pattern [classpath:META-INF/cxf/cxf-extension-soap.xml]
2016-01-28 17:16:09,103 [DEBUG][org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Imported 3 bean definitions from URL location [classpath:META-INF/cxf/cxf-extension-soap.xml]
2016-01-28 17:16:09,104 [INFO][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
2016-01-28 17:16:09,112 [DEBUG][org.springframework.beans.factory.xml.DefaultDocumentLoader] - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
2016-01-28 17:16:09,117 [DEBUG][org.springframework.beans.factory.xml.PluggableSchemaResolver] - Found XML schema [http://www.springframework.org/schema/beans/spring-beans.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd
2016-01-28 17:16:09,144 [DEBUG][org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Loading bean definitions
2016-01-28 17:16:09,146 [DEBUG][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loaded 0 bean definitions from location pattern [classpath:META-INF/cxf/cxf-servlet.xml]
2016-01-28 17:16:09,146 [DEBUG][org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Imported 0 bean definitions from URL location [classpath:META-INF/cxf/cxf-servlet.xml]
2016-01-28 17:16:09,154 [DEBUG][org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - Loaded NamespaceHandler mappings: {http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://cxf.apache.org/transports/http-jetty/configuration=org.apache.cxf.transport.http_jetty.spring.NamespaceHandler, http://www.w3.org/2006/07/ws-policy=org.apache.cxf.ws.policy.spring.PolicyNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://cxf.apache.org/jaxws=org.apache.cxf.jaxws.spring.NamespaceHandler, http://cxf.apache.org/policy=org.apache.cxf.ws.policy.spring.NamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://cxf.apache.org/transports/jms=org.apache.cxf.transport.jms.spring.NamespaceHandler, http://cxf.apache.org/transports/http/configuration=org.apache.cxf.transport.http.spring.NamespaceHandler, http://cxf.apache.org/bindings/object=org.apache.cxf.binding.object.spring.NamespaceHandler, http://cxf.apache.org/ws/addressing=org.apache.cxf.ws.addressing.spring.NamespaceHandler, http://cxf.apache.org/clustering=org.apache.cxf.clustering.spring.NamespaceHandler, http://cxf.apache.org/simple=org.apache.cxf.frontend.spring.NamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler, http://cxf.apache.org/core=org.apache.cxf.bus.spring.NamespaceHandler, http://cxf.apache.org/jaxrs=org.apache.cxf.jaxrs.spring.NamespaceHandler, http://cxf.apache.org/binding/coloc=org.apache.cxf.binding.coloc.spring.NamespaceHandler, http://schemas.xmlsoap.org/ws/2004/09/policy=org.apache.cxf.ws.policy.spring.PolicyNamespaceHandler, http://www.w3.org/ns/ws-policy=org.apache.cxf.ws.policy.spring.PolicyNamespaceHandler, http://cxf.apache.org/ws/rm/manager=org.apache.cxf.ws.rm.spring.NamespaceHandler, http://cxf.apache.org/bindings/soap=org.apache.cxf.binding.soap.spring.NamespaceHandler}
2016-01-28 17:16:09,338 [DEBUG][org.apache.cxf.common.logging.LogUtils] - Using org.apache.cxf.common.logging.Log4jLogger for logging.
2016-01-28 17:16:09,465 [DEBUG][org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser] - Adding org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser.wireBus attribute CONSTRUCTOR to bean org.springframework.beans.factory.support.BeanDefinitionBuilder@175b13c

@wendal

2016-01-28 17:16:09,483 [DEBUG][org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loaded 8 bean definitions from location pattern [classpath:applicationContext.xml]
2016-01-28 17:16:09,483 [DEBUG][org.springframework.web.context.support.XmlWebApplicationContext] - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@2f0d776: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,myserver]; root of factory hierarchy
2016-01-28 17:16:09,624 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'org.apache.cxf.binding.soap.customEditorConfigurer'
2016-01-28 17:16:09,624 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'org.apache.cxf.binding.soap.customEditorConfigurer'
2016-01-28 17:16:09,896 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Eagerly caching bean 'org.apache.cxf.binding.soap.customEditorConfigurer' to allow for resolving potential circular references
2016-01-28 17:16:09,913 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'org.apache.cxf.binding.soap.spring.SoapVersionRegistrar#751a8120'
2016-01-28 17:16:09,919 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'org.apache.cxf.binding.soap.spring.SoapVersionRegistrar#751a8120'
2016-01-28 17:16:09,989 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'org.apache.cxf.binding.soap.customEditorConfigurer'
2016-01-28 17:16:09,989 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor'
2016-01-28 17:16:09,990 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor'
2016-01-28 17:16:09,994 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Eagerly caching bean 'org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor' to allow for resolving potential circular references
2016-01-28 17:16:09,995 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor'
2016-01-28 17:16:10,003 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor'
2016-01-28 17:16:10,004 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor'
2016-01-28 17:16:10,005 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Eagerly caching bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' to allow for resolving potential circular references
2016-01-28 17:16:10,017 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor'

@wendal

2016-01-28 17:16:10,018 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor'
2016-01-28 17:16:10,018 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor'
2016-01-28 17:16:10,019 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Eagerly caching bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' to allow for resolving potential circular references
2016-01-28 17:16:10,019 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor'
2016-01-28 17:16:10,032 [DEBUG][org.springframework.web.context.support.XmlWebApplicationContext] - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@4b0edf88]
2016-01-28 17:16:10,044 [DEBUG][org.springframework.web.context.support.XmlWebApplicationContext] - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1963031a]
2016-01-28 17:16:10,057 [DEBUG][org.springframework.ui.context.support.UiApplicationContextUtils] - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@686fae91]
2016-01-28 17:16:10,059 [INFO][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2f0d776: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,myserver]; root of factory hierarchy
2016-01-28 17:16:10,059 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'cxf'
2016-01-28 17:16:10,060 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'cxf'
2016-01-28 17:16:10,525 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Eagerly caching bean 'cxf' to allow for resolving potential circular references
2016-01-28 17:16:10,547 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'cxf'
2016-01-28 17:16:10,548 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor'
2016-01-28 17:16:10,548 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor'
2016-01-28 17:16:10,548 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor'
2016-01-28 17:16:10,548 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'org.apache.cxf.binding.soap.customEditorConfigurer'
2016-01-28 17:16:10,549 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'myserver'
2016-01-28 17:16:10,549 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'myserver'
2016-01-28 17:16:10,607 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'cxf'
2016-01-28 17:16:10,941 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Eagerly caching bean 'myserver' to allow for resolving potential circular references

@wendal

2016-01-28 17:16:11,030 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Invoking init method  'publish' on bean with name 'myserver'
2016-01-28 17:16:11,079 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not find a definition for bean with id {http://inter.hits.com/}ServerImplPort.jaxws-endpoint - no injection will be performed.
2016-01-28 17:16:11,084 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not find a definition for bean with id org.apache.cxf.jaxws.JaxWsServerFactoryBean - no injection will be performed.
2016-01-28 17:16:11,183 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.policy.PolicyAnnotationListener.
2016-01-28 17:16:11,213 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.service.factory.FactoryBeanListenerManager.
2016-01-28 17:16:11,229 [INFO][org.apache.cxf.service.factory.ReflectionServiceFactoryBean] - Creating Service {http://inter.hits.com/}ServerImplService from class com.hits.inter.Server
2016-01-28 17:16:11,746 [DEBUG][org.apache.cxf.jaxb.JAXBDataBinding] - Created JAXBContext "jar:file:/D:/java/jdk8/jre/lib/rt.jar!/com/sun/xml/internal/bind/v2/runtime/JAXBContextImpl.class Build-Id: 1.8.0_65
Classes known to this context:
  [B
  boolean
  byte
  char
  com.sun.xml.internal.bind.api.CompositeStructure
  double
  float
  int
  java.awt.Image
  java.io.File
  java.lang.Boolean
  java.lang.Byte
  java.lang.Character
  java.lang.Class
  java.lang.Double
  java.lang.Float
  java.lang.Integer
  java.lang.Long
  java.lang.Object
  java.lang.Short
  java.lang.String
  java.lang.Void
  java.math.BigDecimal
  java.math.BigInteger
  java.net.URI
  java.net.URL
  java.util.Calendar
  java.util.Date
  java.util.GregorianCalendar
  java.util.UUID
  javax.activation.DataHandler
  javax.xml.bind.JAXBElement
  javax.xml.datatype.Duration
  javax.xml.datatype.XMLGregorianCalendar
  javax.xml.namespace.QName
  javax.xml.transform.Source
  long
  short
  void
" with classes [].

@wendal

2016-01-28 17:16:11,970 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.binding.soap.SoapBindingFactory.
2016-01-28 17:16:12,311 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister.
2016-01-28 17:16:12,321 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader.
2016-01-28 17:16:12,346 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.transport.http.HTTPWSDLExtensionLoader.
2016-01-28 17:16:12,378 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.addressing.AddressingWSDLExtensionLoader.
2016-01-28 17:16:12,440 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.transport.jms.wsdl11.JMSWSDLExtensionLoader.
2016-01-28 17:16:12,445 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.wsdl11.WSDLManagerImpl.
2016-01-28 17:16:12,499 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.binding.soap.SoapTransportFactory.
2016-01-28 17:16:12,847 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.transport.http.HTTPTransportFactory.
2016-01-28 17:16:12,866 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.transport.http_jetty.JettyDestinationFactory.
2016-01-28 17:16:12,992 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.policy.PolicyEngineImpl.
2016-01-28 17:16:13,119 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
2016-01-28 17:16:13,123 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.policy.PolicyBuilderImpl.
2016-01-28 17:16:13,126 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider.
2016-01-28 17:16:13,162 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.
2016-01-28 17:16:13,173 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.
2016-01-28 17:16:13,177 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not find a definition for bean with id {http://inter.hits.com/}ServerImplPort.http-destination - no injection will be performed.
2016-01-28 17:16:13,178 [INFO][org.apache.cxf.endpoint.ServerImpl] - Setting the server's publish address to be /
2016-01-28 17:16:13,180 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.buslifecycle.CXFBusLifeCycleManager.
2016-01-28 17:16:13,182 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.endpoint.ServerRegistryImpl.
2016-01-28 17:16:13,189 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.endpoint.ServerLifeCycleManagerImpl.
2016-01-28 17:16:13,218 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not determine bean name for instance of class org.apache.cxf.management.jmx.InstrumentationManagerImpl.
2016-01-28 17:16:13,232 [DEBUG][org.apache.cxf.resource.DefaultResourceManager] - resolving resource <cxf> type <interface org.apache.cxf.Bus>
2016-01-28 17:16:13,233 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'cxf'
2016-01-28 17:16:13,286 [DEBUG][org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder] - building handler chain

@wendal

2016-01-28 17:16:13,286 [DEBUG][org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder] - Checking for HandlerChain annotation on com.hits.inter.ServerImpl
2016-01-28 17:16:13,287 [DEBUG][org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder] - Checking for HandlerChain annotation on com.hits.inter.Server
2016-01-28 17:16:13,287 [DEBUG][org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder] - Checking for HandlerChain annotation on com.hits.inter.Server
2016-01-28 17:16:13,288 [DEBUG][org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder] - Checking for HandlerChain annotation on java.lang.Object
2016-01-28 17:16:13,288 [DEBUG][org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder] - no HandlerChain annotation on class com.hits.inter.ServerImpl
2016-01-28 17:16:13,292 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not find a definition for bean with id {http://inter.hits.com/}ServerImplService - no injection will be performed.
2016-01-28 17:16:13,292 [DEBUG][org.apache.cxf.configuration.spring.ConfigurerImpl] - Could not find a definition for bean with id {http://inter.hits.com/}ServerImplPort.endpoint - no injection will be performed.
2016-01-28 17:16:13,293 [DEBUG][org.apache.cxf.endpoint.ServerImpl] - Server is starting.
2016-01-28 17:16:13,297 [DEBUG][org.apache.cxf.transport.servlet.ServletDestination] - registering incoming observer: org.apache.cxf.transport.ChainInitiationObserver@87634d8
2016-01-28 17:16:13,297 [DEBUG][org.apache.cxf.endpoint.ServerImpl] - register the server to serverRegistry 
2016-01-28 17:16:13,298 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Finished creating instance of bean 'myserver'
2016-01-28 17:16:13,302 [DEBUG][org.springframework.web.context.support.XmlWebApplicationContext] - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@69e99ab4]
2016-01-28 17:16:13,303 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'lifecycleProcessor'
2016-01-28 17:16:13,309 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'cxf'
2016-01-28 17:16:13,310 [DEBUG][org.springframework.web.context.ContextLoader] - Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]
2016-01-28 17:16:13,310 [INFO][org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization completed in 5163 ms
ALL Nutz Log via Log4jLogAdapter
2016-01-28 17:16:13,363 [INFO][org.nutz.log.Logs] - Nutz is licensed under the Apache License, Version 2.0 .
Report bugs : https://github.com/nutzam/nutz/issues
2016-01-28 17:16:13,372 [INFO][org.nutz.mvc.NutFilter] - NutFilter[nutz] starting ...
2016-01-28 17:16:13,765 [DEBUG][org.nutz.resource.Scans] - Locations for Scans:
[JarResourceLocation [jarPath=D:\java\jdk8\lib\tools.jar], JarResourceLocation [jarPath=file:/D:/sts/sts-bundle/pivotal-tc-server-developer-3.1.1.RELEASE/localhost4/wtpwebapps/yt_service/WEB-INF/lib/nutz-1.b.51.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\tomcat-8.0.23.A.RELEASE\bin\bootstrap.jar], FileSystemResourceLocation [root=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\classes], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\tomcat-8.0.23.A.RELEASE\bin\tomcat-juli.jar], FileSystemResourceLocation [root=D:\sts\sts-bundle\sts-3.7.0.RELEASE]]
2016-01-28 17:16:14,643 [DEBUG][org.nutz.resource.Scans] - Locations for Scans:
[JarResourceLocation [jarPath=D:\java\jdk8\lib\tools.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\neethi-3.0.1.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-asm-3.0.5.RELEASE.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\commons-lang-2.6.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\commons-beanutils-1.7.0.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-aop-3.0.5.RELEASE.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\druid-1.0.1.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\cxf-2.4.3.jar], JarResourceLocation [jarPath=file:/D:/sts/sts-bundle/pivotal-tc-server-developer-3.1.1.RELEASE/localhost4/wtpwebapps/yt_service/WEB-INF/lib/nutz-1.b.51.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\tomcat-8.0.23.A.RELEASE\bin\bootstrap.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-context-3.0.5.RELEASE.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-beans-3.0.5.RELEASE.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\hits.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\ojdbc14.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\wsdl4j-1.6.2.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\tomcat-8.0.23.A.RELEASE\bin\tomcat-juli.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\slf4j-api-1.6.1.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-web-3.0.5.RELEASE.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\slf4j-log4j12-1.6.1.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-context-support-3.0.5.RELEASE.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\json-lib-2.4-jdk15.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\commons-logging-1.1.1.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-expression-3.0.5.RELEASE.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\spring-core-3.0.5.RELEASE.jar], FileSystemResourceLocation [root=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\classes], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\log4j-1.2.17.jar], FileSystemResourceLocation [root=D:\sts\sts-bundle\sts-3.7.0.RELEASE], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\nutz-1.b.51.jar], JarResourceLocation [jarPath=D:\sts\sts-bundle\pivotal-tc-server-developer-3.1.1.RELEASE\localhost4\wtpwebapps\yt_service\WEB-INF\lib\xmlschema-core-2.0.1.jar]]
2016-01-28 17:16:14,706 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz Version : 1.b.51 
2016-01-28 17:16:14,707 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is initializing ...
2016-01-28 17:16:14,799 [DEBUG][org.nutz.resource.Scans] - Found 1 resource by src( config ) , regex( ^(.+[.])(js|json)$ )
2016-01-28 17:16:14,856 [DEBUG][org.nutz.resource.Scans] - Found 90 resource by src( com/hits/ ) , regex( ^.+[.]class$ )
2016-01-28 17:16:15,416 [DEBUG][org.nutz.castor.Castors] - Using 91 castor for Castors
2016-01-28 17:16:15,425 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Scan complete ! Found 1 classes in 1 base-packages!
beans = ["comUtil"]

@wendal

2016-01-28 17:16:15,458 [INFO][org.nutz.mvc.impl.NutLoading] - Build URL mapping by com.hits.core.UrlMappingSet ...
2016-01-28 17:16:15,526 [DEBUG][org.nutz.resource.Scans] - Found 47 resource by src( com/hits/modules/ ) , regex( ^.+[.]class$ )
2016-01-28 17:16:15,536 [WARN][org.nutz.mvc.impl.NutLoading] - None module classes found!!!
2016-01-28 17:16:15,536 [WARN][org.nutz.mvc.impl.NutLoading] - None @At found in any modules class!!
2016-01-28 17:16:15,542 [INFO][org.nutz.mvc.impl.NutLoading] - Setup application...
2016-01-28 17:16:15,583 [INFO][org.springframework.web.context.support.XmlWebApplicationContext] - Closing Root WebApplicationContext: startup date [Thu Jan 28 17:16:08 CST 2016]; root of context hierarchy
2016-01-28 17:16:15,584 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'cxf'
2016-01-28 17:16:15,585 [DEBUG][org.apache.cxf.endpoint.ServerImpl] - Server is stopping.
2016-01-28 17:16:15,585 [DEBUG][org.apache.cxf.endpoint.ServerImpl] - unregister the server to serverRegistry 
2016-01-28 17:16:15,586 [DEBUG][org.apache.cxf.transport.servlet.ServletDestination] - unregistering incoming observer: org.apache.cxf.transport.ChainInitiationObserver@87634d8
2016-01-28 17:16:15,587 [DEBUG][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'lifecycleProcessor'
2016-01-28 17:16:15,587 [INFO][org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2f0d776: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,myserver]; root of factory hierarchy
2016-01-28 17:16:15,588 [DEBUG][org.springframework.beans.factory.support.DisposableBeanAdapter] - Invoking destroy method 'stop' on bean with name 'myserver'
2016-01-28 17:16:15,589 [DEBUG][org.springframework.beans.factory.support.DisposableBeanAdapter] - Invoking destroy method 'shutdown' on bean with name 'cxf'
一月 28, 2016 5:16:15 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 13835 ms

只是为了在spring+cxf的基础上NutDao?

@wendal

public boolean login(String username, String pwd) {
		Sql sql = Sqls.create("select count(1) from webservice where name=@name and pwd=@pwd and enable='true' ");
		sql.params().set("name", username);
		sql.params().set("pwd",pwd);
		Dao dao = Mvcs.getIoc().get(Dao.class);
		int user = daoCtl.getIntRowValue(dao, sql);
		if (user == 1) {
			return true;
		}
		return false;
	}

加filter,我可以直接使用dao,

那还不如直接声明在Srping里面

@wendal
有具体的demo?

如果你只需要Dao,那么用DaoUp这个类吧,非常方便

    <!--nutz spring配置 -->
       <bean id="nutDao" class="org.nutz.dao.impl.NutDao">
         <property name="dataSource" ref="dataSource" />
         <property name="runner" ref="springDaoRunner" />
       </bean>

http://nutzam.github.io/nutz/dao/runner.html#%E5%90%8C_Spring_%E4%BA%8B%E5%8A%A1%E6%95%B4%E5%90%88%E7%9A%84%E4%BE%8B%E5%AD%90

@wendal

<bean id="nutDao" class="org.nutz.dao.impl.NutDao">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<bean id="server" class="com.hits.inter.ServerImpl">
		<property name="dao" ref="nutDao" />
	</bean>
	<jaxws:endpoint id="myserver" implementor="#server"
		address="/" />

@wendal
可以用,没什么问题吧,我省了一个属性

com.hits. 好像信服的包名 - -

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