cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Uncaught ReferenceError: sap is not defined

allie_adjiet2
Explorer
0 Likes
13,317

Hi All,

I tried to implement walktrhu code: Bullet - Vertical  via Eclipse juno, deployed locally via tomcat server. I am getting  error below. help please. error persist even when using CDN.

View Entire Topic
Former Member
0 Likes

Hi Allie,

I am facing the same problem here.

<!DOCTYPE HTML>

<html>

<head>

  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <link rel="stylesheet" href="app/css/MobileStyles.css">

  <!-- src Location of SAP UI5 libraries need to be changed to refer to right location -->    

<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"  

          data-sap-ui-libs="sap.ui.commons"  

          data-sap-ui-theme="sap_goldreflection">  

</script> 

  <script>

  sap.ui.Resources("Authentication");

  jQuery.sap.require("Authentication.Authentication");

  $(document).ready(function(){

  authenticate();

  });

  </script>

</head>

<body class="sapUiBody" role="application">

  <div id="content"></div>

</body>

</html>

Facing Uncaught ReferenceError: sap is not defined .sap.ui.Resources("Authentication");

pls help.


Thanks in Advance.

Puneet

allie_adjiet2
Explorer
0 Likes

Hi Puneet,

Do you have a Webserver running like Apache Tomcat? see walkthru note below...

if you dont, here is a helpful link to install Apache Tomcat 7.0.68 and to configure your server in Eclipse:

https://wolfpaulus.com/journal/mac/tomcat7/

Tutorial: Configuring and Using Apache Tomcat 7 with Eclipse

hope this helps,

Regards,

Allie