biserver-ce-5.0.1-stable install issue

pentaho5在linux下部署,报下面的错误

17:08:06,528 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.h2.tools.Server' defined in file [/root/biserver-ce-5.3.0.0-213/biserver-ce/pentaho-solutions/system/GettingStartedDB-spring.xml]: Invocation of init method failed; nested exception is org.h2.jdbc.JdbcSQLException: Exception opening port "H2 TCP Server (tcp://localhost:9092)" (port may be in use), cause: "timeout" [90061-131]

解决方式如下:

I had exactly the same problem.

I observed that the H2 was trying to bind an invalid IP for my network configuration. So, I had to configure manually the binding by adding "-Dh2.bindAddress=localhost" in the start-pentaho.sh. Now, everything is working like a charm.

配置代码栗子如下:

#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  Pentaho Start Script                                                    ##
##                                                                          ##
### ====================================================================== ###


DIR_REL=`dirname $0`
cd $DIR_REL
DIR=`pwd`
#cd -


. "$DIR/set-pentaho-env.sh"


setPentahoEnv "$DIR/jre"
errCode=0
if [ -f "$DIR/promptuser.sh" ]; then
  sh "$DIR/promptuser.sh"
  errCode="$?"
  rm "$DIR/promptuser.sh"
fi
if [ "$errCode" = 0 ]; then
  cd "$DIR/tomcat/bin"
  CATALINA_OPTS="-Xms1024m -Xmx2048m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dh2.bindAddress=localhost"
  export CATALINA_OPTS
  JAVA_HOME=$_PENTAHO_JAVA_HOME
  sh startup.sh
fi

..搞定

猜你喜欢

转载自qq85609655.iteye.com/blog/2260606
今日推荐