You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Mark Clarke <ma...@jumpingbean.co.za> on 2007/11/05 20:06:00 UTC

Marshalling Error: xxxxxx is not known to this context

Hi there,

I don't know how to overcome this error. "Marshalling Error:  xxxxxx is
not known to this context" I see from the bug list that it is recommend
that one uses

ServerFactoryBean svrBean = new ServerFactoryBean();
         svrBean.setAddress("http://localhost/Hello");
         svrBean.setServiceClass(HelloService.class);
         svrBean.setBus(getBus());

Map props = svrBean.getProperties();
         if (props == null) {
             props = new HashMap<String, Object>();
         }
         props.put("jaxb.additionalContextClasses",
                   new Class[] {java.rmi.Remote.class,
java.rmi.RemoteException.class});
         svrBean.setProperties(props);
         svrBean.create();



But where is one supposed to put this code? I am using annotations and
the web.xml as well as the following in the applicationContext.xml

     <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" />

     <jaxws:endpoint id="itestWebService"
implementor="#itestWebServiceBean" address="/ITestWebService" />

thanks

Mark





===========================================
Cyber Connect - More than just broadband
http://www.CyberConnect.co.za - Vodacom 3G R99/month

Cyber Designs - Put your business on the net
http://www.CyberDesigns.co.za

Jumping Bean - Your Java and Linux Experts
http://www.JumpingBean.co.za

Tel: 011-781 80 14
Fax: 011-781 80 15
===========================================
Disclaimer

Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Cyber Designs are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising.