2 Replies Latest reply on Aug 22, 2011 3:35 AM by Vladimir Rimar

    [org.jboss.soa.esb.client.ServiceInvoker] Service: xxx not found in the registry

    Vladimir Rimar Newbie

      Hello all,

       

      I'm getting the following message during JBoss startup:

       

      INFO  [org.jboss.soa.esb.client.ServiceInvoker] (main:) Service: nep:nep-webservice-router not found in the registry
      

       

      The application is actually working correctly, nep-webservice-router is doing what is configured. Hence the reason I don't understand why is this message coming.

      Below is part of jboss-esb.xml configuration:

       

      <service name="txp-request-splitter" category="nep" description="Service responsible to split multiple requests" invmScope="GLOBAL">
                  <actions mep="OneWay">
                      <action class="org.jboss.soa.esb.smooks.SmooksAction" name="smooks:split-to-single-txp-request-and-route-to-txp-ws-invoker">
                          <property name="smooksConfig" value="/transform/router/split-to-single-txp-request-and-route-to-txp-ws-invoker.xml" />
                      </action>
                  </actions>
              </service>
      
      <service name="nep-webservice-invoker" category="nep" description="Service responsible to invoke external Webservice" invmScope="GLOBAL">
                  <actions mep="OneWay">
                      <action class="org.jboss.soa.esb.actions.SyncServiceInvoker" name="route-to-txp-ws" >
                             <property name="service-category" value="nep"/>
                             <property name="service-name" value="nep-webservice-router"/>
                         </action>
                  </actions>
              </service>
      
      <service name="nep-webservice-router" category="nep" description="First service needed to" invmScope="GLOBAL">
                  <actions mep="OneWay">
                         <action class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="xslt:extract-alarm-map">
                           <property name="templateFile" value="/transform/router/extract-alarm-map.xsl"/>
                           <property name="resultType" value="STRING"/>
                           <property name="set-payload-location" value="com.frox.nep.srg.txp.alarmMap"></property>
                         </action>
                         <action class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="xslt:extract-txp-soap-request">
                             <property name="templateFile" value="/transform/router/extract-txp-soap-request.xsl"/>
                             <property name="resultType" value="STRING"/>
                         </action>
                        <action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter">
                          <property name="cbrAlias" value="XPath"/>
                          <property name="destinations">
                              <namespace prefix="b2b" uri="${nep.txp.namespace}" />
                              <route-to service-category="nep" service-name="txp-PlaceTicket-webservice" expression="boolean(//b2b:PlaceTicket)" />
                              <route-to service-category="nep" service-name="txp-SetTicketFields-webservice_update" expression="boolean(//b2b:SetTicketFields)" />
                          </property>  
                      </action>
                  </actions>
              </service>
      

       

      And smooks routing file, used in txp-request-splitter service.

       

          <frag:serialize fragment="/list/alarm" bindTo="singleTxpRequest" omitXMLDeclaration="true" />
      
          <esbr:routeBean routeOnElement="/list/alarm" beanIdRef="singleTxpRequest" toServiceCategory="nep" toServiceName="nep-webservice-invoker">
          </esbr:routeBean>
      

       

      Thanks for all answers, I appreciate it.

       

      Vladimir

        • 1. Re: [org.jboss.soa.esb.client.ServiceInvoker] Service: xxx not found in the registry
          Tom Cunningham Master

          Can you post the full log?   I'm interested in when you're seeing this log message.

          • 2. Re: [org.jboss.soa.esb.client.ServiceInvoker] Service: xxx not found in the registry
            Vladimir Rimar Newbie

            Hello Tom,

             

            Attached is the log file. Actually, I found the solution to this problem. It seems that it does matter in which order are the services loaded:

             

            Configuration, when I see the the message during startup: [ServiceInvoker] Service: nep:nep-webservice-router not found in the registry

             

            <service name="txp-request-splitter" category="nep" description="Service responsible to split multiple requests" invmScope="GLOBAL">
                        <actions mep="OneWay">
                            <action class="org.jboss.soa.esb.smooks.SmooksAction" name="smooks:split-to-single-txp-request-and-route-to-txp-ws-invoker">
                                <property name="smooksConfig" value="/transform/router/split-to-single-txp-request-and-route-to-txp-ws-invoker.xml" />
                            </action>
                        </actions>
                    </service>
                    
                    <service name="nep-webservice-invoker" category="nep" description="Service responsible to invoke external Webservice" invmScope="GLOBAL">
                        <actions mep="OneWay">
                            <action class="org.jboss.soa.esb.actions.SyncServiceInvoker" name="route-to-txp-ws" >
                                   <property name="service-category" value="nep"/>
                                   <property name="service-name" value="nep-webservice-router"/>
                               </action>
                        </actions>
                    </service>
                    
                    <service name="nep-webservice-router" category="nep" description="First service needed to" invmScope="GLOBAL">
                        <actions mep="OneWay">
                               <action class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="xslt:extract-alarm-map">
                                 <property name="templateFile" value="/transform/router/extract-alarm-map.xsl"/>
                                 <property name="resultType" value="STRING"/>
                                 <property name="set-payload-location" value="com.frox.nep.srg.txp.alarmMap"></property>
                               </action>
                               <action class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="xslt:extract-txp-soap-request">
                                   <property name="templateFile" value="/transform/router/extract-txp-soap-request.xsl"/>
                                   <property name="resultType" value="STRING"/>
                               </action>
                               <action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter">
                                <property name="cbrAlias" value="XPath"/>
                                <property name="destinations">
                                    <namespace prefix="b2b" uri="${nep.txp.namespace}" />
                                    <route-to service-category="nep" service-name="txp-PlaceTicket-webservice" expression="boolean(//b2b:PlaceTicket)" />
                                    <route-to service-category="nep" service-name="txp-SetTicketFields-webservice_update" expression="boolean(//b2b:SetTicketFields)" />
                                </property>  
                            </action>
                        </actions>
                    </service>
            

             

            2. Configuration, when the message is gone:

             

            <service name="txp-request-splitter" category="nep" description="Service responsible to split multiple requests" invmScope="GLOBAL">
                        <actions mep="OneWay">
                            <action class="org.jboss.soa.esb.smooks.SmooksAction" name="smooks:split-to-single-txp-request-and-route-to-txp-ws-invoker">
                                <property name="smooksConfig" value="/transform/router/split-to-single-txp-request-and-route-to-txp-ws-invoker.xml" />
                            </action>
                        </actions>
                    </service>
                    
                    <service name="nep-webservice-router" category="nep" description="First service needed to" invmScope="GLOBAL">
                        <actions mep="OneWay">
                               <action class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="xslt:extract-alarm-map">
                                 <property name="templateFile" value="/transform/router/extract-alarm-map.xsl"/>
                                 <property name="resultType" value="STRING"/>
                                 <property name="set-payload-location" value="com.frox.nep.srg.txp.alarmMap"></property>
                               </action>
                               <action class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="xslt:extract-txp-soap-request">
                                   <property name="templateFile" value="/transform/router/extract-txp-soap-request.xsl"/>
                                   <property name="resultType" value="STRING"/>
                               </action>
                               <action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter">
                                <property name="cbrAlias" value="XPath"/>
                                <property name="destinations">
                                    <namespace prefix="b2b" uri="${nep.txp.namespace}" />
                                    <route-to service-category="nep" service-name="txp-PlaceTicket-webservice" expression="boolean(//b2b:PlaceTicket)" />
                                    <route-to service-category="nep" service-name="txp-SetTicketFields-webservice_update" expression="boolean(//b2b:SetTicketFields)" />
                                </property>  
                            </action>
                        </actions>
                    </service>
                    
                    <service name="nep-webservice-invoker" category="nep" description="Service responsible to invoke external Webservice" invmScope="GLOBAL">
                        <actions mep="OneWay">
                            <action class="org.jboss.soa.esb.actions.SyncServiceInvoker" name="route-to-txp-ws" >
                                   <property name="service-category" value="nep"/>
                                   <property name="service-name" value="nep-webservice-router"/>
                               </action>
                        </actions>
                    </service>