Eclipse RAP: how to access a deployed application

I created a RAP project for eclipse helloworld and started eclipse it. It works fine. After that I exported the RAP project to war file using the eclipse war product config. He created a war file. I have deployed a war file to tomcat. After that, when I try to access while deploying the helloworld app, I get a 404 status error.

http://127.0.0.1:8080/helloworld

I have searched the web and checked for troubleshooting and they mentioned to check in web.xml all entries are available or not. I have confirmed that it is available. Also I checked the structure of the application. This is fine as suggested. Can anyone help me to access the deployed application in tomcat? Or is there any other server I can use to get it to work quickly?

+3


source to share


1 answer


I assume the war file is named helloworld.war

and http://127.0.0.1:8080/helloworld is the url of your application.

If your entry point is not registered in the root path, then you need to add the entry point name to the url eg. http://127.0.0.1:8080/helloworld/entrypoint .

Alternatively, you can register your application at the root path in ApplicationConfiguration:

application.addEntryPoint("/", YourEntryPoint.class, properties);

      



Then you should be able to access it at http://127.0.0.1:8080/helloworld .

Update:

If you are using extension points, customize the path in your entry point extension, for example:

<extension
    point="org.eclipse.rap.ui.entrypoint">
  <entrypoint
      class="example.MyEntrypoint"
      path="/" />
</extension>

      

+2


source







All Articles