【发布时间】:2013-07-12 18:45:39
【问题描述】:
我已经下载了嵌入式 pentaho 服务器……我认为这应该在没有任何数据库的情况下启动(它在 Windows 上这样做)。
因此,我没有在 tomcat 中安装任何 jdbc 库...这是致命错误吗?
我在 OS X 10.8.3 上有最新的 JDK javac 1.7.0_25 和 JRE 是这个版本(即 /usr/bin/java 的符号链接正确)
tomcat 主页 (localhost:8080) 显示“资源不可用”
我以前没有使用过 tomcat,而且我发现日志文件不是很有帮助。
pentaho 日志说:
2013-07-15 10:15:08,088 错误 [org.hibernate.util.JDBCExceptionReporter] java.net.ConnectException:连接被拒绝 2013-07-15 10:15:08,194 错误 [org.springframework.web.context.ContextLoader] 上下文初始化失败
catalina.out 有一些具体错误:
10:15:08,088 ERROR [JDBCExceptionReporter] java.net.ConnectException: Connection refused
10:15:08,194 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChainProxy' defined in file [/Users/tim/pentaho/biserver-ce-4.8.0-stable/biserver-ce/pentaho-solutions/system/applicationContext-spring-security.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException:
在文件 [/Users/tim/pentaho/biserver-ce-4.8.0-stable/biserver-ce/pentaho-solutions/system/applicationContext-spring-security.xml] 中定义名称为 'authenticationProcessingFilter' 创建 bean 时出错: 在设置 bean 属性 'authenticationManager' 时无法解析对 bean 'authenticationManager' 的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在文件 [/Users/tim/pentaho/biserver-ce-4.8.0-stable/biserver-ce/pentaho-solutions/ system/applicationContext-spring-security.xml]:使用键 [0] 设置 bean 属性“providers”时无法解析对 bean 'daoAuthenticationProvider' 的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在文件 [/Users/tim/pentaho/biserver-ce-4.8.0-stable/biserver-ce/pentaho-solutions/ 中定义名称为“daoAuthenticationProvider”的 bean 创建时出错system/applicationContext-spring-security-hibernate.xml]:在设置 bean 属性“userDetailsService”时无法解析对 bean“userDetailsService”的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在文件 [/Users/tim/pentaho/biserver-ce-4.8.0-stable/biserver-ce/pentaho-solutions/ 中定义名称为“userDetailsService”的 bean 创建时出错system/applicationContext-spring-security-hibernate.xml]:在设置 bean 属性 'userRoleDao' 时无法解析对 bean 'userRoleDao' 的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在文件 [/Users/tim/pentaho/biserver-ce-4.8.0-stable/biserver-ce/pentaho-solutions/ 中定义的名称为“userRoleDao”的 bean 创建时出错system/applicationContext-spring-security-hibernate.xml]:在设置 bean 属性“sessionFactory”时无法解析对 bean“sessionFactory”的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:在文件 [/Users/tim/pentaho/biserver-ce-4.8.0-stable/biserver-ce/pentaho-solutions/ 中定义名称为“sessionFactory”的 bean 创建时出错system/applicationContext-spring-security-hibernate.xml]:init 方法调用失败;嵌套异常是 java.lang.NoClassDefFoundError: org/apache/log4j/Level
【问题讨论】:
-
它确实使用了一个嵌入式数据库(datasource=hibernate/quartz),所以至少应该有一个 hsql 驱动程序,但应该已经在 pentaho webapp 中了。但是,鉴于您收到拒绝连接消息,我会检查休眠配置。
-
我认为你在做某事。
-
我认为你在做某事。当我运行 biserver-ce/data/start_hypersonic.sh 时,我可以看到很多错误消息,与我在 Windows 安装上运行 start_hypersonic.bat 时的输出完全不同。第一个错误是无法从文件加载属性。然后我得到一个异常无效的模式名称:SYSTEM_SCHEMA。然后出现很多错误,以 [Server@4769baee] 结尾:[Thread[HSQLDB Server @4769baee,5,main]]:因为没有打开的数据库而关闭 [Server@4769baee]:正在启动关闭序列..pastebin.com/aUhvrr71
标签: tomcat osx-mountain-lion pentaho