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

标签 java apache tomcat plugins

我正在尝试在两台 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/

相关文章:

email - 托米。发送带附件的邮件

jquery - Ajax jquery 调用获取 NetworkError : 403 Forbidden error in response

java - validateJarFile(servlet-api.jar) - jar 未使用 eclipse 加载到 tomcat 中

java - 如何从MySql数据库中获取所有用户并将其放入arraylist

java - 使用 JXLS 限制内存中的行数

apache - 使用本地网络中的 xampp 服务器托管站点,无需端口转发

mysql - dockerfile - 无法连接错误

apache - 在现有目录上返回 404 错误

java - Android Studio 意外的内容存储修改

java - String.equals() 是如何工作的