You are not logged in.

#1 2007-11-19 21:22:47

hanspr
Member
Registered: 2005-04-09
Posts: 6

[SOLVED] OpenBravo Install

Hello everybody,

Has anyone successfully installed and run OpenBravo on ArchLinux?
(http://openbravo.com)

I have installed requeried software with pacman :
Ant, Tomcat, PostgreSQL, JDK
OpenBravo with package from sourceforge.net : OpenbravoERP-2.35-linux-installer.bin

What WORKS
The OpenBravo Install program executed without errors, the database was created in PostgreSQL, same as tad user.
If type in exlorer window : http://server:8080/
I get the Tomcat Welcome page.


What does not Work

TOMCAT
If I click on the Tomcat welcome page link "Tomcat Manager" (user tomcat, password tomcat) I get :

====================================================================================
HTTP Status 403 - Access to the requested resource has been denied
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
====================================================================================

There most be permission and execution errors here.

OPENBRAVO
I can't get the login page (http://server:8080/openbravo/), I get an Exception Error and I have no idea where to start to fixit or what kind of problem is this, I have never used, Java, Tomcat, Ant. So I'm not familiar with the error displayed.

Page Error:
====================================================================================
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet X801699 threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    java.lang.Thread.run(Thread.java:619)

root cause

java.lang.NullPointerException
    org.openbravo.base.HttpBaseServlet.init(Unknown Source)
    org.openbravo.base.secureApp.HttpSecureAppServlet.init(Unknown Source)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    java.lang.Thread.run(Thread.java:619)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
====================================================================================

Cant find any log files for error description neither.
No errors in catalina.log

I have the following configuration files according to what I read in the openbravo guides to install.

ANT
cat /etc/profile.d/ant.sh
export ANT_HOME=/usr

TOMCAT
cat /etc/profile.d/tomcat.sh
export CATALINA_HOME=/opt/tomcat
export CATALINA_BASE=/opt/tomcat

cat /etc/conf.d/tomcat
# Arguments for catalina
CATALINA_OPTS="-Xms384M -Xmx512M"


During OpenBravo Installation I entered the following values for configuration :

Ant locacion : /usr
Tomcat location : /opt/tomcat
PostgreSQL location : /usr/bin


Process running :

ps xa
5563 ?        S      0:01 /usr/bin/postgres -D /database/data
5573 ?        Ss     0:00 jsvc.exec -user tomcat -home /opt/java -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp -w
5574 ?        Sl     0:16 jsvc.exec -user tomcat -home /opt/java -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp -w
5619 ?        S      0:00 /usr/sbin/httpd -k start
5620 ?        S      0:00 /usr/sbin/httpd -k start

Listing of some directories :

ll /opt
drwxr-xr-x  5 root root 4096 nov 19 13:56 OpenbravoERP
drwxr-xr-x 10 root root 4096 jun  8  1919 java
drwxr-xr-x  3 root root 4096 oct  4 15:57 mozilla
drwxr-xr-x 11 root root 4096 mar 18  2007 tomcat

[root@ob ~]# ll /opt/tomcat/
total 36
drwxr-xr-x 2 root root   4096 mar 18  2007 bin
drwxr-xr-x 6 root root   4096 mar 18  2007 common
drwxrwxr-x 3 root tomcat 4096 nov 19 14:13 conf
drwxr-xr-x 2 root root   4096 jun  8  1919 logs
drwxr-xr-x 5 root root   4096 mar 18  2007 server
drwxr-xr-x 4 root root   4096 mar 18  2007 shared
drwxrwxr-x 2 root tomcat 4096 mar 18  2007 temp
drwxr-xr-x 8 root root   4096 nov 19 13:56 webapps
drwxrwxr-x 3 root tomcat 4096 jun  8  2019 work

[root@ob ~]# ll /opt/tomcat/webapps/
total 45128
drwxr-xr-x  4 root root     4096 mar 18  2007 ROOT
drwxr-xr-x  5 root root     4096 mar 18  2007 balancer
drwxr-xr-x 21 root root     4096 mar 18  2007 jsp-examples
-rw-r--r--  1 root root 46136012 nov 19 13:56 openbravo.war
drwxr-xr-x  4 root root     4096 mar 18  2007 servlets-examples
drwxr-xr-x 12 root root     4096 mar 18  2007 tomcat-docs
drwxr-xr-x  3 root root     4096 mar 18  2007 webdav

[root@ob ~]# ll /opt/tomcat/work/Catalina/localhost/
total 36
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 _
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 balancer
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 host-manager
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 jsp-examples
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 manager
drwxr-xr-x 3 tomcat tomcat 4096 nov 19 14:13 openbravo
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 servlets-examples
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 tomcat-docs
drwxr-xr-x 2 tomcat tomcat 4096 nov 19 14:13 webdav

[root@ob ~]# ll /opt/OpenbravoERP/
total 2044
drwxr-xr-x 20 root root    4096 nov 19 13:56 AppsOpenbravo
drwxrwxr-x  2 root root    4096 nov 19 13:06 images
drwxr-xr-x  2 root root    4096 nov 19 13:56 install_logs_all
-rwx------  1 root root 2074625 nov 19 13:56 uninstaller_all

[root@ob ~]# ll /opt/OpenbravoERP/AppsOpenbravo/
total 108
-rw-r--r-- 1 root root   395 oct 30 18:11 CONTRIBUTORS.txt
-rw-r--r-- 1 root root   286 oct 30 18:18 README.TXT
drwxrwxr-x 6 root root  4096 nov 19 13:27 WebContent
drwxr-xr-x 2 root root  4096 oct 30 18:19 attachment
drwxr-xr-x 4 root root  4096 nov 19 13:27 build
-rw-r--r-- 1 root root 12057 nov 19 13:26 build.xml
-rw-r--r-- 1 root root 11976 oct 30 18:14 build.xml.template
drwxr-xr-x 2 root root  4096 nov 19 13:25 config
drwxr-xr-x 6 root root  4096 nov 19 13:24 database
drwxr-xr-x 3 root root  4096 nov 19 13:27 docs
drwxr-xr-x 2 root root  4096 oct 30 18:19 fonts
drwxr-xr-x 2 root root  4096 nov 19 13:25 legal
drwxr-xr-x 2 root root  4096 nov 19 13:54 lib
-rw-r--r-- 1 root root   405 oct 30 18:08 log4j.lcf
drwxr-xr-x 4 root root  4096 nov 19 13:22 setup
drwxr-xr-x 3 root root  4096 nov 19 13:25 src
drwxr-xr-x 6 root root  4096 nov 19 13:26 src-core
drwxr-xr-x 4 root root  4096 nov 19 13:21 src-db
drwxr-xr-x 6 root root  4096 nov 19 13:26 src-trl
drwxr-xr-x 6 root root  4096 nov 19 13:26 src-wad
drwxr-xr-x 3 root root  4096 nov 19 13:49 srcAD
drwxr-xr-x 2 root root  4096 oct 30 18:19 srcClient
drwxr-xr-x 6 root root  4096 nov 19 13:21 web


Apparently everything got installed.


Well, guess this is all that I know about the issue.


Thank you for the help.

Hans Peyrot

Last edited by hanspr (2007-12-02 00:13:39)

Offline

#2 2007-11-19 22:36:37

hanspr
Member
Registered: 2005-04-09
Posts: 6

Re: [SOLVED] OpenBravo Install

Reading and learning, referring to :

TOMCAT
If I click on the Tomcat welcome page link "Tomcat Manager" (user tomcat, password tomcat) I get :

After editing the file : tomcat-users.xml
And adding admin, and manager roles to account tomcat, this part works, but does not have anything to do with the error from OpenBravo.

Offline

#3 2007-12-02 00:13:14

hanspr
Member
Registered: 2005-04-09
Posts: 6

Re: [SOLVED] OpenBravo Install

Solution.

Tomcat was not uncompressing openbravo.war file.
As installed in the Archlinux distribution, Tomcat runs under user tomcat, ande writing permissions for the /opt/tomcat/webapps directory are:

rwxr-x-r-x root root

Changed permissions of /opt/tomcat/webapps to

rwxrwxr-x root tomcat

I don't know if necesarry but between all my attempts I also changed those permissions to :

/opt/temp
/opt/work

And now it works.

Offline

Board footer

Powered by FluxBB