CMDBuild Forum

HowTo: Installation of OpenMAINT on Ubuntu 16 from scratch, just cut'n'paste

#paste one line

apt update; apt-get -y install joe tree unzip fastjar tomcat8 tomcat8-admin postgresql postgis

 

#paste one line

apt-get -y dist-upgrade; apt-get -y autoremove; sync; reboot

 

#log in again, then paste the following all the way to starting tomcat again

systemctl stop tomcat8

 

ed /etc/default/tomcat8 <<EOF

/^TOMCAT8_USER

s/tomcat8/root

/^JAVA_OPTS

s/-Xmx128m/

wq

EOF

 

ed /etc/tomcat8/tomcat-users.xml <<EOF

/manager-gui

/-->

a

<role rolename="manager-gui"/>

<role rolename="admin-gui"/>

<user username="tomcat" password="s3cret" roles="manager-gui,admin-gui"/>

.

wq

EOF

 

wget https://downloads.sourceforge.net/project/cmdbuild/2.5.1/cmdbuild-2.5.1.zip

unzip cmdbuild-2.5.1.zip 

cp cmdbuild-2.5.1/extras/tomcat-libs/6.0\ or\ higher/postgresql-9.4.1207.jar /usr/share/tomcat8/lib/

 

wget https://sourceforge.net/projects/openmaint/files/1.1/Core%20updates/openmaint-1.1-2.5.1.zip

unzip openmaint-1.1-2.5.1.zip

mkdir shark; ( cd shark; jar -xf ../cmdbuild-shark-server-openmaint-2.5.1.war )

mkdir openmaint; ( cd openmaint; jar -xf ../cmdbuild-openmaint-2.5.1.war )

mv shark openmaint /var/lib/tomcat8/webapps/

 

ed /var/lib/tomcat8/webapps/shark/META-INF/context.xml <<EOF

/url

s/\${cmdbuild}/openmaint

wq

EOF

 

ed /var/lib/tomcat8/webapps/shark/conf/Shark.conf <<EOF

/cmdbuild.ws.url

s/cmdbuild/openmaint

/cmdbuild.ws.username

s/workflow/postgres

/cmdbuild.ws.password

s/changeme/postgres

wq

EOF

 

su - postgres -c psql <<EOF

alter role postgres password 'postgres' login;

create role shark password 'shark' login;

EOF

 

rm /var/log/tomcat8/*

 

systemctl start tomcat8

# end paste, now...

# Log in, select Demo database, name openmaint, localhost 5432 postgres postgres

# It takes a while but all should come up. Then click through to Administration

 

#Download ~/cmdbuild-2.5.1/extras/workflow/RFC/RequestForChange.xpdl and upload into administration, processes, XPDL.

 

cd /var/log/tomcat8

#check for error messages. Should not be any errors.

 

Previously stephen wrote:


# Log in, select Demo database, name openmaint, localhost 5432 postgres postgres

# It takes a while but all should come up. Then click through to Administration

 


L'URL è necessario per accedere alla pagina di amministrazione?

 


# Log in, select Demo database, name openmaint, localhost 5432 postgres postgres

# It takes a while but all should come up. Then click through to Administration

What's wong ? It returns this

Error
: java.io.FileNotFoundException: /var/lib/tomcat8/webapps/openmaint/WEB-INF/conf/cmdbuild.conf (Permiso denegado)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.(FileOutputStream.java:213)
	at java.io.FileOutputStream.(FileOutputStream.java:162)
	at org.cmdbuild.services.Settings$FileStoragePropertyContainer.store(Settings.java:224)
	at org.cmdbuild.config.DefaultProperties.store(DefaultProperties.java:24)
	at org.cmdbuild.config.CmdbuildProperties.store(CmdbuildProperties.java:86)
	at org.cmdbuild.servlets.json.Configure.apply(Configure.java:101)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:106)
	at org.cmdbuild.servlets.JSONDispatcher.doPost(JSONDispatcher.java:64)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:183)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:48)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:52)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.cmdbuild.filters.LocalizationFilter.doFilter(LocalizationFilter.java:127)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.cmdbuild.filters.RequestLogFilter.doFilterInternal(RequestLogFilter.java:74)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)