Re: Simple Front end/Aegis binding server side set up problem

2008-01-16 Thread yulinxp

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-tp14841711p14887352.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Simple Front end/Aegis binding server side set up problem

2008-01-16 Thread Benson Margulies
It's just a directory in the jar files.


On Wed, 2008-01-16 at 10:04 -0800, 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
 
  
 

  
  
  
 



Re: Simple Front end/Aegis binding server side set up problem

2008-01-16 Thread yulinxp

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 

Re: Simple Front end/Aegis binding server side set up problem

2008-01-16 Thread yulinxp

When I specify these three xml files, tomcat loads them:

INFO: Loading XML bean definitions from ServletContext resource
[/WEB-INF/beans.xml]
Jan 16, 2008 1:45:42 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
Jan 16, 2008 1:45:42 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-soap.xml]
Jan 16, 2008 1:45:42 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-servlet.xml]
Jan 16, 2008 1:45:42 PM
org.springframework.context.support.AbstractApplicationContext obtainFreshBe
anFactory


But if I don't import them in beans.xml. Tomcat loads all xml files! So if
this is happening, why is it  still not right? 
(  Caused by: java.net.MalformedURLException: no protocol: /hello_world )


INFO: Refreshing [EMAIL PROTECTED]:
display name [org.apache.c
[EMAIL PROTECTED]; startup date [Wed Jan 16
13:47:20 CST 2008]; root of c
ontext hierarchy
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-soap.xml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-management.x
ml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-rm.xml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-addr.xml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-http-binding
.xml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-jms.xml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-jaxws.xml]
Jan 16, 2008 1:47:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefini
tions

 



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.


-- 
View this message in context: 
http://www.nabble.com/Simple-Front-end-Aegis-binding-server-side-set-up-problem-tp14841711p14890738.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Simple Front end/Aegis binding server side set up problem

2008-01-15 Thread yulinxp

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-tp14841711p14844724.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Simple Front end/Aegis binding server side set up problem

2008-01-15 Thread Daniel Kulp

It looks like you're running into the same usage issue as Powel did.   
See:
http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200801.mbox/200801151428.34207.dkulp%40apache.org

Dan



On Tuesday 15 January 2008, 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.jav
a:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39) at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
actory.invokeCustom
 InitMethod(AbstractAutowireCapableBeanFactory.java:1240)
 .
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:51
6) 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.j
ava:39) at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.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(JettyH
TTPDestination.java

 :88)

 at
 org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDe
stination(JettyHTTP TransportFactory.java:116)
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDesti
nation(JettyHTTPTra nsportFactory.java:103)
 at
 org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTr
ansportFactory.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.jav
a: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



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Re: Simple Front end/Aegis binding server side set up problem

2008-01-15 Thread Willem Jiang

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