Yep.  Just a missing spring dep.  I'm on it.

Dan


On Thursday, March 22, 2012 07:54:48 AM Glen Mazza wrote:
> Team, the CXF "js_browser_client_java_first" sample, which works fine in
> both CXF 2.4.x and CXF 2.5.x, is inoperative in the CXF 2.6 trunk branch.
>  While Jetty starts OK, the page the README tells us to go to:
> http://localhost:9000/Beverages.html is inaccessible.   I think the
> problem is that the cxf.xml file[1] this sample uses is no longer being
> detected under the CXF 2.6 framework (perhaps due to the Spring
> dependency changes?), as running mvn -Pserver under CXF 2.4 or CXF 2.5
> gives this terminal output:
> 
> Mar 22, 2012 10:20:44 AM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@20b124fa:
> startup date [Thu Mar 22 10:20:44 EDT 2012]; root of context hierarchy
> Mar 22, 2012 10:20:44 AM org.apache.cxf.bus.spring.BusApplicationContext
> getConfigResources
> INFO: Loaded configuration file cxf.xml.
> Mar 22, 2012 10:20:44 AM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf.xml]
> Mar 22, 2012 10:20:44 AM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [cxf.xml]
> Mar 22, 2012 10:20:45 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@60da5
> 686: defining beans
> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apach
> e.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExte
> nsionPostProcessor,org.apache.cxf.transport.http_jetty.spring.JettySpringT
> ypesFactory,org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFacto
> ry,{http://server.hw.demo/}JavascriptExampleImplService.jaxws-endpoint];
> root of factory hierarchy
> Mar 22, 2012 10:20:45 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service
> {http://server.hw.demo/}JavascriptExampleImplService from class
> demo.hw.server.JavascriptExample
> Mar 22, 2012 10:20:46 AM org.apache.cxf.endpoint.ServerImpl
> initDestination INFO: Setting the server's publish address to be
> http://localhost:9000/beverages
> Mar 22, 2012 10:20:46 AM org.eclipse.jetty.server.Server doStart
> INFO: jetty-7.5.4.v20111024
> 
> But under CXF 2.6, the cxf.xml is ignored:
> 
> Starting Server
> Mar 22, 2012 10:21:29 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service
> {http://server.hw.demo/}JavascriptExampleImplService from class
> demo.hw.server.JavascriptExample
> Mar 22, 2012 10:21:29 AM org.apache.cxf.endpoint.ServerImpl
> initDestination INFO: Setting the server's publish address to be
> http://localhost:9000/beverages
> Mar 22, 2012 10:21:29 AM org.eclipse.jetty.server.Server doStart
> INFO: jetty-7.5.4.v20111024
> Mar 22, 2012 10:21:29 AM org.eclipse.jetty.server.AbstractConnector
> doStart
> 
> Are there some changes that need to be done to [1] in CXF 2.6 so the file
> will be read & processed again?  Or is the problem somewhere else?
> 
> Thanks,
> Glen
> 
> [1]
> http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/sampl
> es/js_browser_client_java_first/cxf.xml?revision=1040387&view=markup
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Can-t-get-js-browser-client-java-first-sa
> mple-to-work-in-CXF-2-6-tp5586446p5586446.html Sent from the cxf-dev
> mailing list archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to