How to change the default URL from "localhost:8080/bonita" to "localhost:8080"?
I always get the following error: "org.bonitasoft.console.common.server.utils.DefaultTenantIdException".
I followed every single suggestions that I found on the Community website, and other websites also, but with no success.
Please give any instructions if anybody ever succeeded in changing the dafault URL of Bonita BPM installation.
Thank you in advance.
Actually out of interest why would you want to?
Localhost is your machine, no-one-elses...tired of typing the /bonita? :)
In your tomcat home, edit /webapps/ROOT/WEB-INF:, and comment out this section:
- <web-app xmlns="http://java.sun.com/xml/ns/javaee"
- <display-name>Welcome to Tomcat</display-name>
- Welcome to Tomcat
Then, Add this section:
Then rename the existing /webapp/ROOT/index.jsp to something else. Create a new index.jsp:
- <% response.sendRedirect("bonita"); %>
What I can suggest is to create an `index.html` page in Tomcat `webapps/ROOT` folder with the following content:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
window.location = "/bonita";
<meta name="robots" content="noindex" />
<img src="./img/logo.png" alt="Bonitasoft">
<p>After 5 seconds you will be redirected automatically to <a href="/bonita">/bonita</a></p>
You must also delete or rename the `index.jsp` file located in `webapps/ROOT` folder.
It's not really recommended to fiddle with the directory structures of platform, and using /bonita allows you to use multiple applications on the same server...
But if you really must, then I suggest you leave the original structure alone and use Redirection. See the following:
PS: If this reply answers your question, please mark a resolved.