deploy bonita 7.7 with different context path
I'm trying to deploy bonita portal 7.7 using tomcat deployment kit on a different context path.
I tried modifying to war name and bonita.xml but seems like is no longer deploying.
I tried to put it behind an apache, but after login seems like is trying to redirect to /test/%2Fbonita%2Fportal%2Fhomepage
RewriteRule "^/bonita/(.*)$" "/test/$1" [R,QSA,NC]
ProxyPass "/test" http://127.0.0.1:9090/bonita
ProxyPassReverse "/test" http://127.0.0.1:9090/bonita
There is any way to change the context path?
Hello,
I made it work a long time ago without adding any extra Apache, here are the steps I could retrieve (based on 7.5.1 Tomcat bundle):
- Unzip BonitaCommunity-7.5.1-Tomcat-7.0.76.zip
- cd BonitaCommunity-7.5.1-Tomcat-7.0.76
Warning: do not mv but cp otherwise the setup tool raises an ERROR (the bonita.xml is missing)
- cp ./server/conf/Catalina/localhost/bonita.xml ./server/conf/Catalina/localhost/outils#int-bonita2.xml
- cp setup/tomcat-templates/bonita.xml setup/tomcat-templates/outils#int-bonita2.xml
- mv ./server/webapps/bonita.war ./server/webapps/outils#int-bonita2.war
- ./start-bonita.sh
- Connect to the portal as install/install : http://localhost:8080/outils/int-bonita2/
You might need to adapt a bit these steps but the main idea is here!
HIH,
In the bundle i see this in /opt/Bonita/server/webapps/ROOT/index.jsp
````
<%@ page session="false" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%
response.setStatus(response.SC_MOVED_PERMANENTLY);
response.setHeader("Location", "/bonita/");
%>
````
Change XML doesnt work in bonita 7.14