我正在尝试在两台 apache-tomcat-7.0.59 服务器(一台用于 RP,一台用于 IDP)上设置 fedizhelloworld 示例
我在使用 IDP 时遇到问题,并且在启动时遇到以下错误。
卡特琳娜.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
我将示例 keystore 放在 CATALINA_HOME“idp-ssl-sever.jks”中 最后,我将“fediz-idp.war”和“fediz-idp-sts.war”部署到 webapps 文件夹。
我错过了什么?
最佳答案
尝试下载 hsqldb 驱动程序 (jar) 并将其添加到您的 fediz idp lib 目录($CATALINA_HOME/webapps/fediz-idp/WEB-INF/lib)。您可以检查您的 persitence.properties、persistenceContext.xml 配置。
关于java - Apache fediz 1.2 - 上下文初始化失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30382035/