Closed ioanalianabalas closed 10 years ago
Tried to reproduce this without any luck, can you give some more information?
test
XML tag?br.xml-service
using the default BRJS XML service?1406024471204
will change each time the app is generated since its based on a timestamp)?This works ok on the latest version of master:
xml bundled here http://localhost:8080/fxtrader/v/1409842812762/xml/bundle.xml.
@ioanalianabalas - can you try the latest version, if that doesn't work let me know and we can figure out why it doesn't work for your app.
Pull request is reviewed . checked for backwards compatibility issues on Friday. Everything looks good
The brjs xml service doesn't work in prod mode resulting in a 404 when not finding the xml bundle.
In dev, the following returns true and the service correctly locates the bundle here: http://hostname:7070/test/v/dev/xml/bundle.xml
TestViewModel.prototype.testBrXmlService = function() { var xmlService = ServiceRegistry.getService("br.xml-service"); var sTest = xmlService.getXmlDocument("test"); if (sTest == null) { alert("error - test failed!"); return false; } else { alert("success - test passed!"); return true; } };
However running as a war on tomcat, it fails and returns false.
The xml isn't put in the correct place in the build: GET http://hostname:8080/test/v/1406024471204/xml/bundle.xml 404 (Not Found)