liwn:resteasy-springMVC liweinan$ mvn test [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Spring MVC RestContact Maven Webapp [INFO] task-segment: [test] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs-all:1.1.GA_CP-SNAPSHOT: checking for updates from java.net [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs-all:1.1.GA_CP-SNAPSHOT: checking for updates from maven repo [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs-all:1.1.GA_CP-SNAPSHOT: checking for updates from jboss [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs-all:1.1.GA_CP-SNAPSHOT: checking for updates from atlassian-public [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs-all:1.1.GA_CP-SNAPSHOT: checking for updates from atlassian-m1-repository [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs-all:1.1.GA_CP-SNAPSHOT: checking for updates from scannotation [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs:1.1.GA_CP-SNAPSHOT: checking for updates from maven repo [INFO] snapshot org.jboss.resteasy:resteasy-jaxrs:1.1.GA_CP-SNAPSHOT: checking for updates from scannotation [INFO] snapshot org.jboss.resteasy:jaxrs-api:1.1.GA_CP-SNAPSHOT: checking for updates from maven repo [INFO] snapshot org.jboss.resteasy:jaxrs-api:1.1.GA_CP-SNAPSHOT: checking for updates from scannotation [INFO] snapshot org.jboss.resteasy:resteasy-jaxb-provider:1.1.GA_CP-SNAPSHOT: checking for updates from jakarta [INFO] snapshot org.jboss.resteasy:resteasy-jaxb-provider:1.1.GA_CP-SNAPSHOT: checking for updates from codehaus [INFO] snapshot org.jboss.resteasy:resteasy-jaxb-provider:1.1.GA_CP-SNAPSHOT: checking for updates from maven2-repository.dev.java.net [INFO] snapshot org.jboss.resteasy:resteasy-jaxb-provider:1.1.GA_CP-SNAPSHOT: checking for updates from ibiblio mirror [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 4 source files to /Users/liweinan/resteasy/examples/resteasy-springMVC/target/classes [INFO] [resources:testResources {execution: default-testResources}] [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /Users/liweinan/resteasy/examples/resteasy-springMVC/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 1 source file to /Users/liweinan/resteasy/examples/resteasy-springMVC/target/test-classes [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: /Users/liweinan/resteasy/examples/resteasy-springMVC/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.jboss.resteasy.examples.springmvc.ContactsTest [Mon Jan 18 18:12:58 CST 2010] Initializing Spring FrameworkServlet '' 130 [main] INFO org.jboss.resteasy.springmvc.tjws.TJWSSpringMVCDispatcher - FrameworkServlet '': initialization started 147 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@498713: display name [WebApplicationContext for namespace '-servlet']; startup date [Mon Jan 18 18:12:58 CST 2010]; root of context hierarchy 225 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [springmvc-servlet.xml] 541 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [springmvc-resteasy.xml] 602 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@498713]: org.springframework.beans.factory.support.DefaultListableBeanFactory@438dbe 905 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@438dbe: defining beans [contactService,contactsResource,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,resteasy.providerFactory,resteasy.intializer,resteasy.dispatcher,resteasy.registry,resteasy.spring.bean.processor,abstract.resteasy.handlerMapping,resteasy.handlerMapping,resteasy.handlerAdapter,resteasy.exception.handler,resteasy.no.resource.found.view,reateasy.error.view.resolver,viewResolver]; root of factory hierarchy 938 [main] INFO org.jboss.resteasy.springmvc.ResteasyHandlerMapping - ResteasyHandlerMapping has the default order and throwNotFound settings. Consider adding explicit ordering to your HandlerMappings, with ResteasyHandlerMapping being lsat, and set throwNotFound = true. 990 [main] INFO org.jboss.resteasy.springmvc.tjws.TJWSSpringMVCDispatcher - FrameworkServlet '': initialization completed in 859 ms [Mon Jan 18 18:12:59 CST 2010] Servlet for path '/' already defined and no default will be used. [Mon Jan 18 18:12:59 CST 2010] TJWS httpd 0.0.0.0 - SimpleAcceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] is listening. http://localhost:8080/contacts/data/Duskis SolomonDuskisBillBurkie [Mon Jan 18 18:12:59 CST 2010] Accept: java.net.SocketException: Socket closed Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.505 sec testData(org.jboss.resteasy.examples.springmvc.ContactsTest) Time elapsed: 0.395 sec readHTML(org.jboss.resteasy.examples.springmvc.ContactsTest) skipped Results : Tests run: 2, Failures: 0, Errors: 0, Skipped: 1 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 seconds [INFO] Finished at: Mon Jan 18 18:13:00 CST 2010 [INFO] Final Memory: 20M/254M [INFO] ------------------------------------------------------------------------ liwn:resteasy-springMVC liweinan$