How to change the default URL from "localhost:8080/bonita" to "localhost:8080"?

1
0
-1

Hello,

I tried to change the Bonita BPM (Community - Version 7.1.3) default URL, from "http://localhost:8080/bonita" to "http://localhost:8080/", but I did not succeed.

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.

Best regards,
Andi

Comments

Submitted by Sean McP on Sun, 01/17/2016 - 09:26

Actually out of interest why would you want to?

Localhost is your machine, no-one-elses...tired of typing the /bonita? :)

3 answers

1
+1
-1

In your tomcat home, edit /webapps/ROOT/WEB-INF:, and comment out this section:

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

  version="3.0"
  metadata-complete="true">

  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>

</web-app>

Then, Add this section:

<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

Then rename the existing /webapp/ROOT/index.jsp to something else. Create a new index.jsp:

<% response.sendRedirect("bonita"); %>

1
0
-1

Hi,

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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script>
window.setTimeout(function() {
window.location = "/bonita";
}, 5000);
</script>
<title>Bonitasoft</title>
<meta name="robots" content="noindex" />
</head>
<body>
<img src="./img/logo.png" alt="Bonitasoft">
<p>After 5 seconds you will be redirected automatically to <a href="/bonita">/bonita</a></p>
</body>
</html>

You must also delete or rename the `index.jsp` file located in `webapps/ROOT` folder.

--
Antoine

1
0
-1

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...

"http://localhost:8080/bonita"
"http://localhost:8080/mySQL"
"http://localhost:8080/kmHelpDesk"
etc.

But if you really must, then I suggest you leave the original structure alone and use Redirection. See the following:

https://css-tricks.com/redirect-web-page/
https://en.wikipedia.org/wiki/URL_redirection#Manual_redirect
https://www.w3.org/QA/Tips/reback
http://www.wikihow.com/Redirect-a-URL

regards
Seán

PS: If this reply answers your question, please mark a resolved.

Notifications