Hi, I have a POJO that is being exposed as a JSR181 web service. When a method is invoked internally I want sent a WS-Notification message. I have added dependencies on servicemix-core and servicemix-jbi in pom.xml of this su. The code compiles fine but when I deploy it, I get the error listed below. The notificationBroker is already deployed as shown in wsn-http-binding example. Thanks in advance.
The xbean.xml for the JSR181-SU is as follows: <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"> <jsr181:endpoint pojo="#foows" wsdlResource="classpath:foows.wsdl" typeMapping="jaxb2" annotations="jsr181" style="document" /> <bean id="foows" class="org.apache.servicemix.examples.foows.FOOWSImpl"> <property name="context" ref="context" /> </bean> </beans> The FooImpl.java code is as shown below: package org.apache.servicemix.examples.foows; import javax.jws.WebService; import org.apache.servicemix.examples.foows.types.XXXResponse; import org.apache.servicemix.examples.foows.types.LogoutResponse; import org.apache.servicemix.wsn.client.NotificationBroker; import javax.jbi.component.ComponentContext; @WebService(serviceName = "FOOWS", targetNamespace = "http://servicemix.apache.org/examples/foows", endpointInterface = "org.apache.servicemix.examples.foows.FOOWSPortType") public class FOOWSImpl implements FOOWSPortType { private ComponentContext context; public void setContext(ComponentContext context) { this.context = context; } public ComponentContext getContext(){ return context; } public XXXResponse calcXXX(org.apache.servicemix.examples.foows.types.XXXRequest XXXRequest) { System.out.println("****************Inside XXX*****************"); String topic = "myTopic"; String message = "<XXXValue> <result>2</result></XXXValue>"; try{ NotificationBroker wsnBroker = new NotificationBroker(getContext()); wsnBroker.notify(topic, message); }catch(Exception e){ e.printStackTrace(); } XXXResponse response = new XXXResponse(); response.setResult(SUCCESS); return response; } } The deployment error message: [Fatal Error] :13:86: The content of elements must consist of well-formed charac ter data or markup. <exception-info> <nesting-level>1</nesting-level> <loc-token/> <loc-message><component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message"> <component-name>servicemix-wsn2005</component-name> <component-task-result-details> <task-result-details> <task-id>deploy</task-id> <task-result>FAILED</task-result> <message-type>ERROR</message-type> <task-status-msg><msg-loc-info><loc-token/><loc-message>Invalid xml</loc-message></msg-loc-info></task-status-msg> <exception-info> <nesting-level>1</nesting-level> <msg-loc-info> <loc-token /> <loc-message>unexpected element (uri:"", local:"beans"). Expected elements are <{http://www.w3.org/2005/08/addressing}Action>,<{http://docs.oasis-open.org/wsrf/bf-2}BaseFault>,<{http://docs.oasis-open.org/wsn/b-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/br-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPoint>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPointResponse>,<{http://docs.oasis-open.org/wsn/b-2}CreationTime>,<{http://docs.oasis-open.org/wsn/br-2}CreationTime>,<{http://docs.oasis-open.org/wsn/b-2}CurrentTime>,<{http://docs.oasis-open.org/wsn/br-2}Demand>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPoint>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPointResponse>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistration>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistrationResponse>,<{http://www.w3.org/2005/08/addressing}EndpointReference>,<{}Fault>,<{http://www.w3.org/2005/08/addressing}FaultTo>,<{http://docs.oasis-open.org/wsn/b-2}Filter>,<{http://docs.oasis-open.org/wsn/b-2}FixedTopicSet>,<{http://www.w3.org/2005/08/addressing}From>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessage>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessageResponse>,<{http://docs.oasis-open.org/wsn/b-2}GetMessages>,<{http://docs.oasis-open.org/wsn/b-2}GetMessagesResponse>,<{http://docs.oasis-open.org/wsn/b-2}InvalidFilterFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidMessageContentExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidProducerPropertiesExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidTopicExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}MessageContent>,<{http://www.w3.org/2005/08/addressing}MessageID>,<{http://www.w3.org/2005/08/addressing}Metadata>,<{http://docs.oasis-open.org/wsn/b-2}MultipleTopicsSpecifiedFault>,<{http://docs.oasis-open.org/wsn/b-2}NoCurrentMessageOnTopicFault>,<{http://docs.oasis-open.org/wsn/br-2}NotificationBrokerRP>,<{http://docs.oasis-open.org/wsn/b-2}NotificationMessage>,<{http://docs.oasis-open.org/wsn/b-2}NotificationProducerRP>,<{http://docs.oasis-open.org/wsn/b-2}Notify>,<{http://docs.oasis-open.org/wsn/b-2}NotifyMessageNotSupportedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscription>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}ProblemAction>,<{http://www.w3.org/2005/08/addressing}ProblemHeader>,<{http://www.w3.org/2005/08/addressing}ProblemHeaderQName>,<{http://www.w3.org/2005/08/addressing}ProblemIRI>,<{http://docs.oasis-open.org/wsn/b-2}ProducerProperties>,<{http://docs.oasis-open.org/wsn/b-2}ProducerReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationFailedFault>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRP>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRejectedFault>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisher>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisherResponse>,<{http://www.w3.org/2005/08/addressing}RelatesTo>,<{http://docs.oasis-open.org/wsn/b-2}Renew>,<{http://docs.oasis-open.org/wsn/b-2}RenewResponse>,<{http://www.w3.org/2005/08/addressing}ReplyTo>,<{http://docs.oasis-open.org/wsn/br-2}RequiresRegistration>,<{http://docs.oasis-open.org/wsn/br-2}ResourceNotDestroyedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscription>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}RetryAfter>,<{http://docs.oasis-open.org/wsn/b-2}Subscribe>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeCreationFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionManagerRP>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionPolicy>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionReference>,<{http://docs.oasis-open.org/wsn/b-2}TerminationTime>,<{http://www.w3.org/2005/08/addressing}To>,<{http://docs.oasis-open.org/wsn/b-2}Topic>,<{http://docs.oasis-open.org/wsn/br-2}Topic>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpression>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialect>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialectUnknownFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicNamespace>,<{http://docs.oasis-open.org/wsn/b-2}TopicNotSupportedFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicSet>,<{http://docs.oasis-open.org/wsn/b-2}UnableToCreatePullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroyPullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroySubscriptionFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToGetMessagesFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableInitialTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnrecognizedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}Unsubscribe>,<{http://docs.oasis-open.org/wsn/b-2}UnsubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}UnsupportedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}UseRaw></loc-message> <stack-trace><![CDATA[javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"beans"). Expected elements are <{http://www.w3.org/2005/08/addressing}Action>,<{http://docs.oasis-open.org/wsrf/bf-2}BaseFault>,<{http://docs.oasis-open.org/wsn/b-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/br-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPoint>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPointResponse>,<{http://docs.oasis-open.org/wsn/b-2}CreationTime>,<{http://docs.oasis-open.org/wsn/br-2}CreationTime>,<{http://docs.oasis-open.org/wsn/b-2}CurrentTime>,<{http://docs.oasis-open.org/wsn/br-2}Demand>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPoint>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPointResponse>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistration>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistrationResponse>,<{http://www.w3.org/2005/08/addressing}EndpointReference>,<{}Fault>,<{http://www.w3.org/2005/08/addressing}FaultTo>,<{http://docs.oasis-open.org/wsn/b-2}Filter>,<{http://docs.oasis-open.org/wsn/b-2}FixedTopicSet>,<{http://www.w3.org/2005/08/addressing}From>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessage>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessageResponse>,<{http://docs.oasis-open.org/wsn/b-2}GetMessages>,<{http://docs.oasis-open.org/wsn/b-2}GetMessagesResponse>,<{http://docs.oasis-open.org/wsn/b-2}InvalidFilterFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidMessageContentExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidProducerPropertiesExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidTopicExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}MessageContent>,<{http://www.w3.org/2005/08/addressing}MessageID>,<{http://www.w3.org/2005/08/addressing}Metadata>,<{http://docs.oasis-open.org/wsn/b-2}MultipleTopicsSpecifiedFault>,<{http://docs.oasis-open.org/wsn/b-2}NoCurrentMessageOnTopicFault>,<{http://docs.oasis-open.org/wsn/br-2}NotificationBrokerRP>,<{http://docs.oasis-open.org/wsn/b-2}NotificationMessage>,<{http://docs.oasis-open.org/wsn/b-2}NotificationProducerRP>,<{http://docs.oasis-open.org/wsn/b-2}Notify>,<{http://docs.oasis-open.org/wsn/b-2}NotifyMessageNotSupportedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscription>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}ProblemAction>,<{http://www.w3.org/2005/08/addressing}ProblemHeader>,<{http://www.w3.org/2005/08/addressing}ProblemHeaderQName>,<{http://www.w3.org/2005/08/addressing}ProblemIRI>,<{http://docs.oasis-open.org/wsn/b-2}ProducerProperties>,<{http://docs.oasis-open.org/wsn/b-2}ProducerReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationFailedFault>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRP>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRejectedFault>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisher>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisherResponse>,<{http://www.w3.org/2005/08/addressing}RelatesTo>,<{http://docs.oasis-open.org/wsn/b-2}Renew>,<{http://docs.oasis-open.org/wsn/b-2}RenewResponse>,<{http://www.w3.org/2005/08/addressing}ReplyTo>,<{http://docs.oasis-open.org/wsn/br-2}RequiresRegistration>,<{http://docs.oasis-open.org/wsn/br-2}ResourceNotDestroyedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscription>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}RetryAfter>,<{http://docs.oasis-open.org/wsn/b-2}Subscribe>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeCreationFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionManagerRP>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionPolicy>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionReference>,<{http://docs.oasis-open.org/wsn/b-2}TerminationTime>,<{http://www.w3.org/2005/08/addressing}To>,<{http://docs.oasis-open.org/wsn/b-2}Topic>,<{http://docs.oasis-open.org/wsn/br-2}Topic>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpression>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialect>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialectUnknownFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicNamespace>,<{http://docs.oasis-open.org/wsn/b-2}TopicNotSupportedFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicSet>,<{http://docs.oasis-open.org/wsn/b-2}UnableToCreatePullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroyPullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroySubscriptionFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToGetMessagesFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableInitialTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnrecognizedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}Unsubscribe>,<{http://docs.oasis-open.org/wsn/b-2}UnsubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}UnsupportedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}UseRaw> at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:525) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:922) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347) at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:99) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:172) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:151) at org.apache.servicemix.wsn.component.WSNDeployer.createEndpoint(WSNDeployer.java:106) at org.apache.servicemix.wsn.component.WSNDeployer.deploy(WSNDeployer.java:92) at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88) at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69) at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) ]]></stack-trace> </msg-loc-info> </exception-info> </task-result-details> </component-task-result-details> </component-task-result></loc-message> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message"> <component-name>servicemix-wsn2005</component-name> <component-task-result-details> <task-result-details> <task-id>deploy</task-id> <task-result>FAILED</task-result> <message-type>ERROR</message-type> <task-status-msg><msg-loc-info><loc-token/><loc-message>Invalid xml</loc-message></msg-loc-info></task-status-msg> <exception-info> <nesting-level>1</nesting-level> <msg-loc-info> <loc-token /> <loc-message>unexpected element (uri:"", local:"beans"). Expected elements are <{http://www.w3.org/2005/08/addressing}Action>,<{http://docs.oasis-open.org/wsrf/bf-2}BaseFault>,<{http://docs.oasis-open.org/wsn/b-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/br-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPoint>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPointResponse>,<{http://docs.oasis-open.org/wsn/b-2}CreationTime>,<{http://docs.oasis-open.org/wsn/br-2}CreationTime>,<{http://docs.oasis-open.org/wsn/b-2}CurrentTime>,<{http://docs.oasis-open.org/wsn/br-2}Demand>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPoint>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPointResponse>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistration>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistrationResponse>,<{http://www.w3.org/2005/08/addressing}EndpointReference>,<{}Fault>,<{http://www.w3.org/2005/08/addressing}FaultTo>,<{http://docs.oasis-open.org/wsn/b-2}Filter>,<{http://docs.oasis-open.org/wsn/b-2}FixedTopicSet>,<{http://www.w3.org/2005/08/addressing}From>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessage>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessageResponse>,<{http://docs.oasis-open.org/wsn/b-2}GetMessages>,<{http://docs.oasis-open.org/wsn/b-2}GetMessagesResponse>,<{http://docs.oasis-open.org/wsn/b-2}InvalidFilterFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidMessageContentExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidProducerPropertiesExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidTopicExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}MessageContent>,<{http://www.w3.org/2005/08/addressing}MessageID>,<{http://www.w3.org/2005/08/addressing}Metadata>,<{http://docs.oasis-open.org/wsn/b-2}MultipleTopicsSpecifiedFault>,<{http://docs.oasis-open.org/wsn/b-2}NoCurrentMessageOnTopicFault>,<{http://docs.oasis-open.org/wsn/br-2}NotificationBrokerRP>,<{http://docs.oasis-open.org/wsn/b-2}NotificationMessage>,<{http://docs.oasis-open.org/wsn/b-2}NotificationProducerRP>,<{http://docs.oasis-open.org/wsn/b-2}Notify>,<{http://docs.oasis-open.org/wsn/b-2}NotifyMessageNotSupportedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscription>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}ProblemAction>,<{http://www.w3.org/2005/08/addressing}ProblemHeader>,<{http://www.w3.org/2005/08/addressing}ProblemHeaderQName>,<{http://www.w3.org/2005/08/addressing}ProblemIRI>,<{http://docs.oasis-open.org/wsn/b-2}ProducerProperties>,<{http://docs.oasis-open.org/wsn/b-2}ProducerReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationFailedFault>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRP>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRejectedFault>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisher>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisherResponse>,<{http://www.w3.org/2005/08/addressing}RelatesTo>,<{http://docs.oasis-open.org/wsn/b-2}Renew>,<{http://docs.oasis-open.org/wsn/b-2}RenewResponse>,<{http://www.w3.org/2005/08/addressing}ReplyTo>,<{http://docs.oasis-open.org/wsn/br-2}RequiresRegistration>,<{http://docs.oasis-open.org/wsn/br-2}ResourceNotDestroyedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscription>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}RetryAfter>,<{http://docs.oasis-open.org/wsn/b-2}Subscribe>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeCreationFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionManagerRP>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionPolicy>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionReference>,<{http://docs.oasis-open.org/wsn/b-2}TerminationTime>,<{http://www.w3.org/2005/08/addressing}To>,<{http://docs.oasis-open.org/wsn/b-2}Topic>,<{http://docs.oasis-open.org/wsn/br-2}Topic>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpression>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialect>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialectUnknownFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicNamespace>,<{http://docs.oasis-open.org/wsn/b-2}TopicNotSupportedFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicSet>,<{http://docs.oasis-open.org/wsn/b-2}UnableToCreatePullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroyPullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroySubscriptionFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToGetMessagesFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableInitialTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnrecognizedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}Unsubscribe>,<{http://docs.oasis-open.org/wsn/b-2}UnsubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}UnsupportedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}UseRaw></loc-message> <stack-trace><![CDATA[javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"beans"). Expected elements are <{http://www.w3.org/2005/08/addressing}Action>,<{http://docs.oasis-open.org/wsrf/bf-2}BaseFault>,<{http://docs.oasis-open.org/wsn/b-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/br-2}ConsumerReference>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPoint>,<{http://docs.oasis-open.org/wsn/b-2}CreatePullPointResponse>,<{http://docs.oasis-open.org/wsn/b-2}CreationTime>,<{http://docs.oasis-open.org/wsn/br-2}CreationTime>,<{http://docs.oasis-open.org/wsn/b-2}CurrentTime>,<{http://docs.oasis-open.org/wsn/br-2}Demand>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPoint>,<{http://docs.oasis-open.org/wsn/b-2}DestroyPullPointResponse>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistration>,<{http://docs.oasis-open.org/wsn/br-2}DestroyRegistrationResponse>,<{http://www.w3.org/2005/08/addressing}EndpointReference>,<{}Fault>,<{http://www.w3.org/2005/08/addressing}FaultTo>,<{http://docs.oasis-open.org/wsn/b-2}Filter>,<{http://docs.oasis-open.org/wsn/b-2}FixedTopicSet>,<{http://www.w3.org/2005/08/addressing}From>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessage>,<{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessageResponse>,<{http://docs.oasis-open.org/wsn/b-2}GetMessages>,<{http://docs.oasis-open.org/wsn/b-2}GetMessagesResponse>,<{http://docs.oasis-open.org/wsn/b-2}InvalidFilterFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidMessageContentExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidProducerPropertiesExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}InvalidTopicExpressionFault>,<{http://docs.oasis-open.org/wsn/b-2}MessageContent>,<{http://www.w3.org/2005/08/addressing}MessageID>,<{http://www.w3.org/2005/08/addressing}Metadata>,<{http://docs.oasis-open.org/wsn/b-2}MultipleTopicsSpecifiedFault>,<{http://docs.oasis-open.org/wsn/b-2}NoCurrentMessageOnTopicFault>,<{http://docs.oasis-open.org/wsn/br-2}NotificationBrokerRP>,<{http://docs.oasis-open.org/wsn/b-2}NotificationMessage>,<{http://docs.oasis-open.org/wsn/b-2}NotificationProducerRP>,<{http://docs.oasis-open.org/wsn/b-2}Notify>,<{http://docs.oasis-open.org/wsn/b-2}NotifyMessageNotSupportedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscription>,<{http://docs.oasis-open.org/wsn/b-2}PauseSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}ProblemAction>,<{http://www.w3.org/2005/08/addressing}ProblemHeader>,<{http://www.w3.org/2005/08/addressing}ProblemHeaderQName>,<{http://www.w3.org/2005/08/addressing}ProblemIRI>,<{http://docs.oasis-open.org/wsn/b-2}ProducerProperties>,<{http://docs.oasis-open.org/wsn/b-2}ProducerReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherReference>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationFailedFault>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRP>,<{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRejectedFault>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisher>,<{http://docs.oasis-open.org/wsn/br-2}RegisterPublisherResponse>,<{http://www.w3.org/2005/08/addressing}RelatesTo>,<{http://docs.oasis-open.org/wsn/b-2}Renew>,<{http://docs.oasis-open.org/wsn/b-2}RenewResponse>,<{http://www.w3.org/2005/08/addressing}ReplyTo>,<{http://docs.oasis-open.org/wsn/br-2}RequiresRegistration>,<{http://docs.oasis-open.org/wsn/br-2}ResourceNotDestroyedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscription>,<{http://docs.oasis-open.org/wsn/b-2}ResumeSubscriptionResponse>,<{http://www.w3.org/2005/08/addressing}RetryAfter>,<{http://docs.oasis-open.org/wsn/b-2}Subscribe>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeCreationFailedFault>,<{http://docs.oasis-open.org/wsn/b-2}SubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionManagerRP>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionPolicy>,<{http://docs.oasis-open.org/wsn/b-2}SubscriptionReference>,<{http://docs.oasis-open.org/wsn/b-2}TerminationTime>,<{http://www.w3.org/2005/08/addressing}To>,<{http://docs.oasis-open.org/wsn/b-2}Topic>,<{http://docs.oasis-open.org/wsn/br-2}Topic>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpression>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialect>,<{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialectUnknownFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicNamespace>,<{http://docs.oasis-open.org/wsn/b-2}TopicNotSupportedFault>,<{http://docs.oasis-open.org/wsn/t-1}TopicSet>,<{http://docs.oasis-open.org/wsn/b-2}UnableToCreatePullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroyPullPointFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToDestroySubscriptionFault>,<{http://docs.oasis-open.org/wsn/b-2}UnableToGetMessagesFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableInitialTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnacceptableTerminationTimeFault>,<{http://docs.oasis-open.org/wsn/b-2}UnrecognizedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}Unsubscribe>,<{http://docs.oasis-open.org/wsn/b-2}UnsubscribeResponse>,<{http://docs.oasis-open.org/wsn/b-2}UnsupportedPolicyRequestFault>,<{http://docs.oasis-open.org/wsn/b-2}UseRaw> at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:525) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:922) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347) at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:99) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:172) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:151) at org.apache.servicemix.wsn.component.WSNDeployer.createEndpoint(WSNDeployer.java:106) at org.apache.servicemix.wsn.component.WSNDeployer.deploy(WSNDeployer.java:92) at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88) at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69) at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) ]]]]><![CDATA[></stack-trace> </msg-loc-info> </exception-info> </task-result-details> </component-task-result-details> </component-task-result> at org.apache.servicemix.common.ManagementSupport.failure(ManagementSupport.java:46) at org.apache.servicemix.common.AbstractDeployer.failure(AbstractDeployer.java:43) at org.apache.servicemix.wsn.component.WSNDeployer.createEndpoint(WSNDeployer.java:108) at org.apache.servicemix.wsn.component.WSNDeployer.deploy(WSNDeployer.java:92) at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88) at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69) at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) ]]></stack-trace> </exception-info> Thanks, Nithya -- View this message in context: http://www.nabble.com/Error-creating-NotificationBroker-from-inside-JSR181-POJO-tp15150122s12049p15150122.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
