Hi all,

I used the following code to use the NotificationBroker and the deployment
error I posted before does not occur anymore. 

ClientFactory factory = (ClientFactory) new InitialContext().lookup(
ClientFactory.DEFAULT_JNDI_NAME); 
            this.client = factory.createClient(); 
            this.wsnBroker = new NotificationBroker(client); 
                wsnBroker.notify(topic, message);

Nithya


nvijayak wrote:
> 
> 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>&lt;component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message"&gt;
>       &lt;component-name&gt;servicemix-wsn2005&lt;/component-name&gt;
>       &lt;component-task-result-details&gt;
>               &lt;task-result-details&gt;
>                       &lt;task-id&gt;deploy&lt;/task-id&gt;
>                       &lt;task-result&gt;FAILED&lt;/task-result&gt;
>                       &lt;message-type&gt;ERROR&lt;/message-type&gt;
>               
> &lt;task-status-msg&gt;&lt;msg-loc-info&gt;&lt;loc-token/&gt;&lt;loc-message&gt;Invalid
> xml&lt;/loc-message&gt;&lt;/msg-loc-info&gt;&lt;/task-status-msg&gt;
>                       &lt;exception-info&gt;
>                               &lt;nesting-level&gt;1&lt;/nesting-level&gt;
>                               &lt;msg-loc-info&gt;
>                                       &lt;loc-token /&gt;
>                                       &lt;loc-message&gt;unexpected element 
> (uri:"", local:"beans").
> Expected elements are
> &lt;{http://www.w3.org/2005/08/addressing}Action&gt;,&lt;{http://docs.oasis-open.org/wsrf/bf-2}BaseFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ConsumerReference&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}ConsumerReference&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CreatePullPoint&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CreatePullPointResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CreationTime&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}CreationTime&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CurrentTime&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}Demand&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}DestroyPullPoint&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}DestroyPullPointResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}DestroyRegistration&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}DestroyRegistrationResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}EndpointReference&gt;,&lt;{}Fault&gt;,&lt;{http://www.w3.org/2005/08/addressing}FaultTo&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Filter&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}FixedTopicSet&gt;,&lt;{http://www.w3.org/2005/08/addressing}From&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessage&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessageResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetMessages&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetMessagesResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidFilterFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidMessageContentExpressionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidProducerPropertiesExpressionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidTopicExpressionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}MessageContent&gt;,&lt;{http://www.w3.org/2005/08/addressing}MessageID&gt;,&lt;{http://www.w3.org/2005/08/addressing}Metadata&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}MultipleTopicsSpecifiedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NoCurrentMessageOnTopicFault&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}NotificationBrokerRP&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NotificationMessage&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NotificationProducerRP&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Notify&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NotifyMessageNotSupportedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}PauseFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}PauseSubscription&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}PauseSubscriptionResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemAction&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemHeader&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemHeaderQName&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemIRI&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ProducerProperties&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ProducerReference&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherReference&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRP&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRejectedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}RegisterPublisher&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}RegisterPublisherResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}RelatesTo&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Renew&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}RenewResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}ReplyTo&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}RequiresRegistration&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}ResourceNotDestroyedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ResumeFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ResumeSubscription&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ResumeSubscriptionResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}RetryAfter&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Subscribe&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscribeCreationFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscribeResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscriptionManagerRP&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscriptionPolicy&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscriptionReference&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TerminationTime&gt;,&lt;{http://www.w3.org/2005/08/addressing}To&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Topic&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}Topic&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicExpression&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialect&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialectUnknownFault&gt;,&lt;{http://docs.oasis-open.org/wsn/t-1}TopicNamespace&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicNotSupportedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/t-1}TopicSet&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToCreatePullPointFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToDestroyPullPointFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToDestroySubscriptionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToGetMessagesFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnacceptableInitialTerminationTimeFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnacceptableTerminationTimeFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnrecognizedPolicyRequestFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Unsubscribe&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnsubscribeResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnsupportedPolicyRequestFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UseRaw&gt;&lt;/loc-message&gt;
>                                       
> &lt;stack-trace&gt;&lt;![CDATA[javax.xml.bind.UnmarshalException:
> unexpected element (uri:"", local:"beans"). Expected elements are
> &lt;{http://www.w3.org/2005/08/addressing}Action&gt;,&lt;{http://docs.oasis-open.org/wsrf/bf-2}BaseFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ConsumerReference&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}ConsumerReference&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CreatePullPoint&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CreatePullPointResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CreationTime&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}CreationTime&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}CurrentTime&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}Demand&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}DestroyPullPoint&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}DestroyPullPointResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}DestroyRegistration&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}DestroyRegistrationResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}EndpointReference&gt;,&lt;{}Fault&gt;,&lt;{http://www.w3.org/2005/08/addressing}FaultTo&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Filter&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}FixedTopicSet&gt;,&lt;{http://www.w3.org/2005/08/addressing}From&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessage&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetCurrentMessageResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetMessages&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}GetMessagesResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidFilterFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidMessageContentExpressionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidProducerPropertiesExpressionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}InvalidTopicExpressionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}MessageContent&gt;,&lt;{http://www.w3.org/2005/08/addressing}MessageID&gt;,&lt;{http://www.w3.org/2005/08/addressing}Metadata&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}MultipleTopicsSpecifiedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NoCurrentMessageOnTopicFault&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}NotificationBrokerRP&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NotificationMessage&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NotificationProducerRP&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Notify&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}NotifyMessageNotSupportedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}PauseFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}PauseSubscription&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}PauseSubscriptionResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemAction&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemHeader&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemHeaderQName&gt;,&lt;{http://www.w3.org/2005/08/addressing}ProblemIRI&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ProducerProperties&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ProducerReference&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherReference&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRP&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}PublisherRegistrationRejectedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}RegisterPublisher&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}RegisterPublisherResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}RelatesTo&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Renew&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}RenewResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}ReplyTo&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}RequiresRegistration&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}ResourceNotDestroyedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ResumeFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ResumeSubscription&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}ResumeSubscriptionResponse&gt;,&lt;{http://www.w3.org/2005/08/addressing}RetryAfter&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Subscribe&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscribeCreationFailedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscribeResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscriptionManagerRP&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscriptionPolicy&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}SubscriptionReference&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TerminationTime&gt;,&lt;{http://www.w3.org/2005/08/addressing}To&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Topic&gt;,&lt;{http://docs.oasis-open.org/wsn/br-2}Topic&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicExpression&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialect&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicExpressionDialectUnknownFault&gt;,&lt;{http://docs.oasis-open.org/wsn/t-1}TopicNamespace&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}TopicNotSupportedFault&gt;,&lt;{http://docs.oasis-open.org/wsn/t-1}TopicSet&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToCreatePullPointFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToDestroyPullPointFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToDestroySubscriptionFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnableToGetMessagesFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnacceptableInitialTerminationTimeFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnacceptableTerminationTimeFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnrecognizedPolicyRequestFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}Unsubscribe&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnsubscribeResponse&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UnsupportedPolicyRequestFault&gt;,&lt;{http://docs.oasis-open.org/wsn/b-2}UseRaw&gt;&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:525)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:922)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:99)&#13;
>       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)&#13;
>       at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)&#13;
>       at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
> Source)&#13;
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)&#13;
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)&#13;
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)&#13;
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)&#13;
>       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&#13;
>       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)&#13;
>       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)&#13;
>       at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:172)&#13;
>       at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)&#13;
>       at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)&#13;
>       at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:151)&#13;
>       at
> org.apache.servicemix.wsn.component.WSNDeployer.createEndpoint(WSNDeployer.java:106)&#13;
>       at
> org.apache.servicemix.wsn.component.WSNDeployer.deploy(WSNDeployer.java:92)&#13;
>       at
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)&#13;
>       at
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)&#13;
>       at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)&#13;
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)&#13;
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)&#13;
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)&#13;
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)&#13;
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)&#13;
>       at java.util.TimerThread.mainLoop(Timer.java:512)&#13;
>       at java.util.TimerThread.run(Timer.java:462)&#13;
> ]]&gt;&lt;/stack-trace&gt;
>                               &lt;/msg-loc-info&gt;
>                       &lt;/exception-info&gt;
>               &lt;/task-result-details&gt;
>       &lt;/component-task-result-details&gt;
> &lt;/component-task-result&gt;</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-tp15150122s12049p15171909.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to