7 Replies Latest reply: Sep 1, 2015 10:10 AM by alexander korsikov RSS

    Unexpected Token error

    Saurabh Ramya

      Hi guys,

      Here are few issues that I am facing.

       

      Sense is installed on Windows server.

       

      Scenario 1:

      I have a web server running on my machine (where sense is not installed )and I am able to access my mashup on this machine.

      Next, i was trying to access the mashup on a 3rd machine where sense and web server is not installed.


      I type the URL to access the mashup.html file (which resides on the machine where web server in installed) on the 3rd machine

      http://MyWebserver:8080/test/First.html

      then i get the following error.

       

      Screen Shot 2015-08-30 at 7.02.47 PM.png

       

      This Unexpected token error is coming for require.js

       

       

      Scenario 2:

      I created one Virtual Proxy..

      Screen Shot 2015-08-30 at 6.44.20 PM.png

       

      The Authentication module URI is the sense server address.

      When I try to access the mashup from the machine where i have web server running.

      then i get the same error as mentioned above i.e. "Unexpected Token"

      The config of mashup.js looks like this

       

      Screen Shot 2015-08-30 at 6.48.25 PM.png

       

      The resources on html file looks like this

       

      Screen Shot 2015-08-30 at 6.49.07 PM.png

       

      Can you please tell me what am I doing wrong?

      Root and Server certificates are installed on the machine where web server is running.

      Saurabh