Error when executing on a batch config file
Please check the attached files. Thanks! Wei
Comments (5)
-
-
reporter Hi Chase, I have just found out about this issue on my side. It is due to a call or something related to ajax.googleapis.com, which is banned in China.
-
Hi Wei,
Ah, interesting. The Longhorn app loads the JQuery javascript library from Google's content network, so without that some of the JS will break.
Loading common libraries from a hosted location is a pretty common practice, so I am sure the same thing can be done in China without using Google. It looks like Baidu might host the same library here: https://apps.bdimg.com/libs/jquery/1.5.1/jquery.min.js
Are you building longhorn from source? If so, the reference to google is in
longhorn-app/src/main/webapp/okapi-longhorn-sample-js-client.html
:<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
You could change that line to point to another host, then rebuild the application.
-
reporter Thanks for the info!
-
- changed status to resolved
- Log in to comment
Hi Wei,
I tried to reproduce this with a recent build of longhorn, and I don't get an error. The batch config executes and I get a charlist.txt file that contains the output below.
Please look in the tomcat logs for an error trace that will provide more information.
catalina.out
should contain the most recent log output.Here's the charlist.txt output: