Have you tried validating your xml configuration? On 21 Oct 2016 20:57, "Erwin Hogeweg" <[email protected]> wrote:
> Hi, > > I am struggling with this exception for a while now. It seems ‘harmless', > but I am reluctant to just classify it as log-spam. > > I have the following definition in my remote-services.xml file: > > <endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0"> > <endpoint-description> > <property name="objectClass"> > <array> > <value>com.my.service.MyClientService</value> > </array> > </property> > <property name="endpoint.id">http://some_host:18110/</property> > <property name="service.imported.configs">org.apache.cxf.ws</property> > </endpoint-description> > </endpoint-descriptions> > > This creates the following INFO msg in the log: > > [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore > - Matching Interfaces for import: [com.my.service.MyClientService] > [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore > - Proxifying interface: com.my.service.MyClientService > [pool-4-thread-1] INFO > org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler > - Creating a com.my.service.MyClientService client, endpoint address is > http://some_host:18110/ > [Framework Event Dispatcher: Equinox Container: > 7098d908-bd97-0016-11e2-dc65d8e13fe9] > WARN org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl - Problem > parsing: bundleentry://136.fwk1139700454/OSGI-INF/remote- > service/remote-services.xml > javax.xml.bind.UnmarshalException > - with linked exception: > [org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 69; > cvc-elt.1: Cannot find the declaration of element 'endpoint-descriptions'.] > at javax.xml.bind.helpers.AbstractUnmarshallerImpl. > createUnmarshalException(AbstractUnmarshallerImpl.java:335) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl. > createUnmarshalException(UnmarshallerImpl.java:563) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller. > UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller. > UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221) > at com.sun.xml.internal.bind.v2.runtime.unmarshaller. > UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276) > at org.apache.cxf.dosgi.dsw.decorator.DecorationParser.getDecorations( > DecorationParser.java:71) > at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl. > getDecorationElements(ServiceDecoratorImpl.java:78) > at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.addDecorations( > ServiceDecoratorImpl.java:52) > at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorBundleListener > .bundleChanged(ServiceDecoratorBundleListener.java:40) > at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent( > BundleContextImpl.java:902) > at org.eclipse.osgi.framework.eventmgr.EventManager. > dispatchEvent(EventManager.java:230) > at org.eclipse.osgi.framework.eventmgr.EventManager$ > EventThread.run(EventManager.java:340) > Caused by: org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: > 69; cvc-elt.1: Cannot find the declaration of element > 'endpoint-descriptions'. > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper. > createSAXParseException(ErrorHandlerWrapper.java:203) > at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error( > ErrorHandlerWrapper.java:134) > > > Nevertheless, the service is registered and functional: > > g! services com.my.service.MyClientService > {com.my.service.MyClientService}={endpoint.id=http://some_host:18110/, > service.imported=true, service.imported.configs=org.apache.cxf.ws, > service.id=129, service.bundleid=89, service.scope=bundle} > "Registered by bundle:" cxf-dosgi-ri-dsw-cxf_1.7.0 [89] > > Does anyone have an idea what is going on here, and what I need to do to > get rid of the Exception in the log (short from tuning the logger config > file…)? > > Any help is greatly appreciated. > > BTW… running with Equinox-3.10.2 on Oracle J8. > > > Kind Regards, > > Erwin > > Erwin Hogeweg > CTO > 3690 Airport Road > Boca Raton, FL 33431 > P. +1 (954) 556-6565 > M. +1 (561) 306-7395 > F. +1 (561) 948-2730 > [Seecago]<http://www.seecago.com> >
