Hi,

I hard coded the url where the zeppelin server has been started in the
baseUrl.Service.js as following.

this.getWebsocketUrl = function() {
  var wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
  /*return wsProtocol + '//' + location.hostname + ':' +
this.getPort() + skipTrailingSlash(location.pathname) + '/ws';*/
  return wsProtocol + '//' + 'localhost' + ':' + '8080' +
skipTrailingSlash(location.pathname) + '/ws';

};

this.getRestApiBase = function() {
  return location.protocol + '//' + 'localhost' + ':' + '8080' +
skipTrailingSlash(location.pathname) + '/api';
};

I have embedded the zeppelin web app within the WSO2 CEP server which
is running on localhost:9443.

When I open that web app, it gives me following error in the console.
It still cannot connect with the back end.

GET https://localhost:9443/zeppelin/api/security/ticket
404 Not Found
 3ms
vendor.js (line 37)
"NetworkError: 404 Not Found -
https://localhost:9443/zeppelin/api/security/ticket";

Error: a.ticket is
undefinede.sendNewEvent@https://localhost:9443/zeppelin/scripts/scripts.js:2:23258
.getNotebookList@https://localhost:9443/zeppelin/scripts/scripts.js:2:21574h@https://localhost:9443/zeppelin/scripts/scripts.js:2:16260
@https://localhost:9443/zeppelin/scripts/scripts.js:2:16747e@https://localhost:9443/zeppelin/scripts/vendor.js:36:17909
bb/this.$get</</<@https://localhost:9443/zeppelin/scripts/vendor.js:37:6539
v/<@https://localhost:9443/zeppelin/scripts/vendor.js:36:29450f@https://localhost:9443/zeppelin/scripts/vendor.js:36:899v@https://localhost:9443/zeppelin/scripts/vendor.js:36:29434h@https://localhost:9443/zeppelin/scripts/vendor.js:36:25521h@https://localhost:9443/zeppelin/scripts/vendor.js:36:25538v@https://localhost:9443/zeppelin/scripts/vendor.js:36:29629h@https://localhost:9443/zeppelin/scripts/vendor.js:36:25521
F/<@https://localhost:9443/zeppelin/scripts/vendor.js:36:25017
xf</<.link@https://localhost:9443/zeppelin/scripts/vendor.js:39:25162fa@https://localhost:9443/zeppelin/scripts/vendor.js:37:3594v@https://localhost:9443/zeppelin/scripts/vendor.js:36:29680h@https://localhost:9443/zeppelin/scripts/vendor.js:36:25521
F/<@https://localhost:9443/zeppelin/scripts/vendor.js:36:25017
K/e@https://localhost:9443/zeppelin/scripts/vendor.js:36:26012k@https://localhost:9443/zeppelin/scripts/vendor.js:36:28173
wf</<.compile/</</<@https://localhost:9443/zeppelin/scripts/vendor.js:39:24665i@https://localhost:9443/zeppelin/scripts/vendor.js:37:25803
j/<@https://localhost:9443/zeppelin/scripts/vendor.js:37:25975
Vb/this.$get</l.prototype.$eval@https://localhost:9443/zeppelin/scripts/vendor.js:38:1090
Vb/this.$get</l.prototype.$digest@https://localhost:9443/zeppelin/scripts/vendor.js:37:31603
Vb/this.$get</l.prototype.$apply@https://localhost:9443/zeppelin/scripts/vendor.js:38:1359f@https://localhost:9443/zeppelin/scripts/vendor.js:37:9536r@https://localhost:9443/zeppelin/scripts/vendor.js:37:11401
nb/</v.onload@https://localhost:9443/zeppelin/scripts/vendor.js:37:11941
<div class="ng-scope" ng-include="" src="'components/navbar/navbar.html'">
"NetworkError: 404 Not Found - https://localhost:9443/zeppelin/ws";

Firefox can't establish a connection to the server at
wss://localhost:9443/zeppelin/ws.

Any tips which might help? Thanks a lot :)


On Sat, Apr 16, 2016 at 3:08 PM, Minudika Malshan <minudika...@gmail.com>
wrote:

