简体   繁体   English

从jboss-eap-6.1切换到jboss-as-7.1.1.Final无法部署我的完整数据库文件

[英]Switching from jboss-eap-6.1 to jboss-as-7.1.1.Final not able to deploy my complete database file

I am using HSQLDB as database in our project. 我在我们的项目中使用HSQLDB作为数据库。 thus My project need 'mydb.script' ( original size 7,012 bytes ) file (which is bundeled in my project) to connect with the database. 因此,我的项目需要'mydb.script'原始大小 为7,012 字节 )文件(已捆绑在我的项目中)与数据库连接。

It working fine when I deploy it on jboss-eap-6.1 and takes my Database script file from 当我将其部署在jboss-eap-6.1上并从

JBOSS_6_HOME/standalone/deployments/myproject.war/WEB-INF/classes/mydb.script

location and the size of script file is same as original size ie 7,012 bytes. 脚本文件的位置和大小与原始大小相同,即7,012字节。

Now when I am deploying the same project on jboss-as-7.1.1.Final which takes my script file from 现在,当我在jboss-as-7.1.1.Final上部署相同的项目时,它将脚本文件从

JBOSS_7_HOME/modules/sun/jdk/main/service-loader-resources/mydb.script

location which is an incomplete file ie size of script file is 1601 bytes and it not taking my script file from 位置是一个不完整的文件,即脚本文件的大小为1601字节 ,并且不占用我的脚本文件

JBOSS_7_HOME/standalone/deployments/myproject.war/WEB-INF/classes/mydb.script

path,Java Code To get file path of my script file 路径,Java代码获取我的脚本文件的文件路径

Java Code Java代码

DBConnectionManager.class.getClassLoader().getResource("").getFile()

Can any one help me out Thanks in advance 任何人都可以帮我吗

Did you placed mydb.script in JBOSS_7_HOME/modules/sun/jdk/main/service-loader-resources ? 您是否将mydb.script放在JBOSS_7_HOME/modules/sun/jdk/main/service-loader-resources

If not then you can remove this file and then it will pick it from you project. 如果没有,那么您可以删除此文件,然后它将从您的项目中选择它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM