BladeRunnerJS / brjs

BladeRunnerJS (BRJS) is an open source development toolkit and framework for modular construction of large single-page HTML5 apps. It consists of a set of conventions, supporting tools and micro-libraries that make it easy to develop, test, deploy and maintain complex JavaScript apps.
http://bladerunnerjs.org/
GNU Lesser General Public License v3.0
229 stars 36 forks source link

br.xml-service cannot find bundle.xml in prod mode #954

Closed ioanalianabalas closed 10 years ago

ioanalianabalas commented 10 years ago

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)

andy-berry-dev commented 10 years ago

Tried to reproduce this without any luck, can you give some more information?

thecapdan commented 10 years ago

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.

thecapdan commented 10 years ago

Pull request is reviewed . checked for backwards compatibility issues on Friday. Everything looks good