js-java-setup
js-java-setup copied to clipboard
Problem with WinXP
We had two problems running this example in a Windows XP enviroment.
The first issue occurs when running mvn requirejs:optimize. It presents it self as a StackOverflowException that happens when r.js is running in Rhino. We solved this by adding a MAVEN_OPTS=-Xss1m to increase the stack size. We can't see a solution for the project it self but rather a comment in the documentations should be enough.
The second issue we has is with Jetty locking files in dev-mode. This can be resolved by adding a file to the project, namely "jetty-plugin-webdefaults.xml" and specify this in the pom.xml:
eks: https://gist.github.com/ff7edf17cfedc66fc80f
Thanks for the feedback, @eivinhb! I'll add a note in the readme on increasing the stack size.
Oh, of course, I forgot about the Jetty locking problem (which is also present on Win7). I'll try to get a fix out soon :)
Sounds good.