Hibernate spatial和PostGIS与WildFly 8

Hibernate spatial和PostGIS与WildFly 8,hibernate,postgresql,postgis,wildfly-8,hibernate-spatial,Hibernate,Postgresql,Postgis,Wildfly 8,Hibernate Spatial,我正在从Glassfish4迁移到WildFly8应用程序服务器,出现以下错误: Can't convert object of type org.postgresql.util.PGobject 我正在使用Hibernate Spatial和PostGIS。对于Glassfish服务器,我将postgis jar添加到/lib/ext文件夹以修复该错误 我遵循了本教程中的步骤:,但它不适用于我,即我将这些模块添加到/org/hibernate/main: hibernate-spatial-

我正在从Glassfish4迁移到WildFly8应用程序服务器,出现以下错误:

Can't convert object of type org.postgresql.util.PGobject
我正在使用Hibernate Spatial和PostGIS。对于Glassfish服务器,我将postgis jar添加到/lib/ext文件夹以修复该错误

我遵循了本教程中的步骤:,但它不适用于我,即我将这些模块添加到/org/hibernate/main:

hibernate-spatial-4.3.jar
resource-root path="jts-1.13.jar
以及modules.xml的以下条目:

<resource-root path="hibernate-spatial-4.3.jar"/>
<resource-root path="jts-1.13.jar"/>
...
<module name="org.postgresql"/>
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.postgresql">
<resources>
    <resource-root path="postgresql-9.3-1101.jdbc41.jar"/>
    <resource-root path="postgis-jdbc-1.5.3.jar"/>
</resources>
<dependencies>
    <module name="javax.api"/>
    <module name="javax.transaction.api"/>
</dependencies>
</module>
full modules.xml:

<resource-root path="hibernate-spatial-4.3.jar"/>
<resource-root path="jts-1.13.jar"/>
...
<module name="org.postgresql"/>
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.postgresql">
<resources>
    <resource-root path="postgresql-9.3-1101.jdbc41.jar"/>
    <resource-root path="postgis-jdbc-1.5.3.jar"/>
</resources>
<dependencies>
    <module name="javax.api"/>
    <module name="javax.transaction.api"/>
</dependencies>
</module>
你知道如何正确加载postgis、hibernate spatial等类吗

干杯,
多米尼克解决了它!在中找到与我的服务器类似的设置,我查看了它们之间的差异。在standalone.xml中,我应该放:

<driver name="postgresql-driver" module="org.postgresql">
                    <driver-class>org.postgresql.Driver</driver-class>
                </driver>

org.postgresql.Driver
而不是:

<driver name="postgresql" module="org.postgresql">
   <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
</driver>

org.postgresql.xa.PGXADataSource
现在一切都好了