what is the ngclient url in servoy server ?

Forum to discuss the new web client version of Servoy.

what is the ngclient url in servoy server ?

Postby ashutoslenka426 » Wed Jan 20, 2016 1:56 pm

Hi All,

I have hosted a servoy 8 server . I have imported a ngclient solution . What will be the url for viewing the ngclient solution in the server ? . Please advise me .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: what is the ngclient url in servoy server ?

Postby gganea » Wed Jan 20, 2016 2:22 pm

Hi,
Ngclient can only be deployed as a war file -> https://wiki.servoy.com/display/public/ ... deployment.
To do that, export the solution as a war file while making sure to include the solution in the war file. Then install a Tomcat server (or another war container) and deploy the exported war file. As with the servoy server, the db server needs to be started first, otherwise the war file will not start.
Then, the url should be something like:
http://hostname:8080/myapp/solutions/myapp/index.html
for a solution called myapp and exported as a war called myapp.war.
George Ganea
Servoy
gganea
 
Posts: 20
Joined: Mon May 19, 2014 8:31 am

Re: what is the ngclient url in servoy server ?

Postby ashutoslenka426 » Thu Jan 21, 2016 11:51 am

Hi ,

Thanks for your reply . I have created a servoy server 8.0.2 . I have exported the solution as war . Kept the war file in the webapps folder . When I am trying to access the solution , not working . Please advise me . what I am doing wrong ? . Please help me.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: what is the ngclient url in servoy server ?

Postby Gordon McLean » Thu Jan 21, 2016 6:09 pm

I had a similar experience and got the impression from the docs that you can not run a war file in the Servoy iteration of Tomcat you need to run it separately. I spooled up Docker image with Tomcat and this worked perfectly, I simply put the war into the webapps root, restarted Tomcat and it installed a folder containing my solution.

Locally my URL became
http://192.168.99.100:32777/test/servoy-webclient/

in production that would translate to
http://yourdomain.com:8080/test/servoy-webclient/

HTH
Gordon
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: what is the ngclient url in servoy server ?

Postby gganea » Thu Jan 21, 2016 7:07 pm

Indeed, the war file should be deployed in a Tomcat installation that is different than the Tomcat that is deployed with Servoy.
Download link: http://tomcat.apache.org/download-80.cgi
Setup link: http://tomcat.apache.org/tomcat-8.0-doc/setup.html
George Ganea
Servoy
gganea
 
Posts: 20
Joined: Mon May 19, 2014 8:31 am

Re: what is the ngclient url in servoy server ?

Postby ashutoslenka426 » Fri Jan 22, 2016 6:43 am

Hi ,

Thanks for your reply . I have placed the war file in the tomcat webapps folder . I could see the it in the application list . But it is not starting . I cannot access the application from browser . Please advise me.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: what is the ngclient url in servoy server ?

Postby Gordon McLean » Fri Jan 22, 2016 9:25 am

ashutoslenka426 wrote:Hi ,

Thanks for your reply . I have placed the war file in the tomcat webapps folder . I could see the it in the application list . But it is not starting . I cannot access the application from browser . Please advise me.


You have to make sure you remove the folder of any previous attempts - so in my case the war was called test.war and I removed the folder /test completely. You will need to restart Tomcat after this is done and it should then unzip the test.war into a folder called /test.zip when started. If you look in the folder it should have the familiar Servoy structure after the restart. IF this does not happen the chances are its a permissions issue or your war is not valid for some reason. You need to also confirm that your properties file has the repository_server correctly configured and available i.e. it needs to be accessible remotely.

My Tomcat Root
LICENSE RELEASE-NOTES bin lib target webapps
NOTICE RUNNING.txt conf logs temp work

Webapps Root
ROOT docs examples host-manager manager test test.war

To re install the test.war I would need to delete the test folder. I mentioned Root in the first post as the place to put the war to be clear this is the web apps root not the Tomcat root - my bad see above

HTH
Gordon
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: what is the ngclient url in servoy server ?

Postby gganea » Fri Jan 22, 2016 10:08 am

In your home folder, there should now be a .servoy/server/myapp (replace myapp with the real name of your solution) folder. In that folder, you should find a log file with more info of what went wrong.
George Ganea
Servoy
gganea
 
Posts: 20
Joined: Mon May 19, 2014 8:31 am

Re: what is the ngclient url in servoy server ?

Postby ashutoslenka426 » Fri Jan 22, 2016 10:29 am

Hi Gordon ,

Thanks for your reply . I have placed the war directly under webapps folder . is it correct ? .It is not working for me . What can be the permissions issue . How can I fix this ? .After the war has unzipped . I could able to see the folder . Please help me . how can I make it run .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: what is the ngclient url in servoy server ?

Postby ashutoslenka426 » Fri Jan 22, 2016 10:36 am

Hi gganea,

Where is my home folder ? . I cannot see it . I could only see this . I have attached it as screen shot . Please help me.
You do not have the required permissions to view the files attached to this post.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: what is the ngclient url in servoy server ?

Postby Gordon McLean » Fri Jan 22, 2016 10:53 am

I think looking at what you have there its working try this URL

http://localhost:9107/customerportal/servoy-webclient

Gordon
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: what is the ngclient url in servoy server ?

Postby ashutoslenka426 » Fri Jan 22, 2016 11:02 am

Hi Gordon ,

Sorry , it is not working . It is showing "requested resource" is not available. Please help me.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: what is the ngclient url in servoy server ?

Postby gganea » Fri Jan 22, 2016 11:42 am

On Windows your home folder should be
C:\Users\username\ where 'username' should be replaced with your actual username that you see when logging into windows. So the log file should be in C:\Users\username\.servoy\server\customerportal\.
If this is an NG-Client app, your url should be
http://localhost:9107/customerportal/so ... index.html
George Ganea
Servoy
gganea
 
Posts: 20
Joined: Mon May 19, 2014 8:31 am

Re: what is the ngclient url in servoy server ?

Postby ashutoslenka426 » Fri Jan 22, 2016 12:55 pm

Hi gganea,

Thanks . Now I could see the log file . But for the first time I deleted the contents . Now after that I am always seeing it as empty . There is no content in it . Please advise me. How can I test it ?
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: what is the ngclient url in servoy server ?

Postby gganea » Fri Jan 22, 2016 1:43 pm

First make sure you don't have any server running, no db no tomcat. The most simple way to do this is to restart the computer.
1. Start the database: - open a command line and
>cd C:\ServoyInstallDir\application_server\postgres_db\bin -> make sure to replace ServoyInstallDir with the actual Servoy instalation folder.
>pg_ctl.exe start -D ..\..\database -> this should start your database server with the same database that the developer uses and you should see something like
LOG: database system is ready to accept connections
LOG: autovacuum launcher start

2. copy customerportal.war to C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps if it is not already there.

3. start Tomcat

4. go to http://localhost:9107/customerportal/so ... index.html -> for this link to work the solution name must be customerportal and it should be exported as customerportal.war
George Ganea
Servoy
gganea
 
Posts: 20
Joined: Mon May 19, 2014 8:31 am

Next

Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest