Topic
  • 3 replies
  • Latest Post - ‏2012-06-14T12:38:17Z by SystemAdmin
SystemAdmin
SystemAdmin
102 Posts

Pinned topic Exception while creating routing rule on ODR

‏2012-06-13T12:04:12Z |
Hi,

I have integrated WVE 7.0.0.2 with WAS8.0.0.3 and created a dynamic cluster of ODR. When I add routing rule to the cluster I get following exception

wsadmin>AdminTask.addRoutingRule('-clustername qaODRDCluster -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')

WASX7015E: Exception running command: "AdminTask.addRoutingRule('-clustername qaODRDCluster -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')"; exception information:
com.ibm.ws.xd.config.rules.exceptions.RulesNotFoundException: WXRS0104E:Rules routing_HTTP_serverRequest was not found.

Same routing rule working fine in WVE 6.1.1 where I have Static cluster of ODR.

Does any one has any idear what is wrong with the routing rule?

Thanks,

Kashif
Updated on 2012-06-14T12:38:17Z at 2012-06-14T12:38:17Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    102 Posts

    Re: Exception while creating routing rule on ODR

    ‏2012-06-13T13:37:57Z  
    I have also tried following 2 differet routing rule formates

    1) wsadmin>AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -clustername qaODRDCluster -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')

    WASX7015E: Exception running command: "AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -clustername qaODRDCluster -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')"; exception information:
    com.ibm.ws.xd.config.rules.exceptions.RulesNotFoundException: WXRS0104E:Rules routing_HTTP_serverRequest was not found.

    2) wsadmin>AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')

    WASX7015E: Exception running command: "AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')"; exception information:
    com.ibm.ws.xd.config.rules.exceptions.RulesException: com.ibm.ws.xd.config.rules.exceptions.RulesException: WXRS0120E:ODR qaODRDCluster_avphux108NodeODR on node avphux108NodeODR is in cluster qaODRDCluster. Rules must be added to the cluster.
  • ambati
    ambati
    13 Posts

    Re: Exception while creating routing rule on ODR

    ‏2012-06-13T22:04:27Z  
    I have also tried following 2 differet routing rule formates

    1) wsadmin>AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -clustername qaODRDCluster -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')

    WASX7015E: Exception running command: "AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -clustername qaODRDCluster -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')"; exception information:
    com.ibm.ws.xd.config.rules.exceptions.RulesNotFoundException: WXRS0104E:Rules routing_HTTP_serverRequest was not found.

    2) wsadmin>AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')

    WASX7015E: Exception running command: "AdminTask.addRoutingRule('-odrname qaODRDCluster_avphux108NodeODR -nodename avphux108NodeODR -protocol HTTP -priority 3 -expression "uri like \'/itineraryViewer*\'" -actionType permit -routingLocations "module=qkcdCell/itinerary/*/*" -multiclusterAction Failover')"; exception information:
    com.ibm.ws.xd.config.rules.exceptions.RulesException: com.ibm.ws.xd.config.rules.exceptions.RulesException: WXRS0120E:ODR qaODRDCluster_avphux108NodeODR on node avphux108NodeODR is in cluster qaODRDCluster. Rules must be added to the cluster.
    Please use -dcname instead of -clustername to specify ODR dynamic cluster. You do not need to specify -odrname parameter when creating routing rules for a dynamic cluster of ODRs.
  • SystemAdmin
    SystemAdmin
    102 Posts

    Re: Exception while creating routing rule on ODR

    ‏2012-06-14T12:38:17Z  
    • ambati
    • ‏2012-06-13T22:04:27Z
    Please use -dcname instead of -clustername to specify ODR dynamic cluster. You do not need to specify -odrname parameter when creating routing rules for a dynamic cluster of ODRs.
    Thank you Anil! using -dcname instead of -clustername resolved the issue.

    Regards,

    Kashif