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 .
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 .
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.
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.
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
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
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.
ashutoslenka426:
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
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.
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 .
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.
I think looking at what you have there its working try this URL
http://localhost:9107/customerportal/servoy-webclient
Gordon
Hi Gordon ,
Sorry , it is not working . It is showing “requested resource” is not available. Please help me.
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
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 ?
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.
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
copy customerportal.war to C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps if it is not already there.
start Tomcat
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
Hi ,
I couldnot able to get the first point . I donot have servoy installation in the same machine . I am taking the war export from a machine and installing in the tomcat webapp in another machine .But postgres is running in the server . is it wrong ? . Please help me
Hi ,
I couldnot able to get the first point . I donot have servoy installation in the same machine . I am taking the war export from a machine and installing in the tomcat webapp in another machine .But postgres is running in the server . is it wrong ? . Please help me
It’s not wrong, it’s perfectly fine. In this case i guess the steps about the db can be ignored. Just make sure the url and login info that you set when exporting the war file with the war export wizard point to this server that is already running.
When exporting to war file from the developer, remember to check “Include active solution and modules”.
What does the link http://localhost:9107/customerportal/so … index.html do? What about http://localhost:9107/customerportal/se … /solutions?
Thanks it worked.