I found them. They're in the cxf-xxx-jar/META-INF/cxf/ -------------------------------------
yulinxp wrote: > > where to find classpath:META-INF? Could you pls give me the link? > > --------------------------- > > > willem.jiang wrote: >> >> They are the spring description files of cxf components. >> >> <import resource="classpath:META-INF/cxf/cxf.xml" /> this is the cxf >> core component. >> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> this >> is the soap component configuration file. >> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> this is >> the cxf servlet transport component configuration file. >> >> You can find them from the cxf modules class path. >> >> Willem. >> >> >> yulinxp wrote: >>> I need to add these: >>> <import resource="classpath:META-INF/cxf/cxf.xml" /> >>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> >>> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> >>> >>> Can anybody tell me what they are and how they're found and referenced? >>> >>> --------------------------------- >>> >>> >>> yulinxp wrote: >>> >>>> When deploying in tomcat, it's complaining about "Caused by: >>>> java.net.MalformedURLException: no protocol: /hello_world" >>>> Did I not get the schema for simple? where can I find it? >>>> >>>> SEVERE: Context initialization failed >>>> org.springframework.beans.factory.BeanCreationException: Error creating >>>> bean with name 'helloWorld': >>>> Invocation of init method failed; nested exception is >>>> org.apache.cxf.service.factory.ServiceConstructionException >>>> Caused by: org.apache.cxf.service.factory.ServiceConstructionException >>>> at >>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:130) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>> at java.lang.reflect.Method.invoke(Method.java:585) >>>> at >>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustom >>>> InitMethod(AbstractAutowireCapableBeanFactory.java:1240) >>>> ..... >>>> at >>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) >>>> at >>>> org.apache.catalina.core.StandardService.start(StandardService.java:516) >>>> at >>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710) >>>> at >>>> org.apache.catalina.startup.Catalina.start(Catalina.java:566) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>> at java.lang.reflect.Method.invoke(Method.java:585) >>>> at >>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) >>>> at >>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) >>>> Caused by: java.net.MalformedURLException: no protocol: /hello_world >>>> at java.net.URL.<init>(URL.java:567) >>>> at java.net.URL.<init>(URL.java:464) >>>> at java.net.URL.<init>(URL.java:413) >>>> at >>>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java >>>> :88) >>>> at >>>> org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDestination(JettyHTTP >>>> TransportFactory.java:116) >>>> at >>>> org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDestination(JettyHTTPTra >>>> nsportFactory.java:103) >>>> at >>>> org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java >>>> :74) >>>> at >>>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90) >>>> at >>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69) >>>> at >>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:109) >>>> ... 41 more >>>> ------------------------------- >>>> >>>> <beans xmlns="http://www.springframework.org/schema/beans" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xmlns:simple="http://cxf.apache.org/simple" >>>> xmlns:soap="http://cxf.apache.org/bindings/soap" >>>> xsi:schemaLocation=" >>>> http://www.springframework.org/schema/beans >>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd >>>> http://cxf.apache.org/bindings/soap >>>> http://cxf.apache.org/schemas/configuration/soap.xsd >>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd"> >>>> >>>> <simple:server id="helloWorld" serviceClass="demo.spring.HelloWorld" >>>> address="/hello_world"> >>>> <simple:dataBinding> >>>> <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" >>>> /> >>>> </simple:dataBinding> >>>> <simple:serviceBean> >>>> <bean class="demo.spring.HelloWorldImpl" /> >>>> </simple:serviceBean> >>>> </simple:server> >>>> </beans> >>>> >>>> >>> >>> >> >> >> > > -- View this message in context: http://www.nabble.com/Simple-Front-end-Aegis-binding-server-side-set-up-problem-tp14841711p14889659.html Sent from the cxf-user mailing list archive at Nabble.com.
