Apache fediz 1.2 - 上下文初始化失败

时间:2015-05-21 18:51:31

标签: java apache tomcat plugins

我正在尝试在两个apache-tomcat-7.0.59服务器上设置fedizhelloworld示例(一个用于RP,一个用于IDP)

我在使用IDP时遇到问题,并且在启动时遇到以下错误。

catalina.out中:

 2015-05-21 13:58:06,176 [localhost-startStop-1] ERROR
 org.springframework.web.context.ContextLoader  - Context
 initialization failed <openjpa-2.3.0-r422266:1540826 nonfatal general
 error> org.apache.openjpa.persistence.PersistenceException: There were
 errors initializing your configuration: <openjpa-2.3.0-r422266:1540826
 fatal user error> org.apache.openjpa.util.UserException: A connection
 could not be obtained for driver class "null" and URL "null".  You may
 have specified an invalid URL.

idp.log:

 2015-05-21 13:42:45,456 [localhost-startStop-1] ERROR
 org.springframework.web.context.ContextLoader  - Context
 initialization failed <openjpa-2.3.0-r422266:1540826 nonfatal general
 error> org.apache.openjpa.persistence.PersistenceException: There were
 errors initializing your configuration: <openjpa-2.3.0-r422266:1540826
 fatal user error> org.apache.openjpa.util.UserException: A connection
 could not be obtained for driver class "null" and URL "null".  You may
 have specified an invalid URL.

这是我的server.xml设置:

<Server port="9005" shutdown="SHUTDOWN">

<!-- http configuration -->
   <Connector port="9080" protocol="HTTP/1.1"
        connectionTimeout="20000"
        redirectPort="9443" />

<!-- https configuration -->
   <Connector port="9443" protocol="HTTP/1.1" SSLEnabled="true"
        maxThreads="150" scheme="https" secure="true"
        keystoreFile="idp-ssl-server.jks"
        keystorePass="tompass" sslProtocol="TLS" />

我在CATALINA_HOME中创建了启动/关闭脚本:

#!/bin/bash

CATALINA_HOME=/home/mmcginn/Sites/fireworks/SAML_lab/CXF_Lab/tomcat-7-IDP
$CATALINA_HOME/bin/startup.sh

和...

#!/bin/bash

CATALINA_HOME=/home/mmcginn/Sites/fireworks/SAML_lab/CXF_Lab/tomcat-7-IDP
$CATALINA_HOME/bin/shutdown.sh

我将示例密钥库放在CATALINA_HOME“idp-ssl-sever.jks”中 最后,我将“fediz-idp.war”和“fediz-idp-sts.war”部署到了webapps文件夹。

我错过了什么?

1 个答案:

答案 0 :(得分:0)

尝试下载并添加hsqldb驱动程序(jar)到您的fediz idp lib目录($ CATALINA_HOME / webapps / fediz-idp / WEB-INF / lib)。您可以检查您的persitence.properties,persistenceContext.xml config。