0

I have an angular app that works absolutely fine on Eclipse (Neon) + Tomcat environment.

But when I export the project as a WAR file and deploy it on a Weblogic server (10.3.6) it does not load the app. It doesn't throw any error message as well. It just gives me a blank page on IE without loading any of the contents of the html.

It looks like I am missing some kind of configuration while exporting this to weblogic as a WAR file. How can I fix this?

Sample Code - index.html

<html ng-app="testapp" lang="en">
<head>
<title>New App</title>
<script src="angular.min.js"></script>
<script src="controller.js"></script>
</head>
<body ng-controller="ctrl">
{{var}}
</body>
</html>

controller.js

var app = angular.module('testapp', []);
app.controller('ctrl', function($scope, $http) {
$scope.var = 'wat2do';
});
user4923462
  • 97
  • 3
  • 16
  • Did you look in the weblogic log files? Without more detail, it is anybody's guess. – OldProgrammer Jan 03 '17 at 19:32
  • Did you look in the *browser's* console output? https://msdn.microsoft.com/en-us/library/gg589530(v=vs.85).aspx – nitind Jan 03 '17 at 20:03
  • thanks but there is nothing on the logs to indicate a problem... It looks to me like it has not recognized the app as angular. When I use a {{var}} it prints it as it is rather than the $scope.var defined in the controller.js. So I think I am missing something in defining the web-app as angular. – user4923462 Jan 03 '17 at 22:42
  • Looks like it was a problem with ie11. Adding within solved this problem. Solution from page : http://stackoverflow.com/questions/27351713/angular-js-not-working-in-ie-11 Thanks @Shyam_coder – user4923462 Jan 04 '17 at 00:19

0 Answers0