我试图在standalone.xml中配置Postgres数据源。我把驱动程序jar放在了正确的位置,"jboss-as-7.2.0.Final\modules\org\postgresql\main“,这是我的"standalone.xml":
<datasource jta="true" jndi-name="java:jboss/datasources/ProcessEngine" pool-name="ProcessEngine" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:postgresql://localhost:5432/camunda_process_engine</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>postgresql</driver>
<security>
<user-name>postgres</user-name>
<password>postgres</password>
</security>
</datasource>
<drivers>
</driver>
<driver name="postgresql" module="org.postgresql">
<xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
</driver>
</drivers>..。
"jboss-as-7.2.0.Final\modules\org\postgresql\main\module.xml“
我正在尝试启动服务器,但它显示了错误。
JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.org_postgresql_Driver (missing) dependents: [service jboss.driver-demander.java:jboss/datasources/ProcessEngine, service jboss.data-source.java:jboss/datasources/ProcessEngine] 发布于 2015-05-06 19:57:01
您还必须向应用程序中添加对新模块的依赖。最简单的方法是向Ear的META中添加一个JBos-Deployment-structure.xml,或者如果您只是一个war,就把它放到WEB中。
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<deployment>
<dependencies>
<module name="org.postgresql" />
</dependencies>
</deployment>
</jboss-deployment-structure>当您重新部署时,JBoss将知道如何将新的自定义模块放在类路径中。AS7 这里中的类加载指南。
https://stackoverflow.com/questions/30069502
复制相似问题