1

I'm trying to do a simple Proxy Service using the Developer Studio tool from the open-source SOA middleware provider WSO2.

When I drag into the flow a Switch Mediator in the graphical view there is no problem but when I changed to the text view, I'm facing the following error:

Cannot update source view. The following error(s) have been detected 
Reason: XPathFactoty#newInstance() failed to create an XPathFactoty for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactotyConfigurationException: javax.xml.xpath.XPathFactotyConfigurationException: java.util.ServiceConfigurationError javax.xml.xpath.XPathFactoty: bundleresource://1013.fwk317983781:21/META-INF/services/javax.xml.xpath.XPathFa ctory:2: Illegal configuration-file syntax

And the XML is empty, so I can't to add any Switch Mediator and get it working with the WSO2 DS.

This is happening with the 3.5.0 and 3.6.0 version of the tool, and I even try one of the sample in the website but with the same result.

Anyone have any reason why this error is happening?

Thank you!

Community
  • 1
  • 1
KL0uD
  • 11
  • 1

1 Answers1

0

Each switch element needs to have an attribute called 'source'. This is the Xpath attribute that is checked against the criteria in each case. To add the 'source' attribute, type the Xpath and then click 'update' or 'save'. With that required attribute, a valid xml configuration file may be created and viewed as text.

Here is more documentation on the switch mediator: https://docs.wso2.org/display/ESB481/Switch+Mediator

Colinr
  • 201
  • 1
  • 3
  • I just want to share a youtube video when you can see the error I was talking about. As you can see it's not related with the source field or something like that. [video](http://youtu.be/WoRf4Sv18WY) – KL0uD Jun 28 '14 at 22:46