Hi,

Do you already add
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/transport/nmr/cxf- transport-nmr.xml" /> <import resource="classpath:org/apache/servicemix/camel/nmr/camel- nmr.xml" />

in your spring file?

Freeman
On 2009-12-1, at 上午4:37, lekkie wrote:


I am trying to expose a remote webservice to the NMR so as to be able to
route messages to it from a recipient lists, elow is my config:

<jaxws:endpoint id="NAUCollegeServices"
                                        serviceName="nau:Service"
                                        endpointName="nau:ServiceSoap12"
                        wsdlLocation="wsdl/Service.wsdl"
                        address="nmr:nauCollegeService"
                        xmlns:nau="http://tempuri.org/"/>

However, it returns this exception whle trying to deploy:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NAUCollegeServices': Invocation of init method failed; nested
exception is javax.xml.ws.WebServiceException:
java.lang.IllegalStateException: Endpoint address should be a relative URI
wrt to the servlet address (use '/xxx' for example)
        at
org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
        at
org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        at
org .springframework .beans.factory.support.AbstractAutowireCapableBeanFactory $1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264)
        at
org .springframework .beans .factory .support .DefaultSingletonBeanRegistry .getSingleton(DefaultSingletonBeanRegistry.java:222)
        at
org .springframework .beans .factory .support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at
org .springframework .beans .factory .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at
org .springframework .beans .factory .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at
org .springframework .beans .factory .support .DefaultListableBeanFactory .preInstantiateSingletons(DefaultListableBeanFactory.java:429)
        at
org .springframework .context .support .AbstractApplicationContext .finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at
org .springframework .osgi .context.support.AbstractDelegatedExecutionApplicationContext.access $1600(AbstractDelegatedExecutionApplicationContext.java:68)
        at
org .springframework .osgi.context.support.AbstractDelegatedExecutionApplicationContext $4.run(AbstractDelegatedExecutionApplicationContext.java:343)
        at
org .springframework .osgi .util .internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java: 85)
        at
org .springframework .osgi .context .support .AbstractDelegatedExecutionApplicationContext .completeRefresh(AbstractDelegatedExecutionApplicationContext.java: 308)
        at
org .springframework .osgi .extender .internal .dependencies.startup.DependencyWaiterApplicationContextExecutor $ CompleteRefreshTask .run(DependencyWaiterApplicationContextExecutor.java:138)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.ws.WebServiceException:
java.lang.IllegalStateException: Endpoint address should be a relative URI
wrt to the servlet address (use '/xxx' for example)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:275)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
        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)

Any ideas?
--
View this message in context: 
http://old.nabble.com/jaxws-endpoint-address-should-be-a-relative-URI-wrt-to-the-servlet-address-tp26581432p26581432.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to