Jump to content

Recommended Posts

Posted

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 shows

that it was deployed but when I tried to test it using Postman it gave me

the following error

"The requested URL /bogdan13_ReserveMeServer-1.0-SNAPSHOT/ was not found on

this 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 it

work?

 

Thank you for your help

Bogdan Oniga

Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...