> Thank a lot moon. It really helped :)
>
> Best regards
>
> On Sat, Apr 16, 2016 at 11:08 AM, moon soo Lee <m...@apache.org> wrote:
>
>> Please take a look
>> https://developer.mozilla.org/en-US/docs/Web/API/Location.
>>  it might help.
>>
>> Thanks,
>> moon
>>
>> On Fri, Apr 8, 2016 at 11:08 AM Minudika Malshan <minudika...@gmail.com>
>> wrote:
>>
>> > + what does "location"  in this code secment refer to?
>> >
>> > var port = Number(*location*.port);
>> >
>> > return wsProtocol + '//' + *location*.hostname + ':' + this.getPort() +
>> > skipTrailingSlash(*location*.pathname) + '/ws';
>> >
>> > Is that the location of the webapp currently being hosted.
>> >
>> > Thanks
>> >
>> > On Fri, Apr 8, 2016 at 3:18 PM, Minudika Malshan <minudika...@gmail.com
>> >
>> > wrote:
>> >
>> > > Hi moon,
>> > >
>> > > Thanks for your reply. I looked into it.
>> > > But I cannot understand how to specify the server url which the web
>> app
>> > > should be connected to.
>> > > Could you please explain that for me.
>> > >
>> > > My implementation is as following.
>> > >
>> > > 1) I am deploying the zeppelin web app which can be found at
>> > >
>> >
>> "incubator-zeppelin/zeppelin-web/target/zeppelin-web-0.6.0-incubating-SNAPSHOT.war",
>> > >  as an web app inside the WSO2 CEP server which is running on top of
>> > TomCat
>> > > Server.
>> > > 2) After deploying it, I am able to access the zeppelin UI via the
>> link "
>> > > https://10.100.4.177:9443/zeppelin-web-0.6.0-incubating-SNAPSHOT/";.
>> > >
>> > > But that UI cannot connect to the zeppelin server which is running on
>> > > localhost:8080.
>> > >
>> > > What I want to do is connect these web app with the running zeppelin
>> > > server and get that web app working.
>> > >
>> > > Thanks and regards.
>> > >
>> > > On Fri, Apr 8, 2016 at 7:01 AM, moon soo Lee <m...@apache.org> wrote:
>> > >
>> > >> Hi,
>> > >>
>> > >> While zeppelin-web.war contains only front-end side codes, therefore
>> > >> ZeppelinServer daemon should be running in somewhere and zeppelin-web
>> > need
>> > >> to connect to it.
>> > >>
>> > >> You might be interested in baseUrl.service.js [1], which defines how
>> > >> front-end find ZeppelinServer (rest, websocket) address.
>> > >>
>> > >> Hope this helps.
>> > >>
>> > >> Thanks,
>> > >> moon
>> > >>
>> > >> [1]
>> > >>
>> > >>
>> >
>> https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-web/src/components/baseUrl/baseUrl.service.js
>> > >>
>> > >>
>> > >> On Thu, Apr 7, 2016 at 8:48 PM Minudika Malshan <
>> minudika...@gmail.com>
>> > >> wrote:
>> > >>
>> > >> > Hi all,
>> > >> >
>> > >> > Is it possible to run zeppelin as a webapp within another server.
>> > Since
>> > >> > usually for zeppelin web app, it requires to zeppelin server to be
>> > run.
>> > >> > What I want is, I need to open zeppelin web app from another
>> > >> interface(web)
>> > >> > of a server instance which is running on top of TomCat  and then
>> work
>> > >> with
>> > >> > the zeppelin in normal the way.
>> > >> > How to achieve this goal?
>> > >> > Your comments would be much appreciated.
>> > >> >
>> > >> > BR
>> > >> >
>> > >> > --
>> > >> > *Minudika Malshan*
>> > >> > Undergraduate
>> > >> > Department of Computer Science and Engineering
>> > >> > University of Moratuwa
>> > >> > Sri Lanka.
>> > >> > <https://lk.linkedin.com/pub/minudika-malshan/100/656/a80>
>> > >> >
>> > >>
>> > >
>> > >
>> > >
>> > > --
>> > > *Minudika Malshan*
>> > > Undergraduate
>> > > Department of Computer Science and Engineering
>> > > University of Moratuwa
>> > > Sri Lanka.
>> > > <https://lk.linkedin.com/pub/minudika-malshan/100/656/a80>
>> > >
>> > >
>> > >
>> >
>> >
>> > --
>> > *Minudika Malshan*
>> > Undergraduate
>> > Department of Computer Science and Engineering
>> > University of Moratuwa
>> > Sri Lanka.
>> > <https://lk.linkedin.com/pub/minudika-malshan/100/656/a80>
>> >
>>
>
>

Reply via email to