HelioHost Posted August 30, 2018 Posted August 30, 2018 Username: bogdan13, Server: Tommy, Main domain: bogdan13.heliohost.org Hello, I've created a java rest server application without a website(.jsp file(s)) and i've deployed on tommy server using a .war file. On cPanel it showsthat it was deployed but when I tried to test it using Postman it gave methe following error"The requested URL /bogdan13_ReserveMeServer-1.0-SNAPSHOT/ was not found onthis server" I've tried to use test a post operation with the url"http://bogdan13.heliohost.org/ReserveMeServer-1.0-SNAPSHOT/general/pub/create" I want to ask if i have to recreate the project or what can I do to make itwork? Thank you for your helpBogdan Oniga
Krydos Posted September 5, 2018 Posted September 5, 2018 Sometimes certain .war files have issues being deployed because the system appends your username to the front before deploying it. This is because if you deployed a test.war no one else on the entire server would also be able to deploy a test.war. It first appends your username to the front like bogdan13_test.war and then deploys it. The problem arises when your .war scripts are hard coded to only work with one .war name. You can write better code to have it work with any filename, or the easiest way to fix it is to create your .war with the username on the front already. Let us know if this helps, or if you're still having issues.
bogdan13 Posted September 5, 2018 Posted September 5, 2018 I still get the same error. I've redeployed the .war file with my username.The problem i have is that i think i don't use the correct URL to access the deployed server.On cPanel it says it was deployed at "http://bogdan13.heliohost.org/bogdan13_java/" and i added the path to a mapped rest service.What is the correct url to access the server application?
Recommended Posts