gpt4 book ai didi

java - Pentaho : status 404 error on CentOS

转载 作者:行者123 更新时间:2023-11-28 22:06:25 27 4
gpt4 key购买 nike

我必须在 CentOS 服务器上安装 Pentaho,所以我尝试在我的计算机(Ubuntu 14.04)上成功安装 Pentaho,然后,我尝试在 CentOS 6 上安装它,Tomcat 在 url 上返回 404 错误: "http://localhost:8080/pentaho/".

为了解释我做了什么:

$> wget http://heanet.dl.sourceforge.net/project/pentaho/Business%20Intelligence%20Server/5.2/biserver-ce-5.2.0.0-209.zip
$> unzip biserver-ce-5.2.0.0-209.zip && cd biserver-ce
[...]
$> ./start-pentaho.sh
DEBUG: Using JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
DEBUG: _PENTAHO_JAVA=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/bin/java
--------------------------------------------------------------------------------------------
The Pentaho BI Platform now contains a version checker that will notify you
when newer versions of the software are available. The version checker is enabled by default.
For information on what the version checker does, why it is beneficial, and how it works see:
http://wiki.pentaho.com/display/ServerDoc2x/Version+Checker
Press Enter to continue, or type cancel or Ctrl-C to prevent the server from starting.
You will only be prompted once with this question.
--------------------------------------------------------------------------------------------
[OK]:

Using CATALINA_BASE: /root/pentaho/biserver-ce/tomcat
Using CATALINA_HOME: /root/pentaho/biserver-ce/tomcat
Using CATALINA_TMPDIR: /root/pentaho/biserver-ce/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
Using CLASSPATH: /root/pentaho/biserver-ce/tomcat/bin/bootstrap.jar
$>

[I went to http://localhost:8080/ -> redirected to http://localhost:8080/pentaho/ with a status 404 error]
$> cd tomcat/logs/
$> cat catalina.out
[...]
07:22:25,425 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.h2.tools.Server' defined in file [/root/pentaho/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]
[...]
$> cat pentaho.log
2014-10-14 07:22:25,425 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.h2.tools.Server' defined in file [/root/pentaho/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]

当我们检查端口 9092 是否打开或使用时,nmap 说:

$> nmap -sT -O localhost    
Starting Nmap 5.51 ( http://nmap.org ) at 2014-10-14 08:32 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000012s latency).
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 993 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
443/tcp open https
3306/tcp open mysql
8009/tcp open ajp13
8080/tcp open http-proxy
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).
TCP/IP fingerprint:
OS:SCAN(V=5.51%D=10/14%OT=22%CT=1%CU=41410%PV=N%DS=0%DC=L%G=Y%TM=543D17F8%P
OS:=x86_64-redhat-linux-gnu)SEQ(SP=104%GCD=1%ISR=10A%TI=Z%CI=Z%II=I%TS=A)OP
OS:S(O1=M400CST11NW7%O2=M400CST11NW7%O3=M400CNNT11NW7%O4=M400CST11NW7%O5=M4
OS:00CST11NW7%O6=M400CST11)WIN(W1=8000%W2=8000%W3=8000%W4=8000%W5=8000%W6=8
OS:000)ECN(R=Y%DF=Y%T=40%W=8018%O=M400CNNSNW7%CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O%
OS:A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=N)T4(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%RD=0
OS:%Q=)T5(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=40%W=0%S
OS:=A%A=Z%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)U1(R
OS:=Y%DF=N%T=40%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DFI=N
OS:%T=40%CD=S)

Network Distance: 0 hops

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 12.21 seconds
$>

使用相同的存档和相同的命令行,我在 Ubuntu 14.04 上没有问题。

你有什么想法吗?

最佳答案

在我的例子中,我修复了以下问题:https://groups.google.com/forum/#!topic/pentaho-community/RRf97w782yQ

GettingStartedDB.properties 中更改 H2 的默认端口

base.dir=../../pentaho-solutions/system/GettingStartedDB
tcp.port=9093

关于java - Pentaho : status 404 error on CentOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26361205/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com